How to start Connector/MXJ ?
"tech" <[email protected]>
| Newsgroups | gmane.comp.db.mysql.java |
|---|---|
| Organization | edoss consulenze |
| Message-ID | <[email protected]> |
I developed a simple java application based on MySQL 5.0.24a and
Connector/J 5.0.3. It works.
I read I could deploy such an application to other clients by means of
Connector/MXJ.
I downloaded Connector/MXJ 5.0.3 beta on my development pc and tried to
install it following the online manual step by step.
Following chapter 23.4.2.3 Connector/MXJ Quick Start Guide,
http://dev.mysql.com/doc/refman/5.0/en/connector-mxj-install-quickstart.html
I tried to run ConnectorMXJUrlTestExample. Unfortunately I got the following
messages:
1) Mysqld is not running
2) There is no file MysqldResource.pid
3) Could not create socket factory
'com.mysql.management.driverlaunched.ServerLauncherSocketFactory' because
the class was not found.
Can anyone give me some help ?
Thanks in advance
Roberto Regazzoni
Below you can see the error log:
jdbc:mysql:mxj://localhost:3336/test?server.basedir=C:\DOCUME~1\Roberto\IMPO
ST~1\Temp\test-mxj
[MysqldResource] Mysqld not running. No file: C:\Documents and
Settings\Roberto\Impostazioni locali\Temp\test-mxj\data\MysqldResource.pid
Exception in thread "main"
com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Could not
create socket factory
'com.mysql.management.driverlaunched.ServerLauncherSocketFactory' due to
underlying exception: java.lang.ClassNotFoundException:
com.mysql.management.driverlaunched.ServerLauncherSocketFactory
** BEGIN NESTED EXCEPTION **
java.lang.ClassNotFoundException
MESSAGE: com.mysql.management.driverlaunched.ServerLauncherSocketFactory
STACKTRACE:
java.lang.ClassNotFoundException:
com.mysql.management.driverlaunched.ServerLauncherSocketFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.mysql.jdbc.MysqlIO.createSocketFactory(MysqlIO.java:2167)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:274)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2641)
at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at
ConnectorMXJUrlTestExample.main(ConnectorMXJUrlTestExample.java:30)
** END NESTED EXCEPTION **
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:888)
at com.mysql.jdbc.MysqlIO.createSocketFactory(MysqlIO.java:2170)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:274)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2641)
at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at
ConnectorMXJUrlTestExample.main(ConnectorMXJUrlTestExample.java:30)