Re: Remote access to Tomcat web server



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. Otherwise, look in the Tomcat and MySQL logs to find the
error and, if that does not help, post the logs here.
.



Relevant Pages

  • Tomcat sessions memory usage and MySQL connections
    ... experiencing freezing of the web server (java or mysql processes take ... now mysql seems to have too many connections all the time. ... On the other side, tomcat seems to have a lot of unused sessions open, ...
    (comp.lang.java.programmer)
  • 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: path to servlet...
    ... I wrote to tech support b/c all of a sudden NONE of my tomcat stuff was ... I even have MySql at ... path from form to servlet: ...
    (comp.lang.java.help)
  • =?ISO-8859-15?Q?Kompatibilit=E4t_MySQL_mit_Tomcat_+_Tu?= =?ISO-8859-15?Q?rbine/Torqu
    ... wir programmieren Java-Servlets und verwenden dabei u.a. Tomcat und Torque 3.0. Unsere Erfahrungen mit MySQL beschränken sich auf die Version 3.23. Nun wollen wir eine System auf MySQL portieren. ... Schnell den aktuellen JDBC-Treiber heruntergeladen und alle Einstellungen in Torque.properties und unter Eclipse gemacht. ... dass Tomcat anscheinend nicht mehr hochfuhr. ... Bei Torque steht unter "Unterstütze DB" zwar MySQL, allerdings mit dem alten Treibereintrag: ...
    (de.comp.datenbanken.mysql)
  • Re: Tomcat & MySQL Connection Problem
    ... I'm having some trouble connecting to a MySQL database from some Java ... code I have running in Tomcat. ... to see just how much goes on before I get the exception and it looks ... people usually get this exception after a connection has timed out, ...
    (comp.lang.java.programmer)