cancel
Showing results for 
Search instead for 
Did you mean: 

SCIM SDK 1.8.9 onwards not getting deployed on JBoss and weblogic

scim
New Member
0 Kudos

SCIM SDK 1.8.9 onwards not getting deployed on JBoss and weblogic

Hi Team,

 

We observed that if we use SCIM SDK 1.8.14 jar file and its dependent jars

  1. wink-client-1.4
  2. wink-common-1.4
  3. wink-client-apache-httpclient-1.4
  4. stax-api-1.0-2
  5. jaxb-impl-2.2.1.1
  6. jaxb-api-2.2
  7. geronimo-annotation_1.1_spec-1.0

With our application then application deployment on JBoss server and WebLogic Server causes following exception.

 

If we use SCIM SDK jar 1.8.2 and below versions, we do not see this problem.

We also observered that 1.8.9 onwards jar has two package one for scim and other for wink.

 

From SKD 1.8.14 jar if we remove wink package content then same jar is working fine.

 

exception:

Failed to initialize the application "build" due to error java.lang.VerifyError: class org.apache.wink.client.ClientConfig$1$1 overrides final method getClasses.()Ljava/util/Set; java.lang.VerifyError: class org.apache.wink.client.ClientConfig$1$1 overrides final method getClasses.()Ljava/util/Set;

        at java.lang.ClassLoader.defineClass1(Native Method)         at java.lang.ClassLoader.defineClass(ClassLoader.java:763)         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)         at weblogic.utils.classloaders.GenericClassLoader.defineClassInternal(GenericClassLoader.java:1065)         at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:998)         Truncated. see log file for complete stacktrace Caused By: java.lang.VerifyError: class org.apache.wink.client.ClientConfig$1$1 overrides final method getClasses.()Ljava/util/Set;         at java.lang.ClassLoader.defineClass1(Native Method)         at java.lang.ClassLoader.defineClass(ClassLoader.java:763)         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)         at weblogic.utils.classloaders.GenericClassLoader.defineClassInternal(GenericClassLoader.java:1065)         at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:998)         Truncated. see log file for complete stacktrace

 

Please assist.

2 REPLIES
UnboundID _-rc-_
UnboundID
0 Kudos

Re: SCIM SDK 1.8.9 onwards not getting deployed on JBoss and weblogic

During the development of our SCIM 2 SDK we switched from Apache Wink to Jersey in our SCIM 1.1 SDK because Wink does not support jax-rs 2.0 (JSR 339) and Jersey does. Since you cannot have two separate implementations of JSR 311/339 using a common class loader, we created some embedded replacement classes for these existing Apache Wink classes:

org.apache.wink.client.ClientAuthenticationException
org.apache.wink.client.ClientConfigException
org.apache.wink.client.ClientRequest
org.apache.wink.client.ClientResponse
org.apache.wink.client.ClientRuntimeException
org.apache.wink.client.ClientWebException
org.apache.wink.client.handlers.ClientHandler
org.apache.wink.client.handlers.HandlerContext
org.apache.wink.client.Resource
org.apache.wink.client.RestClient
org.apache.wink.common.http.HttpStatus
org.apache.wink.common.WinkApplication
org.apache.wink.server.internal.DeploymentConfiguration
org.apache.wink.server.internal.servlet.RestServlet

 

In your case, the JBOSS class loader class verifier is complaining about a class contract violation. I opened an internal issue to investigate this problem.

 

You wrote:

>From SKD 1.8.14 jar if we remove wink package content then same jar is working fine.

If this solution works for you, you can use it as a workaround. The above just confirms that we are not really using Apache Wink any longer but we do have some artifacts in the SCIM 1.1 SDK which may cause unintended conficts.

SCIMDeveloper
New Member
0 Kudos

Re: SCIM SDK 1.8.9 onwards not getting deployed on JBoss and weblogic

Are there any plans to resolve this issue ?

Labels