cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with activiti-rest.war

wmfinamore
Champ in-the-making
Champ in-the-making
Hi

I tried to deploy the activiti-rest.war with the Tomcat7 but the application does not work. What i could make to fix the problem? I'm using the Activiti 5.12.

Thanks
22 REPLIES 22

wmfinamore
Champ in-the-making
Champ in-the-making
INFO: Deploying web application archive C:\Java\Tomcat7\webapps\activiti-rest.war
10/04/2013 23:08:46 org.apache.catalina.core.StandardContext startInternal
GRAVE: Error listenerStart
10/04/2013 23:08:46 org.apache.catalina.core.StandardContext startInternal
GRAVE: Context [/activiti-rest] startup failed due to previous errors
10/04/2013 23:08:46 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
GRAVE: The web application [/activiti-rest] registered the JDBC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
10/04/2013 23:08:46 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/activiti-rest] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@7ed32f11]) and a value of type [org.apache.ibatis.executor.ErrorContext] (value [
### The error may exist in org/activiti/db/mapping/entity/EventSubscription.xml
### The error occurred while processing mapper_resultMap[compensateResultMap]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

criszhao
Champ in-the-making
Champ in-the-making
You need to change your db config.
replace the file content of tomcatedir\webapps\activiti-rest\WEB-INF\classes\db.properties as below
db=h2
jdbc.driver=org.h2.Driver
jdbc.url=jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000
jdbc.username=sa
jdbc.password=
this will use default h2 database.

wmfinamore
Champ in-the-making
Champ in-the-making
CrisZhao

Was exactly what did you say!

Thanks

sarkar92
Champ in-the-making
Champ in-the-making
I also get the same problem…but no solution…..

I tried the same thing below

db=h2
jdbc.driver=org.h2.Driver
jdbc.url=jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000
jdbc.username=sa
jdbc.password=

it solve the 404 error but now I get

Forbidden

Authentication is required

same user : kermit
and pass : kermit
i use for login in explorer but in rest it show authentication problem.

jbarrez
Star Contributor
Star Contributor
You can't go to the same H2 database in memory, the problem is that actually the REST app has a database which doesn't contain any users.

If you want to have shared state between the rest and explorer app, you'd need a persistent database (a H2 which works through TCP is also already good).

sarkar92
Champ in-the-making
Champ in-the-making
thanks for reply….

can you please tell me how can I hared state between the rest and explorer app?? and also how can I persistent database for these??

jbarrez
Star Contributor
Star Contributor
Just install any supported database: postgres, mysql, … and update the db.properties accordingly as described in http://activiti.org/userguide/index.html#databaseConfiguration

Installing such a database will depend on your system.

b_schnarr
Champ in-the-making
Champ in-the-making
Lets say some of our processes contain java service tasks and we want to have shared state between the rest and explorer app, do we have to deploy process definitions or java service task classes multiple times for each web app? Or is it enough to deploy it one time because of the shared persistent database?

trademak
Star Contributor
Star Contributor
You have to include the Java classes on both classpaths. The process definitions can be deployed only once because of the shared database. You could also create one web application that includes the REST API and the Explorer classes.

Best regards,