tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Harris <rhar...@usapoolsupply.com>
Subject kaffe and tomcat 5.5.4
Date Mon, 03 Jan 2005 04:57:27 GMT
I'm running tomcat 5.54 on the "free" kaffe vm instead of Sun's JDK.
When I start tomcat with the startup.sh script as root, everything runs
perfectly. However I'm having trouble launching the process with JSVC.
Does anybody know if JSVC can be made to work with java VMs other than
SUN's?
   
Jsvc debug output says it cannot find the file  jvm.cfg, and also the
actual vm file library names from the sun jdk appear to be hard-coded
into the jsvc source because they cannot be found in the kaffe vm as
well.
  
If anyone has any helpful information, I would be most grateful.
It is disappointing that Tomcat 5.5.4 runs perfectly on Kaffe only to be
stopped by limitations in the commons-daemon...  Perhaps there is
another way to run tomcat 5.54 on port 80 as an unprivileged user in
linux?

thank you, Ryan Harris








>                              From: 
> Ryan Harris
> <rharris@usapoolsupply.com>
>                                To: 
> debian-java@lists.debian.org
>                           Subject: 
> Tomcat 5.5.4 works with kaffe
>                              Date: 
> Fri, 31 Dec 2004 11:59:02 -0600
> 
> I installed and am running apache tomcat 5.5.4 with Kaffe instead of
> Sun's Non-Free Java 1.5. My Google searching found a few tips on how
> to
> get 5.0.27 working with kaffe, and it worked on 5.5.4 also.
> 
> 
> The only additional libraries I had to install were available in the
> debian unstable packages:
>         
>         libjessie-java, libgnucrypto-java, and kjc
> 
> I also installed the compatibility libraries which include the JMX.JAR
> from the apache tomcat binaries distribution
> (jakarta-tomcat-5.5.4-compat.tar.gz).
> 
> Next I added the following environment variables to the file
> bin/catalina.sh:
> 
>         JAVA_HOME=/usr/lib/kaffe
> 
>         #Change the compiler for jsps and give kaffe lots of memory
>         # i don't know how much is really needed, but I set it to 500
> Megs, 
>         #the usual default for kaffe is 64M)
> 
>         JAVA_OPTS="-Dbuild.compiler=kjc -Xmx500M"
>         
>         #the gnucrypto and libjessie reside in this directory
>         JSSE_HOME=/usr/share/java
>         
>         export JAVA_HOME JAVA_OPTS JSSE_HOME
> 
> And then I modified the following lines (near line 100-110) in
> bin/catalina.sh
> 
>         # Add on extra jar files to CLASSPATH
>         if [ -n "$JSSE_HOME" ]; then
> 
>                 #Added these lines to replace 
>                 #the Sun Java Security stuff
> 
> 
> CLASSPATH="$CLASSPATH":"$JSSE_HOME"/gnu-crypto.jar:"$JSSE_HOME"/jsse.jar:"$JSSE_HOME"/javax-crypto.jar
>                 CLASSPATH="$CLASSPATH":"$JSSE_HOME"/javax-security.jar
> 
> 
>                 #I Commented out this line.  Yuck. 
> 
> #CLASSPATH="$CLASSPATH":"$JSSE_HOME"/lib/jcert.jar:"$JSSE_HOME"/lib/jnet.jar:"$JSSE_HOME"/lib/jsse.jar
> 
>         fi
> 
>                 #add this for the jmx dependencies from the
> compatibility package
>                 CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/jmx.jar
>                 
> 
> CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/bootstrap.jar:"$CATALINA_HOME"/bin/commons-logging-api.jar
> 
> 
> 
> 
> 
> Last I had to create the log folder and the temp folder in
> the tomcat directory because it wouldn't do it on its own...
> I did something like this....
> 
> mkdir /var/log/tomcat5.5.4
> 
> ln -s /var/log/tomcat5.5.4 /usr/local/share/tomcat5.5.4/logs
> 
> mkdir /usr/local/share/tomcat5.5.4/temp
> 
> 
> 
> Then all I had to do was execute the startup.sh script in the bin
> directory...   and it worked
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message