• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java Servlets /JSP

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Forum,

Iam new to Java web development. Iam in the process of developing a website. I have installed tomcat server on a PC which as Win XP as OS. The Tomcat server has been configured and can be accessed on this PC. I have written a JSP fragment which runs fine locally on this PC. Now when I try to access this page from another PC connected to the previous PC by LAN, I encounter an error.
Please advise me on how to go about with a solution to this.
Thank you
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by betzi kuriakose:
Please advise me on how to go about with a solution to this.


First and foremost, be complete when you post to a forum.

Telling us you get an error without sharing the details of that error is not giving us any information to help you out with.

Also, what URL are you using to access the JSp locallly? Remotely?

These are the types of details that you must include in order to get helpful responses.
 
betzi kuriakose
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My Apologies for the incomplete post.

The error is true for a servlet also
Locally, the URL used is hhtp://localhost:8081/servlet_name
the servlet is placed in the tomcat installation's webapp/root/web-inf/classes directory.

remotely, the URL used is hhtp://Ip_address_of_remote_machine:8081/servlet_name

The error displayed is "Network Access Message. There is a problem with the page you are trying to reach and it cannot be displayed."

Hope this would suffice.
 
Bear Bibeault
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hhtp?

And why 8081? Did you change the default of 8080?
[ March 03, 2007: Message edited by: Bear Bibeault ]
 
betzi kuriakose
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry for the typo error
hhtp to be read as http

On the first PC I have an oracle service running on 8080 hence I changed the tomcat to be on 8081. I have made this updation to the server.xml file
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

"Network Access Message. There is a problem with the page you are trying to reach and it cannot be displayed."


That sounds like one of microsoft's "friendly" error messages that is concealing the actual error message the servlet is sending. I believe you can configure the browser to show the real error.

Can you address the default Tomcat pages using that URL from remote PCs?

Bill
 
betzi kuriakose
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I cannot access the remote tomcat server's default page.
 
betzi kuriakose
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I cannot access the remote tomcat server's default page.
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

remotely, the URL used is hhtp://Ip_address_of_remote_machine:8081/servlet_name



When you say Ip_address_of_remote_machine - is that a local network address?

Bill
 
betzi kuriakose
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes
Also I noticed something
If I log in as an administrator to the remote system, I am able to access the tomcat server's default page. however, Iam not able to access the servlet in the root directory of the tomcat server.
reply
    Bookmark Topic Watch Topic
  • New Topic