Tomcat Applet Mysql Problem
1 posts in topic
Flat View  Flat View

Posted By:   ilan_levine
Posted On:   Monday, November 3, 2003 06:15 AM

I have an applet that goes through another Java class to communicate with a database. Everything works perfectly when it runs from the local file system (c:applet.html). But when I run it in Tomcat (http://127.0..0.1:8080/test/applet.html) it opens the applet, but no data is fetched from the database. It seems like a Tomcat problem to me. Any suggestions are appreciated.

Re: Tomcat Applet Mysql Problem

Posted By:   ilan_levine  
Posted On:   Monday, November 3, 2003 06:46 AM

Followup. This is the error that I get when under Tomcat:
java.sql.SQLException: Cannot connect to MySQL server on x.x.x.x:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.security.AccessControlException)

at com.mysql.jdbc.Connection.connectionInit(Unknown Source)

at com.mysql.jdbc.jdbc2.Connection.connectionInit(Unknown Source)

at com.mysql.jdbc.Driver.connect(Unknown Source)

at java.sql.DriverManager.getConnection(Unknown Source)

at java.sql.DriverManager.getConnection(Unknown Source)
About | Sitemap | Contact