Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
BZ-1163029 - dashbuilder for generic (ie tomcat) distribution has dif…
…ferent hibernate.cfg.xml to others
  • Loading branch information
dgutierr committed Nov 18, 2014
1 parent d0dc9bf commit 8076f9f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 79 deletions.
28 changes: 14 additions & 14 deletions jbpm-dashboard-distributions/src/main/tomcat7/META-INF/context.xml
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<Context fireRequestListenersOnForwards="false" >
<Context fireRequestListenersOnForwards="false">
<Resource name="jdbc/dashbuilder" auth="Container"
type="javax.sql.DataSource" username="dashbuilder" password="dashbuilder"
driverClassName="org.h2.Driver"
url="jdbc:h2:~/dashbuilder"
maxActive="8"
/>

<Resource name="jdbc/jbpm" auth="Container"
type="javax.sql.DataSource" username="sa" password=""
driverClassName="org.h2.Driver"
url="jdbc:h2:file:~/jbpm"
maxActive="8"
/>
<Resource name="BeanManager"
auth="Container"
type="javax.enterprise.inject.spi.BeanManager"
factory="org.jboss.weld.resources.ManagerObjectFactory"/>
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<WatchedResource>META-INF/context.xml</WatchedResource>

<Resource name="BeanManager"
auth="Container"
type="javax.enterprise.inject.spi.BeanManager"
factory="org.jboss.weld.resources.ManagerObjectFactory"/>
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<WatchedResource>META-INF/context.xml</WatchedResource>
</Context>

</Context>
20 changes: 12 additions & 8 deletions jbpm-dashboard-distributions/src/main/tomcat7/README.md
Expand Up @@ -4,20 +4,24 @@ Deployment onto Tomcat
Please follow the next steps in order to deploy the application.

Prerequisites
----------------------------------------
--------------------------------

The jBPM Dashboard connects by default to an H2 datasource identified with the following JNDI name <code>jdbc/jbpm</code>
as specified in the following [file](https://github.com/droolsjbpm/jbpm-dashboard/blob/master/jbpm-dashboard-distributions/src/main/tomcat7/META-INF/context.xml)
The jBPM Dashboard requires the jBPM History log's database tables to exist. So, it's **MANDATORY** to deploy the
jBPM Human Task console (or a superset, i.e: kie-wb) first. Otherwise, the jBPM Dashboard will not be initialized
correctly, will not be possible to display its key performance indicators and you are certain to see some database
exceptions on the log, something similar to _ERROR: relationship «processinstancelog» does not exists_.

The <code>jdbc/jbpm</code> datasource is shared between the jBPM Console and the jBPM Dashboard which in turns it's used to access
the jBPM's history log. So, it's **MANDATORY** to deploy the jBPM Human Task console (or a superset, i.e: kie-wb) first.
Otherwise, the jBPM Dashboard will not be initialized correctly, will not be possible to display its key performance indicators
and you are certain to see some database exceptions on the log, something similar to _ERROR: relationship «processinstancelog» does not exists_.
Configure a data source
--------------------------------

The jBPM Dashboard also requires a data source which **MUST BE** configured against the same database used by kie-wb
in order to get access to the jBPM's history log. The _dashbuilder.war/META-INF/context.xml_ file contains the
data source configuration used by dashbuilder. Edit & change it according to your needs before deploy the WAR (see next).

jBPM Dashboard Deployment
---------------------------------------

Get a WAR file (e.g. jbpm-dashbuilder-tomcat-7.war) that matchs the kie-wb version installed and deploy it to Tomcat.
Get a WAR file (e.g. jbpm-dashbuilder-tomcat-7.war) that matchs the kie-wb version installed and deploy it on Tomcat.

**DO NOT FORGET** to set <code>dashbuilder</code> as the context path since that path is referred by some kie-wb modules.
One easy way to do so is leverage the Tomcat autodeployment feature by copying the <code>jbpm-dashbuilder-tomcat-7.war</code>
Expand Down

This file was deleted.

0 comments on commit 8076f9f

Please sign in to comment.