2 Replies Latest reply on Mar 29, 2006 11:37 AM by shahzad bhatti

    jBPM-db examples outside JBoss Container

    shahzad bhatti Newbie

      I am trying to run jBPM samples outside JBoss application server. In this particular test, I am using hsql for database, but it looks like hibernate is looking up data source using JNDI. In this case, since I am not within any application server, it fails, e.g.
      09:21:25,283 [main] FATAL DatasourceConnectionProvider : Could not find datasource: java:/DefaultDS
      javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
      at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
      at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
      at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
      at org.hibernate.tool.hbm2ddl.SchemaExport$ProviderConnectionHelper.getConnection(SchemaExport.java:466)
      at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:183)
      at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:135)
      at org.jbpm.persistence.db.DbPersistenceServiceFactory.createSchema(DbPersistenceServiceFactory.java:107)
      at org.jbpm.JbpmConfiguration.createSchema(JbpmConfiguration.java:383)
      at org.jbpm.JbpmConfiguration.createSchema(JbpmConfiguration.java:375)
      at AbstractDbTestCase.createSchema(AbstractDbTestCase.java:100)
      at AbstractDbTestCase.setUp(AbstractDbTestCase.java:34)
      at WebsaleTest.setUp(WebsaleTest.java:27)


      Any help would be appreciated.