List:General Discussion« Previous MessageNext Message »
From:Mark Matthews Date:October 11 2002 3:59pm
Subject:Re: Problem with mysql jdbc Connector
View as plain text  
janesh wrote:

> HI
> I am accessing mysql through Websphere 5.0 through jsp file . it says
> SQLException: Cannot connect to MySQL server on host:3306. Is there
> a MySQL server running on the machine/port you are trying to connect to?
> (java.security.AccessControlException)
> SQLState: 08S01
> VendorError: 0
> This exception is also listed in Your mysql driver Readme file , 
> resolution
> for this is not clear.
> Since i am using same machine , and other parameters are correct , i am
> unable to find the solution
> Please get back to me with relevant solution.
> Thanks
> Janesh 


Does WebSphere 5.0 implement security policies? If so, you might not 
have a socket-connect security policy in your JSP.

The java.security.AccessControlException is always thrown from a 
security manager. My guess is WebSphere 5.0 has a custom one or has 
configured the JVM to disallow socket access. You'll have to check your 
WebSphere-5.0 docs to see.

I have run the driver in WebSphere-4.0 and WebSphere-5.0 developer 
edition with no issues, so it must be something related to your 
WebSphere config.

    -Mark



Thread
Problem with mysql jdbc Connectorjanesh11 Oct
  • Re: Problem with mysql jdbc ConnectorMark Matthews11 Oct