Mark,
Your problem here is that WebLogic provides their own implementation of
RMI. As a result, the "Remote" interface your object must implement is
weblogic.rmi.Remote -- not java.rmi.Remote. You will also need to run the
WebLogic RMI compiler -- not Javasoft's rmic.
Hope this clears up any confusion,
Robert
At 05:49 PM 6/14/99 -0500, you wrote:
>In the EJB spec, it says that the bean's remote & home interfaces must have
>valid return and parameter types for RMI remote interfaces.
>
>That is basically serializable objects or remote objects.
>
>But can a bean method really return anything implementing java.rmi.Remote
>[i.e., any remote object]? Or does it really have to be an object that
>implements EJBObject [i.e, an Ebean]?
>
>I tried it out with WebLogic and got the following exception shown below on
>the client. Note the line marked with "***"; the error message is a bit
>confused, but seems to not like marshalling an object that implements [an
>interface that extends] Remote.
>
>It seems to me that you should only be able to return EBeans or serializable
>objects. Ifthat's the case, the spec. really should say so.
>
>:::::::::::::: Unexpected Error :::::::::::::::::
>java.rmi.ServerException: Weblogic
>RemoteException(weblogic.rmi.ServerException) remapped
>from:weblogic.rmi.ServerException: Server RemoteException
> - with nested exception:
>[weblogic.rmi.MarshalException: error marshalling return
> - with nested exception:
>***[weblogic.rmi.StubNotFoundException: Failed to find a stub for [class
>net. tms.ejbproto.HelloImpl] implements at least one interface [interface
>net.tms.ejbproto.Hello] which extends Remote.]]; nested exception is:
> weblogic.rmi.ServerException: Server RemoteException
> - with nested exception:
>[weblogic.rmi.MarshalException: error marshalling return
> - with nested exception:
>[weblogic.rmi.StubNotFoundException: Failed to find a stub for [class
>net.tms.ejbproto.HelloImpl] implements at least one interface [interface
>net.tms.ejbproto.Hello] which extends Remote.]]
> at
>weblogic.rmi.internal.RemoteReference.theOtherException(RemoteReference.java
>:817)
> at
>net.tms.ejbproto.WLStub2h51p1z256ii632m663z1957a6d5w.getHello(WLStub2h51p1z2
>56ii632m663z1957a6d5w.java:471)
> at net.tms.ejbproto.Test1.runTest1(Test1.java:68)
> at net.tms.ejbproto.Test1.main(Test1.java:27)
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff EJB-INTEREST". For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".