简体   繁体   English

ClassCastException b / w WAS 8.5.5中的IBMorb和jacorb jar

[英]ClassCastException b/w IBMorb and jacorb jars in WAS 8.5.5

I have an application which is using jacorb.jar (org.omg.orb.ORB.class). 我有一个使用jacorb.jar(org.omg.orb.ORB.class)的应用程序。 When i deploying my war file in WAS 8.5.5, I am getting classcast exceptions with ibmorb located at openJdk/jre/lib/ibmorb.jar file. 当我在WAS 8.5.5中部署war文件时,我正在使用位于openJdk / jre / lib / ibmorb.jar文件的ibmorb获得classcast异常。 Could anyone help me in using jacorb.jar and resolving errors. 任何人都可以帮我使用jacorb.jar并解决错误。

Error: 错误:

[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)

IBM doesn't support third party ORB as it provides its own ORB. IBM不支持第三方ORB,因为它提供了自己的ORB。 You can find the orb.properties with default properties in IBM JAVA jre folder. 您可以在IBM JAVA jre文件夹中找到具有默认属性的orb.properties。 If you want to add anything related to ORB that need to inform JRE , we can add an entry in this property folder. 如果要添加与ORB相关的任何需要通知JRE的内容,我们可以在此属性文件夹中添加一个条目。

I have completely removed the JacORB from my code and used IBM ORB. 我已从代码中完全删除了JacORB并使用了IBM ORB。 They wont be any problem if you compile your code with JacORB and to use the same in IBM websphere as the package structure and method signature wont change. 如果使用JacORB编译代码并在IBM websphere中使用相同的代码,并且包结构和方法签名不会更改,则它们不会有任何问题。 I have tested this practically. 我实际测试了这个。

Refer to this thread for more information in creating a corba name space and using it in code. 有关创建corba名称空间并在代码中使用它的更多信息,请参阅此线程。 If you follow those, you wont need to add jacorb jars in IBM websphere. 如果您遵循这些,您将不需要在IBM websphere中添加jacorb jar。

Corba NameService configuration in Websphere 8.5.5 Websphere 8.5.5中的Corba NameService配置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM