• Post Reply Bookmark Topic Watch Topic
  • New Topic

can't find local home interface in servlet  RSS feed

 
Stephen Tong
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ejb-jar.xml:
<ejb-name>TestEJB</ejb-name>
<local-home>study.tuncan.ejb.TestLocalHome</local-home>
<local>study.tuncan.ejb.TestHelloLocal</local>
<ejb-class>study.tuncan.ejb.TestBean</ejb-class>
<session-type>Stateless</session-type>

weblogic-ejb-jar.xml:
<ejb-name>TestEJB</ejb-name>
<local-jndi-name>TestLocalHome</local-jndi-name>
code in the servlet:
Context ctx = new InitialContext();
Object obj = ctx.lookup("TestLocalHome");

errors:
javax.naming.LinkException: [Root exception is javax.naming.NameNotFoundException: While trying to look up /app/ejb/Test.jar#TestEJB/local-home in /app/webapp/studywebapp/8624359.;
...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!