• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Problems with lookup

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I�m just started with JBoss and as my first test, i put an .EAR with an test Servlet and a EJB
, the server acepted the application and i could acess the Servlet, but when it try to lookup the EJB, the lookup method() throws an NamingException
I�m calling the method with no arguments, because it works at the reference implamentation from SUN ( The EAR. file was genarated by the deploytool from SUN�s J2EE ).
How can i work around it ?
Is there any eclipse plug-in to make the deployment to JBoss ? ( not JBosside, �cause this does not deploy , or i could not find the tool ...)
Thanks in advance.
Claudio Gualberto.
 
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


JBoss provides an Mnean that is configured in the root configuration file to view the ojects bound in its JNDI namespace. The MBean definition is shown below:
<mbean code="org.jboss.naming.JNDIView" name="jboss:service=JNDIView">
If you access the MBean from JMX console and invoke the list() method, it will list all the contexts and the objects in the JNDI namespace.
This page is a very usefull in troubleshhoting problems that occur in performing naming and lookup operations...


Can this help?
 
Claudio Gualberto
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah, this helped.
But this tag is already there, and when i executed the JNDIView�s list method, my application was there but it�s properties seems different from the others. I think the reason is why it�s deployment files was generated by the Deploytool ( SUNs reference implementation ).
Now i�m trying to generate the deploy files using ANT and XDoclet, but it�s not working.
Could you tell me how to do it, or where i can
get info about ( some JBoss deployment tutorial using anything )
Thanks
Claudio Gualberto.
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What are you looking for? An ejb?
If you're doing an ejb lookup, you should specify the ejb's jndi name in the lookup method call.
e.g.: ctx.lookup("ejb/myBean");
Regards,
 
What are you saying? I thought you said that Santa gave you that. And this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic