You are currently viewing the EJB section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
I am new to EJB 3.0. I am developing a J2EE application using NetBeans IDE. My project is deployed successfully, but when I try to run the EJB Module which has only Session bean(Just Display the Message), the following error has occured.
Please Help me,
Feb 26, 2008 6:24:29 PM com.sun.enterprise.appclient.MainWithModuleSupport <init>
WARNING: ACC003: Application threw an exception.
com.sun.enterprise.InjectionException: Exception attempting to inject Resolved Ejb-Ref testejb.Main/showMsgBean@jndi: pkgEJB.ShowMsgRemote - > ShowMsgBean into class testejb.Main
at com.sun.enterprise.util.InjectionManagerImpl._inje ct(InjectionManagerImpl.java:373)
at com.sun.enterprise.util.InjectionManagerImpl.injec t(InjectionManagerImpl.java:193)
at com.sun.enterprise.util.InjectionManagerImpl.injec tClass(InjectionManagerImpl.java:131)
at com.sun.enterprise.util.InjectionManagerImpl.injec tClass(InjectionManagerImpl.java:123)
at com.sun.enterprise.appclient.MainWithModuleSupport .<init>(MainWithModuleSupport.java:325)
at com.sun.enterprise.appclient.Main.main(Main.java:1 80)
Caused by: javax.naming.CommunicationException: Can't find SerialContextProvider [Root exception is org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No]
at com.sun.enterprise.naming.SerialContext.getProvide r(SerialContext.java:172)
at com.sun.enterprise.naming.SerialContext.lookup(Ser ialContext.java:309)
at com.sun.enterprise.naming.NamingManagerImpl.lookup (NamingManagerImpl.java:833)
at com.sun.enterprise.naming.java.javaURLContext.look up(javaURLContext.java:156)
at com.sun.enterprise.naming.SerialContext.lookup(Ser ialContext.java:307)
at javax.naming.InitialContext.lookup(InitialContext. java:392)
at com.sun.enterprise.util.InjectionManagerImpl._inje ct(InjectionManagerImpl.java:274)
... 5 more
Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemExcepti on.connectFailure(ORBUtilSystemException.java:2348 )
at com.sun.corba.ee.impl.logging.ORBUtilSystemExcepti on.connectFailure(ORBUtilSystemException.java:2369 )
at com.sun.corba.ee.impl.transport.SocketOrChannelCon nectionImpl.<init>(SocketOrChannelConnectionImpl.j ava:212)
at com.sun.corba.ee.impl.transport.SocketOrChannelCon nectionImpl.<init>(SocketOrChannelConnectionImpl.j ava:225)
at com.sun.corba.ee.impl.transport.SocketOrChannelCon tactInfoImpl.createConnection(SocketOrChannelConta ctInfoImpl.java:104)
at com.sun.corba.ee.impl.protocol.CorbaClientRequestD ispatcherImpl.beginRequest(CorbaClientRequestDispa tcherImpl.java:159)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegate Impl.request(CorbaClientDelegateImpl.java:156)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegate Impl.is_a(CorbaClientDelegateImpl.java:296)
at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl .java:112)
at org.omg.CosNaming.NamingContextHelper.narrow(Namin gContextHelper.java:69)
at com.sun.enterprise.naming.SerialContext.narrowProv ider(SerialContext.java:110)
at com.sun.enterprise.naming.SerialContext.getProvide r(SerialContext.java:164)
... 11 more
Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused: connect
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.creat eSocket(IIOPSSLSocketFactory.java:356)
at com.sun.corba.ee.impl.transport.SocketOrChannelCon nectionImpl.<init>(SocketOrChannelConnectionImpl.j ava:195)
... 20 more
Caused by: java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannel Impl.java:507)
at java.nio.channels.SocketChannel.open(SocketChannel .java:146)
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.creat eSocket(IIOPSSLSocketFactory.java:340)
... 21 more
Exception in thread "main" java.lang.RuntimeException: com.sun.enterprise.InjectionException: Exception attempting to inject Resolved Ejb-Ref testejb.Main/showMsgBean@jndi: pkgEJB.ShowMsgRemote - > ShowMsgBean into class testejb.Main
at com.sun.enterprise.appclient.MainWithModuleSupport .<init>(MainWithModuleSupport.java:364)
at com.sun.enterprise.appclient.Main.main(Main.java:1 80)
Caused by: com.sun.enterprise.InjectionException: Exception attempting to inject Resolved Ejb-Ref testejb.Main/showMsgBean@jndi: pkgEJB.ShowMsgRemote - > ShowMsgBean into class testejb.Main
at com.sun.enterprise.util.InjectionManagerImpl._inje ct(InjectionManagerImpl.java:373)
at com.sun.enterprise.util.InjectionManagerImpl.injec t(InjectionManagerImpl.java:193)
at com.sun.enterprise.util.InjectionManagerImpl.injec tClass(InjectionManagerImpl.java:131)
at com.sun.enterprise.util.InjectionManagerImpl.injec tClass(InjectionManagerImpl.java:123)
at com.sun.enterprise.appclient.MainWithModuleSupport .<init>(MainWithModuleSupport.java:325)
... 1 more
Caused by: javax.naming.CommunicationException: Can't find SerialContextProvider [Root exception is org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No]
at com.sun.enterprise.naming.SerialContext.getProvide r(SerialContext.java:172)
at com.sun.enterprise.naming.SerialContext.lookup(Ser ialContext.java:309)
at com.sun.enterprise.naming.NamingManagerImpl.lookup (NamingManagerImpl.java:833)
at com.sun.enterprise.naming.java.javaURLContext.look up(javaURLContext.java:156)
at com.sun.enterprise.naming.SerialContext.lookup(Ser ialContext.java:307)
at javax.naming.InitialContext.lookup(InitialContext. java:392)
at com.sun.enterprise.util.InjectionManagerImpl._inje ct(InjectionManagerImpl.java:274)
... 5 more
Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemExcepti on.connectFailure(ORBUtilSystemException.java:2348 )
at com.sun.corba.ee.impl.logging.ORBUtilSystemExcepti on.connectFailure(ORBUtilSystemException.java:2369 )
at com.sun.corba.ee.impl.transport.SocketOrChannelCon nectionImpl.<init>(SocketOrChannelConnectionImpl.j ava:212)
at com.sun.corba.ee.impl.transport.SocketOrChannelCon nectionImpl.<init>(SocketOrChannelConnectionImpl.j ava:225)
at com.sun.corba.ee.impl.transport.SocketOrChannelCon tactInfoImpl.createConnection(SocketOrChannelConta ctInfoImpl.java:104)
at com.sun.corba.ee.impl.protocol.CorbaClientRequestD ispatcherImpl.beginRequest(CorbaClientRequestDispa tcherImpl.java:159)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegate Impl.request(CorbaClientDelegateImpl.java:156)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegate Impl.is_a(CorbaClientDelegateImpl.java:296)
at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl .java:112)
at org.omg.CosNaming.NamingContextHelper.narrow(Namin gContextHelper.java:69)
at com.sun.enterprise.naming.SerialContext.narrowProv ider(SerialContext.java:110)
at com.sun.enterprise.naming.SerialContext.getProvide r(SerialContext.java:164)
... 11 more
Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused: connect
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.creat eSocket(IIOPSSLSocketFactory.java:356)
at com.sun.corba.ee.impl.transport.SocketOrChannelCon nectionImpl.<init>(SocketOrChannelConnectionImpl.j ava:195)
... 20 more
Caused by: java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannel Impl.java:507)
at java.nio.channels.SocketChannel.open(SocketChannel .java:146)
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.creat eSocket(IIOPSSLSocketFactory.java:340)
... 21 more
Java Result: 1
run-testEJB-app-client:
run:
BUILD SUCCESSFUL (total time: 1 minute 33 seconds)