AnsweredAssumed Answered

How do I change DB on activiti-webapp-explorer2?

Question asked by mkawakami on Feb 6, 2016
Latest reply on Feb 9, 2016 by mkawakami
I'd like to debug the activiti-webapp-explorer2 (5.19.0) on WildFly 9.0.2.Final, using PostgreSQL.
I checked its "One minute" version demo (activiti-explorer.war) works fine on WildFly 9.0.2.Final and PostgreSQL.

Now I'd like to debug its source code.
After creating tables on PostgreSQL,
I updated db.properties on the project "activiti-webapp-explorer2" like this.


db=postgresql
jdbc.driver=org.postgresql.Driver
jdbc.url=jdbc:postgresql://localhost:5432/activiti
jdbc.username=username
jdbc.password=password


Also, I added the dependency in pom.xml.


<dependency>
   <groupId>org.postgresql</groupId>
   <artifactId>postgresql</artifactId>
   <version>9.4.1207.jre7</version>
</dependency>


But when I debug the project,
"ActivitiEngineConfiguration.java"(line #49) throws "ClassNotFoundException", saying

java.lang.ClassNotFoundException: org.postgresql.Driver from [Module "deployment.activiti-webapp-explorer2.war:main" from Service Module Loader].

I exported its war file.
But it does not contain PostgreSQL jdbc jar in WEB-INF/lib directory,
The contents of "db.properties" are updated to use PostgreSQL.
So I directly added jdbc jar by adding build path.But it does not work.

I guess I missed some configurations to change database.

I'm pretty newbie. I'll appreciate any help.
Thanks in advance.

Outcomes