2 Replies Latest reply on Jan 29, 2004 3:18 AM by jagm88

    problem JBOSS - MySQL

    jagm88 Newbie

       

      "jagm88" wrote:
      Hello,

      When run jboss, it caugths a DeploymentException:

      16:50:24,574 ERROR [EntityContainer] Starting failed
      org.jboss.deployment.DeploymentException: Driver does not have method: getGeneratedKeys()
      at org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCMySQLCreateCommand.init(JDB
      CMySQLCreateCommand.java:47)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateEntityCommand(JDBCCommandFactory.java:150)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDB
      CStoreManager.java:466)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManage
      r.java:388)
      at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManag
      er.java:152)
      at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:342)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke

      ......

      I don´t understand the problem, because I use J/Connector 3.0.10stable and the documentation of this Driver say that supports this entity command. I don´t know if I need change my driver, my jboss(actually 3.2.3), mysql(4.0.17)... any idea?


        • 1. Re: problem JBOSS - MySQL
          Darran Lofthouse Master

           

          "darranl" wrote:
          Can you post your mysql-ds.xml (Or whatever you have called it), I am using the 3.0.7 version of the driver with JBoss 3.2.3 with no problems.


          • 2. Re: problem JBOSS - MySQL
            jagm88 Newbie

             

            "jagm88" wrote:
            This is my nukes-ds.xml(I not rename the file, necessary? )

            <?xml version="1.0" encoding="UTF-8"?>

            <datasources>
            <local-tx-datasource>
            <jndi-name>NukesDS</jndi-name>
            <connection-url>jdbc:mysql://localhost:3306/nukes</connection-url>
            <driver-class>org.gjt.mm.mysql.Driver</driver-class>
            <user-name>root</user-name>
            <password></password>
            </local-tx-datasource>
            </datasources>