-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
Workaround Exists
-
-
Undefined
-
---
-
---
If you have defined a local repository in your maven settings.xml like the following:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd"> <localRepository>/path/to/repository</localRepository> ... </settings>
The folder ee-9/feature-path fails with the following error:
... [INFO] --------------< org.wildfly:wildfly-preview-feature-pack >-------------- [INFO] Building WildFly: EE 9 Preview Galleon Feature Pack 22.0.0.Final-SNAPSHOT [146/162] [INFO] --------------------------------[ pom ]--------------------------------- ... [INFO] --- wildfly-galleon-maven-plugin:5.0.0.Final:build-feature-pack (feature-pack-build) @ wildfly-preview-feature-pack --- [INFO] EE9: transformed infinispan-hibernate-cache-v53-11.0.8.Final.jar ... [INFO] EE9: transformed jakarta.json-api-1.1.6.jar [INFO] EE9: transformed jakarta.json-1.1.6.jar Forked embedded process has failed with the following error: java.lang.IllegalStateException: WFLYEMB0022: Cannot invoke 'start' on embedded process at org.wildfly.core.embedded.EmbeddedManagedProcessImpl.invokeOnServer(EmbeddedManagedProcessImpl.java:119) at org.wildfly.core.embedded.EmbeddedManagedProcessImpl.start(EmbeddedManagedProcessImpl.java:64) at org.wildfly.galleon.plugin.featurespec.generator.FeatureSpecGenerator.readFeatureSpecs(FeatureSpecGenerator.java:304) at org.wildfly.galleon.plugin.featurespec.generator.FeatureSpecGenerator.forkedForEmbedded(FeatureSpecGenerator.java:232) at org.wildfly.galleon.plugin.server.ForkedEmbeddedUtil.main(ForkedEmbeddedUtil.java:208) org.wildfly.core.embedded.EmbeddedProcessStartException: WFLYEMB0021: Cannot start embedded process at org.wildfly.core.embedded.EmbeddedStandaloneServerFactory$StandaloneServerImpl.start(EmbeddedStandaloneServerFactory.java:324) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.wildfly.core.embedded.EmbeddedManagedProcessImpl.invokeOnServer(EmbeddedManagedProcessImpl.java:107) at org.wildfly.core.embedded.EmbeddedManagedProcessImpl.start(EmbeddedManagedProcessImpl.java:64) at org.wildfly.galleon.plugin.featurespec.generator.FeatureSpecGenerator.readFeatureSpecs(FeatureSpecGenerator.java:304) at org.wildfly.galleon.plugin.featurespec.generator.FeatureSpecGenerator.forkedForEmbedded(FeatureSpecGenerator.java:232) at org.wildfly.galleon.plugin.server.ForkedEmbeddedUtil.main(ForkedEmbeddedUtil.java:208) java.util.concurrent.ExecutionException: JBTHR00005: Operation failed at org.jboss.threads.AsyncFutureTask.get(AsyncFutureTask.java:253) at org.wildfly.core.embedded.EmbeddedStandaloneServerFactory$StandaloneServerImpl.start(EmbeddedStandaloneServerFactory.java:305) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.wildfly.core.embedded.EmbeddedManagedProcessImpl.invokeOnServer(EmbeddedManagedProcessImpl.java:107) at org.wildfly.core.embedded.EmbeddedManagedProcessImpl.start(EmbeddedManagedProcessImpl.java:64) at org.wildfly.galleon.plugin.featurespec.generator.FeatureSpecGenerator.readFeatureSpecs(FeatureSpecGenerator.java:304) at org.wildfly.galleon.plugin.featurespec.generator.FeatureSpecGenerator.forkedForEmbedded(FeatureSpecGenerator.java:232) at org.wildfly.galleon.plugin.server.ForkedEmbeddedUtil.main(ForkedEmbeddedUtil.java:208) java.lang.Exception: WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details. at org.jboss.as.server.BootstrapListener.bootFailure(BootstrapListener.java:87) at org.jboss.as.server.ServerService.boot(ServerService.java:426) at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:416) at java.lang.Thread.run(Thread.java:748)
If you use the -X option the initial exception is the following:
ERROR: WFLYSRV0055: Caught exception during boot org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:143) at org.jboss.as.server.ServerService.boot(ServerService.java:395) at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:416) at java.lang.Thread.run(Thread.java:748) Caused by: javax.xml.stream.XMLStreamException: WFLYCTL0083: Failed to load module org.jboss.as.mail at org.jboss.as.controller.parsing.DeferredExtensionContext.load(DeferredExtensionContext.java:100) at org.jboss.as.server.parsing.StandaloneXml_6.readServerElement(StandaloneXml_6.java:221) at org.jboss.as.server.parsing.StandaloneXml_6.readElement(StandaloneXml_6.java:121) at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:114) at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:52) at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:122) at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:76) at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:126) ... 3 more Caused by: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: javax/mail/Session at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at org.jboss.as.controller.parsing.DeferredExtensionContext.load(DeferredExtensionContext.java:92) ... 10 more Caused by: java.lang.NoClassDefFoundError: javax/mail/Session at org.jboss.as.mail.extension.MailSessionDefinition.<clinit>(MailSessionDefinition.java:49) at org.jboss.as.mail.extension.MailSubsystemParser4_0.getParserDescription(MailSubsystemParser4_0.java:39) at org.jboss.as.controller.PersistentResourceXMLParser.cacheXMLDescription(PersistentResourceXMLParser.java:45) at org.jboss.as.controller.extension.ExtensionRegistry$ExtensionParsingContextImpl.preCacheParserDescription(ExtensionRegistry.java:522) at org.jboss.as.controller.extension.ExtensionRegistry$ExtensionParsingContextImpl.attemptCurrentParserInitialization(ExtensionRegistry.java:508) at org.jboss.as.controller.extension.ExtensionRegistry$ExtensionParsingContextImpl.access$200(ExtensionRegistry.java:434) at org.jboss.as.controller.extension.ExtensionRegistry.initializeParsers(ExtensionRegistry.java:249) at org.jboss.as.controller.parsing.DeferredExtensionContext.loadModule(DeferredExtensionContext.java:116) at org.jboss.as.controller.parsing.DeferredExtensionContext.access$000(DeferredExtensionContext.java:44) at org.jboss.as.controller.parsing.DeferredExtensionContext$1.call(DeferredExtensionContext.java:74) at org.jboss.as.controller.parsing.DeferredExtensionContext$1.call(DeferredExtensionContext.java:71) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1348) at java.lang.Thread.run(Thread.java:748) at org.jboss.threads.JBossThread.run(JBossThread.java:513) Caused by: java.lang.ClassNotFoundException: javax.mail.Session from [Module "org.jboss.as.mail" version 22.0.0.Final-SNAPSHOT from local module loader @3cb1ffe6 (finder: local module finder @3dfc5fb8 (roots: /home/rmartinc/wildfly/ee-9/feature-pack/target/wildfly/modules,/home/rmartinc/wildfly/ee-9/feature-pack/target/wildfly/modules/system/layers/base))] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116) ... 18 more
The feature spec generator fails because the server prefers the local repository in your settings than the one in the system property (jboss-modules does it). The artifact was located from the local repo in the settings, and it was not the ee9 jar. The ee9 folder is forced by the galleon plugin using a system prop but it was not used because of my settings.xml.
- is caused by
-
MODULES-405 System property 'maven.repo.local' must have preference over localRepository definition in settings.xml
- Resolved