[opencms-dev] Migration from 6.0.4 to 7.5.2 : Error on line 1 of document : Content is not allowed in prolog

Vroonen Julien Julien.Vroonen at nsi-sa.be
Tue Feb 9 13:25:08 CET 2010


Hi List,

I have a little problem on step 3 (http://localhost:8080/opencms/update/step_3_xmlupdate.jsp) during the migration of an OpenCms 6.0.4 to a 7.5.2 version.

I did everything that was specified in the “readme.txt” of the “opencms_upgrade_to_7.5.2.zip” archive (including the specific point at the end concerning “6.x updates”) but the error is still there.


=> Questions :
            1) Could it be a problem of library (xerces ?)

            2) Could it be a problem of file encoding (UTF-8 “BOM character”) ?
                        I tried to add the option “file.encoding=UTF-8” at the “opencms.properties” and this one : “-Dfile.encoding=UTF-8” at the startup of tomcat but it did not solved the problem

            3) How could I know which document is causing the problem, the error specifies the line number, but the document name seems to be empty…
                        If anyone has a modified class of OpenCms to catch the exception and add some information concerning the name and path of the problematic document, I think it would help many people (the mailing list archive has many hits with the “content is not allowed in prolog” exception).


Any suggestion is welcome…



My environment is :
- Windows
- Oracle 10
- Tomcat 6.0
- JDK 1.5.0


09-févr.-2010 12:21:35 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: "Servlet.service()" pour la servlet jsp a généré une exception
org.dom4j.DocumentException: Error on line 1 of document  : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.
            at org.dom4j.io.SAXReader.read(SAXReader.java:482)
            at org.opencms.xml.CmsXmlUtils.unmarshalHelper(CmsXmlUtils.java:652)
            at org.opencms.xml.CmsXmlUtils.unmarshalHelper(CmsXmlUtils.java:617)
            at org.opencms.setup.xml.CmsSetupXmlHelper.getDocument(CmsSetupXmlHelper.java:371)
            at org.opencms.setup.xml.A_CmsSetupXmlUpdate.getCodeToChange(A_CmsSetupXmlUpdate.java:84)
            at org.opencms.setup.xml.A_CmsSetupXmlUpdate.validate(A_CmsSetupXmlUpdate.java:161)
            at org.opencms.setup.xml.CmsSetupXmlManager.htmlAvailablePlugins(CmsSetupXmlManager.java:188)
            at org.apache.jsp.update.step_005f3_005fxmlupdate_jsp._jspService(step_005f3_005fxmlupdate_jsp.java:89)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            at java.lang.Thread.run(Thread.java:595)

Thanks a lot,
   Julien.
PS : This exception was also occuring with a migration to a 7.5.1 version.






Julien Vroonen - j.vroonen at nsi-sa.be<mailto:j.vroonen at nsi-sa.be>
Business Analyst

NSI IT Software & Services
Chaussée de Bruxelles, 174 A
B-4340 Awans
Tél : +32 (0)4 239 91 50
Fax : +32 (0)4 246 13 08
www.nsi-sa.be<http://www.nsi-sa.be/>





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20100209/6d0569be/attachment.htm>


More information about the opencms-dev mailing list