• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB 3 Naming problem

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using weblogic 11g and struts 2 and EJB 3 application I made datasource with the name testingds and jndi name jdbc/testing my persistence.xml is having entry like this ..
<jta-data-source>jdbcds</jta-data-source>


in the action class I kept
@EJB anotation what might be the problem my interface name is AccountInterface.



I am getting some error like this


javax.naming.NameNotFoundException: While trying to lookup 'AccountInterface.local' didn't find subcontext 'AccountInterface'. Resolved ''; remaining name 'AccountInterface/local'

weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:247)
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please do not use colorful fonts. Instead use the code block wherever applicable.


I am using weblogic 11g



This forum is for JBoss. I'll move this topic to our WebLogic forum.
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like its not bound to the JNDI. Did you check for it under the JNDI tree ?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic