Tomcat : unable to access the jsp pages
Hi all,
I have installed Tomcat 5.0, win XP, JSP. I am able to access the jsp application using localhost; i.e http://localhost:8080/myproject/index.jsp Its fine but when i try to give my ipaddress its not working. http://192.168.48.172:8080/myproject/index.jsp what's the problem..Its urgent.. Thanks in advance. |
Try telnet 192.168.48.172 8080
If it's able to connect, then I do not know, otherwise you have to bind Tomcat to your IP. Re-ask the question here: http://saloon.javaranch.com/cgi-bin/...ubb=forum&f=56 |
What error are you getting?
|
I am not able to telnet 192.168.48.172 8080. Can u plz tell me how to bind tomcat to my ipaddress.. I am getting following error.
The page you are looking for is currently unavailable. |
By default Tomcat listens on port 8080 (non-ssl). Have a look in server.xml in your Tomcat install's conf directory for the following:
Code:
<Connector port="8080" maxHttpHeaderSize="8192" Code:
echo -e "JAVA_HOME:$JAVA_HOME\nCATALINA_HOME:$CATALINA_HOME" |
Server.xml file is ok. Its same as what you have specified. I am running tomcat on Windows XP.
|
I should have read your previous post more carefully. If you're getting the error "The page you are looking for is currently unavailable" then Tomcat is running. The problem is that the web page isn't where Tomcat expected it to be.
Where did you put your webpages? Somewhere under the webapps directory? |
I am able to access the jsp application using localhost;
i.e Its working fine http://localhost:8080/myproject/index.jsp but when i try to give my ipaddress its not working. http://192.168.48.172:8080/myproject/index.jsp ---------------------------------------- I have put my project in c:/Eclipse/workspace/ Tomcat is installed in. c:/program files/Apache Software foundation/tomcat/ I am developing my application in Eclipse IDE.. |
By default, Tomcat listens on all interfaces - I think you can change this with the tcpListenAddress directive in your server.xml file.
When you tried to telnet to port 8080, what was the error message? I can telnet to mine and retrieve the default page with: Code:
GET / |
Its showing
[ Trying 192.168.48.172.. ] not going to promt... Code:
[dummy@proxy dummy]$ telnet 192.168.48.172 8080 |
In server.xml , entry for tcpListenAddress="auto"
|
[laxman@proxy laxman]$ telnet 192.168.48.172 8080
Trying 192.168.48.172... telnet: connect to address 192.168.48.172: Connection timed out [laxman@proxy laxman]$ [laxman@proxy laxman]$ |
All times are GMT -5. The time now is 07:46 AM. |