File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes EJB 3 Naming problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "EJB 3 Naming problem " Watch "EJB 3 Naming problem " New topic
Author

EJB 3 Naming problem

sarvesh tiwari
Greenhorn

Joined: Mar 01, 2010
Posts: 5
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

Joined: Jul 20, 2005
Posts: 10289
    
168

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.

[My Blog] [JavaRanch Journal]
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

Looks like its not bound to the JNDI. Did you check for it under the JNDI tree ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB 3 Naming problem