我在Weblogic上部署了Java Rest服务应用程序。 此应用程序充当RMI客户端,该客户端对部署在IBM WAS上的单独RMI应用程序进行RMI远程调用。
这是我不断得到的例外:
Message: halt call on EditServerService failed
Message: halt call on EditServerService failed
java.lang.ExceptionInInitializerError
java.lang.ExceptionInInitializerError
at weblogic.iiop.IIOPOutputStream.<clinit>(IIOPOutputStream.java:138)
at weblogic.iiop.Message.getOutputStream(Message.java:175)
at weblogic.iiop.LocateRequestMessage.<init>(LocateRequestMessage.java:93)
at weblogic.iiop.IORManager.locateNameService(IORManager.java:196)
at weblogic.iiop.IORManager.createInitialReference(IORManager.java:120)
Truncated. see log file for complete stacktrace
Caused By: org.omg.CORBA.INITIALIZE: Cannot instantiate com.ibm.ws.orb.WSUtilDelegateImpl vmcid: 0x0 minor code: 0 completed: No
at javax.rmi.CORBA.Util.createDelegate(Util.java:373)
at javax.rmi.CORBA.Util.<clinit>(Util.java:71)
at weblogic.iiop.IIOPOutputStream.<clinit>(IIOPOutputStream.java:138)
at weblogic.iiop.Message.getOutputStream(Message.java:175)
at weblogic.iiop.LocateRequestMessage.<init>(LocateRequestMessage.java:93)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: com.ibm.ws.orb.WSUtilDelegateImpl (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:393)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:185)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:637)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:219)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:152)
Truncated. see log file for complete stacktrace
>
<19/02/2019 8:59:22 AM AEDT> <Error> <WebLogicServer> <BEA-000381> <ServerLifeCycle operation failed.
Message: halt call on RuntimeServerService failed
java.lang.NoClassDefFoundError: Could not initialize class weblogic.iiop.IIOPOutputStream
java.lang.NoClassDefFoundError: Could not initialize class weblogic.iiop.IIOPOutputStream
at weblogic.iiop.Message.getOutputStream(Message.java:175)
at weblogic.iiop.LocateRequestMessage.<init>(LocateRequestMessage.java:93)
at weblogic.iiop.IORManager.locateNameService(IORManager.java:196)
at weblogic.iiop.IORManager.createInitialReference(IORManager.java:120)
at weblogic.corba.orb.ORB.string_to_object(ORB.java:341)
Truncated. see log file for complete stacktrace
<19/02/2019 8:59:22 AM AEDT> <Error> <WebLogicServer> <BEA-000381>
<ServerLifeCycle operation failed.
Message: halt call on DomainRuntimeServerService failed
java.lang.NoClassDefFoundError: Could not initialize class
weblogic.iiop.IIOPOutputStream
java.lang.NoClassDefFoundError: Could not initialize class
weblogic.iiop.IIOPOutputStream
at weblogic.iiop.Message.getOutputStream(Message.java:175)
at weblogic.iiop.LocateRequestMessage.<init>(LocateRequestMessage.java:93)
at weblogic.iiop.IORManager.locateNameService(IORManager.java:196)
at weblogic.iiop.IORManager.createInitialReference(IORManager.java:120)
at weblogic.corba.orb.ORB.string_to_object(ORB.java:341)
Truncated. see log file for complete stacktrace
谷歌搜索并查看了SO上发布的许多问题-但它们之间的区别是它们似乎也遇到了编组异常-在我的堆栈跟踪中不是这种情况。
我们没有使用'codeBase',并且jar文件中存在提供'ClassNotFoundException'的特定类-iwsorbutil.jar
所以我想我不必担心设置Security Manager是我的假设。
但是我似乎已经走到了尽头-任何意见和想法都非常感谢!