lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: Content is not allowed in prolog
Date Mon, 18 May 2009 21:48:28 GMT
I don't think this is a Lucene problem.  If I had to guess, it looks  
like whatever you are uploading is expecting XML and you are sending a  
zip file.  I'd suggest you look at the OpenCMS docs and ask over there.

-Grant

On May 18, 2009, at 5:14 PM, samurai123 wrote:

>
> Hi,
>
>
> Can someone please help with this. I have been trying to import  
> lucene 2.4.1
> module with OpenCMS 7.0.5 and getting this error.
> The build was successful though.
>
> Any help will be appreciated!
>
> SAX error reading module import from .... <module-path>
> Reason: SAX error reading module import from .. <module-path>
> Reason: Content is not allowed in prolog.
>
> The details shows
>
> org.opencms.main.CmsRuntimeException: SAX error reading module  
> import from
> C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\webapps\opencms\WEB-INF\packages\modules\lucene.zip.
> at
> org 
> .opencms 
> .workplace 
> .tools 
> .modules 
> .CmsModulesUploadFromHttp.actionCommit(CmsModulesUploadFromHttp.java: 
> 179)
> at
> org 
> .opencms 
> .workplace 
> .administration 
> .A_CmsImportFromHttp.displayDialog(A_CmsImportFromHttp.java:133)
> at
> org 
> .apache 
> .jsp 
> .WEB_002dINF 
> .jsp 
> .offline 
> .system 
> .workplace 
> .admin 
> .modules 
> .modules_005fimport_jsp._jspService(modules_005fimport_jsp.java:46)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> at
> org 
> .apache 
> .jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
> at  
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 
> 329)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> at
> org 
> .apache 
> .catalina 
> .core 
> .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 
> 269)
> at
> org 
> .apache 
> .catalina 
> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at
> org 
> .apache 
> .catalina 
> .core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
> at
> org 
> .apache 
> .catalina 
> .core 
> .ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
> at
> org 
> .apache 
> .catalina 
> .core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
> at
> org 
> .apache 
> .catalina 
> .core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
> at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:1168)
> at
> org 
> .opencms 
> .loader.CmsResourceManager.loadResource(CmsResourceManager.java:964)
> at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1498)
> at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:152)
> at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:164)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> at
> org 
> .apache 
> .catalina 
> .core 
> .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 
> 269)
> at
> org 
> .apache 
> .catalina 
> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at
> org 
> .apache 
> .catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 
> 213)
> at
> org 
> .apache 
> .catalina.core.StandardContextValve.invoke(StandardContextValve.java: 
> 172)
> at
> org 
> .apache 
> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org 
> .apache 
> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
> at
> org 
> .apache 
> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 
> 108)
> at
> org 
> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 
> 174)
> at
> org 
> .apache 
> .coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:835)
> at
> org.apache.coyote.http11.Http11AprProtocol 
> $Http11ConnectionHandler.process(Http11AprProtocol.java:640)
> at org.apache.tomcat.util.net.AprEndpoint 
> $Worker.run(AprEndpoint.java:1286)
> at java.lang.Thread.run(Unknown Source)
> Caused by: org.opencms.configuration.CmsConfigurationException: SAX  
> error
> reading module import from C:\Program Files\Apache Software
> Foundation\Tomcat 5.5\webapps\opencms\WEB-INF\packages\modules 
> \lucene.zip.
> at
> org 
> .opencms 
> .module 
> .CmsModuleImportExportHandler 
> .readModuleFromImport(CmsModuleImportExportHandler.java:175)
> at
> org 
> .opencms 
> .workplace 
> .tools 
> .modules 
> .CmsModulesUploadFromHttp.actionCommit(CmsModulesUploadFromHttp.java: 
> 128)
> ... 33 more
> Caused by: org.xml.sax.SAXParseException: Content is not allowed in  
> prolog.
> at
> org 
> .apache 
> .xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
> at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown  
> Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
> at
> org.apache.xerces.impl.XMLDocumentScannerImpl 
> $PrologDispatcher.dispatch(Unknown
> Source)
> at
> org 
> .apache 
> .xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown  
> Source)
> at org.apache.commons.digester.Digester.parse(Digester.java:1765)
> at
> org 
> .opencms 
> .module 
> .CmsModuleImportExportHandler 
> .readModuleFromImport(CmsModuleImportExportHandler.java:167)
> ... 34 more
> -- 
> View this message in context: http://www.nabble.com/Content-is-not-allowed-in-prolog-tp23605547p23605547.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>

--------------------------
Grant Ingersoll
http://www.lucidimagination.com/

Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)  
using Solr/Lucene:
http://www.lucidimagination.com/search


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message