Solved

getting javax.naming.LinkException in when using JNDI in EJB

Posted on 2009-05-20
6
433 Views
Last Modified: 2013-11-24
I have deployed my application in weblogic, it is ejb application using JNDI when I am running the jsp page I am getting the error:
javax.naming.LinkException:  [Root exception is javax.naming.NameNotFoundException: While trying to lookup

In web.xml I have  Ejb references and in my ear i have my ejb-jar and other descriptors
0
Comment
Question by:ramadevimandala
  • 4
  • 2
6 Comments
 
LVL 12

Expert Comment

by:Gibu George
Comment Utility
Post the code which you are using for lookup
0
 

Author Comment

by:ramadevimandala
Comment Utility

This the code in my web.xml
<ejb-ref>

    <ejb-ref-name>test/metadata</ejb-ref-name>

    <ejb-ref-type>Session</ejb-ref-type>

    <remote>ServiceRemote</remote>

   <ejb-link>bean </ejb-link>

  </ejb-ref>
 
 

  <ejb-ref>

    <ejb-ref-name>test/runtime</ejb-ref-name>

    <ejb-ref-type>Session</ejb-ref-type>

    <remote>RuntimeRemote</remote>

<ejb-link>bean</ejb-link>

  </ejb-ref>

Open in new window

0
 

Author Comment

by:ramadevimandala
Comment Utility
This is my weblogic.xml
<ejb-reference-description>

  <ejb-ref-name>test/metadata</ejb-ref-name>

   <jndi-name>jndiname/remote/metadata</jndi-name>

  </ejb-reference-description>
 
 
 

  <ejb-reference-description>

    <ejb-ref-name>test/runtime</ejb-ref-name>

    <jndi-name>jndiname/remote/runtime</jndi-name> 

      </ejb-reference-description> 

Open in new window

0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 12

Expert Comment

by:Gibu George
Comment Utility
the java code please
0
 

Author Comment

by:ramadevimandala
Comment Utility
I don't have java code , as its there in framework which i can't have access, just tell me what can be the root cause for this error
0
 

Accepted Solution

by:
ramadevimandala earned 0 total points
Comment Utility
got the solution , actually I am deploying my ejb jar in different application remotly changed it to home then it working fine .. Thank you
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
canBalance challenge 34 65
nested interface 5 37
instanceof  operator in java 26 70
thymeleaf natural templating vs JSP 2 23
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now