-
1. Re: NoClassDefFoundError on deployment?
jonlee Jun 26, 2003 1:56 AM (in response to toroisarockstar)Try having a blank classpath before calling the JBoss run.batr or run.sh. JBoss only needs JAVA_HOME to be set to the root directory of your JDK installation. The run script takes care of everything else necessary for the JBoss container environment. If you need to modify the run script so the first thing you do is locally set the CLASSPATH environment variable to blank.
For trouble free operation, if running in Windows, make sure that your JDK and JBoss are not in a directory path that contains spaces in it. It isn't your current issue, but something to help you avoid any other problems.
JBoss already has the J2EE support libraries in jboss-j2ee.jar and your inclusion a j2ee.jar in the system classpath may upset the JBoss runtime environment.
Hope it helps. -
2. Re: NoClassDefFoundError on deployment?
toroisarockstar Jun 26, 2003 10:07 AM (in response to toroisarockstar)Thanks, that fixed the problem. I'm guessing its b/c jboss-j2ee.jar and j2ee.jar have redundent classes? Anyhow NOW i get the following error:
09:50:15,020 WARN [verifier] EJB spec violation:
Bean : MobileFastPin
Section: 22.2
Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements t
e enterprise bean's business methods in the <ejb-class> element.
Info : Class not found: com.test.mobile.ejb.fastpin.MobileFastPinEJB
09:50:15,070 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-3.2.1/server/default/d
ploy/management/ejb-management.jar
The class clearly exists in the jar and this deploys fine on WebLogic 6.x. Anyone ever run into anything similar?
Thanks in Advance -
3. Re: NoClassDefFoundError on deployment?
juhalindfors Jun 28, 2003 8:19 AM (in response to toroisarockstar)It is still not finding the correct class so you have either a problem in your packaging or in your ejb-jar.xml file. Post the content of the jar and your deployment descriptor.