1 Reply Latest reply on Sep 5, 2002 1:52 AM by Sudhi

    classpath problem??

    sumin Newbie

      I installed JBoss-3.0.2 and tried to deploy some ejb jars that are currently working well on WebLogic6.1.

      What I have done are just as follows;

      I just put ejb jars into
      JBOSS_DIST\server\default\deploy,

      and put some extra jars(not ejb) into
      JBOSS_DIST\server\default\lib\ext

      and add some folders to JBOSS_CLASSPATH that is in run.bat for my resource files

      During my first try to deploy aboves, JBoss logged NoClassDefFoundException for some classes that are in a jar file that I put into JBOSS_DIST\server\default\lib\ext.

      So I add the jar file to JBOSS_CLASSPATH and tried again and got below error messages.

      What's wrong with me? I tried to read docs but could not find good docs for version 3.0.2.

      Can anyone tell me How to shoot the troubles or where to find docs for the version?

      Tnanks for your reading.

      ------------------------------------------------

      12:46:01,630 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
      -3.0.2/server/default/deploy/settlement.jar
      12:46:01,770 ERROR [EJBDeployer] Verfiy failed
      java.lang.NoClassDefFoundError: javax/ejb/SessionBean
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
      1)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
      at org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClass
      Loader.java:234)
      at org.jboss.mx.loading.UnifiedLoaderRepository2.loadClassFromClassLoade
      r(UnifiedLoaderRepository2.java:228)
      at org.jboss.mx.loading.UnifiedLoaderRepository2.loadClass(UnifiedLoader
      Repository2.java:137)
      at org.jboss.mx.loading.UnifiedClassLoader.loadClass(UnifiedClassLoader.
      java:283)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
      1)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at org.jboss.mx.loading.UnifiedClassLoader.findClass(UnifiedClassLoader.
      java:226)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
      at org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClass
      Loader.java:234)
      at org.jboss.mx.loading.UnifiedLoaderRepository2.loadClassFromClassLoade
      r(UnifiedLoaderRepository2.java:228)
      at org.jboss.mx.loading.UnifiedLoaderRepository2.loadClass(UnifiedLoader
      Repository2.java:137)
      at org.jboss.mx.loading.UnifiedClassLoader2.loadClass(UnifiedClassLoader
      2.java:146)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
      at org.jboss.verifier.strategy.EJBVerifier11.verifySessionBean(EJBVerifi
      er11.java:507)
      at org.jboss.verifier.strategy.EJBVerifier11.checkSession(EJBVerifier11.
      java:97)
      at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:133)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:343)


        • 1. Re: classpath problem??
          Sudhi Newbie

          Well here are the steps.

          1. Create a directory ext under server/default/lib
          add the classpath extension in jboss-service.xml
          *u already have an entry for lib.(first line in jboss-service.xml) add another one for lib/ext

          U need to generate jboss.xml or use foe-deployer for deploying weblogic. Provided u have not used any weblogic native other than the deployment descriptors.
          for foe deployer, build the varia package.

          If u have jboss specific descriptors, then build the jar and copt in deploy directory.
          the jars under client is used for client side
          jars under lib (same directory level as server) should be in class path for compilation.

          if u need help generating jboss deployment descriptors
          send me a mail @ sudhi_be@yahoo.com
          I can send u details...