« Return to Thread: agent using mysql-connector-java-5.0.7

Re: agent using mysql-connector-java-5.0.7

by Luca Ferrari :: Rate this Message:

Reply to Author | View in Thread

On Monday 20 August 2007 rogster's cat, walking on the keyboard, wrote:
> I've installed mysql-connector-java-5.0.7 and modified the CLASSPATH
> variable.  And then I developed a simple class that displayed the
> database's contents.  It worked fine.  So I gather that the connector isnt
> the problem here.   However, when I developed a barebones agent that simply
> outputs text to the screen and then for its task implements the
> java-mysql-connector class, I get the following error.
>

Having a look at your stacktrace it sounds like the addressee class loader
cannot get the remote resource for the driver. A simple solution could be to
install the driver also on the addressee machine, or to work on the addressee
classpath to allow it to load the driver thru the URL.


> Having browsed through some other posts here, I found some advice to put
> the connector.jar file into my agent server's lib directory.  I did this
> with no effect.
>

That's right, but you have to install it also on the destination server or to
work with the classpath in order to allow it to be loaded thru the URL
classloading.

Hope this helps,
Luca

--
MySQL Java Mailing List
For list archives: http://lists.mysql.com/java
To unsubscribe:    http://lists.mysql.com/java?unsub=lists@...

 « Return to Thread: agent using mysql-connector-java-5.0.7