[logback-dev] [JIRA] (LOGBACK-1265) Deployment fails on Wildfly 8 due to a comment in a META-INF/services/javax.servlet.ServletContainerInitializer file
QOS.CH (JIRA)
noreply-jira at qos.ch
Wed Feb 22 13:23:00 CET 2017
Andy Wilkinson created LOGBACK-1265:
---------------------------------------
Summary: Deployment fails on Wildfly 8 due to a comment in a META-INF/services/javax.servlet.ServletContainerInitializer file
Key: LOGBACK-1265
URL: https://jira.qos.ch/browse/LOGBACK-1265
Project: logback
Issue Type: Bug
Reporter: Andy Wilkinson
Assignee: Logback dev list
Logback 1.1.10 will cause a failure when deployed to Wildfly 8. The change in LOGBACK-1170 will cause your web application to fail to deploy with an exception like this:
{noformat}
10:41:55,463 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service jboss.deployment.unit."bootapp.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."bootapp.war".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "bootapp.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_101]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_101]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_101]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS017327: Deployment error processing SCI for jar: logback-classic-1.1.10.jar
at org.wildfly.extension.undertow.deployment.ServletContainerInitializerDeploymentProcessor.loadSci(ServletContainerInitializerDeploymentProcessor.java:207)
at org.wildfly.extension.undertow.deployment.ServletContainerInitializerDeploymentProcessor.deploy(ServletContainerInitializerDeploymentProcessor.java:128)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]
... 5 more
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS017327: Deployment error processing SCI for jar: logback-classic-1.1.10.jar
at org.wildfly.extension.undertow.deployment.ServletContainerInitializerDeploymentProcessor.loadSci(ServletContainerInitializerDeploymentProcessor.java:199)
... 7 more
Caused by: java.lang.ClassNotFoundException: # See javax.servlet.ServletContainerInitializer javadocs from [Module "deployment.bootapp.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
at org.wildfly.extension.undertow.deployment.ServletContainerInitializerDeploymentProcessor.loadSci(ServletContainerInitializerDeploymentProcessor.java:191)
... 7 more
{noformat}
Wildfly has its own code for reading {{META-INF/services}} files and, in Wildfly 8, it doesn't handle comments properly. See [WFLY-4089|https://issues.jboss.org/browse/WFLY-4089] for details. Due to the comment in Logback's {{META-INF/services/javax.servlet.ServletContainerInitializer}} file it tries to load a class named {{# See javax.servlet.ServletContainerInitializer javadocs}}. The problem has been [fixed|https://github.com/wildfly/wildfly/commit/fef57ebdc7f93fe975d9234dd86265b79d705ce2] in Wildfly 9 and later.
--
This message was sent by Atlassian JIRA
(v7.3.1#73012)
More information about the logback-dev
mailing list