3 Replies Latest reply on Mar 21, 2003 7:16 AM by Peter Doornbosch

    URLCLassLoader problem ??

    coolseb Newbie

      Hi everibody,

      I have made a simple stateless session bean.
      I have deployed it in jboss with a jar:
      * --META-INF: jboss.xml and ejb-jar.xml
      * all the class files of the EJB.

      When I try to run the client (a java stand-alone application) , I always get:
      Exception in thread "main" java.lang.NoClassDefFoundError: CalcClient (wrong name: fr/bean/session/stateless/CalcClient)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)

      The client has in his Classpath:
      * all the jar of the jboss client
      * the jndi.properties file
      * the 2 interfaces of the EJB used by the Client

      Could anyone help me?