Re: Remote access to Tomcat web server



David Segall <david@xxxxxxxxxxxxxxx> wrote:

eliliano@xxxxxxxxx wrote:

Hi,

I'm trying Tomcat for the first time .

I've installed Tomcat (apache-tomcat-6.0.13, zip-version). It runs ok.
Then I've installed MySQL and there I've created my database.
Then I've writed a java servlet for querying the data.

Well, this is what happens.

1) In localhost, it's all ok: the servlet runs, reads data from tables
and displays them in a browser window.

2) From another host (of my LAN), nothing: a 404 error appears.

My question:

what can I modify to allow remote access to tomcat web-server?

Note: I call my servlet using these URL:

http://localhost:8080/database_access/listadb (in a local contest)

http://192.168.1.55:8080/database_access/listadb (in a remote contest)
I suspect that you have not granted access to your MySql database from
your network.
Oops! That was a dumb suggestion; you are not accessing the database
from the network.
Otherwise, look in the Tomcat and MySQL logs to find the
error and, if that does not help, post the logs here.
.



Relevant Pages

  • Remote access to Tomcat web server
    ... I've installed Tomcat. ... Then I've writed a java servlet for querying the data. ... http://localhost:8080/database_access/listadb (in a local contest) ...
    (comp.lang.java.programmer)
  • Re: Could not get Tomcat Servlet to be recognize
    ... > Installed Tomcat 4.1 and Mysql on a WinXP. ... I've manage to get Tomcat ... Fist, you're missing a <servlet> tag, like: ... comp.lang.java.programmer for advanced questions. ...
    (comp.lang.java)
  • Re: Remote access to Tomcat web server
    ... I've installed Tomcat. ... Then I've installed MySQL and there I've created my database. ... Then I've writed a java servlet for querying the data. ...
    (comp.lang.java.programmer)
  • Re: Remote access to Tomcat web server
    ... I've installed Tomcat. ... Then I've writed a java servlet for querying the data. ... http://localhost:8080/database_access/listadb (in a local contest) ...
    (comp.lang.java.programmer)
  • Re: Tomcat + java.io.FileNotFoundException
    ... Application Server executes servlet and JSP in their own context (both ... > experience configuring tomcat. ... > 1- the File class uses paths relative to the working directory. ... However, classA is ...
    (comp.lang.java.programmer)