[jboss-user] [JBoss jBPM] - datasource error in running a JSP in a JBPM JSP application

ssidhanta do-not-reply at jboss.com
Tue Jul 22 02:11:33 EDT 2008


Hi,

I am still stuck with the same error as follows while deploying a JBPM application in JBPM Starter Toolkit.

My hibernate.cfg.xml file in the Application's bin folder is as follows:

    org.hibernate.dialect.Oracle9Dialect
    oracle.jdbc.driver.OracleDriver
    jdbc:oracle:thin:peerless/peerless at 10.31.6.215:1522:coeidm
    peerless
    peerless

The hibernate.cfg.xml in the JBPM.sar folder is as follows:-

    org.hibernate.dialect.Oracle9Dialect
    <!--JbpmDS-->
    oracle.jdbc.driver.OracleDriver
    jdbc:oracle:thin:peerless/peerless at 10.31.6.215:1522:coeidm
    peerless
    peerless
    <!-- other hibernate properties -->
    true
    true
    true


My application gets deployed fine with no errors.

But when running the JSP I get an error message as follows:

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.DbPersistenceServiceFactory.createSchema(DbPersistenceServiceFactory.java:108)
	org.jbpm.JbpmConfiguration.createSchema(JbpmConfiguration.java:415)
	org.jbpm.JbpmConfiguration.createSchema(JbpmConfiguration.java:407)
	com.sample.action.CallProcess.testCallProcess(CallProcess.java:24)
	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.

Thanks in anticipation.

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

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



More information about the jboss-user mailing list