[opencms-dev] Critical error during OpenCms initialization: Unable to read the OpenCms XML configuration.
Michael Moossen
m.moossen at alkacon.com
Mon Oct 17 15:37:58 CEST 2005
Hi, Daniel!
this is a FAQ with a very simple answer.
if you see an Exception like this in the console:
--------------------
The following critical error occured:
Critical error during OpenCms initialization: Unable to read the OpenCms XML
configuration.
Giving up, unable to start OpenCms.
--------------------
SEVERE: Exception Processing ErrorPage[errorCode=500,
location=/opencms/system/handler/handle500.html]
org.opencms.main.CmsInitException: Critical error during OpenCms
initialization:
Unable to read the OpenCms XML configuration.
at org.opencms.main.OpenCmsCore.getInstance(OpenCmsCore.java:268)
at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
....
in general no debug option is needed. if you want to find out what the problem
is just look in your opencms.log:
normally you will find 6 errors in the opencms.log file:
17 Okt 2005 15:27:48,322 ERROR [ org.opencms.main.OpenCmsCore: 296] Critical
error during OpenCms initialization: Unable to read the OpenCms XML
configuration.
17 Okt 2005 15:27:48,322 ERROR [g.opencms.main.OpenCmsListener: 91]
org.opencms.main.CmsInitException: Critical error during OpenCms
initialization: Unable to read the OpenCms XML configuration.
17 Okt 2005 15:28:56,854 ERROR [lina.core.StandardWrapperValve: 276]
Servlet.service() for servlet OpenCmsServlet threw exception
17 Okt 2005 15:28:56,870 ERROR [ina.core.ApplicationDispatcher: 726]
Servlet.service() for servlet OpenCmsServlet threw exception
17 Okt 2005 15:27:48,322 ERROR [opencms.xml.CmsXmlErrorHandler: 63] Error
parsing XML resource
org.xml.sax.SAXParseException: Attribute "enabled" with value "xxx" must have a
value from the list "TRUE true FALSE false ".
17 Okt 2005 15:27:48,306 ERROR [ache.commons.digester.Digester:1538] Parse Error
at line 49 column 33: Attribute "enabled" with value "xxx" must have a value
from the list "TRUE true FALSE false ".
th first 5 errors will be always the same (or something like that, depending on
the OpenCms version) and the originating (the real one) Exception is the first
generated in the log file (the last in the list above) so you have just to
scroll a little bit in the opencms.log file to find the source of your
troubles.
HTH
--
Regards
Michael Moossen
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com
Quoting Daniel Rhoden <drhoden at iiwinc.com>:
> Do you know which package I should enable DEBUG? I tried a couple and
> it did not increase the verbosity.
>
> Claus Priisholm wrote:
>
> > Try setting the log level to DEBUG in the log4j properties and restart
> > in order to get the name of the config file which seemingly is causing
> > the problem.
> >
> > Daniel Rhoden wrote:
> >
> >> More stack
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:25 | INFO: Deploying web
> >> application archive ROOT.war
> >> INFO | jvm 1 | 2005/10/15 22:36:27 | INFO | jvm 1 |
> >> 2005/10/15 22:36:27 | INFO | jvm 1 | 2005/10/15 22:36:27 |
> >> Starting OpenCms, version 6.0.2 in web application "ROOT"
> >> INFO | jvm 1 | 2005/10/15 22:36:27 | INFO | jvm 1 |
> >> 2005/10/15 22:36:27 | Copyright (c) 2005 Alkacon Software GmbH
> >> INFO | jvm 1 | 2005/10/15 22:36:27 | OpenCms comes with
> >> ABSOLUTELY NO WARRANTY
> >> INFO | jvm 1 | 2005/10/15 22:36:27 | This is free software, and
> >> you are welcome to
> >> INFO | jvm 1 | 2005/10/15 22:36:27 | redistribute it under
> >> certain conditions.
> >> INFO | jvm 1 | 2005/10/15 22:36:27 | Please see the GNU Lesser
> >> General Public Licence for
> >> INFO | jvm 1 | 2005/10/15 22:36:27 | further details.
> >> INFO | jvm 1 | 2005/10/15 22:36:27 | INFO | jvm 1 |
> >> 2005/10/15 22:36:27 | INFO | jvm 1 | 2005/10/15 22:36:30 |
> >> INFO | jvm 1 | 2005/10/15 22:36:30 | --------------------
> >> INFO | jvm 1 | 2005/10/15 22:36:30 | The following critical
> >> error occured:
> >> INFO | jvm 1 | 2005/10/15 22:36:30 | Critical error during
> >> OpenCms initialization: Unable to read the OpenCms XML configuration.
> >> INFO | jvm 1 | 2005/10/15 22:36:30 | Giving up, unable to start
> >> OpenCms.
> >> .
> >> .
> >> .
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | Oct 15, 2005 10:36:31 PM
> >> org.apache.catalina.core.StandardHostValve custom
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | SEVERE: Exception
> >> Processing ErrorPage[errorCode=500,
> >> location=/opencms/system/handler/handle500.html]
> >> INFO | jvm 1 | 2005/10/15 22:36:31 |
> >> org.opencms.main.CmsInitException: Critical error during OpenCms
> >> initialization: Unable to read the OpenCms XML configuration.
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >> org.opencms.main.OpenCmsCore.getInstance(OpenCmsCore.java:268)
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >> org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:120)
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >>
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >>
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >>
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >>
>
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
>
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >>
>
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
>
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >>
>
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
>
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >>
> org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:362)
>
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >>
> org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:283)
>
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >>
>
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:227)
>
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
>
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >>
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >>
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >>
>
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >>
>
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >>
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>
> >>
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >> java.lang.Thread.run(Thread.java:595)
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | Oct 15, 2005 10:36:31 PM
> >> org.apache.catalina.core.StandardHostValve custom
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | SEVERE: Exception
> >> Processing ErrorPage[errorCode=500,
> >> location=/opencms/system/handler/handle500.html]
> >> INFO | jvm 1 | 2005/10/15 22:36:31 |
> >> org.opencms.main.CmsInitException: Critical error during OpenCms
> >> initialization: Unable to read the OpenCms XML configuration.
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >> org.opencms.main.OpenCmsCore.getInstance(OpenCmsCore.java:268)
> >> INFO | jvm 1 | 2005/10/15 22:36:31 | at
> >> org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:120)
> >>
> >>
> >> Daniel Rhoden wrote:
> >>
> >>> I am trying to upgrade to 6.0.2. Looks like more than just one
> >>> person is experiencing this. Any solutions yet?
> >>>
> >>> Steps that led to this error:
> >>>
> >>> 1. shutdown Tomcat
> >>> 2. copied in the update
> >>> 3. set wizard to true in opencms.properties
> >>> 4. ran the setup (no errors that I could see)
> >>> 5. made the edits it instructed to opencms-system.xml and
> >>> opencms-vfs.xml.
> >>> 6. started Tomcat.
> >>> 7. tried to load opencms web address.
> >>> 8. (had to manually changed wizard to false some where in this
> >>> process)
> >>> 9. restarted again.
> >>> 10. tried to load opencms web address.
> >>> 11. boom
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 |
> >>> org.opencms.main.CmsInitException: Critical error during OpenCms
> >>> initialization: Unable to read the OpenCms XML configuration
> >>> .
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>> org.opencms.main.OpenCmsCore.getInstance(OpenCmsCore.java:268)
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>> org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:120)
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>>
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>>
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>>
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>>
>
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
>
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>>
>
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
>
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>>
>
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
>
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>>
> org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:362)
>
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>>
> org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:283)
>
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>>
>
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:227)
>
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
>
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>>
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>>
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>>
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>>
>
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>>
>
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>>
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>
> >>>
> >>> INFO | jvm 1 | 2005/10/15 22:30:00 | at
> >>> java.lang.Thread.run(Thread.java:595)
> >>>
> >>> ------------------------------------------------------------------------
>
> >>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> This mail is send to you from the opencms-dev mailing list
> >>> To change your list options, or to unsubscribe from the list, please
> >>> visit
> >>> http://mail.opencms.org/mailman/listinfo/opencms-dev
> >>>
> >>
> >> ------------------------------------------------------------------------
> >>
> >>
> >>
> >> _______________________________________________
> >> This mail is send to you from the opencms-dev mailing list
> >> To change your list options, or to unsubscribe from the list, please
> >> visit
> >> http://mail.opencms.org/mailman/listinfo/opencms-dev
> >
> >
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the opencms-dev
mailing list