File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

EJB 3 Naming problem

sarvesh tiwari

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 ..

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'

Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

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

Joined: Feb 24, 2006
Posts: 6662

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:
subject: EJB 3 Naming problem
jQuery in Action, 3rd edition