You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Matt Preston <ma...@knowledgeview.co.uk> on 2002/07/09 12:07:06 UTC

Mac OSX

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.

Thanks,
Matt


---
Not dirty!
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/2002



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Mac OSX

Posted by Martin Jacobson <ma...@libero.it>.
Matt Preston wrote:

>>
>>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
>>
> 
> Thanks,
> 
> I have the two environment variables set as
> 
> CATALINA_HOME=/knowledgeview/jakarta-tomcat-4.0.4
> JAVA_HOME=/usr
> 
> but the classes are still not being loaded unless I put all the jars into
> the standard extensions directory.  Could this be a problem with the
> privileges of the user that I am logged in as? Although I am using an
> administrator account...
> 
> Any ideas?
> 
> Thanks,
> Matt


The permissions are OK? Tomcat (ie the user that runs it), must have 
read permission on all files, and also execute permission on all 
directories under it - being an administrator doesn't automatically 
solve the problem!

Otherwise, all I can suggest is that you make sure you are up-to-date 
with your OS X version (10.1.5) & JDK (1.3.1).

Hope this helps,

Martin





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Mac OSX

Posted by Matt Preston <ma...@knowledgeview.co.uk>.
>
>
>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

Thanks,

I have the two environment variables set as

CATALINA_HOME=/knowledgeview/jakarta-tomcat-4.0.4
JAVA_HOME=/usr

but the classes are still not being loaded unless I put all the jars into
the standard extensions directory.  Could this be a problem with the
privileges of the user that I am logged in as? Although I am using an
administrator account...

Any ideas?

Thanks,
Matt

---
Not dirty!
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/2002



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Mac OSX

Posted by Christian Mittendorf <ch...@freenet.de>.
On Dienstag, Juli 9, 2002, at 01:31  Uhr, Martin Jacobson wrote:

> Matt Preston wrote:
>
>> 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

[...]

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

In the case of local Java extensions on Mac OS X I think

/Library/Java/Extensions

is the better solution.

cu
cm


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Mac OSX

Posted by Martin Jacobson <ma...@libero.it>.
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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>