[jboss-jira] [JBoss JIRA] (WFLY-12235) ClassNotFoundException over org.glassfish.jersey.client.JerseyClientBuilder when sec-mgr is enabled

Alessio Soldano (Jira) issues at jboss.org
Mon Jun 24 09:59:00 EDT 2019


Alessio Soldano created WFLY-12235:
--------------------------------------

             Summary: ClassNotFoundException over org.glassfish.jersey.client.JerseyClientBuilder when sec-mgr is enabled
                 Key: WFLY-12235
                 URL: https://issues.jboss.org/browse/WFLY-12235
             Project: WildFly
          Issue Type: Bug
            Reporter: Alessio Soldano
            Assignee: Alessio Soldano
             Fix For: 18.0.0.Beta1


>From JBEAP-17069:

When the security manager is enabled the resteasy client initialization fails with the following exception:

{noformat}
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
{noformat}

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.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list