Hi,
I am trying to configure c3p0 in my web application but while restarting the jboss I am getting the following error.
org.jboss.deployment.DeploymentInfo@df0ab516 { url=file:/D:/server/jboss-4.2.3.GA/server/default/deploy/c3p0-service.xml }
deployer: org.jboss.deployment.SARDeployer@c72243
status: Deployment FAILED reason: Unexpected error during load of: com.mchange.v2.c3p0.jboss.C3P0PooledDataSource, msg=Bad version number in .class file; - nested
throwable: (java.lang.ClassNotFoundException: Unexpected error during load of: com.mchange.v2.c3p0.jboss.C3P0PooledDataSource, msg=Bad version number in
.class file)
state: FAILED
watch: file:/D:/server/jboss-4.2.3.GA/server/default/deploy/c3p0-service.xml
My application environment is
Server : jboss-4.2.3.GA
jdk : jdk 1.5.16
c3p0 jars : c3p0-0.9.5-pre5.jar / mchange-commons-java-0.2.6.2.jar
mysql connector jar : mysql-connector-java-3.1.11.jar
I am not able to figure out where I am making mistake ,I have copied the c3p0 jar in jboss/server/default/lib and c3p0-service.xml in jboss/server/default/deploy/ , as mentioned
In the link : ../c3p0-c3p0-0.9.5-pre5/src/doc/index.html
I will be very grateful if you can help me in sorting out this error.(Attached is the error stack trace file)
Regards
Kiran
attached is error stack trace
hi,
c3p0-0.9.5 prereleases are JDK6+. to run under a jdk 1.5 JVM, you will need to back off to c3p0-0.9.2.1.
Hi Steve,
Thanks a lot for your timely response,now its working fine !!!
glad to hear it!