3 Replies Latest reply: May 20, 2013 10:56 AM by 1009910 RSS

    Class Cast Exception while using APACHE CXF in JDEVELOPER

    974753
      All,

      I am developing a BB application which works fine when I do it as a Standalone application (in my local) in JDeveloper(ver 11.1.1.6.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
           at org.apache.cxf.frontend.ClientProxy.getClient(ClientProxy.java:93)
           at com.boa.bes.client.WSClient.Setup(WSClient.java:87)
           at com.boa.bes.client.WSClient.main(WSClient.java:223)
      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!

      Thanks.

      -Rohini