• 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
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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...
 
The airline is called "Virgin"? Don't you want a plane to go all the way? This tiny ad will go all the way:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic