-
1. Re: java.lang.NoClassDefFoundError: org/jboss/naming/Util wi
harlequinn May 30, 2003 4:34 AM (in response to harlequinn)Addition: This happens with JBoss-3.2.1&Tomcat-4.1.24 combination, haven't really tried this with Jetty. It seems to be some kind of classpath issue (Since org/jboss/naming/Util is in jboss.jar, under the server lib directory, which should automatically be in).
So it works when I run on command prompt, it gives the above error when I run it with JavaService using the information found from these forums. The server boots up in both cases, but in the latter case I get that error in the server out logs, and several other errors follow up. Just to try it out I did add the jboss.jar to classpath of javaservice, and this time server didn't even start, but started giving me odd error about missing classes in strange packages.
Any ideas? -
2. Re: java.lang.NoClassDefFoundError: org/jboss/naming/Util wi
radgon Jul 25, 2003 8:46 AM (in response to harlequinn)Hi harlequinn,
I had a similar error while trying to get lomboz to run with jboss3.2.1 - drove me crazy till vashistvishal (THANKS!) posted the link to the tutorial
http://www.tusc.com.au/news_events/news_details.php?id=34
there you will find a file called jboss321all.server which has a section where the libraries for the "inside-calling" (which should be the same as calling java -jar run.jar - omitting the run.sh or .bat script) of jboss from eclipse are listed:
JDK_TOOLS
${classPathVariableName}/bin/run.jar
${classPathVariableName}/bin/shutdown.jar
${classPathVariableName}/client/jboss-j2ee.jar
${classPathVariableName}/server/all/lib/javax.servlet.jar
${classPathVariableName}/lib/concurrent.jar
${classPathVariableName}/lib/gnu-regexp.jar
${classPathVariableName}/lib/jboss-system.jar
${classPathVariableName}/lib/commons-httpclient.jar
${classPathVariableName}/lib/getopt.jar
${classPathVariableName}/lib/jboss-boot.jar
${classPathVariableName}/lib/jboss-common.jar
${classPathVariableName}/lib/jboss-jmx.jar
${classPathVariableName}/lib/log4j-boot.jar
${classPathVariableName}/lib/jdom.jar
${classPathVariableName}/lib/webdavlib.jar
${classPathVariableName}/lib/xercesImpl.jar
${classPathVariableName}/lib/xml-apis.jar
${classPathVariableName}/server/all/lib/jboss.jar
${classPathVariableName}/server/all/lib/jsse.jar
${classPathVariableName}/server/all/lib/jboss-jaas.jar
${classPathVariableName}/server/all/lib/jboss-j2ee.jar
${classPathVariableName}/server/all/lib/jts.jar
${classPathVariableName}/server/all/lib/jsse.jar
${classPathVariableName}/server/all/lib/jboss-management.jar
${classPathVariableName}/server/all/lib/jbossmqha.jar
${classPathVariableName}/server/all/lib/jbossmq.jar
${classPathVariableName}/server/all/lib/jbosssx.jar
${classPathVariableName}/server/all/lib/jpl-pattern.jar
${classPathVariableName}/server/all/lib/jpl-util.jar
${classPathVariableName}/server/all/lib/jbossha.jar
${classPathVariableName}/server/all/lib/jnpserver.jar
${classPathVariableName}/server/all/lib/javagroups-2.0.jar
${classPathVariableName}/server/all/lib/jboss-transaction.jar
${classPathVariableName}/server/all/lib/bcel.jar
${classPathVariableName}/server/all/lib/jboss-jsr77.jar
${classPathVariableName}/server/all/lib/log4j.jar
${classPathVariableName}/server/all/lib/hsqldb.jar
${classPathVariableName}/server/all/lib/hsqldb-plugin.jar
as you can see, there are much more than you included.
Hopefully this will help,
cu,
Radgon -
3. Re: java.lang.NoClassDefFoundError: org/jboss/naming/Util wi
vashistvishal Jul 26, 2003 5:53 AM (in response to harlequinn)Have a look at this site and this might help you in yr learning curve.
www.tusc.com.au/news_events/news_details.php?id=34
Also just to mention that this site has more than 'jboss321all.server' file, I am sure you guys out there will love this.
Check it out. -
4. Re: java.lang.NoClassDefFoundError: org/jboss/naming/Util wi
radgon Dec 9, 2003 1:13 PM (in response to harlequinn)
...that's definitely true - there is much more to the tutorial than the mentioned file (but it helped a lot of people I assume). It's one of the best tutorials I have seen and what's very important: it's mostly using the up-to-date versions of all tools - just great and very detailed.
Thanks a lot for this!