Bug #6038 javax.servlet.UnavailableException: Initializing application data source
Submitted: 12 Oct 2004 4:07 Modified: 22 Oct 2004 19:50
Reporter: Simon Antony Email Updates:
Status: Not a Bug Impact on me:
Category:Connector / J Severity:S3 (Non-critical)
Version:4.1 OS:Linux (linux)
Assigned to: CPU Architecture:Any

[12 Oct 2004 4:07] Simon Antony
Data Source Unavailable exception while connecting to Mysql on linux from 
another system where Tomcat and struts running using IP address.
This is working fine when both the Tomcat and mysql on the same linux machine.
Windows 98 we are able to connect to Mysql when the Tomcat is running on 
another machine.

data soucre 
<data-source key="omega4410">
      <set-property property="driverClass"
        value="org.gjt.mm.mysql.Driver" />
      <set-property property="url"
        value="jdbc:mysql://" />
      <set-property property="maxCount"
      <set-property property="minCount"
      <set-property property="user"
      <set-property property="password"
	<set-property property="autoCommit" 
Exception thrown

2004-10-11 17:07:28 StandardContext[/myapp]: Servlet /myapp threw load() 
javax.servlet.UnavailableException: Initializing application data source 
	at org.apache.struts.action.ActionServlet.initModuleDataSources
	at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
	at javax.servlet.GenericServlet.init(GenericServlet.java:256)

How to repeat:
Try comnnecting Tomcat-struts application datasource on mysql database on another machine in the network using IP address and (with or witout) port number.

Os is Linux Redhat

Suggested fix:
Remote data base or databse on the network connection problem to solve
[14 Oct 2004 13:38] Simon Antony
When we granted all privileges to the application server this problem was solved.

The bug may be closed