Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.naming.NameNotFoundException: cust not bound  RSS feed

yousuf alam
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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" "">

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!