Matt Preston wrote:

> Hi,
> 
> I have just installed Tomcat 4.0.4 on Mac OSX (10.1) and have had a hell of
> a time.  Firstly I had the problem with not using gnutar (documented on this
> list), but that was relatively simple to work around.
> 
> The big problem was with the classloaders.  It proved very difficult for me
> to convince Tomcat that it's classes were actually present.  When starting
> up the application I got an exception about javax.http.HttpSession not being
> found.  I tried many ways to get the servlet.jar into the classpath (which
> it already was anyway) without success.
> 
> In the end the only way that I could get Tomcat to start up was to copy all
> of the jars (common/lib & server/lib & bootstrap.jar) into
> 
> /System/Framework/Java/Extensions
> 
> Then everything works fine, except that the tomcat jars are now in the
> extensions directory, so I can't run another version of tomcat on this
> machine at the same time.  Obviously this is not the best or even right way
> of getting tomcat to run.  I felt very dirty doing this :)  Has anyone else
> faced similar problems with OSX and got a solution?  I am very new to OSX
> and this seems like pretty weird behaviour to me, I'm sure that I am doing
> something wrong, but I don't know what.
> 


That's not the way to do it! :-)
All that was neccessary for me was to set two environment variables:
JAVA_HOME = /usr
CATALINA_HOME = <path to tomcat>

In my case, I have multiple tomcat versions installed, and I set a 
symbolic link to the one I want to use in /usr/local/tomcat. Hence, I
use
CATALINA_HOME = /usr/local/tomcat

The only stuff I have in the standard extensions is some security & 
encryption stuff - eq JSEE.

Hope this helps,

Martin



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to