1 Reply Latest reply on May 11, 2007 10:55 AM by Jim Knopf

    Can't connect to the Database

    Jim Knopf Newbie

      Hi All.

      My Problem is, that i get an Exception when i try to create a connection
      to my Databse and don't know why.
      The Exception Says: "NoSuchMethodeError".
      Did i

      I realy don't have an idea where my mistake is.
      I just can't connect to the Database.

      Using:


      jBPM 3.1.2
      JTDS 1.2
      Sql-Server 2000
      Sun's Glassfish


      Code where the Exception throws
      JbpmConfiguration.getInstance().createSchema();
      


      HibernateConfig.xml
      - <!-- jdbc connection properties
       -->
       <property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
      - <!-- property name="hibernate.connection.datasource">JbpmDS</property
       -->
       <property name="hibernate.connection.driver_class">net.sourceforge.jtds.jdbc.Driver</property>
       <property name="hibernate.connection.url">jdbc:jtds:sqlserver://192.168.250.70:1433;DatabaseName=JBPM</property>
       <property name="hibernate.connection.username">Me</property>
       <property name="hibernate.connection.password">MyPassword</property>
       <property name="jbpm.create.tables.log">true</property>
      


      Exception

      java.lang.NoSuchMethodError: org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z
      at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
      at java.sql.DriverManager.getConnection(DriverManager.java:582)
      at java.sql.DriverManager.getConnection(DriverManager.java:154)
      at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
      at org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.prepare(ManagedProviderConnectionHelper.java:28)
      at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:180)
      at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:133)
      at org.jbpm.persistence.db.DbPersistenceServiceFactory.createSchema(DbPersistenceServiceFactory.java:107)
      at org.jbpm.JbpmConfiguration.createSchema(JbpmConfiguration.java:415)
      at org.jbpm.JbpmConfiguration.createSchema(JbpmConfiguration.java:407)


      Thanks for ur answers :)