-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
Deploying Infinispan REST server in trunk (14/06/2011) throws:
14:39:41,822 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/infinispan]] (MSC service thread 1-3) Exception sending context initialized event to listener instance of class org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap: java.lang.ExceptionInInitializerError at org.jboss.resteasy.plugins.server.servlet.ConfigurationBootstrap.<init>(ConfigurationBootstrap.java:28) [resteasy-jaxrs-2.1.0.GA.jar:] at org.jboss.resteasy.plugins.server.servlet.ListenerBootstrap.<init>(ListenerBootstrap.java:18) [resteasy-jaxrs-2.1.0.GA.jar:] at org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap.contextInitialized(ResteasyBootstrap.java:26) [resteasy-jaxrs-2.1.0.GA.jar:] at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT] at org.apache.catalina.core.StandardContext.start(StandardContext.java:3817) [jbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT] at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.0.Beta4-SNAPSHOT.jar:7.0.0.Beta4-SNAPSHOT] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1675) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24] at java.lang.Thread.run(Thread.java:680) [:1.6.0_24] Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.jboss.resteasy.logging.Logger.getLogger(Logger.java:104) [resteasy-jaxrs-2.1.0.GA.jar:] at org.jboss.resteasy.spi.ResteasyDeployment.<clinit>(ResteasyDeployment.java:68) [resteasy-jaxrs-2.1.0.GA.jar:] ... 10 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.6.0_24] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [:1.6.0_24] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [:1.6.0_24] at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [:1.6.0_24] at org.jboss.resteasy.logging.Logger.getLogger(Logger.java:92) [resteasy-jaxrs-2.1.0.GA.jar:] ... 11 more Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.jboss.resteasy.logging.impl.Slf4jLogger.<init>(Slf4jLogger.java:19) [resteasy-jaxrs-2.1.0.GA.jar:] ... 16 more Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory from [Module "org.jboss.resteasy.resteasy-jaxrs:main" from local module loader @204f80d6 (roots: /Users/z/Go/code/jboss-as.git/build/target/jboss-7.0.0.Beta4-SNAPSHOT/modules)] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:188) [:1.0.0.CR3] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358) [:1.0.0.CR3] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330) [:1.0.0.CR3] at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307) [:1.0.0.CR3] at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101) [:1.0.0.CR3] ... 17 more
I solved this issue modifying build/src/main/resources/modules/org/jboss/resteasy/resteasy-jaxrs/main/module.xml so that it contains:
<module name="org.slf4j"/>
- is related to
-
ISPN-1176 REST server war deployment problem in AS 7.0.0.Beta3
- Resolved