aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Problem in Tomcat installation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Problem in Tomcat installation" Watch "Problem in Tomcat installation" New topic
Author

Problem in Tomcat installation

Mannu hak
Ranch Hand

Joined: Apr 26, 2005
Posts: 50
I have installed the proper version of jdk and tomcat(JDK 1.4.2_06 and Tomcat 5.0.28)

Now what should be my next step.

- Setting the paths? - HOW?

and then next step....???

Thanks...


SCJP 1.4, SCWCD 1.4, SCBCD <br />IBM 285
Mat Williams
Ranch Hand

Joined: Jul 20, 2005
Posts: 215
Hi,

What paths do you need to set?
What are the specific problems you are having?

Mat
Mannu hak
Ranch Hand

Joined: Apr 26, 2005
Posts: 50
Just read in HFSJ that JAVA_HOME and TOMCAT_HOME environment variables need to set.

Also it HFSJ says that to test Tomcat point your browser to http://localhost:8080/ and Tomcat welcome page should come. Well i dont get that.
Mat Williams
Ranch Hand

Joined: Jul 20, 2005
Posts: 215
Hi,

TOMCAT_HOME and JAVA_HOME are set by default when you install Tomcat. At least I am 99% sure they do.

Are you installing Tomcat on a windows box? Did you set Tomcat up as a service? did you tell tomcat to run on a port other than 8080?

Mat
Nicky Eng
Ranch Hand

Joined: Mar 26, 2005
Posts: 378
hi mat, as you said above, how to set Tomcat up as Service??? i dont understand...


From NickyEng
Diploma in Computer Studies
SCJP 1.4
SCWCD 1.4
Formula 1 app by Maxis (Playbook)
Mannu hak
Ranch Hand

Joined: Apr 26, 2005
Posts: 50
Yes, I am installing Tomcat on windows.

How do i set Tomcat up as a service??

Also i think while installing it takes 8080 as a default port. Do i need to change that? Why and how?

Thanks for you help, Mat!
Mannu hak
Ranch Hand

Joined: Apr 26, 2005
Posts: 50
Can anyone please help with my problem above.

Thanks.....
Nicky Eng
Ranch Hand

Joined: Mar 26, 2005
Posts: 378
hi....

about the JAVA_HOME and TOMCAT_HOME variables, i still not sure.

hi Mannu hak, i think i figured out why Mat Williams said that set it as Service Manager.....after all installation, there is a small windows box containing the downloading progress bar and few words.....

and then all done, then it will ask us to Start Tomcat and Read Me file with the checkboxes....oh....wait...so does it means that we install Tomcat, and set it as service manager(done automatically as long as we install tomcat), after all, the JAVA_HOME and TOMCAT_HOME variables are done by default ???

maybe Mat Williams was explaining that to us???

hm...still not sure. but why no one reply us with the question of "how to set JAVA_HOME and TOMCAT_HOME variables? ".....anyone please?
Mannu hak
Ranch Hand

Joined: Apr 26, 2005
Posts: 50
Mat was correct when he said that we don't need to setup the paths.

Nicky - Just go the Control panel ->Administrative Tools-> Services.

You will see the Apache Tomcat service there, you can right click and start the service.

It worked for me. After that you should able to success page by pointing your browser to http://localhost:8080/.

Thanks
Mat Williams
Ranch Hand

Joined: Jul 20, 2005
Posts: 215
Hi all,

OK just install Tomcat from the exe file, that will, I believe, do the following (I should add that I have not set up Tomcat 5.5.x so I am guessing there but I would suggest that the Apache team have not taken a backwards step), set it up as a service by default, and set the environment variables by default. So all you should have to do is double click the exe and accept all the default, the rest should be done for you. don't change any of the defaults unless you really really need to, until you are familiar with what is happening.

Mannu hak - what do you get when you point your browser at http://localhost:8080


Mat
Mannu hak
Ranch Hand

Joined: Apr 26, 2005
Posts: 50
Mat, I get the homepage saying the following -

If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!

so i guess i am on the right track
Mat Williams
Ranch Hand

Joined: Jul 20, 2005
Posts: 215
Hi,

Good Stuff well done.
It is hard when its all new and confusing.

Mat
Nicky Eng
Ranch Hand

Joined: Mar 26, 2005
Posts: 378
Originally posted by Mannu hak:
Mat, I get the homepage saying the following -

If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!

so i guess i am on the right track



yes yes....the first time i install tomcat, i could see the page when i pointed to http://localhost:8080/

but then after saw you guys posted about JAVA_HOME etc....makes me worry, so i just uninstall tomcat and try again...haha....eventually everything was fine.....

thanks to Mannu Hak and Mat Williams...thanks guys..
Mannu hak
Ranch Hand

Joined: Apr 26, 2005
Posts: 50
Glad to hear that it worked for you.....

and sorry for creating the confusion..I am still learning the ropes...
 
 
subject: Problem in Tomcat installation