• Post Reply Bookmark Topic Watch Topic
  • New Topic

JNDI local component not found (/comp/env)

 
Jussi Taimiaho
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

for a reason or another after one update one JNDI lookup stopped working for me. I'm looking for a variable from an ejb-jar.xml -file. The problem is that even the local component cannot be found, because I get "javax.naming.NameNotFoundException" where "remaining name 'comp/env/...". So the even the "/comp/env" -part is not found. What could be the reason for this?

Otherwise the application works fine.
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jussi,

I guess you should post the code as well as the deployment descriptors. I understand you�re using ejb references. Then make sure that your client looks up the ban using java:comp/env/MeBeanName
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi again,

One more question though: does the failing code belong to a remote client or another server component (servlet, jsp, ejb, action struts class, etc)?
 
Jussi Taimiaho
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

Actually I'm lookin for a varialbe, location of a service.

The part that throws:


And in my xml -file


Well, I think I don't have much time to check this. Did a kludge for that and have about two more hours to go for this day, and next monday is my last day at current job, during which I doubt that I have time to do anything useful.
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I whish you the best of luck with all your new assignments.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!