javax.naming.NameNotFoundException: interest not bound
mreyes Apr 29, 2002 9:40 AMFollowing the documentation at :
http://www.jboss.org/online-manual/HTML/index.html
I have just setup Jboss 3.0 with Tomcat 4.0.3
echo $JBOSS_DIST
/usr/local/jboss-3.0.0RC1_tomcat-4.0.3
I can start the jboss/tomcat servers without any problems and can access :
http://172.21.9.78:8082/ - jboss
http://172.21.9.78:8080/ - tomcat
All well so far.
When I attempt to run the interest example I can build/deploy without any problems :
**********************************************************
jboss@gandalf2:/org/jboss/examples/build$ java -cp $ANT_HOME/lib/ant.jar -Dant.home=ant org.apache.tools.ant.Main intro-interest-deploy
Buildfile: build.xml
validate-servlet:
validate-jboss:
fail_if_not_valid:
init:
[echo] Using JBoss directory=/usr/local/jboss-3.0.0RC1_tomcat-4.0.3
[echo] Using base classpath=/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/client/jboss-j2ee.jar:/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/client/jaas.jar:/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/client/jbosssx-client.jar:/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/client/jboss-client.jar:/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/client/jnp-client.jar:/usr/local/catalina/common/lib/servlet.jar
[echo] Using Source directory=/org/jboss/examples
[echo] Using Build directory=/org/jboss/examples/build-examples
intro-interest-deploy:
compile:
ejb-jar:
[delete] Deleting directory /org/jboss/examples/build-examples/interest/META-INF
[mkdir] Created dir: /org/jboss/examples/build-examples/interest/META-INF
[copy] Copying 1 file to /org/jboss/examples/build-examples/interest/META-INF
[copy] Copying 1 file to /org/jboss/examples/build-examples/interest/META-INF
[jar] Building jar: /org/jboss/examples/build-examples/interest/interest.jar
deploy-ejb-jar:
[copy] Copying 1 file to /usr/local/jboss-3.0.0RC1_tomcat-4.0.3/deploy
BUILD SUCCESSFUL
Total time: 1 second
jboss@gandalf2:/org/jboss/examples/build$
**********************************************************
But, when I try and run the client I get the error mentioned in the title of this thread :
**********************************************************
jboss@gandalf2:/org/jboss/examples/build$ java -cp $ANT_HOME/lib/ant.jar -Dant.home=ant org.apache.tools.ant.Main intro-interest-client
Buildfile: build.xml
validate-servlet:
validate-jboss:
fail_if_not_valid:
init:
[echo] Using JBoss directory=/usr/local/jboss-3.0.0RC1_tomcat-4.0.3
[echo] Using base classpath=/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/client/jboss-j2ee.jar:/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/client/jaas.jar:/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/client/jbosssx-client.jar:/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/client/jboss-client.jar:/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/client/jnp-client.jar:/usr/local/catalina/common/lib/servlet.jar
[echo] Using Source directory=/org/jboss/examples
[echo] Using Build directory=/org/jboss/examples/build-examples
intro-interest-client:
compile:
interest-client:
[java] Got context
[java] javax.naming.NameNotFoundException: interest not bound
BUILD SUCCESSFUL
Total time: 3 seconds
jboss@gandalf2:/org/jboss/examples/build$
**********************************************************
The Jboss console doesnt display any errors or anything for that matter.
Does anybody have any suggestions as to the possible cause of this, I have search through the forums here and found a few response to people that have had similar problems, but nothing suggested in previous threads seems to work here.