Apple bug report
rossmills Dec 19, 2002 2:37 PMHi,
After banging my head against the wall for weeks trying to get JBoss to run on Mac OS X 10.2.2 with no success. I cannot get versions 3.0.3 or newer to run on OS X. Version 3.0.2 or older have proven to have too many bugs. I've posted the following bug report to Apple.
(I haven't gotten any responses from these forums. This is my last ditch attempt at finding a way to get JBoss to run on OS X. I'm currently developing an app for a well known institution. I'd really like to see JBoss succeed, but if I cannot make it work, I'll have no choice but to abandon it.)
---
PROBLEM...
Unable to run JBoss versions 3.0.3 or newer on the Apple OS X server 10.2.2 using Java 1.4.1. JBoss reports the following error...
java.lang.NoClassDefFoundError: javax/servlet/ServletException
STEPS TO DUPLICATE PROBLEM...
(1) Set a JAVA_HOME environment variable
setenv JAVA_HOME /System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Home
(2) Create a /usr/local/jboss directory...
(3) Download any one of the following versions of JBoss from www.jboss.org and place it in the /usr/local/jboss directory...
jboss-3.2.0beta2_tomcat-4.1.12.zip
jboss-3.0.4_tomcat-4.1.12.zip
jboss-3.0.3_tomcat-4.1.12.zip
(4) unzip the file with the following command...
jar -xvf jboss-3.2.0beta2_tomcat-4.1.12.zip
(5) goto to the JBoss bin directory
cd jboss-3.2.0beta2_tomcat-4.1.12/bin
(6) make the scripts executable
chmod a+x *.sh
(7) you will need to make the following changes to run.sh
replace JAVAC_JAR="$JAVA_HOME/lib/tools.jar"
with JAVAC_JAR="$JAVA_HOME/../Classes/classes.jar"
(8) start jboss
./run.sh
(9) lots of messages will be generated to the screen. When the messages stop, hit CTRL-C to stop JBoss.
(10) view the log file
vi /usr/local/jboss/jboss-3.2.0beta2_tomcat-4.1.12/server/default/log/server.log
(11) do a search on ERROR
/ERROR
(12) You should see the following error message...
java.lang.NoClassDefFoundError: javax/servlet/ServletException
Notes:
(a) If you install JBoss on Windows, you will not encounter this problem
(b) We have been searching the jboss forums and the web for possible solutions. No solution could be found. We suspect that there is problem with classloading on the OS X server.
(c) JBoss is open-source and the source code is available from www.jboss.org
(d) javax.servlet.ServletException can be found in /usr/local/jboss/jboss-3.2.0beta2_tomcat-4.1.12/tomcat-4.1.x/common/lib/servlet.jar.
(e) if you look in the server.log file before the error, you will see that servlet.jar was loaded
(f) JBoss versions 3.0.2 and earlier do not have this problem on the OS X server.
(g) If you install JBoss that uses Jetty instead of Tomcat a similar problem will occur, but only after a J2EE application has been deployed to it. (I would be happy to provide you with the application and instructions on how to deploy