Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

JNDI Name not found error in SUN ONE SERVER

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Iam new to Sun One Application Server 8.1, I try to deploy Local EJB in Sun one Server, its deployed successfully, but it thow error duing jndi look up time.


ejb-jar.xml
===========

<?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">;
<ejb-jar id="ejb-jar_ID">
<description>ejb-jar.xml for LocalizationDepwb component</description>
<display-name>rvwlocalandRemoteEJB</display-name>
<enterprise-beans>
<session>
<display-name>Common RVW EJB</display-name>
<ejb-name>com.ramco.ejb.RVWEJBBean</ejb-name>
<home>com.ramco.ejb.RVWEJBHome</home>
<remote>com.ramco.ejb.RVWEJBRemote</remote>
<ejb-class>com.ramco.ejb.RVWEJBBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>

<ejb-local-ref>
<ejb-ref-name>ejb/RVWEJBLocal</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.ramco.local.ejb.RVWEJBHomeLocal</local-home>
<local>com.ramco.local.ejb.RVWEJBRemoteLocal</local>
<ejb-link>RVWEJBLocal</ejb-link>
</ejb-local-ref>
</session>
<session>
<ejb-name>RVWEJBLocal</ejb-name>
<local-home>com.ramco.local.ejb.RVWEJBHomeLocal</local-home>
<local>com.ramco.local.ejb.RVWEJBRemoteLocal</local>
<ejb-class>com.ramco.local.ejb.RVWEJBBeanLocal</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>


sun-ejb-jar.xml
===============


<?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 EJB 2.1//EN" "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_2_1-1.dtd">;
<sun-ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee">
<enterprise-beans>
<ejb>
<ejb-name>RVWEJB</ejb-name>
<jndi-name>com.ramco.ejb.remote</jndi-name>
</ejb>
</enterprise-beans>
</sun-ejb-jar>

error
=======
javax.naming.NameNotFoundException

Thanks lot...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic