• 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
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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 ?
 
roses are red, violets are blue. Some poems rhyme and some are a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic