Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > EJB
Password Reminder
Register
| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
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)


  #2 (permalink)  
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.
  #3 (permalink)  
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.
 


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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:57 PM.


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