Hi everybody.

I'm having a problem with connecting to another computers database.

I get the following error:


Dec 24, 2008 2:58:01 PM org.apache.struts.action.ActionServlet initModuleDataSources
SEVERE: Initializing application data source org.apache.struts.action.DATA_SOURCE
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null, message from server: "Host 'PLATFORM-4' is not allowed to connect to this MySQL server")
at org.apache.commons.dbcp.BasicDataSource.createData Source(BasicDataSource.java:1225)
at org.apache.commons.dbcp.BasicDataSource.setLogWrit er(BasicDataSource.java:959)
at org.apache.struts.action.ActionServlet.initModuleD ataSources(ActionServlet.java:808)
at org.apache.struts.action.ActionServlet.init(Action Servlet.java:335)
at javax.servlet.GenericServlet.init(GenericServlet.j ava:212)
at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:4042)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4348)
at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirec tory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirec tories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:719)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443)
at org.apache.catalina.core.StandardService.start(Sta ndardService.java:516)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:413)
Caused by: java.sql.SQLException: null, message from server: "Host 'PLATFORM-4' is not allowed to connect to this MySQL server"
at com.mysql.jdbc.SQLError.createSQLException(SQLErro r.java:1056)
at com.mysql.jdbc.SQLError.createSQLException(SQLErro r.java:957)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:10 79)
at com.mysql.jdbc.ConnectionImpl.createNewIO(Connecti onImpl.java:2032)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImp l.java:729)
at com.mysql.jdbc.ConnectionImpl.getInstance(Connecti onImpl.java:298)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonReg isteringDriver.java:283)
at org.apache.commons.dbcp.DriverConnectionFactory.cr eateConnection(DriverConnectionFactory.java:38)
at org.apache.commons.dbcp.PoolableConnectionFactory. makeObject(PoolableConnectionFactory.java:294)
at org.apache.commons.dbcp.BasicDataSource.validateCo nnectionFactory(BasicDataSource.java:1247)
at org.apache.commons.dbcp.BasicDataSource.createData Source(BasicDataSource.java:1221)
... 30 more
Dec 24, 2008 2:58:01 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet action as unavailable
Dec 24, 2008 2:58:01 PM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /RakeshMRMS threw load() exception
javax.servlet.UnavailableException: Initializing application data source org.apache.struts.action.DATA_SOURCE
at org.apache.struts.action.ActionServlet.initModuleD ataSources(ActionServlet.java:812)
at org.apache.struts.action.ActionServlet.init(Action Servlet.java:335)
at javax.servlet.GenericServlet.init(GenericServlet.j ava:212)
at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:4042)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4348)
at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirec tory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirec tories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:719)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443)
at org.apache.catalina.core.StandardService.start(Sta ndardService.java:516)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:413)
Dec 24, 2008 2:58:02 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 24, 2008 2:58:02 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Dec 24, 2008 2:58:02 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/79 config=null
Dec 24, 2008 2:58:02 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5354 ms
Dec 24, 2008 2:58:06 PM org.apache.catalina.core.StandardWrapperValve invoke
INFO: Servlet action is currently unavailable



Here is some code of my program...



try
{
Class.forName("com.mysql.jdbc.Driver");
con = DriverManager.getConnection("jdbc:mysql://192.101.1.101:3306/db1","root","");


if(con != null)
{
return con;
}
}catch(Exception e)
{
e.printStackTrace();
}
return con;



if anybody can help me.....