LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Tomcat : unable to access the jsp pages (https://www.linuxquestions.org/questions/programming-9/tomcat-unable-to-access-the-jsp-pages-405752/)

minil 01-20-2006 07:29 AM

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.

MOCKBA 01-21-2006 03:01 PM

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

gilead 01-21-2006 03:07 PM

What error are you getting?

minil 01-22-2006 10:24 PM

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.

gilead 01-22-2006 11:10 PM

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"
              maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
              enableLookups="false" redirectPort="8443" acceptCount="100"
              connectionTimeout="20000" disableUploadTimeout="true" />

Do you have your JAVA_HOME and CATALINA_HOME environment variables setup? What happens when you type:

Code:

echo -e "JAVA_HOME:$JAVA_HOME\nCATALINA_HOME:$CATALINA_HOME"

minil 01-23-2006 09:54 PM

Server.xml file is ok. Its same as what you have specified. I am running tomcat on Windows XP.

gilead 01-23-2006 10:13 PM

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?

minil 01-24-2006 03:54 AM

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..

gilead 01-24-2006 11:43 AM

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 /

minil 01-28-2006 09:18 AM

Its showing
[ Trying 192.168.48.172.. ]
not going to promt...

Code:

[dummy@proxy dummy]$ telnet 192.168.48.172 8080
Trying 192.168.48.172..


minil 01-28-2006 09:19 AM

In server.xml , entry for tcpListenAddress="auto"

minil 01-28-2006 09:19 AM

[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.