Menu

#127 Unexpected error during load of: com.mchange.v2.c3p0.jboss.C3P0PooledDataSource, msg=Bad version number in .class file

v1.0 (example)
closed
nobody
None
9
2014-05-02
2014-05-02
appsdaily77
No

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

1 Attachments

Related

Bugs: #127

Discussion

  • appsdaily77

    appsdaily77 - 2014-05-02

    attached is the c3p0-service.xml

     
  • appsdaily77

    appsdaily77 - 2014-05-02

    attached is the c3p0-service.xml

     
    • Steve Waldman

      Steve Waldman - 2014-05-02

      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.

      smiles,
         steve
      

      On May 2, 2014, at 7:14 AM, appsdaily77 appsdaily77@users.sf.net wrote:

      attached is the c3p0-service.xml

      Attachment: c3p0-service.xml (1.0 kB; text/xml)

      [bugs:#127] Unexpected error during load of: com.mchange.v2.c3p0.jboss.C3P0PooledDataSource, msg=Bad version number in .class file

      Status: open
      Group: v1.0 (example)
      Created: Fri May 02, 2014 02:05 PM UTC by appsdaily77
      Last Updated: Fri May 02, 2014 02:12 PM UTC
      Owner: nobody

      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 :
      <!DOCTYPE server>

      java:SCMDS
      jdbc:mysql://127.0.0.1:3306/db_name
      com.mysql.jdbc.Driver
      root
      password
      5
      connectionTestTable
      600
      10
      600
      300
      20
      10
      jboss:service=Naming

      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

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/c3p0/bugs/127/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #127

  • Steve Waldman

    Steve Waldman - 2014-05-02

    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

     
  • Steve Waldman

    Steve Waldman - 2014-05-02
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB