1 Reply Latest reply on Nov 6, 2002 2:02 PM by Adrian Brock

    javax.ejb.SessionBean class not found

    Phil Lewis Newbie

      I have just done a straight install of JBoss 3.0.4, and am trying to deplay one of ny EJB's that deplaoys fine under JBoss 2.3.4.
      When attempting this, I get:
      15:16:49,505 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss-3.0.4/server/default/deploy/addknowledg
      15:16:49,735 ERROR [EJBDeployer] Verfiy failed
      java.lang.NoClassDefFoundError: javax/ejb/SessionBean
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:190)

      I am have tried starting with run, run -c default, and run -c all.

      jboss-j2ee.jar is present in server/default/lib and server/all/lib, and seems to contain this allegedly missing class.

      What am I doing wrong?