There is security problem here. The COFFEEBREAK serving MySQL server sits on a different machine than the WWW server. See the Deploying Java and JDBC article from DataDirect.

Possible solutions:

Workarounds: Examples (the source is listed above or in the directory):
Simple "list a query" example:
   http://tecfa2.unige.ch/guides/java/staf2x/ex/jdbc/coffee-break/simple-applet/MySqlQueryApplet.html

D.K.S.