WildFly swarm add-on fails
developer251 Nov 13, 2016 1:10 PMHi Forge experts,
I'd like to build a wildfly swarm project using Forge. I've been following the tutorial https://forge.jboss.org/addon/org.jboss.forge.addon:wildfly-swarm
However when executing the project, it seems there are some problems in linking the H2 library:
2016-11-13 19:04:08,921 INFO [org.wildfly.swarm.runtime.deployer] (main) deploying demo-swarm.war 2016-11-13 19:04:08,944 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0027: Starting deployment of "demo-swarm.war" (runtime-name: "demo-swarm.war") 2016-11-13 19:04:09,296 INFO [org.jboss.as.jpa] (MSC service thread 1-6) WFLYJPA0002: Read persistence.xml for demo-swarm-persistence-unit 2016-11-13 19:04:09,390 ERROR [stderr] (MSC service thread 1-8) org.jboss.modules.ModuleLoadException: Error loading module from modules/com/h2database/h2/main/module.xml 2016-11-13 19:04:09,391 ERROR [stderr] (MSC service thread 1-8) at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:228) 2016-11-13 19:04:09,391 ERROR [stderr] (MSC service thread 1-8) at org.wildfly.swarm.bootstrap.modules.BootstrapClasspathModuleFinder.findModule(BootstrapClasspathModuleFinder.java:58) 2016-11-13 19:04:09,391 ERROR [stderr] (MSC service thread 1-8) at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:439) 2016-11-13 19:04:09,391 ERROR [stderr] (MSC service thread 1-8) at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:342) 2016-11-13 19:04:09,392 ERROR [stderr] (MSC service thread 1-8) at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:289) 2016-11-13 19:04:09,392 ERROR [stderr] (MSC service thread 1-8) at org.jboss.modules.ModuleLoader.preloadExportedModule(ModuleLoader.java:300) 2016-11-13 19:04:09,392 ERROR [stderr] (MSC service thread 1-8) at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:313) 2016-11-13 19:04:09,392 ERROR [stderr] (MSC service thread 1-8) at org.jboss.as.server.moduleservice.ServiceModuleLoader.preloadModule(ServiceModuleLoader.java:149) 2016-11-13 19:04:09,392 ERROR [stderr] (MSC service thread 1-8) at org.jboss.modules.Module.addPaths(Module.java:1079) 2016-11-13 19:04:09,392 ERROR [stderr] (MSC service thread 1-8) at org.jboss.modules.Module.link(Module.java:1449) 2016-11-13 19:04:09,393 ERROR [stderr] (MSC service thread 1-8) at org.jboss.modules.Module.relinkIfNecessary(Module.java:1477) 2016-11-13 19:04:09,393 ERROR [stderr] (MSC service thread 1-8) at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:225) 2016-11-13 19:04:09,393 ERROR [stderr] (MSC service thread 1-8) at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:68) 2016-11-13 19:04:09,393 ERROR [stderr] (MSC service thread 1-8) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) 2016-11-13 19:04:09,393 ERROR [stderr] (MSC service thread 1-8) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) 2016-11-13 19:04:09,393 ERROR [stderr] (MSC service thread 1-8) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 2016-11-13 19:04:09,394 ERROR [stderr] (MSC service thread 1-8) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 2016-11-13 19:04:09,394 ERROR [stderr] (MSC service thread 1-8) at java.lang.Thread.run(Thread.java:745) 2016-11-13 19:04:09,394 ERROR [stderr] (MSC service thread 1-8) Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to add artifact 'com.h2database:h2:1.4.187' (position: END_TAG seen ...<resources>\n <artifact name="com.h2database:h2:1.4.187"/>... @5:49) caused by: java.util.zip.ZipException: error in opening zip file 2016-11-13 19:04:09,394 ERROR [stderr] (MSC service thread 1-8) at org.jboss.modules.xml.ModuleXmlParser.parseArtifact(ModuleXmlParser.java:836) 2016-11-13 19:04:09,395 ERROR [stderr] (MSC service thread 1-8) at org.jboss.modules.xml.ModuleXmlParser.parseResources(ModuleXmlParser.java:739) 2016-11-13 19:04:09,395 ERROR [stderr] (MSC service thread 1-8) at org.jboss.modules.xml.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:535) 2016-11-13 19:04:09,395 ERROR [stderr] (MSC service thread 1-8) at org.jboss.modules.xml.ModuleXmlParser.parseDocument(ModuleXmlParser.java:340) 2016-11-13 19:04:09,395 ERROR [stderr] (MSC service thread 1-8) at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:226) 2016-11-13 19:04:09,395 ERROR [stderr] (MSC service thread 1-8) ... 17 more 2016-11-13 19:04:09,396 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.module.service."deployment.demo-swarm.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.demo-swarm.war".main: WFLYSRV0179: Failed to load module: deployment.demo-swarm.war:main at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:91) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.jboss.modules.ModuleLoadException: Error loading module from modules/com/h2database/h2/main/module.xml at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:228) at org.wildfly.swarm.bootstrap.modules.BootstrapClasspathModuleFinder.findModule(BootstrapClasspathModuleFinder.java:58) at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:439) at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:342) at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:289) at org.jboss.modules.ModuleLoader.preloadExportedModule(ModuleLoader.java:300) at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:313) at org.jboss.as.server.moduleservice.ServiceModuleLoader.preloadModule(ServiceModuleLoader.java:149) at org.jboss.modules.Module.addPaths(Module.java:1079) at org.jboss.modules.Module.link(Module.java:1449) at org.jboss.modules.Module.relinkIfNecessary(Module.java:1477) at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:225) at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:68) ... 5 more Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to add artifact 'com.h2database:h2:1.4.187' (position: END_TAG seen ...<resources>\n <artifact name="com.h2database:h2:1.4.187"/>... @5:49) caused by: java.util.zip.ZipException: error in opening zip file at org.jboss.modules.xml.ModuleXmlParser.parseArtifact(ModuleXmlParser.java:836) at org.jboss.modules.xml.ModuleXmlParser.parseResources(ModuleXmlParser.java:739) at org.jboss.modules.xml.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:535) at org.jboss.modules.xml.ModuleXmlParser.parseDocument(ModuleXmlParser.java:340) at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:226) ... 17 more
Is it something not working in my version of Forge (3.3) ? Any help ?