[opencms-dev] Resource Broker / Registry error - Some code
ambiesense at gmx.de
ambiesense at gmx.de
Wed Mar 26 17:54:09 CET 2003
Hi there,
I try to generate a opencms object for external access to OpenCMS using the
following code, like the code in CmsShell:
String relativePropsPath = CmsBase.getPropertiesPath(false);
String propsPath = "C:/MyProgramFiles/Tomcat/webapps/opencms/WEB-INF/" +
relativePropsPath; Configurations conf = new Configurations(new
ExtendedProperties(propsPath));
opencms = new OpenCms(conf);
Unfortunately I get a resource-broker and a registry error, which I do not
understand since the same code is running in CmsShell very well without
problems. Enclosed you will find the output I got from OpenCMS which includes the
Exception...
Does somebody know more about this?
Cheers and thanks in advance!
Ralf
---------------- START -----------------
[OpenCmsServlet] logging started
[OpenCmsServlet] JDK Info: OJVM Client VM 9.0.3.738 cdov Copyright (c)
1998-2002 Oracle Corp., nojit Oracle Corp.
[OpenCmsServlet] OS Info: Windows 2000 5.1 x86
[OpenCmsServlet] file.encoding: Cp1252
[OpenCms] creating first cms-object...
[OpenCms] initializing the main resource-broker
[CmsRbManager] ressourcebroker-name: mysql
[CmsRbManager] ressourcebroker-classname:
com.opencms.file.mySql.CmsResourceBroker
[CmsRbManager] got rb-class
[CmsRbManager] created rb-instance
[CmsResourceBroker] init the dbaccess-module.
[CmsDbAccess] init the dbaccess-module.
[CmsDbAccess] read pool-name from configurations: jdbc:opencmspool:mysql
[CmsDbAccess] read online-pool-name from configurations:
jdbc:opencmspool:mysqlonline
[CmsDbAccess] read backup-pool-name from configurations:
jdbc:opencmspool:mysqlbackup
[CmsDbAccess] read digest from configurations: MD5
[CmsDbAccess] read digestFileEncoding from configurations: UTF-8
[CmsDbAccess] digest created, using: MD5 Message Digest from SUN,
<initialized>
[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current Amount
is:0
[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current Amount
is:1
[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current Amount
is:2
[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current Amount
is:3
[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current Amount
is:4
[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current Amount
is:5
[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current Amount
is:6
[com.opencms.dbpool.CmsPool] mysql: creating new connection. Current Amount
is:7com.opencms.core.CmsException: 33 Resourcebroker-init error. Detailed
error: Database init failed.
root cause was com.opencms.core.CmsException: 33 Resourcebroker-init error.
Detailed error: Critical error while loading resourcebroker.
root cause was com.opencms.core.CmsException: 34 Registry error. Detailed
error: couldn't init registry.
root cause was java.lang.NullPointerException
void com.opencms.core.CmsException.<init>(java.lang.String, int,
java.lang.Throwable)
CmsException.java:311
void
com.opencms.core.OpenCms.<init>(source.org.apache.java.util.Configurations)
OpenCms.java:233
void com.opencms.core.OpenCMSConnector.<init>()
OpenCMSConnector.java:78
void com.opencms.core.OpenCMSConnector.main(java.lang.String[])
OpenCMSConnector.java:99
-------------- END ---------------------------
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
More information about the opencms-dev
mailing list