2011-10-14 75 views
2

我可以發誓以前我做過這些,只是不知道我忘記了什麼。使用來自Java SE客戶機與Weblogic 11g進行對話的遠程EJB時,我收到類未發現異常。在WebLogic 11g中使用遠程EJB時發生ClassNotFoundException

javax.naming.NamingException: Unhandled exception in lookup [Root exception is org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 257 completed: Maybe] 
    at weblogic.corba.j2ee.naming.Utils.wrapNamingException(Utils.java:83) 
    at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:291) 
    at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:227) 
    at javax.naming.InitialContext.lookup(InitialContext.java:392) 
Caused by: org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 257 completed: Maybe 
    at com.sun.corba.se.impl.logging.ORBUtilSystemException.couldNotFindClass(ORBUtilSystemException.java:8260) 
    at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1013) 
    at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:879) 
    at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_1_0.java:873) 
    at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_1_0.java:863) 
    at com.sun.corba.se.impl.encoding.CDRInputStream.read_abstract_interface(CDRInputStream.java:269) 
    at com.sun.corba.se.impl.util.Utility.readAbstractAndNarrow(Utility.java:948) 
    at com.sun.corba.se.impl.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1992) 
    at com.sun.corba.se.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2220) 
    at com.sun.corba.se.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1227) 
    at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:400) 
    at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:317) 
    at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:283) 
    at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034) 
    at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:879) 
    at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:249) 
    at com.sun.corba.se.impl.corba.TCUtility.unmarshalIn(TCUtility.java:269) 
    at com.sun.corba.se.impl.corba.AnyImpl.read_value(AnyImpl.java:559) 
    at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_any(CDRInputStream_1_0.java:739) 
    at com.sun.corba.se.impl.encoding.CDRInputStream.read_any(CDRInputStream.java:220) 
    at weblogic.corba.cos.naming._NamingContextAnyStub.resolve_any(_NamingContextAnyStub.java:81) 
    at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:267) 
    ... 5 more 
Caused by: java.lang.ClassNotFoundException 
    ... 26 more 
+0

+1在這個問題上。我有同樣的錯誤。 –

+0

Franz See:我最終將整個api和impl打包成jar並部署給調用者。不應該那樣,但似乎有效。 –

回答

0

vmcid: SUN minor code: 257 completed: Maybe讓我覺得它的版本不兼容 - 也就是說,客戶端代碼和RMI存根是一個不同的版本比服務器EJB代碼。

0

您需要wlfullclient.jardocumentation

之前到WebLogic Server 10.0指出,需要在weblogic.jar文件T3和WLS-IIOP客戶端應用程序提供WebLogic Server特定的增值功能。爲WebLogic Server 10.x及更高版本,單機需要這些功能的客戶端應用程序使用wlfullclient.jar文件而不是weblogic.jar [...]

您可以生成wlfullclient.jar文件使用JarBuilder工具客戶端應用程序。 [...]

注:繼續使用weblogic.jar在客戶端應用程序可能會導致ClassNotFoundException

+0

有關downvote的任何評論? – fglez

相關問題