File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes javax.naming.NameNotFoundException: cust not bound Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "javax.naming.NameNotFoundException: cust not bound" Watch "javax.naming.NameNotFoundException: cust not bound" New topic

javax.naming.NameNotFoundException: cust not bound

yousuf alam

Joined: Apr 22, 2008
Posts: 9
Hi Team,

I am new For ejb and Jboss server.I am trying to run CMP bean using datasource using Jboss server 5.1.0 GA.But its throwing "javax.naming.NameNotFoundException: cust not bound" Error
Since i am facing this issue for the last two days.please help me asap..
This is my servlet program to call the JNDI name :

Context ctx = new InitialContext(props);
custhome home = (custhome) ctx.lookup("java:comp/env/cust");

This is my jboss.xml,
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 5.0//EN" "">
and ejb-jar.xml as follows,
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "">

yousuf alam.A
I agree. Here's the link:
subject: javax.naming.NameNotFoundException: cust not bound
It's not a secret anymore!