[jboss-user] [JBoss jBPM] - Can't connect to the Database

JimKnopf do-not-reply at jboss.com
Fri May 11 10:46:03 EDT 2007


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:
anonymous wrote : 
  | 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
anonymous wrote : 
  | 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 :)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045023#4045023

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045023



More information about the jboss-user mailing list