Advertisement

05.07.2004 at 08:43AM PDT, ID: 20981683
[x]
Attachment Details

javax.naming.NameNotFoundException: ejb not bound. URGENT PLEASE!!!

Asked by sjhamb in Application Servers

Tags: bound

Hi,

I have a problem locating the home interface of an stateless session bean. The application server is JBoss. The beans seem to

deploy without errors on the app server. I have been fighting with problem for 2 days now.

Following is the code i am using

try {
     Context context = new InitialContext();
     Object ref = context.lookup("ejb/Lego");
     home = (LegoHome)PortableRemoteObject.narrow(ref,LegoHome.class);
} catch (NamingException e) {
    e.printStackTrace();
}

I have also tried using
Object ref = context.lookup("java:comp/env/ejb/Lego");
to lookup the EJB.

The Output from server on deployment is:

[EjbModule] Deploying Lego
[StatelessSessionInstancePool] Started jboss.j2ee:jndiName=ejb/Lego,plugin=pool,service=EJB
[StatelessSessionContainer] Started jboss.j2ee:jndiName=ejb/Lego,service=EJB
[EjbModule] Started jboss.j2ee:module=LegoEJB.jar,service=EjbModule

Contents of my jndi.properties file:

[EjbModule] Deploying Lego
[StatelessSessionInstancePool] Started jboss.j2ee:jndiName=ejb/Lego,plugin=pool,service=EJB
[StatelessSessionContainer] Started jboss.j2ee:jndiName=ejb/Lego,service=EJB
[EjbModule] Started jboss.j2ee:module=LegoEJB.jar,service=EjbModule

Contents of application.xml are:
<application>
      <display-name>My Test Application</display-name>
      <module>
            <ejb>LegoEJB.jar</ejb>
      </module>
      <module id="WarModule_1">
            <web>
                  <web-uri>LegoWeb.war</web-uri>
                  <context-root>/test</context-root>
            </web>
      </module>
      <module id="EjbModule_1">
            <ejb>LegoEJB.jar</ejb>
      </module>
</application>

When I try to access it from Servlet I get Following Error on JBOSS Console:
javax.naming.NameNotFoundException: ejb not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)

It Seems I am messing up with some configuration problem somewhere. Please Help Urgent
Please Let me know what all do i have to configure to get this running.Start Free Trial
 
Keywords: javax.naming.NameNotFoundExcepti…
 
Loading Advertisement...
 
[+][-]05.10.2004 at 02:33AM PDT, ID: 11029716

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.11.2004 at 01:47AM PDT, ID: 11038463

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.11.2004 at 01:50AM PDT, ID: 11038476

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.11.2004 at 05:45AM PDT, ID: 11039818

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.11.2004 at 05:49AM PDT, ID: 11039848

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.11.2004 at 06:14AM PDT, ID: 11040092

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.11.2004 at 07:03AM PDT, ID: 11040621

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.11.2004 at 07:06AM PDT, ID: 11040647

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.11.2004 at 08:04AM PDT, ID: 11041242

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.11.2004 at 08:08AM PDT, ID: 11041292

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.11.2004 at 09:03AM PDT, ID: 11041931

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.11.2004 at 01:45PM PDT, ID: 11044539

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.11.2004 at 11:15PM PDT, ID: 11047181

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.11.2004 at 11:44PM PDT, ID: 11047307

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2004 at 02:43AM PDT, ID: 11048226

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.12.2004 at 02:58AM PDT, ID: 11048311

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2004 at 05:11AM PDT, ID: 11049061

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.12.2004 at 05:12AM PDT, ID: 11049066

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.12.2004 at 05:13AM PDT, ID: 11049080

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2004 at 06:15AM PDT, ID: 11049537

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.12.2004 at 01:46PM PDT, ID: 11053785

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2004 at 12:19AM PDT, ID: 11056876

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2004 at 03:47AM PDT, ID: 11057760

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2004 at 05:18AM PDT, ID: 11058309

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Application Servers
Tags: bound
Sign Up Now!
Solution Provided By: vzilka
Participating Experts: 2
Solution Grade: C
 
 
[+][-]05.13.2004 at 11:23PM PDT, ID: 11065701

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.18.2005 at 09:59AM PST, ID: 13576848

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32