cancel
Showing results for 
Search instead for 
Did you mean: 

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

mkawakami
Champ in-the-making
Champ in-the-making
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.
4 REPLIES 4

hari
Star Contributor
Star Contributor
Place the postgres jar file in tomcat lib and try again. It will work.

mkawakami
Champ in-the-making
Champ in-the-making
asriharikiran, thank you for your comment.

Although I checked it works on Tomcat, I mean I'd like to debug on WildFly, not tomcat.
Is it possible?

jbarrez
Star Contributor
Star Contributor
Sure, same story. Make sure the jar is on the classpath.

mkawakami
Champ in-the-making
Champ in-the-making
jbarrez, thank you for your comment. I'll try.