I am developing a BB application which works fine when I do it as a Standalone application (in my local) in JDeveloper(ver 188.8.131.52.0). But as soon as I try to integrate it into a portal (local machine - in JDeveloper) by writing a client program and including jar file from standalone app, it fails and is throwing the
Exception in thread "main" java.lang.ClassCastException: weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler cannot be cast to org.apache.cxf.frontend.ClientProxy
Process exited with exit code 1.
The portal is developed on the Oracle ADF Framework.
Even though the org.apache.cxf jars are present in classpath, it is unable to do the casting and throwing the error. Does anyone who how to resolve this error? Can we override the default class loading that is not allowing the cast to happen? Any help is appreciated!
I was able to fix the issue by setting the APACHE CXF jars as a User Defined Library and setting it to the "Deployed by Default" option. So the library loads immediately on startup and the doesnt throw a ClasscastException