Hello,
I am new in Pentaho. I want to configure Pentaho 3.5 stable user console to IBM DB2 9.7 on XP.I changed the following files:
1. I've copied the JDBC-Driver of DB2 to …..\biserver-ce-3.5.0.stable\administration-console\jdbc and ….\biserver-ce-3.5.0.stable\biserver-ce\tomcat\common\lib directory.
2. I've created quartz,hibernate database and some objects according scripts in \biserver-ce-3.5.0.stable\biserver-ce\data
3.I've changed …..\biserver-ce-3.5.0.stable\biserver-ce\pentaho-solutions\system\applicationContext-spring-security-hibernate.properties:
jdbc.driver=com.ibm.db2.jcc.DB2Driver
jdbc.url=jdbc:db2://localhost:50000/PENTAHO:currentSchema=HIBERNATE;
jdbc.username=db2admin
jdbc.password=mypassword
hibernate.dialect=org.hibernate.dialect.DB2Dialect
4.I've changed …..\biserver-ce-3.5.0.stable\biserver-ce\pentaho-solutions\system\applicationContext-spring-security-jdbc.xml:
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverM anagerDataSource">
<property name="driverClassName" value="com.ibm.db2.jcc.DB2Driver" />
<property name="url"
value="jdbc:db2://localhost:50000/PENTAHO:currentSchema=HIBERNATE;" />
<property name="username" value="db2admin" />
<property name="password" value="mypassword" />
</bean>
5.I've changed ….. \biserver-ce-3.5.0.stable\biserver-ce\pentaho-solutions\system\quartz\quartz.properties:
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.DB2v9Delegate
6.I've changed ….. \biserver-ce-3.5.0.stable\biserver-ce\pentaho-solutions\system\hibernate\hibernate-settings.xml:
<config-file>system/hibernate/db2.hibernate.cfg.xml</config-file>
7. I've copied ….. \biserver-ce-3.5.0.stable\biserver-ce\pentaho-solutions\system\hibernate\oracle10g.hibernate.cfg .xml and renamed it as db2.hibernate.cfg.xml. My changes are:
<property name="connection.driver_class">com.ibm.db2.jcc.DB2 Driver</property>
<property name="connection.url">jdbc:db2://localhost:50000/PENTAHO:currentSchema=HIBERNATE;</property>
<property name="dialect">org.hibernate.dialect.DB2Dialect</property>
<property name="connection.username">db2admin</property>
<property name="connection.password">mypassword</property>
8. I've changed ….. \biserver-ce-3.5.0.stable\biserver-ce\tomcat\webapps\pentaho\META-INF\context.xml:
<Context path="/pentaho" docbase="webapps/pentaho/">
<Resource name="jdbc/Hibernate" auth="Container" type="javax.sql.DataSource"
factory="org.apache.commons.dbcp.BasicDataSourceFa ctory" maxActive="20" maxIdle="5"
maxWait="10000" username="db2admin" password="mypassword"
driverClassName="com.ibm.db2.jcc.DB2Driver" url="jdbc:db2://localhost:50000/PENTAHO:currentSchema=HIBERNATE;"
validationQuery="SELECT 1 FROM SYSIBM.SYSDUMMY1" />
<Resource name="jdbc/Quartz" auth="Container" type="javax.sql.DataSource"
factory="org.apache.commons.dbcp.BasicDataSourceFa ctory" maxActive="20" maxIdle="5"
maxWait="10000" username="db2admin" password="mypassword"
driverClassName="com.ibm.db2.jcc.DB2Driver" url="jdbc:db2://localhost:50000/PENTAHO:currentSchema=QUARTZ;"
validationQuery="SELECT 1 FROM SYSIBM.SYSDUMMY1"/>
</Context>
When I start the Tomcat server, I got the error below:
Jan 17, 2010 12:45:15 PM org.apache.catalina.core.AprLifecycleListener lifecycle
Event
INFO: The Apache Tomcat Native library which allows optimal performance in produ
ction environments was not found on the java.library.path: C:\Dokumente und Eins
tellungen\Ajmal\Desktop\biserver-ce-3.5.0.stable\biserver-ce\jre\bin;.;C:\WINDOW
S\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDO WS;C:\WINDOWS\system32\wbem;c:
\programme\ibm\gsk8\lib;C:\Programme\jEdit;C:\PROG RA~1\IBM\SQLLIB\BIN;C:\PROGRA~
1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPL ES\REPL
Jan 17, 2010 12:45:16 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 17, 2010 12:45:16 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3000 ms
Jan 17, 2010 12:45:16 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 17, 2010 12:45:16 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
Jan 17, 2010 12:45:16 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 17, 2010 12:45:27 PM org.apache.catalina.startup.ContextConfig validateSecur
ityRoles
WARNING: Security role name PENTAHO_ADMIN used in an <auth-constraint> without b
eing defined in a <security-role>
12:46:20,062 ERROR [SchemaUpdate] Unsuccessful: create table CONTENTITEM (CONTIT
EMID varchar(100) not null, REVISION integer not null, NAMECOL varchar(200) not
null, parent_id varchar(100), PATHCOL varchar(1024) not null, TITLE varchar(200)
not null, MIMETYPE varchar(100), URL varchar(254), LATESTVERNUM integer, EXTENS
ION varchar(10) not null, WRITEMODE integer not null, primary key (CONTITEMID),
unique (PATHCOL))
12:46:20,062 ERROR [SchemaUpdate] DB2 SQL Error: SQLCODE=-613, SQLSTATE=54008, S
QLERRMC=PATHCOL..., DRIVER=3.58.82
12:46:20,109 ERROR [SchemaUpdate] Unsuccessful: create table CONTENTLOCATION (CO
NTENTID varchar(100) not null, REVISION integer not null, NAMECOL varchar(200) n
ot null, SOLNID varchar(100) not null, DESCRIPTION varchar(200) not null, DIRPAT
H varchar(1024) not null, primary key (CONTENTID), unique (DIRPATH))
12:46:20,109 ERROR [SchemaUpdate] DB2 SQL Error: SQLCODE=-613, SQLSTATE=54008, S
QLERRMC=DIRPATH..., DRIVER=3.58.82
12:46:20,578 ERROR [SchemaUpdate] Unsuccessful: create table PRO_FILES (FILE_ID
varchar(100) not null, revision integer not null, parent varchar(100), fileName
varchar(255) not null, fullPath varchar(1024) not null unique, data blob(255), d
irectory smallint not null, lastModified bigint not null, CHILD_ID varchar(100),
primary key (FILE_ID))
12:46:20,593 ERROR [SchemaUpdate] DB2 SQL Error: SQLCODE=-613, SQLSTATE=54008, S
QLERRMC=FULLPATH..., DRIVER=3.58.82
12:46:20,703 ERROR [SchemaUpdate] Unsuccessful: create table PRO_SUBCONTENT (SUB
CONTID varchar(100) not null, REVISION integer not null, SUBCONTTYPE varchar(255
) not null, SUBCONTACTREF varchar(1024) not null, primary key (SUBCONTID), uniqu
e (SUBCONTACTREF))
12:46:20,703 ERROR [SchemaUpdate] DB2 SQL Error: SQLCODE=-613, SQLSTATE=54008, S
QLERRMC=SUBCONTACTREF..., DRIVER=3.58.82
12:46:21,140 ERROR [SchemaUpdate] Unsuccessful: alter table CONTENTITEM add cons
traint FK692B5EEC44F32395 foreign key (parent_id) references CONTENTLOCATION
12:46:21,140 ERROR [SchemaUpdate] DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, S
QLERRMC=HIBERNATE.CONTENTITEM, DRIVER=3.58.82
12:46:21,156 ERROR [SchemaUpdate] Unsuccessful: alter table CONTITEMFILE add con
straint FK7FC3F44164D906F3 foreign key (parent_id) references CONTENTITEM
12:46:21,156 ERROR [SchemaUpdate] DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, S
QLERRMC=HIBERNATE.CONTENTITEM, DRIVER=3.58.82
12:46:21,218 ERROR [SchemaUpdate] Unsuccessful: alter table PRO_ACLS_LIST add co
nstraint FKB65646C2B23C5D30 foreign key (ACL_ID) references PRO_FILES
12:46:21,218 ERROR [SchemaUpdate] DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, S
QLERRMC=HIBERNATE.PRO_FILES, DRIVER=3.58.82
12:46:21,218 ERROR [SchemaUpdate] Unsuccessful: alter table PRO_FILES add constr
aint FK94A87E2569FABF5E foreign key (CHILD_ID) references PRO_FILES
12:46:21,218 ERROR [SchemaUpdate] DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, S
QLERRMC=HIBERNATE.PRO_FILES, DRIVER=3.58.82
12:46:21,218 ERROR [SchemaUpdate] Unsuccessful: alter table PRO_FILES add constr
aint FK94A87E25CBBBB0EA foreign key (parent) references PRO_FILES
12:46:21,218 ERROR [SchemaUpdate] DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, S
QLERRMC=HIBERNATE.PRO_FILES, DRIVER=3.58.82
12:46:21,234 ERROR [SchemaUpdate] Unsuccessful: alter table PRO_SUBCONTPARMS add
constraint FKF3CE4C47846761A foreign key (ITEMID) references PRO_SUBCONTENT
12:46:21,234 ERROR [SchemaUpdate] DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, S
QLERRMC=HIBERNATE.PRO_SUBCONTENT, DRIVER=3.58.82
12:46:21,234 ERROR [SchemaUpdate] Unsuccessful: alter table PRO_SUBCONT_SCHEDLIS
T add constraint FKF0D3FBD62593BC9E foreign key (SCHEDULEID) references PRO_SUBC
ONTENT
12:46:21,250 ERROR [SchemaUpdate] DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, S
QLERRMC=HIBERNATE.PRO_SUBCONTENT, DRIVER=3.58.82
12:46:21,250 ERROR [SchemaUpdate] Unsuccessful: alter table PRO_SUBSCRIBE add co
nstraint FK5E7511F89D8AC376 foreign key (SUBSCR_CONTID) references PRO_SUBCONTEN
T
12:46:21,250 ERROR [SchemaUpdate] DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, S
QLERRMC=HIBERNATE.PRO_SUBCONTENT, DRIVER=3.58.82
12:46:21,531 ERROR [JDBCExceptionReporter] DB2 SQL Error: SQLCODE=-204, SQLSTATE
=42704, SQLERRMC=HIBERNATE.PRO_FILES, DRIVER=3.58.82
12:46:21,531 ERROR [JDBCExceptionReporter] DB2 SQL Error: SQLCODE=-727, SQLSTATE
=56098, SQLERRMC=2;-204;42704;HIBERNATE.PRO_FILES, DRIVER=3.58.82
12:46:21,531 ERROR [JDBCExceptionReporter] DB2 SQL Error: SQLCODE=-727, SQLSTATE
=56098, SQLERRMC=2;-204;42704;HIBERNATE.PRO_FILES, DRIVER=3.58.82
12:46:21,531 ERROR [Logger] Error: Pentaho
12:46:21,546 ERROR [Logger] misc-org.pentaho.platform.engine.core.system.Pentaho
System: PentahoSystem.ERROR_0026 - Failed to retrieve object with name "ISolutio
nRepository" from the Pentaho object factory.
org.pentaho.platform.api.engine.ObjectFactoryExcep tion: Failed to create an inst
ance of object with key [ISolutionRepository].
at org.pentaho.platform.engine.core.system.objfac.Abs tractSpringPentahoO
bjectFactory.instanceClass(AbstractSpringPentahoOb jectFactory.java:81)
at org.pentaho.platform.engine.core.system.objfac.Abs tractSpringPentahoO
bjectFactory.retreiveObject(AbstractSpringPentahoO bjectFactory.java:117)
at org.pentaho.platform.engine.core.system.objfac.Abs tractSpringPentahoO
bjectFactory.get(AbstractSpringPentahoObjectFactor y.java:72)
at org.pentaho.platform.engine.core.system.PentahoSys tem.get(PentahoSyst
em.java:508)
at org.pentaho.platform.engine.core.system.PentahoSys tem.get(PentahoSyst
em.java:484)
at org.pentaho.platform.plugin.action.mondrian.Mondri anSystemListener.lo
adMondrianProperties(MondrianSystemListener.java:6 0)
at org.pentaho.platform.plugin.action.mondrian.Mondri anSystemListener.st
artup(MondrianSystemListener.java:46)
at org.pentaho.platform.engine.core.system.PentahoSys tem.notifySystemLis
tenersOfStartup(PentahoSystem.java:306)
at org.pentaho.platform.engine.core.system.PentahoSys tem.notifySystemLis
tenersOfStartup(PentahoSystem.java:291)
at org.pentaho.platform.engine.core.system.PentahoSys tem.init(PentahoSys
tem.java:265)
at org.pentaho.platform.engine.core.system.PentahoSys tem.init(PentahoSys
tem.java:206)
at org.pentaho.platform.web.http.context.SolutionCont extListener.context
Initialized(SolutionContextListener.java:136)
at org.apache.catalina.core.StandardContext.listenerS tart(StandardContex
t.java:3764)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4
216)
at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase
.java:760)
at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:74
0)
at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployDirec tory(HostConfig.jav
a:926)
at org.apache.catalina.startup.HostConfig.deployDirec tories(HostConfig.j
ava:889)
at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:492
)
at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java
:311)
at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(Lifecycl
eSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:736)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443
)
at org.apache.catalina.core.StandardService.start(Sta ndardService.java:4
48)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:700
)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:433)
Caused by: java.lang.NullPointerException
at org.pentaho.platform.repository.solution.dbbased.D bBasedSolutionRepos
itory.internalGetRootFolder(DbBasedSolutionReposit ory.java:972)
at org.pentaho.platform.repository.solution.dbbased.D bBasedSolutionRepos
itory.init(DbBasedSolutionRepository.java:111)
at org.pentaho.platform.repository.solution.dbbased.D bBasedSolutionRepos
itory.<init>(DbBasedSolutionRepository.java:96)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.pentaho.platform.engine.core.system.objfac.Abs tractSpringPentahoO
bjectFactory.instanceClass(AbstractSpringPentahoOb jectFactory.java:78)
... 35 more
12:46:21,562 ERROR [Logger] Error end:
12:46:21,562 ERROR [Logger] Error: Pentaho
12:46:21,562 ERROR [Logger] misc-org.pentaho.platform.engine.core.system.Pentaho
System: PentahoSystem.ERROR_0014 - Error while trying to execute startup sequenc
e for org.pentaho.platform.plugin.action.mondrian.Mondri anSystemListener
org.pentaho.platform.api.engine.PentahoSystemExcep tion: PentahoSystem.ERROR_0014
- Error while trying to execute startup sequence for org.pentaho.platform.plugi
n.action.mondrian.MondrianSystemListener
at org.pentaho.platform.engine.core.system.PentahoSys tem.notifySystemLis
tenersOfStartup(PentahoSystem.java:311)
at org.pentaho.platform.engine.core.system.PentahoSys tem.notifySystemLis
tenersOfStartup(PentahoSystem.java:291)
at org.pentaho.platform.engine.core.system.PentahoSys tem.init(PentahoSys
tem.java:265)
at org.pentaho.platform.engine.core.system.PentahoSys tem.init(PentahoSys
tem.java:206)
at org.pentaho.platform.web.http.context.SolutionCont extListener.context
Initialized(SolutionContextListener.java:136)
at org.apache.catalina.core.StandardContext.listenerS tart(StandardContex
t.java:3764)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4
216)
at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase
.java:760)
at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:74
0)
at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployDirec tory(HostConfig.jav
a:926)
at org.apache.catalina.startup.HostConfig.deployDirec tories(HostConfig.j
ava:889)
at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:492
)
at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java
:311)
at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(Lifecycl
eSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:736)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443
)
at org.apache.catalina.core.StandardService.start(Sta ndardService.java:4
48)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:700
)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:433)
Caused by: java.lang.NullPointerException
at org.pentaho.platform.plugin.action.mondrian.Mondri anSystemListener.lo
adMondrianProperties(MondrianSystemListener.java:6 1)
at org.pentaho.platform.plugin.action.mondrian.Mondri anSystemListener.st
artup(MondrianSystemListener.java:46)
at org.pentaho.platform.engine.core.system.PentahoSys tem.notifySystemLis
tenersOfStartup(PentahoSystem.java:306)
... 28 more
12:46:21,578 ERROR [Logger] Error end:
Pentaho BI Platform server failed to properly initialize. The system will not be
available for requests. (Pentaho Platform Engine Core 3.5.0.stable.39705) Base
Url = http://localhost:8080/pentaho/, Solution Path = C:\Dokumente und Einstellu
ngen\Ajmal\Desktop\biserver-ce-3.5.0.stable\biserver-ce\pentaho-solutions
Jan 17, 2010 12:46:22 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jan 17, 2010 12:46:22 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jan 17, 2010 12:46:22 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47 config=null
Jan 17, 2010 12:46:22 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jan 17, 2010 12:46:22 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 66469 ms
Can somebody help me please?
Thanks for your reply
Elmar


Reply With Quote
