3.1 SNAPSHOT and JBoss AS7 kit issue
bwallis42 Jan 16, 2013 6:15 PMI've been using a 3.1 snapshot for my development for the last couple of weeks as it contains a number of fixes for issues that I need for my development.
I have an arquillian integration test as part of my build and it doesn't work anymore with the snapshot build of modeshape 3.1 (just now updated from git).
I get the error shown at the end of this which seems to be due to a missing jar file in the tika module, xmlbeans-2.3.0.jar, which is mentioned in the tika module.xml file. The tika module comes as part of the jboss as7 kit that is installed over jboss 7.1.1.
{code:xml}
<module xmlns="urn:jboss:module:1.1" name="org.apache.tika" slot="1.2">
<resources>
<resource-root path="tika-core-1.2.jar" />
<resource-root path="tika-parsers-1.2.jar" />
<!--All the following are specific to Tika 1.2. Should the tika version change, those need to change as well-->
<resource-root path="asm-3.1.jar" />
<resource-root path="apache-mime4j-core-0.7.2.jar" />
<resource-root path="apache-mime4j-dom-0.7.2.jar" />
<resource-root path="commons-codec-1.5.jar" />
<resource-root path="commons-compress-1.4.1.jar" />
<resource-root path="dom4j-1.6.1.jar" />
<resource-root path="fontbox-1.7.0.jar" />
<resource-root path="geronimo-stax-api_1.0_spec-1.0.1.jar" />
<resource-root path="isoparser-1.0-RC-1.jar" />
<resource-root path="javassist-3.11.0.GA.jar" />
<resource-root path="jempbox-1.7.0.jar" />
<resource-root path="juniversalchardet-1.0.3.jar" />
<resource-root path="pdfbox-1.7.0.jar" />
<resource-root path="poi-3.8.jar" />
<resource-root path="poi-ooxml-3.8.jar" />
<resource-root path="poi-ooxml-schemas-3.8.jar" />
<resource-root path="poi-scratchpad-3.8.jar" />
<resource-root path="tagsoup-1.2.1.jar" />
<resource-root path="vorbis-java-core-0.1.jar" />
<resource-root path="vorbis-java-core-0.1-tests.jar" />
<resource-root path="vorbis-java-tika-0.1.jar" />
<resource-root path="xmlbeans-2.3.0.jar" />
<resource-root path="xz-1.0.jar" />
<!-- ModeShape chooses not to include the Bouncy Castle libraries by default. These can be added by users.
<resource-root path="bcmail-jdk15-1.45.jar" />
<resource-root path="bcprov-jdk15-1.45.jar" />
-->
</resources>
...
{code}
I'm fairly certain that the jboss version my test is using is a standard 7.1.1 install and that the modeshape version and kit is the one I just built, this is the relevant output from my integration test
{code}
[INFO] --- maven-dependency-plugin:2.3:unpack (unpack) @ document-store-integration ---
[INFO] Configured Artifact: org.jboss.as:jboss-as-dist:7.1.1.Final:zip
[INFO] Configured Artifact: org.modeshape:modeshape-distribution:jbossas-71-dist:3.1-SNAPSHOT:zip
Downloading: http://im-vm-repository:8090/artifactory/repo/org/modeshape/modeshape-distribution/3.1-SNAPSHOT/maven-metadata.xml
[INFO] Unpacking /Users/bwallis/.m2/repository/org/jboss/as/jboss-as-dist/7.1.1.Final/jboss-as-dist-7.1.1.Final.zip to /Users/bwallis/InfoMedix/CPF4/DocumentStore/integration/target with includes "" and excludes ""
[INFO] Unpacking /Users/bwallis/.m2/repository/org/modeshape/modeshape-distribution/3.1-SNAPSHOT/modeshape-distribution-3.1-SNAPSHOT-jbossas-71-dist.zip to /Users/bwallis/InfoMedix/CPF4/DocumentStore/integration/target/jboss-as-7.1.1.Final with includes "" and excludes ""
{code}
The error I get is
{code}
09:47:40,956 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA
09:47:41,273 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
09:47:41,340 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
09:47:42,302 ERROR [org.jboss.as.server] JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.ServerService.boot(ServerService.java:266) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:155) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_37]
Caused by: javax.xml.stream.XMLStreamException: Failed to load module org.modeshape
at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:154) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_1(StandaloneXml.java:305) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:127) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:100) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
... 3 more
Caused by: java.util.concurrent.ExecutionException: javax.xml.stream.XMLStreamException: JBAS014674: Failed to load module
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) [classes.jar:1.6.0_37]
at java.util.concurrent.FutureTask.get(FutureTask.java:83) [classes.jar:1.6.0_37]
at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:146) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
... 9 more
Caused by: javax.xml.stream.XMLStreamException: JBAS014674: Failed to load module
at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:195) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.parsing.ExtensionXml.access$000(ExtensionXml.java:68) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:126) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:123) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [classes.jar:1.6.0_37]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [classes.jar:1.6.0_37]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_37]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_37]
at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_37]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]
Caused by: org.jboss.modules.ModuleLoadException: Error loading module from /Users/bwallis/InfoMedix/CPF4/DocumentStore/integration/target/jboss-as-7.1.1.Final/modules/org/apache/tika/1.2/module.xml
at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:292) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:242) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.LocalModuleLoader.parseModuleInfoFile(LocalModuleLoader.java:138) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:122) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:275) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:222) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:94) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.Module.addPaths(Module.java:841) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.Module.link(Module.java:1181) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.Module.relinkIfNecessary(Module.java:1207) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:208) [jboss-modules.jar:1.1.1.GA]
at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:177) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
... 9 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[50,52]
Message: Failed to add resource root 'xmlbeans-2.3.0.jar' at path 'xmlbeans-2.3.0.jar'
at org.jboss.modules.ModuleXmlParser.parseResourceRoot(ModuleXmlParser.java:898) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleXmlParser.parseResources(ModuleXmlParser.java:854) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:676) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleXmlParser.parseDocument(ModuleXmlParser.java:548) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:287) [jboss-modules.jar:1.1.1.GA]
... 20 more
09:47:42,338 FATAL [org.jboss.as.server] JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
09:47:42,361 INFO [org.jboss.as] JBAS015950: JBoss AS 7.1.1.Final "Brontes" stopped in 12ms
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.167 sec <<< FAILURE!
{code}