Hi all resteasy users,

I'm trying to upgrade resteasy in a JBoss EAP 6.1 with resteasy 3.0.13.Final.

I followed the resteasy doc :
http://docs.jboss.org/resteasy/docs/3.0.13.Final/userguide/html/Installation_Configuration.html#upgrading-eap61

that seems thraightforward.

Nevertheless, i'm facing this following error at the very first web service call.

       11:20:06,374 WARN  ajp-localhost/127.0.0.1:8009-3(:) [modules] -
       Failed to define class
       org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages in Module
       "org.jboss.resteasy.resteasy-jaxrs:main" from local module
       loader @40133da0 (finder: local module finder @2f32f43d (roots:
       
D:\EnvDev\jboss-eap-6.1\modules,D:\EnvDev\jboss-eap-6.1\modules\system\layers\base)):
       java.lang.LinkageError: Failed to link
       org/jboss/resteasy/resteasy_jaxrs/i18n/LogMessages (Module
       "org.jboss.resteasy.resteasy-jaxrs:main" from local module
       loader @40133da0 (finder: local module finder @2f32f43d (roots:
       
D:\EnvDev\jboss-eap-6.1\modules,D:\EnvDev\jboss-eap-6.1\modules\system\layers\base)))
            at
       
org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:427)
       [jboss-modules.jar:1.2.0.Final-redhat-1]
            at
       
org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:260)
       [jboss-modules.jar:1.2.0.Final-redhat-1]
            at
       
org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:75)
       [jboss-modules.jar:1.2.0.Final-redhat-1]
            at
       org.jboss.modules.Module.loadModuleClass(Module.java:526)
       [jboss-modules.jar:1.2.0.Final-redhat-1]
            at
       org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:188)
       [jboss-modules.jar:1.2.0.Final-redhat-1]
            at
       
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444)
       [jboss-modules.jar:1.2.0.Final-redhat-1]
            at
       
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432)
       [jboss-modules.jar:1.2.0.Final-redhat-1]
            at
       
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374)
       [jboss-modules.jar:1.2.0.Final-redhat-1]
            at
       
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119)
       [jboss-modules.jar:1.2.0.Final-redhat-1]
            at
       
org.jboss.resteasy.plugins.providers.RegisterBuiltin.registerProviders(RegisterBuiltin.java:72)
            at
       
org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBuiltin.java:29)
            at
       
org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:221)
            at
       
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:113)
            at
       
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)
       [...]
       Caused by: java.lang.NoClassDefFoundError:
       org/jboss/logging/BasicLogger
            at java.lang.ClassLoader.defineClass1(Native Method)
       [rt.jar:1.7.0_79]
            at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
       [rt.jar:1.7.0_79]
            at
       
org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:344)
       [jboss-modules.jar:1.2.0.Final-redhat-1]
            at
       
org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:422)
       [jboss-modules.jar:1.2.0.Final-redhat-1]
            ... 27 more
       Caused by: java.lang.ClassNotFoundException:
       org.jboss.logging.BasicLogger from [Module
       "org.jboss.resteasy.resteasy-jaxrs:main" from local module
       loader @40133da0 (finder: local module finder @2f32f43d (roots:
       
D:\EnvDev\jboss-eap-6.1\modules,D:\EnvDev\jboss-eap-6.1\modules\system\layers\base))]
            at
       org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196)
       [jboss-modules.jar:1.2.0.Final-redhat-1]
            at
       
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444)
       [jboss-modules.jar:1.2.0.Final-redhat-1]
       ...
            ... 31 more


I tried to add "org.jboss.logging" as a module dependency in the modules.xml file in org.jboss.resteasy.resteasy-jaxrs:main

But, then, i'm facing another NoClassDefFoundError:

       11:43:53,060 WARN  ajp-localhost/127.0.0.1:8009-2(:) [i18n] -
       RESTEASY002145: NoClassDefFoundError: Unable to load builtin
       provider:
       org.jboss.resteasy.plugins.validation.hibernate.ValidatorContextResolver:
       java.lang.NoClassDefFoundError: javax/annotation/Priority
            at
       
org.jboss.resteasy.spi.ResteasyProviderFactory.getPriority(ResteasyProviderFactory.java:1371)
            at
       
org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider(ResteasyProviderFactory.java:1636)
            at
       
org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider(ResteasyProviderFactory.java:1344)
            at
       
org.jboss.resteasy.plugins.providers.RegisterBuiltin.registerProviders(RegisterBuiltin.java:68)
            at
       
org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBuiltin.java:29)
            at
       
org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:221)
            at
       
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:113)
            at
       
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)
            at
       
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1194)
       [...]
       Caused by: java.lang.ClassNotFoundException:
       javax.annotation.Priority from [Module
       "org.jboss.resteasy.resteasy-jaxrs:main" from local module
       loader @40133da0 (finder: local module finder @2f32f43d (roots:
       
D:\EnvDev\jboss-eap-6.1\modules,D:\EnvDev\jboss-eap-6.1\modules\system\layers\base))]
            at
       org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196)
       [jboss-modules.jar:1.2.0.Final-redhat-1]
            at
       
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444)
       [jboss-modules.jar:1.2.0.Final-redhat-1]
            at
       
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432)
       [jboss-modules.jar:1.2.0.Final-redhat-1]
            at
       
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374)
       [jboss-modules.jar:1.2.0.Final-redhat-1]
            at
       
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119)
       [jboss-modules.jar:1.2.0.Final-redhat-1]
            ... 22 more

I'm using a very simple jax Aplication that works fine with resteasy provided by the jboss server

       @ApplicationPath("/api")
       public class JaxRestApplication extends Application {

       }


It does not seem the right way to fix my issue.
I did not find any clue or known issue about this.

Any help would be great,

--
Nicolas
------------------------------------------------------------------------------
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to