LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-20-2006, 08:29 AM   #1
minil
Member
 
Registered: Dec 2004
Location: Bangalore, India
Distribution: Fedora 2
Posts: 74

Rep: Reputation: 15
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.
 
Old 01-21-2006, 04:01 PM   #2
MOCKBA
Member
 
Registered: Oct 2003
Location: Moscow
Distribution: Ubuntu
Posts: 61
Blog Entries: 1

Rep: Reputation: 15
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
 
Old 01-21-2006, 04:07 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
What error are you getting?
 
Old 01-22-2006, 11:24 PM   #4
minil
Member
 
Registered: Dec 2004
Location: Bangalore, India
Distribution: Fedora 2
Posts: 74

Original Poster
Rep: Reputation: 15
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.
 
Old 01-23-2006, 12:10 AM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
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"
 
Old 01-23-2006, 10:54 PM   #6
minil
Member
 
Registered: Dec 2004
Location: Bangalore, India
Distribution: Fedora 2
Posts: 74

Original Poster
Rep: Reputation: 15
Server.xml file is ok. Its same as what you have specified. I am running tomcat on Windows XP.
 
Old 01-23-2006, 11:13 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
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?
 
Old 01-24-2006, 04:54 AM   #8
minil
Member
 
Registered: Dec 2004
Location: Bangalore, India
Distribution: Fedora 2
Posts: 74

Original Poster
Rep: Reputation: 15
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..
 
Old 01-24-2006, 12:43 PM   #9
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
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 /
 
Old 01-28-2006, 10:18 AM   #10
minil
Member
 
Registered: Dec 2004
Location: Bangalore, India
Distribution: Fedora 2
Posts: 74

Original Poster
Rep: Reputation: 15
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..
 
Old 01-28-2006, 10:19 AM   #11
minil
Member
 
Registered: Dec 2004
Location: Bangalore, India
Distribution: Fedora 2
Posts: 74

Original Poster
Rep: Reputation: 15
In server.xml , entry for tcpListenAddress="auto"
 
Old 01-28-2006, 10:19 AM   #12
minil
Member
 
Registered: Dec 2004
Location: Bangalore, India
Distribution: Fedora 2
Posts: 74

Original Poster
Rep: Reputation: 15
[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]$
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tomcat jsp examples 404 treycarroll Linux - Software 1 04-21-2006 08:57 PM
Unable to access tomcat, using ip in the URL MakingOfAGeek Linux - Newbie 0 11-14-2003 03:16 AM
why can't see my jsp pages updated? jyu1 Linux - Software 0 09-26-2003 11:24 PM
Basic JSP/Tomcat question. CodeWarrior Programming 1 07-06-2003 10:15 AM
.jsp pages in Galeon Enlightened Linux - Software 5 06-26-2003 08:46 PM


All times are GMT -5. The time now is 10:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration