App + ConnectorJ + MXJ deployment
"tech" <[email protected]>
| Newsgroups | gmane.comp.db.mysql.java |
|---|---|
| Organization | edoss consulenze |
| Message-ID | <[email protected]> |
Hi Eric, Now on the deployment pc I have: 1) mysql-connector-java-5.0.3-bin.jar in the $JAVA_HOME/jre/lib/ext directory 2) MySQLTest.jar (my Java application) 3) connector-mxj.jar (my own connector-mxj.jar with the pre-configured DB for the above application, created following paragraph 27.4.5.1 and 27.4.5.2 of the online manual) 4) aspectjrt.jar (copied and pasted from my development pc). All of the paths to the above four jar files are in the CLASSPATH of the deployment pc. I tried to launch my Java app, but I get the attached Console output. Should I maybe first extract directories and files from connector-mxj.jar and run something ? Thanks for your help. Roberto -- MySQL Java Mailing List For list archives: http://lists.mysql.com/java To unsubscribe: http://lists.mysql.com/[email protected]
Console_Output_20060920_1.txt
(text/plain, 4.8 KB)
Microsoft Windows XP [Versione 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
E:\myTestApp>SET CLASSPATH
CLASSPATH=E:\Programmi\Java\jre1.5.0_08\lib\ext\mysql-connector-java-5.0.3-bin.j
ar;E:\myTestApp\aspectjrt.jar;E:\myTestApp\connector-mxj.jar;E:\myTestApp\TestMy
SQL.jar
E:\myTestApp>java -jar TestMySQL.jar
com.mysql.jdbc.CommunicationsException: Communications link failure due to under
lying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refused: connect
STACKTRACE:
java.net.SocketException: java.net.ConnectException: Connection refused: connect
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.ja
va:156)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:276)
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 packageAntiriciclaggio.AmministrazioneDB.apriConnessione(Amministrazi
oneDB.java:44)
at packageAntiriciclaggio.AmministrazioneDB.<init>(AmministrazioneDB.jav
a:19)
at packageAntiriciclaggio.LogonAntiriciclaggio$GestoreEventi.windowOpene
d(LogonAntiriciclaggio.java:276)
at java.awt.Window.processWindowEvent(Unknown Source)
at javax.swing.JFrame.processWindowEvent(Unknown Source)
at java.awt.Window.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
** END NESTED EXCEPTION **
Last packet sent to the server was 90 ms ago.
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2707)
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 packageAntiriciclaggio.AmministrazioneDB.apriConnessione(Amministrazi
oneDB.java:44)
at packageAntiriciclaggio.AmministrazioneDB.<init>(AmministrazioneDB.jav
a:19)
at packageAntiriciclaggio.LogonAntiriciclaggio$GestoreEventi.windowOpene
d(LogonAntiriciclaggio.java:276)
at java.awt.Window.processWindowEvent(Unknown Source)
at javax.swing.JFrame.processWindowEvent(Unknown Source)
at java.awt.Window.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at packageAntiriciclaggio.LogonAntiriciclaggio$GestoreEventi.windowOpene
d(LogonAntiriciclaggio.java:279)
at java.awt.Window.processWindowEvent(Unknown Source)
at javax.swing.JFrame.processWindowEvent(Unknown Source)
at java.awt.Window.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)