[opencms-dev] index.jsp page gives "Could not connect to the database. Is the database up and running?" error

Yogen Kapadia yogen_kapadia at yahoo.com
Wed May 7 02:58:02 CEST 2003


My installation of OpenCMS was successful but on trying to connect to the start page - http://localhost:8080/opencms/opencms/index.jsp I received the following error.  javax.servlet.ServletException: OpenCms initialization error!
Could not connect to the database. Is the database up and running?
 at com.opencms.core.OpenCmsHttpServlet.init(OpenCmsHttpServlet.java:245)
.......... (more detailed log of the error is available below) Here are the details of my system:-------------------------------------------------OpenCMS version: 5.0.0Database:  MySql 4.0.12Operating System : Windows XPServlet engine: Tomcat 4.1.24 running with Jboss 3.0.7 (Note: I have ensured that the installation is the jboss deploy folder as required by jboss, and that part works fine).Java VM encoding: Cp1252 Detailed error log:------------------------HTTP Status 500 - 
---------------------------------

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 
javax.servlet.ServletException: OpenCms initialization error!Could not connect to the database. Is the database up and running?	at com.opencms.core.OpenCmsHttpServlet.init(OpenCmsHttpServlet.java:245)	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)	at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)	at java.lang.Thread.run(Thread.java:536)



root cause 
com.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 com.opencms.core.CmsException: 21 XML parsing error. Detailed error: Cannot parse XML file "null". org.xml.sax.SAXParseException: The encoding "Cp1252" is not supported.. 	at com.opencms.core.OpenCms.(OpenCms.java:259)	at com.opencms.core.OpenCmsHttpServlet.init(OpenCmsHttpServlet.java:242)	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)	at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)	at java.lang.Thread.run(Thread.java:536)>----------->Root cause:>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 com.opencms.core.CmsException: 21 XML parsing error. Detailed error: Cannot parse XML file "null". org.xml.sax.SAXParseException: The encoding "Cp1252" is not supported.. >	at com.opencms.file.CmsRbManager.init(CmsRbManager.java:100)>	at com.opencms.core.OpenCms.(OpenCms.java:255)>	at com.opencms.core.OpenCmsHttpServlet.init(OpenCmsHttpServlet.java:242)>	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)>	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)>	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)>	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)>	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)>	at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)>	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)>	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)>	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)>	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)>	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)>	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)>	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)>	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)>	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)>	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)>	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)>	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)>	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)>	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)>	at java.lang.Thread.run(Thread.java:536)>>----------->>Root cause:>>com.opencms.core.CmsException: 34 Registry error. Detailed error: couldn't init registry. >>root cause was com.opencms.core.CmsException: 21 XML parsing error. Detailed error: Cannot parse XML file "null". org.xml.sax.SAXParseException: The encoding "Cp1252" is not supported.. >>	at com.opencms.file.CmsRegistry.(CmsRegistry.java:184)>>	at com.opencms.file.genericSql.CmsResourceBroker.init(CmsResourceBroker.java:4203)>>	at com.opencms.file.CmsRbManager.init(CmsRbManager.java:88)>>	at com.opencms.core.OpenCms.(OpenCms.java:255)>>	at com.opencms.core.OpenCmsHttpServlet.init(OpenCmsHttpServlet.java:242)>>	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)>>	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)>>	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)>>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)>>	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)>>	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)>>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)>>	at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)>>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)>>	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)>>	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)>>	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)>>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)>>	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)>>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)>>	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)>>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)>>	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)>>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)>>	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)>>	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)>>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)>>	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)>>	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)>>	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)>>	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)>>	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)>>	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)>>	at java.lang.Thread.run(Thread.java:536)>>>----------->>>Root cause:>>>com.opencms.core.CmsException: 21 XML parsing error. Detailed error: Cannot parse XML file "null". org.xml.sax.SAXParseException: The encoding "Cp1252" is not supported.. >>>	at com.opencms.template.A_CmsXmlContent.throwException(A_CmsXmlContent.java:1943)>>>	at com.opencms.template.A_CmsXmlContent.parse(A_CmsXmlContent.java:1363)>>>	at com.opencms.file.CmsRegistry.(CmsRegistry.java:181)>>>	at com.opencms.file.genericSql.CmsResourceBroker.init(CmsResourceBroker.java:4203)>>>	at com.opencms.file.CmsRbManager.init(CmsRbManager.java:88)>>>	at com.opencms.core.OpenCms.(OpenCms.java:255)>>>	at com.opencms.core.OpenCmsHttpServlet.init(OpenCmsHttpServlet.java:242)>>>	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)>>>	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)>>>	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)>>>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)>>>	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)>>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)>>>	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)>>>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)>>>	at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)>>>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)>>>	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)>>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)>>>	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)>>>	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)>>>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)>>>	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)>>>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)>>>	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)>>>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)>>>	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)>>>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)>>>	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)>>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)>>>	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)>>>	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)>>>	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)>>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)>>>	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)>>>	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)>>>	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)>>>	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)>>>	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)>>>	at java.lang.Thread.run(Thread.java:536)



---------------------------------
Apache Tomcat/4.1.24-LE-jdk14Your help would be much appreciated! Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20030507/6c9d37a7/attachment.html>


More information about the opencms-dev mailing list