我有一个使用jacorb.jar(org.omg.orb.ORB.class)的应用程序。当我在WAS 8.5.5中部署我的war文件时,我得到了位于openJdk/jre/lib/ibmorb.jar文件中的ibmorb的classcast异常。任何人都可以帮助我使用jacorb.jar并解决错误。ClassCastException b/w Wors 8.5.5中的IBMorb和jacorb Jars
错误:
[3/3/15 5:30:51:863 PST] 00000001 ActivityServi E WACT0001E: The method pre_init(ORBInitInfo) in class com.ibm.ws.activity.remote.cos.ActivityServiceClientInterceptor received an unexpected exception;
the exception stack trace follows: java.lang.ClassCastException: org.jacorb.orb.portableInterceptor.ORBInitInfoImpl incompatible with com.ibm.CORBA.iiop.ExtendedORBInitInfo
at com.ibm.ws.activity.remote.cos.ActivityServiceClientInterceptor.pre_init(ActivityServiceClientInterceptor.java:219)
at org.jacorb.orb.ORB.interceptorPreInit(Unknown Source)
at org.jacorb.orb.ORB.internalInit(Unknown Source)
at org.jacorb.orb.ORB.set_parameters(Unknown Source)
at org.omg.CORBA.ORB.init(ORB.java:371)
Caused by: java.lang.ClassCastException: org.jacorb.orb.ORB incompatible with com.ibm.CORBA.iiop.ORB
at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:92)
at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:179)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:83)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:59)
at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:102)
你在哪里放置jacorb.jar? WebSphere Application Server不支持覆盖它提供的ORB。 – 2015-03-03 16:21:55
嗨,谢谢你的回应。我通过管理控制台将Jacorb.jar文件保存在JVM类路径中。在我的应用程序中,必须使用jacorb.jar,而当前的任务是从jboss迁移到websphere。完全锁定在这个阶段,因为我所有的覆盖websphere的ORB的路径都失败了。 – 2015-03-03 18:10:33