From: Sebu T. K <seb...@vs...> - 2002-09-13 17:14:48
|
Hi all, I was trying to port a Project Management Tool from Xindice to eXist. For this I downloaded and extracted the eXist-0.8.1.tar.gz file and set up the paths as specified. However when I start the database with bin\startup.bat (I am working on Win2K Professional) I get the following exception trace. Starting service Tomcat-Standalone Apache Tomcat/4.0.3 - xincon web & webdav administration interface for xindice INFO - xincon web & webdav administration interface for xindice - made by Jan Metzner jan...@fh... INFO - made by Jan Metzner jan...@fh... - let's have fun! INFO - let's have fun! DEBUG - log4j priority: DEBUG DEBUG [init] log4j layout: %-5p [%M] %m%n - initialize database connection INFO [initDB] initialize database connection DEBUG [initDB] database driver: org.exist.xmldb.DatabaseImpl DEBUG [initDB] database root: xmldb:exist:///db DEBUG [initDB] for tomcat: set openorb.home=e:\eXist-0.8.1\jakarta-tomcat-4.0.3\ webapps\exist\WEB-INF\openorb e:/eXist-0.8.1/jakarta-tomcat-4.0.3/webapps/exist/WEB-INF Loading catalog: e:\eXist-0.8.1\jakarta-tomcat-4.0.3\webapps\exist\WEB-INF\catal og DEBUG [configure] initializing broker pool ... DEBUG [<init>] page buffer size = 128 DEBUG [<init>] elements index buffer size: 64 - creating elements.dbx INFO [<init>] creating elements.dbx DEBUG [<init>] org.dbxml.core.DBException: Error creating elements.dbx org.dbxml.core.DBException: Error creating elements.dbx at org.dbxml.core.filer.Paged.create(Paged.java:377) at org.dbxml.core.filer.BTree.create(BTree.java:187) at org.dbxml.core.filer.BTree.create(BTree.java:175) at org.exist.storage.BFile.create(BFile.java:134) at org.exist.storage.NativeBroker.<init>(NativeBroker.java:123) at org.exist.storage.BrokerFactory.getInstance(BrokerFactory.java:35) at org.exist.storage.BrokerPool.createBroker(BrokerPool.java:163) at org.exist.storage.BrokerPool.initialize(BrokerPool.java:152) at org.exist.storage.BrokerPool.<init>(BrokerPool.java:121) at org.exist.storage.BrokerPool.configure(BrokerPool.java:45) at org.exist.DatabaseAdminServlet.startup(DatabaseAdminServlet.java:70) at org.exist.DatabaseAdminServlet.init(DatabaseAdminServlet.java:56) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:614) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Starting service Tomcat-Apache Apache Tomcat/4.0.3 I was able to start the standalone database with bin\server.bat. But I did not try accessing it via HTTP or XML-RPC.There are no errors found in log/core.log, log/xmldb.log. The Tomcat/webapps/exist/WEB-INF/logs/access.log shows ClassNotFoundException for org.hsqldb.jdbcDriver. The Tomcat/webapps/exist/WEB-INF/logs/core.log shows the following error after I accessed the index page: ERROR (2002-09-13) 17:04.42:107 [core.xslt-processor] (/exist/rdf_pbib.xsp) HttpProcessor[8080][3]/TraxErrorHandler: Error in TraxTransformer: jar:file:/E:/eXist-0.8.1/exist.jar!/org/exist/xmldb.xsl; Line 14; Column 2; ; SystemID: jar:file:/E:/eXist-0.8.1/exist.jar!/org/exist/xmldb.xsl; Line#: 14; Column#: 2 javax.xml.transform.TransformerException: "create-session" attribute is not allowed on the xsl:stylesheet element! The Tomcat/webapps/exist/WEB-INF/logs/exist.log shows: 2002-09-13 18:05:23,823 [main] DEBUG (NativeBroker.java [<init>]:107) - page buffer size = 128 2002-09-13 18:05:23,833 [main] DEBUG (NativeBroker.java [<init>]:117) - elements index buffer size: 64 2002-09-13 18:05:23,934 [main] INFO (NativeBroker.java [<init>]:122) - creating elements.dbx 2002-09-13 18:05:23,944 [main] DEBUG (NativeBroker.java [<init>]:179) - org.dbxml.core.DBException: Error creating elements.dbx There is no "cocoon" directory anywhere and the localhost_cocoon_log shows the following error: 2002-09-13 17:26:21 StandardContext[/cocoon]: Error initializing resources: Document base e:\eXist-0.8.1\jakarta-tomcat-4.0.3\webapps\cocoon does not exist or is not a readable directory 2002-09-13 17:26:21 StandardContext[/cocoon]: Context startup failed due to previous errors 2002-09-13 17:26:21 StandardContext[/cocoon]: Exception during cleanup after start failed LifecycleException: Container StandardContext[/cocoon] has not been started at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3451) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3408) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:614) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) The localhost_eXist_log file shows the following trace: 2002-09-13 17:26:21 StandardContext[/exist]: Servlet /exist threw load() exception javax.servlet.ServletException: Servlet.init() for servlet org.exist.DatabaseAdminServlet threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:614) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) ----- Root Cause ----- java.lang.NullPointerException at org.exist.storage.NativeBroker.getCollection(NativeBroker.java:422) at org.exist.storage.NativeBroker.getOrCreateCollection(NativeBroker.java:859) at org.exist.storage.NativeBroker.<init>(NativeBroker.java:182) at org.exist.storage.BrokerFactory.getInstance(BrokerFactory.java:35) at org.exist.storage.BrokerPool.createBroker(BrokerPool.java:163) at org.exist.storage.BrokerPool.initialize(BrokerPool.java:152) at org.exist.storage.BrokerPool.<init>(BrokerPool.java:121) at org.exist.storage.BrokerPool.configure(BrokerPool.java:45) at org.exist.DatabaseAdminServlet.startup(DatabaseAdminServlet.java:70) at org.exist.DatabaseAdminServlet.init(DatabaseAdminServlet.java:56) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:614) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) In localhost_log I have: 2002-09-13 17:28:20 StandardHost[localhost]: ContainerBase.removeChild: stop: LifecycleException: Container StandardContext[/cocoon] has not been started at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3451) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:984) at org.apache.catalina.core.StandardHost.remove(StandardHost.java:791) at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:422) at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:402) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:234) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1151) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1163) at org.apache.catalina.core.StandardService.stop(StandardService.java:435) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:535) at org.apache.catalina.startup.Catalina.start(Catalina.java:799) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) 2002-09-13 17:28:20 StandardHost[localhost]: ContainerBase.removeChild: stop: LifecycleException: Container StandardContext[/xmlrpc] has not been started at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3451) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:984) at org.apache.catalina.core.StandardHost.remove(StandardHost.java:791) at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:422) at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:402) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:234) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1151) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1163) at org.apache.catalina.core.StandardService.stop(StandardService.java:435) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:535) at org.apache.catalina.startup.Catalina.start(Catalina.java:799) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Also I am not able to access xincon via HTTP. I tried rebuilding eXist using Ant, but to no avail. There are no permission problems to any directories. What could be the problem? I have thought a lot but could not arrive at a solution. Why is it that there is no "cocoon" directory or "xmlrpc" directory but still there are references to these contexts in Tomcat's XML file? Please help. Sebu T. Koleth. |