Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OIM 10g - JAX-WS webservice client integration

923197Jul 23 2013 — edited Jul 24 2013

Hi,

I have to integrate FoxT with OIM and they have exposed jax-ws webservice for the same. We generated client using wsimport and it works fine as a stand-alone client. But when we add wlfullclient.jar to the classpath, it fails with below error -

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/ws/spi/ProviderImpl

    at java.lang.ClassLoader.defineClass1(Native Method)

    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)

    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)

    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

    at javax.xml.ws.spi.FactoryFinder.safeLoadClass(FactoryFinder.java:150)

    at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:30)

    at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:90)

    at javax.xml.ws.spi.Provider.provider(Provider.java:83)

    at javax.xml.ws.Service.<init>(Service.java:56)

    at javax.xml.ws.Service.create(Service.java:680)

    at com.centurylink.identity.utils.FoxTUserOperations.main(FoxTUserOperations.java:27)

Caused by: java.lang.ClassNotFoundException: com.sun.xml.ws.spi.ProviderImpl

    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

    ... 19 more

After searching over internet, I figured out jaxws-rt.jar needs to be added to get rid of this error. But doing so changes the error but does not solve the issue.

Can someone please help me in resolving this ?

Thanks,

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 21 2013
Added on Jul 23 2013
1 comment
198 views