Page 1 of 1

Failure while parsing XML on mvn install

Posted: Sat May 19, 2012 11:16 pm
by skip
Hi

Here is what I did to get myself up and running with BLC 1.6.0-GA.

1. Download the BroadleafCommerce-BroadleafCommerceDemoSite-0a81ddf from https://github.com/BroadleafCommerce/BroadleafCommerceDemoSite
2. Loaded the project into Eclipse Helios and then changed maven.home property in build.properties inside the project pointing to my maven 3 root folder.
3. Ran maven install from within eclipse.

And I get the following error right after I ran the mvn install on the project:

Code: Select all

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerce Demo Site 1.6.0-GA
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ broadleaf-demo-site ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 18 resources
[INFO]
[INFO] --- javarebel-maven-plugin:1.0.5:generate (generate-rebel-xml) @ broadleaf-demo-site ---
[INFO] Processing org.broadleafcommerce:broadleaf-demo-site with packaging war
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ broadleaf-demo-site ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ broadleaf-demo-site ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\lawson\workspace-helios\BroadleafCommerce-BroadleafCommerceDemoSite-0a81ddf\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ broadleaf-demo-site ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ broadleaf-demo-site ---
[INFO] Surefire report directory: C:\Users\lawson\workspace-helios\BroadleafCommerce-BroadleafCommerceDemoSite-0a81ddf\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- gwt-maven-plugin:2.1.0-1:compile (default) @ broadleaf-demo-site ---
[INFO] Loading inherited module 'com.google.gwt.user.User'
[INFO]    [ERROR] Failure while parsing XML
[INFO] java.util.zip.ZipException: invalid LOC header (bad signature)
[INFO]    at java.util.zip.ZipFile.read(Native Method)
[INFO]    at java.util.zip.ZipFile.access$1200(ZipFile.java:31)
[INFO]    at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:459)
[INFO]    at java.util.zip.ZipFile$1.fill(ZipFile.java:242)
[INFO]    at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141)
[INFO]    at java.io.FilterInputStream.read(FilterInputStream.java:116)
[INFO]    at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
[INFO]    at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
[INFO]    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
[INFO]    at java.io.InputStreamReader.read(InputStreamReader.java:167)
[INFO]    at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
[INFO]    at org.apache.xerces.impl.XMLEntityScanner.skipString(Unknown Source)
[INFO]    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
[INFO]    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[INFO]    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[INFO]    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[INFO]    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[INFO]    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:331)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100(ReflectiveParser.java:48)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:402)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:266)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:413)
[INFO]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO]    at java.lang.reflect.Method.invoke(Method.java:597)
[INFO]    at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:274)
[INFO]    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
[INFO]    at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
[INFO]    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
[INFO]    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
[INFO]    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
[INFO]    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[INFO]    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[INFO]    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[INFO]    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[INFO]    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:331)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100(ReflectiveParser.java:48)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:402)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:266)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:178)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:294)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:147)
[INFO]    at com.google.gwt.dev.Compiler.run(Compiler.java:175)
[INFO]    at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
[INFO]    at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
[INFO]    at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
[INFO]    at com.google.gwt.dev.Compiler.main(Compiler.java:156)
[INFO]    [ERROR] Unexpected error while processing XML
[INFO] com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:355)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100(ReflectiveParser.java:48)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:402)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:266)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:413)
[INFO]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO]    at java.lang.reflect.Method.invoke(Method.java:597)
[INFO]    at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:274)
[INFO]    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
[INFO]    at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
[INFO]    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
[INFO]    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
[INFO]    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
[INFO]    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[INFO]    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[INFO]    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[INFO]    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[INFO]    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:331)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100(ReflectiveParser.java:48)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:402)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:266)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:178)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:294)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:147)
[INFO]    at com.google.gwt.dev.Compiler.run(Compiler.java:175)
[INFO]    at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
[INFO]    at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
[INFO]    at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
[INFO]    at com.google.gwt.dev.Compiler.main(Compiler.java:156)
[INFO] [ERROR] Line 3: Unexpected exception while processing element 'inherits'
[INFO] com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:269)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:413)
[INFO]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO]    at java.lang.reflect.Method.invoke(Method.java:597)
[INFO]    at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:274)
[INFO]    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
[INFO]    at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
[INFO]    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
[INFO]    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
[INFO]    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
[INFO]    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[INFO]    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[INFO]    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[INFO]    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[INFO]    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:331)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100(ReflectiveParser.java:48)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:402)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:266)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:178)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:294)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:147)
[INFO]    at com.google.gwt.dev.Compiler.run(Compiler.java:175)
[INFO]    at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
[INFO]    at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
[INFO]    at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
[INFO]    at com.google.gwt.dev.Compiler.main(Compiler.java:156)
[INFO] [ERROR] Failure while parsing XML
[INFO] com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
[INFO]    at com.google.gwt.dev.util.xml.DefaultSchema.onHandlerException(DefaultSchema.java:58)
[INFO]    at com.google.gwt.dev.util.xml.Schema.onHandlerException(Schema.java:66)
[INFO]    at com.google.gwt.dev.util.xml.Schema.onHandlerException(Schema.java:66)
[INFO]    at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:240)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:274)
[INFO]    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
[INFO]    at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
[INFO]    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
[INFO]    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
[INFO]    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
[INFO]    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[INFO]    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[INFO]    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[INFO]    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[INFO]    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:331)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100(ReflectiveParser.java:48)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:402)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:266)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:178)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:294)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:147)
[INFO]    at com.google.gwt.dev.Compiler.run(Compiler.java:175)
[INFO]    at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
[INFO]    at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
[INFO]    at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
[INFO]    at com.google.gwt.dev.Compiler.main(Compiler.java:156)
[INFO] [ERROR] Unexpected error while processing XML
[INFO] com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:355)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100(ReflectiveParser.java:48)
[INFO]    at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:402)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:266)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:178)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:294)
[INFO]    at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:147)
[INFO]    at com.google.gwt.dev.Compiler.run(Compiler.java:175)
[INFO]    at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
[INFO]    at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
[INFO]    at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
[INFO]    at com.google.gwt.dev.Compiler.main(Compiler.java:156)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.462s
[INFO] Finished at: Sun May 20 09:11:24 IST 2012
[INFO] Final Memory: 8M/20M
[INFO] ------------------------------------------------------------------------


Could someone help me understand the reason behind this error and how to resolve it?

Thanks.

Re: Failure while parsing XML on mvn install

Posted: Sat May 26, 2012 7:04 pm
by jefffischer
We've never seen this one before. It looks like it's bombing out trying to inflate a jar during the GWT compilation phase for the admin tool. I would suspect that you have a jar in your local maven repository that is corrupt? I would try deleting your local maven repository and trying mvn install again - which should cause all the dependencies to be re-downloaded.

Re: Failure while parsing XML on mvn install

Posted: Sat May 26, 2012 10:50 pm
by skip
Hi jefffischer

Yes, somehow so many jar files in my local repository ended up getting corrupted and after cleaning up the local repository and doing a mvn install got BroadleafCommerceDemoSite version 1.6.0-GA working just fine.

I had to comment out the blPrecompressedArtifactFilter filder in web.xml for running the admin, just like you suggested in BLC Demo 1.6 unnable to open admin page.

Many thanks for the reply :)