• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Welcome page not showing

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I downloaded the .zip version of tomcat from apache website. copy them to my "program files" folder. I started tomcat by clicking the "startup.bat" file under the "/bin" directory under tomcat home directory. Windows informed my that tomcat server started up in 125 ms. My tomcat ver. is 5.5.

When I type "http://localhost:8080/" the IE hangs a long time and eventually says it couldn't reach the page. I tried "netstat -a" command on my computer and it verifies that TCP port 8080 is being listened by my computer. I checked the "server.xml" under the "/conf" directory and it verifies that 8080 is assigned to http requests, like:



I tried different URL like "http://127.0.0.1:8080/" or "http://localhost:8080/example" or "http://localhost:8080/index.jsp", but none worked. Project manual didn't mention how to deal with such errors, neither could i find other relevant posts. I assigned JAVA_HOME var. but not the CATALINA_HOME, since I always start from the tomcat directory.

I could probably try installing tomcat as a win service, but i'd like to figure out why my unzipped tomcat server didn't work before i move on.

I just re-installed windows and have not install anything else that might interfere (like oracle's http server which also uses 8080), not even anti-virus. I use jdk6.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Instead of clicking on startup.bat, open a command prompt window, change to the bin directory and execute startup.bat from the command line. There may be some startup error messages you are missing.

When you say "Windows informed my that tomcat server started up" where do you see that message?

Are you sure "localhost" is defined on your computer?

Can you see the tomcat task running in the windows Task manager?

I recommend setting CATALINA_HOME anyway.

Bill
 
Tim-Ting Chang
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

William Brogden wrote:Instead of clicking on startup.bat, open a command prompt window, change to the bin directory and execute startup.bat from the command line. There may be some startup error messages you are missing.


The command prompt output says:

When you say "Windows informed my that tomcat server started up" where do you see that message?


A second MS-DOS prompt appears, describing the tomcat startup process, ending with the statement:

There are some exceptions, regarding log access denial. There are too many lines displayed. I can't make sense of them.
I defined JAVA_HOME to my jdk base directory already, as I just verified with the User Account under Windows.

William Brogden wrote:
Are you sure "localhost" is defined on your computer?


How do you check?

Can you see the tomcat task running in the windows Task manager?


Under the "Applications" of the task manager, I can see "Tomcat" application with Status "Running", but I cannot find it under the "Processes" tab.

I recommend setting CATALINA_HOME anyway.


I did, as the output showed earlier.

Last time similar things happened when I use tomcat 6. The problem I had went away after I stepped down to tomcat 5.5. I am using 5.5 now, and I think I am doing everything right (as I have set up tomcat before).

I appriciate for any help you can give.
 
Sheriff
Posts: 67746
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
"coolfish loopy", please check your private messages for an important administrative matter.
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

William Brogden wrote:
I recommend setting CATALINA_HOME anyway.


Well William,

please Can i know the reason? because only after setting JAVA_HOME ,tomcat is running.
 
I promise I will be the best, most loyal friend ever! All for this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic