Hi people,
I'm having problems with the use of Hibernate+xml-rpc+ssl. I have generated the certificates and I found no problems with the handshake's process, but Hibernate is stopping when it's trying to initializing the pool(c3p0), returning one error of class not found:
client error:
.
.
.
org.apache.xmlrpc.XmlRpcException: java.lang.Exception: java.lang.NoClassDefFoundError: com/mchange/v2/c3p0/PoolConfig
at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java:457)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:163)
at br.com.nautec.fluxo.cliente.comunicacao.Client.receive(Client.java:64)
at br.com.nautec.fluxo.cliente.comunicacao.Client.<init>(Client.java:40)
at br.com.nautec.fluxo.cliente.comum.paises.ComboBoxPaises.enviarServidor(ComboBoxPaises.java:128)
at br.com.nautec.fluxo.cliente.comum.paises.ComboBoxPaises.carregarPaises(ComboBoxPaises.java:94)
at br.com.nautec.fluxo.cliente.comum.paises.ComboBoxPaises.inicializarComponentes(ComboBoxPaises.java:63)
at br.com.nautec.fluxo.cliente.comum.paises.ComboBoxPaises.<init>(ComboBoxPaises.java:53)
at br.com.nautec.fluxo.cliente.pessoa.FrmAdicionar.inicializarComponentes(FrmAdicionar.java:174)
at br.com.nautec.fluxo.cliente.pessoa.FrmAdicionar.<init>(FrmAdicionar.java:112)
at br.com.nautec.fluxo.cliente.MenuPessoas.actionPerformed(MenuPessoas.java:69)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
.
.
.
server error:
.
.
.
2004-11-12 16:47:43,703 INFO hibernate.connection.C3P0ConnectionProvider -> C3P0 using driver: org.gjt.mm.mysql.Driver at URL: jdbc:mysql://localhost/fluxo?autoReconnect=true
2004-11-12 16:47:43,703 INFO hibernate.connection.C3P0ConnectionProvider -> Connection properties: {user=raiz, password=senhadaraiz}
Plaintext before ENCRYPTION: len = 455
0000: 48 54 54 50 2F 31 2E 31 20 32 30 30 20 4F 4B 0D HTTP/1.1 200 OK.
0010: 0A 53 65 72 76 65 72 3A 20 41 70 61 63 68 65 20 .Server: Apache
0020: 58 4D 4C 2D 52 50 43 20 31 2E 30 0D 0A 43 6F 6E XML-RPC 1.0..Con
0030: 6E 65 63 74 69 6F 6E 3A 20 63 6C 6F 73 65 0D 0A nection: close..
0040: 43 6F 6E 74 65 6E 74 2D 54 79 70 65 3A 20 74 65 Content-Type: te
0050: 78 74 2F 78 6D 6C 0D 0A 43 6F 6E 74 65 6E 74 2D xt/xml..Content-
0060: 4C 65 6E 67 74 68 3A 20 33 32 38 0D 0A 0D 0A 3C Length: 328....<
0070: 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 2E ?xml version="1.
0080: 30 22 20 65 6E 63 6F 64 69 6E 67 3D 22 49 53 4F 0" encoding="ISO
0090: 2D 38 38 35 39 2D 31 22 3F 3E 3C 6D 65 74 68 6F -8859-1"?><metho
00A0: 64 52 65 73 70 6F 6E 73 65 3E 3C 66 61 75 6C 74 dResponse><fault
00B0: 3E 3C 76 61 6C 75 65 3E 3C 73 74 72 75 63 74 3E ><value><struct>
00C0: 3C 6D 65 6D 62 65 72 3E 3C 6E 61 6D 65 3E 66 61 <member><name>fa
00D0: 75 6C 74 53 74 72 69 6E 67 3C 2F 6E 61 6D 65 3E ultString</name>
00E0: 3C 76 61 6C 75 65 3E 6A 61 76 61 2E 6C 61 6E 67 <value>java.lang
00F0: 2E 45 78 63 65 70 74 69 6F 6E 3A 20 6A 61 76 61 .Exception: java
0100: 2E 6C 61 6E 67 2E 4E 6F 43 6C 61 73 73 44 65 66 .lang.NoClassDef
0110: 46 6F 75 6E 64 45 72 72 6F 72 3A 20 63 6F 6D 2F FoundError: com/
0120: 6D 63 68 61 6E 67 65 2F 76 32 2F 63 33 70 30 2F mchange/v2/c3p0/
0130: 50 6F 6F 6C 43 6F 6E 66 69 67 3C 2F 76 61 6C 75 PoolConfig</valu
0140: 65 3E 3C 2F 6D 65 6D 62 65 72 3E 3C 6D 65 6D 62 e></member><memb
0150: 65 72 3E 3C 6E 61 6D 65 3E 66 61 75 6C 74 43 6F er><name>faultCo
0160: 64 65 3C 2F 6E 61 6D 65 3E 3C 76 61 6C 75 65 3E de</name><value>
0170: 3C 69 6E 74 3E 30 3C 2F 69 6E 74 3E 3C 2F 76 61 <int>0</int></va
0180: 6C 75 65 3E 3C 2F 6D 65 6D 62 65 72 3E 3C 2F 73 lue></member></s
0190: 74 72 75 63 74 3E 3C 2F 76 61 6C 75 65 3E 3C 2F truct></value></
01A0: 66 61 75 6C 74 3E 3C 2F 6D 65 74 68 6F 64 52 65 fault></methodRe
01B0: 73 70 6F 6E 73 65 3E 7B D5 EF 76 78 C9 0A CB 94 sponse>...vx....
01C0: 9E C4 27 C9 25 31 E7 ..'.%1.
Thread-0, WRITE: TLSv1 Application Data, length = 455
Thread-0, called close()
Thread-0, called closeInternal(true)
Thread-0, SEND TLSv1 ALERT: warning, description = close_notify
Plaintext before ENCRYPTION: len = 18
0000: 01 00 9F 2E 9E ED EF 28 78 3B 94 71 3A DE FF B7 .......(x;.q:...
0010: 53 9A S.
Thread-0, WRITE: TLSv1 Alert, length = 18
Finalizer, called close()
Finalizer, called closeInternal(true)
.
.
.
OBS: I'm using Hibernate version 2.1.4
OBS2: Without SSL there is no problem with c3p0
May somebody help me?
Anselmo
|