• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

can't find local home interface in servlet

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.;
...
reply
    Bookmark Topic Watch Topic
  • New Topic