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
c3p0-service.xml :
<server>
<mbean code="com.mchange.v2.c3p0.jboss.C3P0PooledDataSource" name="jboss:service=C3P0PooledDataSource">
<attribute name="JndiName">java:SCMDS</attribute>
<attribute name="JdbcUrl">jdbc:mysql://127.0.0.1:3306/db_name</attribute>
<attribute name="DriverClass">com.mysql.jdbc.Driver</attribute>
<attribute name="User">root</attribute>
<attribute name="Password">password</attribute>
<attribute name="AcquireIncrement">5</attribute>
<attribute name="AutomaticTestTable">connectionTestTable</attribute>
<attribute name="IdleConnectionTestPeriod">600</attribute>
<attribute name="InitialPoolSize">10</attribute>
<attribute name="MaxConnectionAge">600</attribute>
<attribute name="MaxIdleTime">300</attribute>
<attribute name="MaxPoolSize">20</attribute>
<attribute name="MinPoolSize">10</attribute>
<depends>jboss:service=Naming</depends>
</mbean>
</server>
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 the c3p0-service.xml
attached is the c3p0-service.xml
hi,
c3p0-0.9.5.x is compiled for JDK6+. under jdk 1.5.16, you’ll need to back-off to 0.9.2.1, alas.
On May 2, 2014, at 7:14 AM, appsdaily77 appsdaily77@users.sf.net wrote:
Related
Bugs:
#127hi,
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