Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-12235

ClassNotFoundException over org.glassfish.jersey.client.JerseyClientBuilder when sec-mgr is enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 18.0.0.Beta1, 18.0.0.Final
    • None
    • None
    • None

    Description

      From JBEAP-17069:

      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.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-asoldano Alessio Soldano
              rhn-support-asoldano Alessio Soldano
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: