• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB 3 Naming problem

 
sarvesh tiwari
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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)
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like its not bound to the JNDI. Did you check for it under the JNDI tree ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic