1 Reply Latest reply on May 20, 2002 6:52 AM by Richard

    javax.naming.NameNotFoundException interest not bound

    Albretch Newbie

      Hi,

      I have tried (for a second time) to follow the JBoss' tutorial on their online documentation:

      http://www.jboss.org/online-manual/HTML/index.html

      However I have stumbled exactly on the same spot twice :-) while running:

      >ant intro-interest-client

      , namely:

      . . .
      interest-client:
      [java] Got context
      [java] javax.naming.NameNotFoundException: interest not bound

      if I go to the management in http://localhost:8082 I don't see “interest/Interest” listed.

      ._ Here is my classpath:

      C:\>set CLASSPATH=
      C:\Apps\jdk1.3.1_03;C:\Apps\mm.mysql-2.0.13\mm.mysql-2.0.13-bin.jar;
      C:\Apps\JBoss-Tomcat\jboss-3.0.0RC1_tomcat-4.0.3\client\jboss-j2ee.jar;
      C:\Apps\JBoss-Tomcat\jboss-3.0.0RC1_tomcat-4.0.3\client\jbosssx-client.jar;
      C:\Apps\JBoss-Tomcat\jboss-3.0.0RC1_tomcat-4.0.3\client\jaas.jar;
      C:\Apps\JBoss-Tomcat\jboss-3.0.0RC1_tomcat-4.0.3\client\jndi.properties;
      C:\Apps\JBoss-Tomcat\jboss-3.0.0RC1_tomcat-4.0.3\client\jnp-client.jar;
      C:\Apps\JBoss-Tomcat\jboss-3.0.0RC1_tomcat-4.0.3\client\jboss-client.jar;
      C:\Apps\JBoss-Tomcat\jboss-3.0.0RC1_tomcat-4.0.3\catalina\common\lib\servlet.jar;.;











      ._ Here are my env. vars that relate to Java/JBoss

      >SET
      ANT_HOME=C:\Apps\jakarta-ant-1.4
      CATALINA_HOME=C:\Apps\Tomcat\jakarta-tomcat-4.0.3
      JAVA_HOME=C:\Apps\jdk1.3.1_03
      JBOSS_DIST=C:\Apps\JBoss-Tomcat\jboss-3.0.0RC1_tomcat-4.0.3
      JBOSS_HOME=C:\Apps\JBoss-Tomcat\jboss-3.0.0RC1_tomcat-4.0.3

      ._ the bloody error if I try to manually run the compiled InterestClient.class:

      >java InterestClient
      Exception in thread "main" java.lang.NoClassDefFoundError: InterestClient (wrong
      name: org/jboss/docs/interest/InterestClient)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.access$100(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClassInternal(Unknown Source)

      ._ but the class is definitely there

      >dir *.class
      . . .

      05/16/2002 03:44p 2,158 InterestClient.class
      05/16/2002 03:44p 1,250 InterestBean.class
      05/16/2002 03:44p 296 InterestHome.class
      05/16/2002 03:44p 246 Interest.class
      4 File(s) 3,950 bytes

      . . .