views:

3978

answers:

5

I'm an IIS guy and know its as simple as just using the http://[computername]/path to webapp.. however, I can't seem to figure out how to make this possible for a JSP application I'm writing that runs under Tomcat. Is there a configuration setting I need to set somewhere?

+4  A: 

You need to use the Port of Tomcat which is by default 8080. So you might want to access you localhost on machine A from machine B as http://A:8080/YourProject And Remember Unlike IIS , it is case sensitive.

Gripsoft
A: 

Tomcat uses port 8080 by default so you have to provide the port number in the URL to see anything. If it is running http://yourcomputer:8080/app should do the trick.

André
+3  A: 

Have you created an exception in your firewall?

Assuming that Tomcat is running on port 8080 and this is a Windows XP machine, the the firewall will block that port (not the case on Windows Server 2003).

The firewall can be configured by: choosing the Windows Firewall from the Control Panel, then click on Exceptions -> Add Port and enter name and number: Tomcat, 8080 and leave transport protocol as TCP

Airsource Ltd
No, I haven't created any exceptions in my firewall...
EvilSyn
A: 

you can use your ip address instead of localhost

http://10.4.0.1:8080/YourProject

Milhous
A: 

if your ip were 192.122.11.22 you have to write http://192.122.11.22:8080/proyectname (if dont, then look your firewall)

erewr