|
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.
|