-
Bug
-
Resolution: Done
-
Major
-
7.2.1.GA
When the security manager is enabled the resteasy client initialization fails with the following exception:
ERROR [io.undertow.request] (default task-1) UT005023: Exception handling request to /resteasy/SampleServlet: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder from [Module "javax.ws.rs.api" version 1.0.1.Final-redhat-00001 from local module loader @69d9c55 (finder: local module finder @13a57a3b (roots: /opt/jboss/jboss-eap-7.2/modules,/opt/jboss/jboss-eap-7.2/modules/system/layers/base/.overlays/layer-base-jboss-eap-7.2.1.CP,/opt/jboss/jboss-eap-7.2/modules/system/layers/base))] at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:132) at com.redhat.sample.SampleServlet.processRequest(SampleServlet.java:29) at com.redhat.sample.SampleServlet.doGet(SampleServlet.java:48) ... Caused by: java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder from [Module "javax.ws.rs.api" version 1.0.1.Final-redhat-00001 from local module loader @69d9c55 (finder: local module finder @13a57a3b (roots: /opt/jboss/jboss-eap-7.2/modules,/opt/jboss/jboss-eap-7.2/modules/system/layers/base/.overlays/layer-base-jboss-eap-7.2.1.CP,/opt/jboss/jboss-eap-7.2/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) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at javax.ws.rs.client.FactoryFinder.newInstance(FactoryFinder.java:120) at javax.ws.rs.client.FactoryFinder.find(FactoryFinder.java:227) at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:96) ... 52 more
It seems that the issue is that the internal resteasy class is not found and the default org.glassfish.jersey.client.JerseyClientBuilder is tried but fails.
- clones
-
WFLY-12235 ClassNotFoundException over org.glassfish.jersey.client.JerseyClientBuilder when sec-mgr is enabled
- Closed
- is caused by
-
JBEE-204 JAX-RS FactoryFinder failing resolution using ServiceLoader with secMgr enabled
- Resolved
- is incorporated by
-
JBEAP-17311 [GSS](7.2.z) Upgrade jboss-jaxrs-api_2.1_spec from 1.0.1.Final-redhat-00001 to 1.0.3.Final-redhat-00001
- Closed