Thanks Shivam for the reply,

I will give it a try.


Le 29/02/2016 14:29, resteasy-users-requ...@lists.sourceforge.net a écrit :
Message: 1
Date: Fri, 5 Feb 2016 08:58:35 +0000 (UTC)
From: Shivam <shivam...@hcl.com>
Subject: Re: [Resteasy-users] failed to upgrade resteasy in jboss eap
        6.1
To: resteasy-users@lists.sourceforge.net
Message-ID: <loom.20160205t095258...@post.gmane.org>
Content-Type: text/plain; charset=utf-8

Nicolas Gavard <ng@...> writes:


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/Installa
tion_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  <at> 40133da0 (finder: local module finder  <at>
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  <at> 40133da0 (finder: local module finder  <at>
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:4
27)
         [jboss-modules.jar:1.2.0.Final-redhat-1]
         ??? at
org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.jav
a:260)
         [jboss-modules.jar:1.2.0.Final-redhat-1]
         ??? at
org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.j
ava: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(Concur
rentClassLoader.java:444)
         [jboss-modules.jar:1.2.0.Final-redhat-1]
         ??? at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(Concurre
ntClassLoader.java:432)
         [jboss-modules.jar:1.2.0.Final-redhat-1]
         ??? at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClass
Loader.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(R
egisterBuiltin.java:72)
         ??? at

org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBu
iltin.java:29)
         ??? at

org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:
221)
         ??? at

org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.ini
t(ServletContainerDispatcher.java:113)
         ??? at

org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(Htt
pServletDispatcher.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(ModuleClassLoade
r.java:344)
         [jboss-modules.jar:1.2.0.Final-redhat-1]
         ??? at
org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:4
22)
         [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  <at> 40133da0 (finder: local module finder  <at>
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(Concur
rentClassLoader.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(ResteasyProvi
derFactory.java:1371)
         ??? at

org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider(Resteasy
ProviderFactory.java:1636)
         ??? at

org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider(Resteasy
ProviderFactory.java:1344)
         ??? at

org.jboss.resteasy.plugins.providers.RegisterBuiltin.registerProviders(R
egisterBuiltin.java:68)
         ??? at

org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBu
iltin.java:29)
         ??? at

org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:
221)
         ??? at

org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.ini
t(ServletContainerDispatcher.java:113)
         ??? at

org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(Htt
pServletDispatcher.java:36)
         ??? at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1194)
         [...]
         Caused by: java.lang.ClassNotFoundException:
         javax.annotation.Priority from [Module
         "org.jboss.resteasy.resteasy-jaxrs:main" from local module
         loader  <at> 40133da0 (finder: local module finder  <at>
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(Concur
rentClassLoader.java:444)
         [jboss-modules.jar:1.2.0.Final-redhat-1]
         ??? at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(Concurre
ntClassLoader.java:432)
         [jboss-modules.jar:1.2.0.Final-redhat-1]
         ??? at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClass
Loader.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
        <at> 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
----------------------------------------------------------------------
--------

----------------------------------------------------------------------
--------

I have also faced the same problem while upgrading resteasy to 3.0.13
from 2.3.2

Problem 1. For java.lang.LinkageError: Failed to link
         org/jboss/resteasy/resteasy_jaxrs/i18n/LogMessages

Solution: Add "org.jboss.logging" as a module dependency in the
      modules.xml file in org.jboss.resteasy.resteasy-jaxrs:main


Problem 2: NoClassDefFoundError: Unable to load
            builtin provider:
org.jboss.resteasy.plugins.validation.hibernate.ValidatorContextResolver
:java.lang.NoClassDefFoundError: javax/annotation/Priority


Solution: Upgraded the jboss-annotations-api_1.2_spec-1.0.0.Final.jar
from older jar.


That resolved both of the problems.

--
Nicolas Gavard
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to