Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

no connection to localhost possible

 
Peter Seidel
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hallo, I am lost...

I did install Tomcat 7.0.6, but cannot open its home page:
I have a 64bit Win7 and used the 32/64bit Tomcat installer.
I have a 64bit Java SDK 1.6.0_22 path in the PATH variable.
The Apache Tomcat service is running and I can't find a problem in the logs.
If I am writing http://localhost into the address bar of my browsers, I always get error messages (network problem, connection faild).

What am I doing wrong? Can somebody help me please?
Thank you in advance!
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18218
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The correct URL to talk to Tomcat is "http://localhost:8080" unless you've changed Tomcat's default port settings.

You web browser will attempt to contact "http://localhost:80" if you don't explicitly provide a port number in your URL.
 
Peter Seidel
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, thank you a lot!

I did copy my war file to the webapps folder - it got extracted automatically.
But if I add the name of my war file after the address (like http://localhost:8080/[my_app]), I do only get a HTTP Status 404 error:
The requested resource is not available.

Can it be, that it is not good, to install Tomcat under the programs folder, since this folder is protected by the System (Win7)?

Thank you in advance,
Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic