Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > EJB
| Search | Today's Posts | Mark Forums Read
EJB Be sure to indicate the version you use.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the EJB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 27th, 2008, 12:59 AM
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem while running EJB

Hello,

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)


 
Old March 25th, 2009, 02:42 PM
Registered User
 
Join Date: Mar 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ejb development

Hi,I am using NetBeans6.1.

If it is possible can you tell me how to develop ejb3 and ejb2 in Netbeans 6.1.



I am using MyEclipse 5.1.1
Now I want to develpe an ejb3 or ejb2 modules.

Can any one tell me how to develop ejb3 or ejb2 by using MyEclipse step by step.

Thanks in advance.
 
Old June 12th, 2011, 11:42 AM
Registered User
 
Join Date: Jun 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What application server are you using? It is an application server specific.




Similar Threads
Thread Thread Starter Forum Replies Last Post
EJB problem g_svadla EJB 0 April 26th, 2007 03:48 PM
EJB Deployment problem afroz_online777 EJB 1 April 20th, 2007 01:43 PM
Problem running Struts Eldo Zacharia Apache Tomcat 1 November 15th, 2004 11:50 PM
Php running problem Yee PHP How-To 5 October 26th, 2004 08:58 PM
Problem with EJB(Session+Entity bean) hiparry_m J2EE 1 October 15th, 2004 01:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.