You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ryan Harris <rh...@usapoolsupply.com> on 2005/01/03 05:57:27 UTC

kaffe and tomcat 5.5.4

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
> <rh...@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


Re: kaffe and tomcat 5.5.4

Posted by David Goodenough <da...@btconnect.com>.
<snip/>
> 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?

You could use iptables to redirect the port

David

>
> thank you, Ryan Harris
>
<snip/>

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


Re: kaffe and tomcat 5.5.4

Posted by David Goodenough <da...@btconnect.com>.
On Monday 03 January 2005 04:57, Ryan Harris wrote:
> 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?
>
As an aside, given that Tomcat now does not use the Sun javac compiler
but instead the Eclipse compiler (which is open source) why did you feel
the need to replace the compiler with the kaffe one?  Its a useful exercise
to know it can be done, but I am not quite sure why you wanted to do it?

David

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


Re: kaffe and tomcat 5.5.4

Posted by "Trond G. Ziarkowski" <tr...@gep-as.com>.
Hi,

>Perhaps there is
>another way to run tomcat 5.54 on port 80 as an unprivileged user in
>linux?
>
>thank you, Ryan Harris
>  
>

Try wrapper.sourceforge.net.

Trond


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