[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] Re: Tomcat on RAQ3



Hello,

Here are my suggestions for installing/running Tomcat on the Raq3:

--  Download the Tomcat 3.1 binaries (not source, unless you want it) from the jakarta.apache.org site.  Use Internet Explorer, as Netscape behaves badly for some reason.  I suggest you get the jakarta-tomcat.tar.gz file, ftp to your Raq3 to upload it, then gunzip and tar xvf it wherever you want it to live.

--  Make sure you have the Java SDK 1.2.2 or greater loaded on the Raq3.  Tomcat needs it, not just the JRE that comes installed.  You can download it from Sun'a Java site, http://www.javasoft.com

--  Make sure that the user that you are going to run Tomcat under (I use root) has the following settings:

CLASSPATH=[wherever you have SDK 1.2.2 installed]/lib/tools.jar
JAVA_HOME=[wherever you have SDK 1.2.2 installed]
TOMCAT_HOME=[wherever you have Tomcat 3.1 installed]

--  To run Tomcat, go to the directory it's loaded in and cd to the bin directory.  There you will see the startup.sh and shutdown.sh scripts.  Use these to start/stop Tomcat, i.e.

./startup.sh

You should now be able to access Tomcat by going to any domain hosted the Raq on port 8080, i.e. http://your.domain.com:8080

If you want Apache and Tomcat to work together, then I suggest you read the instructions in the Users Guide at

http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/uguide/tomcat_ug.html

There is only one gotcha that I can think of which is specific to the Raq for the integration to work: Tomcat expects the mod_jserv.so file to live in a libexec directory which is not standard on the raq.   You must create it under /etc/httpd, i.e.,
/etc/httpd/libexec/mod_jserv.so.

And you will need to restart the httpd server (not the whole machine) in order for the integration to go into effect.  If Apache isn't happy with the integration, it will say so when you execute the ./httpd restart command.  Otherwise, you should now be able to to access Tomcat via Apache, i.e. http://your.domain.com/examples/jsp.

Good Luck!

P.S.  I suggest you try Tomcat as a standalone first, the when that works, try the Apache/Tomcat integration, which is a little trickier...

Tristan Tamplin wrote:

> Hi.
>
> I got your name from the Cobalt Developers mailing list.  I'm about to attempt to install a Java Servlet Engine on our RAQ3, and I wondered if you could share any of your experiences installing Tomcat.  I've read that people have had difficulity with JSP on the RAQ in general, and our host sysop can't get it to run on any of his test machines, so I'm on my own.
>
> Anything would be helpful.  Thanks alot.
>
> --Tristan Tamplin
> JADE Digital
> Chicago, IL