Permalink
Browse files

JBPM-3722 - jbpm-console throws null pointer reading process instance

  • Loading branch information...
mswiderski committed Oct 17, 2012
1 parent d5381b9 commit 55a9c0ee631494452323c561b2e171ed568db36a
View
@@ -895,6 +895,11 @@
<delete dir="${jboss.home}"/>
<antcall target="clean.jboss.repository" />
</target>
+
+ <target name="clean.db" >
+ <delete file="${user.home}/jbpm.h2.db" failonerror="false"/>
+ <delete file="${user.home}/jbpm.trace.db" failonerror="false"/>
+ </target>
<target name="clean.jboss.repository" if="clean.repository">
<delete dir="${install.home}/repository"/>
@@ -915,9 +920,9 @@
</target>
<!-- Clean Demo -->
- <target name="clean.demo" depends="clean.jboss,clean.eclipse,clean.generated.ddl" />
+ <target name="clean.demo" depends="clean.jboss,clean.eclipse,clean.generated.ddl,clean.db" />
<!-- Clean Demo (No Eclipse) -->
- <target name="clean.demo.noeclipse" depends="clean.jboss,clean.generated.ddl" />
+ <target name="clean.demo.noeclipse" depends="clean.jboss,clean.generated.ddl,clean.db" />
<!-- ############### generate DDL out of persitence.xml ############### -->
<target name="download.ddl.check">
@@ -2,7 +2,7 @@
<datasources>
<local-tx-datasource>
<jndi-name>jboss/datasources/jbpmDS</jndi-name>
- <connection-url>jdbc:h2:tcp://localhost/runtime/jbpm-demo</connection-url>
+ <connection-url>jdbc:h2:~/jbpm</connection-url>
<driver-class>org.h2.jdbcx.JdbcDataSource</driver-class>
<user-name>sa</user-name>
<password></password>
@@ -10,8 +10,7 @@
<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="ProcessInstanceLog" id="25">
<property name="odaDriverClass">org.h2.Driver</property>
- <property name="odaURL">jdbc:h2:tcp://localhost/~/test</property>
- <property name="odaUser">sa</property>
+ <property name="odaJndiName">java:jboss/datasources/jbpmDS</property>
</oda-data-source>
</data-sources>
<data-sets>
@@ -23,8 +23,7 @@
<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="ProcessInstanceLog" id="25">
<property name="odaDriverClass">org.h2.Driver</property>
- <property name="odaURL">jdbc:h2:tcp://localhost/~/test</property>
- <property name="odaUser">sa</property>
+ <property name="odaJndiName">java:jboss/datasources/jbpmDS</property>
</oda-data-source>
</data-sources>
<data-sets>
@@ -65,8 +65,7 @@
</ex-property>
</list-property>
<property name="odaDriverClass">org.h2.Driver</property>
- <property name="odaURL">jdbc:h2:tcp://localhost/runtime/jbpm</property>
- <property name="odaUser">sa</property>
+ <property name="odaJndiName">java:jboss/datasources/jbpmDS</property>
</oda-data-source>
</data-sources>
<data-sets>
@@ -40,8 +40,7 @@
</ex-property>
</list-property>
<property name="odaDriverClass">org.h2.Driver</property>
- <property name="odaURL">jdbc:h2:tcp://localhost/runtime/jbpm</property>
- <property name="odaUser">sa</property>
+ <property name="odaJndiName">java:jboss/datasources/jbpmDS</property>
</oda-data-source>
</data-sources>
<data-sets>
@@ -108,7 +108,7 @@
</security>
</datasource>
<datasource jta="true" jndi-name="java:jboss/datasources/jbpmDS" pool-name="H2DS" enabled="true" use-java-context="true" use-ccm="true">
- <connection-url>jdbc:h2:tcp://localhost/runtime/jbpm</connection-url>
+ <connection-url>jdbc:h2:~/jbpm</connection-url>
<driver>h2</driver>
<pool>
<min-pool-size>1</min-pool-size>

0 comments on commit 55a9c0e

Please sign in to comment.