LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-06-2006, 05:07 PM   #1
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Rep: Reputation: 30
localhost VS mydomain.net


Hello,

If I access a servlet like this:
Code:
action="http://localhost:8080/WEB/LetThemKnow" it works fine
but if I access it like this:
Code:
action="http://www.mydomain.net/WEB/LetThemKnow"
I get 404 error message:
Code:
Not Found
The requested URL /WEB/LetThemKnow was not found on this server.
Does anybody have an explanation?

Thanks.
 
Old 05-06-2006, 05:15 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Is it just a typo that you don't have :8080 in the problem URL or do you get the error even when it's there?
 
Old 05-06-2006, 10:20 PM   #3
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Original Poster
Rep: Reputation: 30
Hi,

should it be action="http://www.mydomain.net:8080/WEB/LetThemKnow than?

if I add 8080 and access the servlet I would get a COULD NOT CONNECT TO http://www.mydomain.net server on a machine that is located outside of my network. If I access it directly from the server machine it works fine though.

thanks

Last edited by thisObject; 05-06-2006 at 10:47 PM.
 
Old 05-07-2006, 12:32 AM   #4
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Original Poster
Rep: Reputation: 30
I guess this means there is a networking problem, right?
 
Old 05-07-2006, 02:00 AM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It sounds like it. Can you ping the domain from the other machine (the one outside the network)?
 
Old 05-07-2006, 07:56 PM   #6
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Original Poster
Rep: Reputation: 30
hello,

because I have dynamic ip i could not do it but now i solved the problem with ip and i can access the site from outside.

There is another explanation of the problem: I have some dynamic behavior in jsp pages such as invoke some jstl tags on click and stuff like that. As soon as action is triggered the site hangs but on initial load it is fine.

So the problem is that I cannot invoke any action.

thanks
 
  


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
can't access www.mydomain.net thisObject Linux - Software 12 04-17-2006 05:47 PM
can't access mydomain.hoemip because of the router thisObject Linux - Software 2 04-15-2006 02:48 PM
Ping mydomain.com bulzbb Linux - Networking 7 03-16-2004 05:42 AM
change localhost w/o net legend1079 Red Hat 2 03-03-2004 01:30 PM
mail.mydomain.com does not work saravanan1979 Linux - Networking 8 02-01-2002 10:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:36 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration