【发布时间】:2015-05-04 05:01:47
【问题描述】:
我有一个使用 jacorb.jar (org.omg.orb.ORB.class) 的应用程序。当我在 WAS 8.5.5 中部署我的 war 文件时,我收到了位于 openJdk/jre/lib/ibmorb.jar 文件中的 ibmorb 的类转换异常。谁能帮助我使用 jacorb.jar 并解决错误。
错误:
[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。
-
您好,感谢您的回复。我通过管理控制台将 jacorb.jar 文件保存在 JVM 类路径中。在我的应用程序中,必须使用 jacorb.jar,当前任务是从 jboss 迁移到 websphere。在这个阶段完全锁定,因为我所有覆盖 websphere ORB 的路径都失败了。
标签: java corba websphere-8 jacorb