File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Java Products and Servers and the fly likes JNDI Name not found error in SUN ONE SERVER Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "JNDI Name not found error in SUN ONE SERVER " Watch "JNDI Name not found error in SUN ONE SERVER " New topic
Author

JNDI Name not found error in SUN ONE SERVER

babujava jayaraman
Greenhorn

Joined: Apr 28, 2007
Posts: 5
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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNDI Name not found error in SUN ONE SERVER