cancel
Showing results for 
Search instead for 
Did you mean: 

'Manual' installation of Activiti 5.6

jammann
Champ in-the-making
Champ in-the-making
Hi all

due to some setup requirements of my customer, I can not use the full ant setup procedure. I need to break things apart a bit, and install Activiti 5.6 on top of an Oracle database. After some tweaking, I got things running, but I have one thing which I did not understand really (might be a shortcoming of the current installation procedure).

I changed the activiti-cfg.xml to work with my Oracle environment, and after building and deploying the webapps, the REST webapp was working ok, but Explorer, Probe etc. still tried to connect to a H2 database. I tracked it down to the ant target deploy.activiti.cfg.into.tomcat. As far as I was able to understand this, this copies the modified activiti cfg jar and the database driver jar (in my case ojdbc from Oracle) into the deployed webapp. But the original target only did it for the activiti-rest webapp. After I manually copied the activiti-cfg and ojdbc jar also to the other webapps, everything worked as expected.

Now I'm not sure if that was the right thing to do? Should the other webapps work even if the cfg is not deployed correctly? Or did I miss something in the build.xml and this copying happens somewhere else? Or is it just a little shortcoming of the current installation procedure?

Regards, Joe
2 REPLIES 2

htmfilho
Champ in-the-making
Champ in-the-making
I'm facing the same problem here, but I'm not a Spring expert, so difficult to identify the problem Smiley Sad

I've got the war packages that the demo script generated, put the activiti.cfg.xml in the folder WEB-INF/classes and the driver ojdbc5.jar in the folder WEB-INF/lib. The deployment does not generate any error message and the logging seems to indicate that the deployment was successful, but none of the applications run.

10-août-2011 11:38:48 org.apache.catalina.startup.HostConfig deployWAR
INFO: Déploiement de l'archive activiti-administrator.war de l'application web
10-août-2011 11:38:48 org.apache.catalina.startup.HostConfig deployWAR
INFO: Déploiement de l'archive activiti-cycle.war de l'application web
10-août-2011 11:38:48 org.apache.catalina.startup.HostConfig deployWAR
INFO: Déploiement de l'archive activiti-explorer.war de l'application web
10-août-2011 11:38:52 org.apache.catalina.startup.HostConfig deployWAR
INFO: Déploiement de l'archive activiti-init.war de l'application web
10-août-2011 11:38:52 org.apache.catalina.startup.HostConfig deployWAR
INFO: Déploiement de l'archive activiti-kickstart.war de l'application web
10-août-2011 11:38:52 org.apache.catalina.startup.HostConfig deployWAR
INFO: Déploiement de l'archive activiti-probe.war de l'application web

As you can see there is no error message in the log files. Therefore, impossible to figure out what is going on. Did you do something different from this? What am I missing?

htmfilho
Champ in-the-making
Champ in-the-making
I finally figured out what was the problem. Now, I'm in the same situation as you Smiley Happy To everyone else: how can we define a database connection that is common to all Activiti applications?