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. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933132#3933132 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933132 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user