I have a session bean when deployed gives the following error. My weblogic-ejb-jar.xml contains session bean with jndi-name as ejb/AdditionalTicketAttributes, whereas while deploying the server is searching for 'ejb/AdditionalTicketAttributes_EO' jndi-name. Please let me know if anybody has faced the same problem and how to rectify it.
<!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN' 'http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>AdditionalTicketAttributes</ejb-name>
<jndi-name>ejb/AdditionalTicketAttributes</jndi-name>
</weblogic-enterprise-bean>
<security-role-assignment>
<role-name>csm_app_ejb_basic_user</role-name>
<principal-name>basic_user</principal-name>
</security-role-assignment>
</weblogic-ejb-jar>
Tue Jun 03 11:42:00 GMT+05:30 2003:<E> <
EJB> Could not deploy: 'AdditionalTicketAttributes.jar'
Possible reasons include:
1. The bean or an interface class has been modified but the deployment descriptor has not been updated
2. The database mappings in the deployment descriptor do not match the database definition
3. The jar file is not a valid jar file
4. The jar file does not contain a valid bean
weblogic.ejb.common.DeploymentException: Could not instantiate EJBObject.; nested exception is:
javax.naming.NameNotFoundException: 'ejb/AdditionalTicketAttributes_EO'; remaining name 'ejb/AdditionalTicketAttributes_EO'
javax.naming.NameNotFoundException: 'ejb/AdditionalTicketAttributes_EO'; remaining name 'ejb/AdditionalTicketAttributes_EO'
at weblogic.jndi.toolkit.BasicWLContext.resolveName(BasicWLContext.java:745)
at weblogic.jndi.toolkit.BasicWLContext.resolveNameToStore(BasicWLContext.java:656)
at weblogic.jndi.toolkit.BasicWLContext.resolveNameToParentStore(BasicWLContext.java:707)
at weblogic.jndi.toolkit.BasicWLContext.rebind(BasicWLContext.java:229)
at weblogic.jndi.toolkit.ReplicatedWLContext.rebind(ReplicatedWLContext.java:91)
at weblogic.jndi.toolkit.BasicWLContext.rebind(BasicWLContext.java:580)
at weblogic.ejb.internal.StatelessEJBHome.setup(StatelessEJBHome.java:127)
at weblogic.ejb.internal.EJBHomeImpl.setup(EJBHomeImpl.java:600)
at weblogic.ejb.internal.EJBDeploymentImpl.setupBeanHome(EJBDeploymentImpl.java:576)
at weblogic.ejb.internal.EJBDeploymentImpl.deployBeans(EJBDeploymentImpl.java:384)
at weblogic.ejb.internal.EJBDeploymentImpl.deploy(EJBDeploymentImpl.java:335)
at weblogic.ejb.internal.EJBJarDeployment.deploy(EJBJarDeployment.java:231)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:363)
at weblogic.ejb.internal.EJBManagerImpl.deployNew(EJBManagerImpl.java:352)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:319)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java:629)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1295)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)