Folkses,
I'm in desperate need of help.
I currently try to get to grips with JEE (6) and EJB. While makeing my way trhough various tutorials I keep running into problems with remote EJBs.
I use Netbeans 7.3 together with GF 3.1.2.2 and all tutorials I tried work as expected as long as they contain local EJBs. As soon as remote EJBs are involved things stop working.
I found a very simple example in this blog and even that doesn't work.
Here is what happens:
-
I create and deploy my bean
I create and deploy a client
the client tries to locate the remote bean via InitialContext.lookup()
the client gets stuck in the lookup and never returns, no error msgs, no exceptions.
I turned on some logging for GF and keep seeing the following messages/exceptions which might be related to my problem:
WARNUNG: .createReferenceFactory<-: 89664234850877440_RBusiness_mrbear.beans._MyFirstBeanRemote_Remote-EJBObject RMI:mrbear.beans._MyFirstBeanRemote_Remote:0000000000000000
FEIN: In POARemoteReferenceFactory._createRef, repositoryId = RMI:com.sun.ejb.codegen.GenericEJBHome_Generated:0000000000000000
FEIN: Returning OID in DER format
FEIN: OID = 2.23.130.1.1.1
FEIN: DER OID: 06 06 67 81 02 01 01 01
FEIN: IOP00000001: Unlisted user exception received by client
org.omg.CORBA.UNKNOWN: FEIN: IOP00000001: Unlisted user exception received by client vmcid: SUN minor code: 1 completed: Maybe
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
:
What does it mean?
When I kill my client app I get the following msgs/exception:
FEIN: IOP00410011: IOException received when reading from connection SocketOrChannelConnectionImpl[ java.nio.channels.SocketChannel[connected local=/127.0.0.1:3700 remote=/127.0.0.1:50547] ESTABLISHED true true]
org.omg.CORBA.COMM_FAILURE: FEIN: IOP00410011: IOException received when reading from connection SocketOrChannelConnectionImpl[ java.nio.channels.SocketChannel[connected local=/127.0.0.1:3700 remote=/127.0.0.1:50547] ESTABLISHED true true] vmcid: OMG minor code: 11 completed: No
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
:
Following is my lookup code from main():
InitialContext initialContext = new InitialContext();
example = (MyFirstBeanRemote)initialContext.lookup("java:global/HelloWorldEE/HelloWorldEE-ejb/MyFirstBean");
I tried playing with properties for the initial context (e.g. props.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");) which I found in various places, but none made any differences.
Any ideas/suggestions/help greatly appreciated...
Thomas
Attachment | Size |
---|---|
beans.zip | 1.8 KB |