Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat installation

 
Sam Bluesman
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been trying to install tomcat on my windows xp machine but whatever i try does not seem to work. I have searched google and people seem to have different methods of installing it and ive tried a few and none of them work.

Does anyone have a final soultion that I could use?
 
Annie Smith
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The final solution would depend on the final (current) problem you are facing. Would you care to describe it?
 
Sam Bluesman
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK well i did what the people at Apache told me to do on their web site to install it but i keep getting a 'This page could not be displayed' message when i type in the URL http://localhost:8080. I was windering if any body could tell me exactly what the the steps are that enabled them to do install it.

Cheers

Sorry for the first message. Was a bit abstract i now realise.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Tomcat forum...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's really not that much to it. Unpack the zip, make sure JAVA_HOME is set corectly, and you should be able to start Tomcat in order to view the examples.

What do the log files (if any) have to say?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'This page could not be displayed' message when i type in the URL http://localhost:8080.


Additional information needed: The version of Tomcat, how you installed it, the SDK version you have installed. How you are trying to start Tomcat, what happnes when you start Tomcat, are ANY log files being written to the logs directory of the tomcat installation. Does your Windows Task Manager show the Tomcat process running?

Bill
 
Sravan Kumar
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The latest version starts tomcat as a windows service, but that doesn't work in most systems unless the following two environment variables are set.

NAME | VALUE
-------------------------------------------------------
JAVA_HOME | <Java root dir> [C:\jdk1.4]
CATALINA_HOME | <Tomcat root dir> [C:\tomcat]

Once you set these two variables in your system, run tomcat server. It should start without any problems. It is ideal to change the windows service startup type to manual and disable it, so u startup the server when you want.

These are the only settings required to get the server started.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sravan Kumar:
The latest version starts tomcat as a windows service, but that doesn't work in most systems unless the following two environment variables are set.


Not true.
When you install Tomcat as a windows service, it doesn't use environmental variables. It uses registry settings.

Look through the files under {your tomcat install dir}\logs
and see if there are any error messages there.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may also glean some more information by either using FireFox or by changing the settings in MSIE.

In particular the "Show Friendly HTTP Errors" setting (under the advanced tab) should be shut off. When it's on, MSIE will hide the true error message coming from the server and, instead, show you it's boiler plate error message which is prettier but completely uninformative.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic