4 Replies Latest reply on Jan 31, 2004 7:01 PM by mcscottmc

    Driver does not have method: getGeneratedKeys()

    jagm88

       

      "jagm88" wrote:
      Hello, I´m new in Nukes, next to configurated all points of "Installation and Build" I run jboss server, obtaining the error:

      Depends On Me: , ObjectName: jboss.j2ee:service=EJB,jndiName=nukes/User
      state: FAILED
      I Depend On:
      Depends On Me: nukes.modules:name=core
      org.jboss.deployment.DeploymentException: Driver does not have method: getGeneratedKeys()

      I use mysql-connector3.0.10-stable.jar.allocated in %JBOSS_HOME%/server/default/lib. I need other driver?

      Regards


        • 1. Re: Driver does not have method: getGeneratedKeys()
          bdinnerv

           

          "bdinnerv" wrote:
          I have been using connecter-J 3.0.9 for some time now, and it definatly has getGeneratedKeys(), i have not had a good look at 3.0.10, but getGeneratedKeys is part of JDBC3, and i doubt very much that MySQL would have gone from a JDBC3 compliant driver to a non-compliant with an upgraded version. Are you sure you have the jdbc driver correclty placed so it is in the class path?
          Anyone else abel to comment as to wether this is a Jboss / Nukes prob or a jdbc driver prob?


          • 2. Re: Driver does not have method: getGeneratedKeys()
            jagm88

             

            "jagm88" wrote:
            I´ve placed the driver into %JBOSS_HOME%/server/default/lib. I´ve placed into %JBOSS_HOME%/server/default/deploy, obtains equal results. I need place the driver in other place to build(before deploy...)? I don´t understand last question(I´m spanish, sorry).


            • 3. Re: Driver does not have method: getGeneratedKeys()

              I used version 3.0.10 following the install instructions for MySQL and it worked perfectly. Using the latest JBoss and latest Nukes.

              • 4. Re: Driver does not have method: getGeneratedKeys()
                mcscottmc

                jagm88:
                Don't put the driver in the deploy directory, keep it in the lib directory where you originally put it.

                Are you building from the source distribution or did you download the precompiled distribution? If you are compiling your own, make sure you copied copy $NUKES_HOME/build/etc/local.properties-mysql to $NUKES_HOME/build/local.properties. This ensures that all of your files are configured to use mysql.

                -Scott