[jboss-jira] [JBoss JIRA] (JBEE-204) JAX-RS FactoryFinder failing resolution using ServiceLoader with secMgr enabled
Alessio Soldano (Jira)
issues at jboss.org
Mon Jun 24 11:19:00 EDT 2019
[ https://issues.jboss.org/browse/JBEE-204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alessio Soldano resolved JBEE-204.
----------------------------------
Fix Version/s: jboss-jaxrs-api-2.1_1.0.3.Final
Resolution: Done
> JAX-RS FactoryFinder failing resolution using ServiceLoader with secMgr enabled
> -------------------------------------------------------------------------------
>
> Key: JBEE-204
> URL: https://issues.jboss.org/browse/JBEE-204
> Project: JBoss JavaEE Spec APIs
> Issue Type: Bug
> Reporter: Alessio Soldano
> Assignee: Alessio Soldano
> Priority: Major
> Fix For: jboss-jaxrs-api-2.1_1.0.3.Final
>
>
> 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