Solved

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

Posted on 2009-05-20
6
440 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 12

Expert Comment

by:Gibu George
ID: 24431973
Post the code which you are using for lookup
0
 

Author Comment

by:ramadevimandala
ID: 24432140

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
ID: 24432158
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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
LVL 12

Expert Comment

by:Gibu George
ID: 24432199
the java code please
0
 

Author Comment

by:ramadevimandala
ID: 24432692
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
ID: 24442022
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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.

617 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