DZone Forums
Go Back   DZone Forums > Community > Languages & Frameworks > Java
Reload this Page Does Jboss5.0 supports EJB1.1
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Sep 2009
Default Does Jboss5.0 supports EJB1.1 - 09-22-2009, 03:43 AM

Hi,
I am new to this forum. I just wanted a little help from you guys who has worked in EJBs probably. I am new to both JBoss and EJB.
The first thing I want to know is whether JBoss 5.0 supports EJB 1.1.

I am trying to deploy EJB 1.1 in JBoss 5.0. As per the console it shows that the EJBs are deployed successfully. But when I am trying to access the application it gives me javax.ejb.CreateException.
The actual exception is as follows:
13:03:20,760 ERROR [LogInterceptor] EJBException in method: public abstract com.mgh.logon.mgr.Logon com.mgh.logon.mgr.LogonHome.create() throws java.rmi.RemoteException,javax.ejb.CreateException , causedBy:
javax.ejb.EJBException: java.lang.NullPointerException

Reading further I find one more statement as

13:03:20,822 ERROR [STDERR] Caused by: javax.ejb.EJBException: Could not instantiate bean

What exactly I am trying to do is calling an EJB through JNDI in one of my servlet class.

LogonHome h = (LogonHome) PortableRemoteObject.narrow(context.lookup(LOGON_M ANAGER),LogonHome.class);
Logon r = (Logon) h.create();

I get the above exception at (Logon) h.create().
Please suggest me if any of you have an idea about it.
Reply With Quote
Reply

Thread Tools
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com