[jboss-user] [JBoss jBPM] - Where does JBPM look for DefaultDS Datasource?

ssidhanta do-not-reply at jboss.com
Thu Jul 24 08:42:25 EDT 2008


Hi,

I am using JBPM Starter Kit 3.1.2.When deploying an application, my server starts up fine. But when running the appication I get the error in my server console:

11:14:41,633 INFO  [NamingHelper] JNDI InitialContext properties:{}
11:14:41,649 FATAL [DatasourceConnectionProvider] Could not find datasource: jav
a:/DefaultDS
javax.naming.NameNotFoundException: DefaultDS not bound
        at org.jnp.server.NamingServer.getBinding(NamingServer.java:514)
        at org.jnp.server.NamingServer.getBinding(NamingServer.java:522)
        at org.jnp.server.NamingServer.getObject(NamingServer.java:528)
        at org.jnp.server.NamingServer.lookup(NamingServer.java:281)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at org.hibernate.connection.DatasourceConnectionProvider.configure(Datas
ourceConnectionProvider.java:52)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvi
der(ConnectionProviderFactory.java:124)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvi
der(ConnectionProviderFactory.java:56)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFa
ctory.java:366)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:
60)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1823
)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
a:1143)
        at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory
(DbPersistenceServiceFactory.java:90)
        at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPers
istenceService.java:74)
        at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistence
Service.java:78)
        at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersis
tenceService.java:217)
        at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:537)
        at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
        at com.sample.action.CallProcess.testCallProcess(CallProcess.java:26)
        at org.apache.jsp.JSP.CallMethod_jsp._jspService(org.apache.jsp.JSP.Call
Method_jsp:58)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:322)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
14)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
ipalValve.java:39)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:159)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:59)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:112)
        at java.lang.Thread.run(Thread.java:595)
11:14:41,649 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
org.hibernate.HibernateException: Could not find datasource
        at org.hibernate.connection.DatasourceConnectionProvider.configure(Datas
ourceConnectionProvider.java:56)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvi
der(ConnectionProviderFactory.java:124)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvi
der(ConnectionProviderFactory.java:56)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFa
ctory.java:366)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:
60)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1823
)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
a:1143)
        at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory
(DbPersistenceServiceFactory.java:90)
        at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPers
istenceService.java:74)
        at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistence
Service.java:78)
        at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersis
tenceService.java:217)
        at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:537)
        at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
        at com.sample.action.CallProcess.testCallProcess(CallProcess.java:26)
        at org.apache.jsp.JSP.CallMethod_jsp._jspService(org.apache.jsp.JSP.Call
Method_jsp:58)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:322)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
14)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
ipalValve.java:39)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:159)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:59)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:112)
        at java.lang.Thread.run(Thread.java:595)
Caused by: javax.naming.NameNotFoundException: DefaultDS not bound
        at org.jnp.server.NamingServer.getBinding(NamingServer.java:514)
        at org.jnp.server.NamingServer.getBinding(NamingServer.java:522)
        at org.jnp.server.NamingServer.getObject(NamingServer.java:528)
        at org.jnp.server.NamingServer.lookup(NamingServer.java:281)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at org.hibernate.connection.DatasourceConnectionProvider.configure(Datas
ourceConnectionProvider.java:52)
        ... 39 more

In my Browser window I get this error:

HTTP Status 500 - 

--------------------------------------------------------------------------------

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Could not find datasource
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


root cause 

org.hibernate.HibernateException: Could not find datasource
	org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56)
	org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
	org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
	org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:366)
	org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:60)
	org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1823)
	org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1143)
	org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:90)
	org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:74)
	org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:78)
	org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:217)
	org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:537)
	org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
	com.sample.action.CallProcess.testCallProcess(CallProcess.java:26)
	org.apache.jsp.JSP.CallMethod_jsp._jspService(org.apache.jsp.JSP.CallMethod_jsp:58)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.


--------------------------------------------------------------------------------

Apache Tomcat/5.5


I have tried editing my hibernate.cfg.xml to pick up from the OracleDS datasource and removed all references to DefaultDS.
I have also tried editing my DefaultDS to Oracle format.But still the above error is oming up.

Can anyone tell me where from it is trying to look up the DefaultDS?

Thanks in anticipation.

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

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



More information about the jboss-user mailing list