• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

How to install tomcat 6 in Mac ?

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I want to install apache tomcat 6 - last version - in my Mac system, I have one on Windows but I never like Windows after trying Macintosh!

I looked for any article learn me how to do this, but all methods to install failed !! I don't know really where is the problem !


please If any one know how to install it step by step, I will appreciate his help ..

and I am using Tiger not Leopard
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Download the .tar.gz file (not the .zip or the .exe)

Upack it in the folder of your choice. (Most Mac people unpack it into a folder within the /Library folder).

Start it!

Yes, it's that simple.
 
Eman Abdo
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Bear for your quick answer

I did it, but it doesn't start !





Really, I don't know where is the problem exactly !!
 
Bear Bibeault
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your JRE_HOME variable looks suspicious. Mine startup display is:


JRE_HOME is (I think) derived from what you set JAVA_HOME to in your .bash_profile.

You may want to check that.

P.S. I know I'm only running Tomcat 5.5, but things should be the same.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On a Unix system, Tomcat first looks for a JRE_HOME setting (a full JDK is no longer needed with Tomcat). If it doesn't find one, then it looks for a JAVA_HOME setting. Either would point the root directory of your Java installation.


From tomcat/bin/setclasspath.sh:

[ February 02, 2008: Message edited by: Ben Souther ]
 
Eman Abdo
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bear,
I configured JAVA_HOME as what you worte , but tomcat still sleep !!
Thank you at all, I appreciate your help so much

Ben,
Thank you for your explaination, it added to me the new ..

--------

Now, I have to change tomcat to another free server, which one do you see it is better ?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Eman Abdo:
Now, I have to change tomcat to another free server, which one do you see it is better ?



Why do you need to change to another free server?

In my opinion there isn't a better free one out there.
Some other ones are Jetty and Resin.
 
Eman Abdo
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ben, because I don't know why does tomcat hate me !
In fact, I am familiar with tomcat because I use it in Windows
I kept trying to run it in Mac OS for 2 weeks !! :roll:

If you or anyone has any suggestion or expectation about the reason of my problem, please tell me ..

Thanks to all
[ February 03, 2008: Message edited by: Eman Abdo ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If this were my issue, I would start with 4 things.

1.) Verify that the JAVA_HOME variable is correct.
I would do this by trying to run Java with it:

I you see "Command not found" or anything other than the Java Usage mesage, then you know it's incorrect.


2.) I would look at the logs in tomcat/logs to see what if anything is going wrong.

3.) I would verify that the user under which Tomcat is running has sufficient privileges to run and write to the necessary directories (work and logs).

4.) I would check to see if Tomcat really isn't running.
Did you run ps to see if there is a process for it?
Did you run netstat to see if it's bound to the expected port?
Did you try pinging localhost to insure that it's set up on your machine and pointing to 127.0.0.1?

I would do all of these things before I would start looking for another container.
 
Bear Bibeault
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

1.) Verify that the JAVA_HOME variable is correct.

Indeed. If JAVA_HOME is not correct, you won't have any better luck with any other container. This is not a Tomcat issue, but an issue with your getting your environment set up correctly.
 
Eman Abdo
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

What a nice day !

The problem was solved..
just I replaced tomcat by another one from another site - not apache site..
and it runs as simple as what Bear said !

I don't know what is the problem exactly .. but I noticed something, the library of the package from apache site doesn't contain jar files for servlet and jsp and other ones !
This is something not normal !

Thank you Bear, thank you Ben...
You are great helpful men
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could it be that it was the source version of Tomcat, that you had first downloaded??

Or could it be that not all *.jar and *.sh had execute privilege??
 
Oh sure, it's a tiny ad, but under the right circumstances, it gets bigger.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic