p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Java > Java and JDK > EJB
I forgot my password Register Now
Register | FAQ | Members List | Calendar | 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 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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old March 25th, 2009, 03:42 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EJB problem g_svadla EJB 0 April 26th, 2007 04:48 PM
EJB Deployment problem afroz_online777 EJB 1 April 20th, 2007 02: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 09:58 PM
Problem with EJB(Session+Entity bean) hiparry_m J2EE 1 October 15th, 2004 02:54 PM



All times are GMT -4. The time now is 01:08 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc