cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to get activiti running in tomcat 7/8

sramanat
Champ in-the-making
Champ in-the-making
Guys,

I am new to Activiti, so please bear with me here.

I am using the following

System - Windows 10 Home (64 bit 1607, OS Build - 14393.447)
Java - 1.8.0_111
Activiti - 5.0.22
Tomcat - 7.0.70 (for testing this out), 8.0.36 (for my other webapps usually)

With this setup, I restarted tomcat (both 7 and 😎 multiple times, but when I try to access localhost:8080/activiti-explorer from my browser I get HTTP 404 error. I have copied activiti-explorer.war to the webapps folder of tomcat, but that does not help. My other war files work well under tomcat, but for activiti I keep getting 404. (HTTP Status 404 - /activiti-explorer)

I've setup JAVA_HOME appropriately. Am I missing anything here?

PS - The same setup was tried on an EC2 machine running ubuntu (4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:42:33 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux) with the same results.

Any help would greatly be appreciated.

Thanks,
5 REPLIES 5

motorina0
Confirmed Champ
Confirmed Champ
Hi,
   1. Do you have the Tomcat logs, are you getting any errors?
   2. What DB have you configured; can you test the connection to it?
br,
Vlad

sramanat
Champ in-the-making
Champ in-the-making
Hi Vlad,

Thanks for your response.

1. I am attaching catalina logs here. I don't see anything out of the ordinary here. (obviously I'm mistaken). I am also pasting the activiti related lines here -

23-Nov-2016 19:20:15.756 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive C:\sriramr\sandbox\apache-tomcat-8.0.36\webapps\activiti-explorer.war
23-Nov-2016 19:20:15.897 WARNING [localhost-startStop-1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
23-Nov-2016 19:20:31.231 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
23-Nov-2016 19:20:31.407 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive C:\sriramr\sandbox\apache-tomcat-8.0.36\webapps\activiti-explorer.war has finished in 15,650 ms
23-Nov-2016 19:20:31.425 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive C:\sriramr\sandbox\apache-tomcat-8.0.36\webapps\activiti-rest.war
23-Nov-2016 19:20:33.998 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
23-Nov-2016 19:20:48.619 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive C:\sriramr\sandbox\apache-tomcat-8.0.36\webapps\activiti-rest.war has finished in 17,194 ms

2. I don't use any DB separately for Activiti and I was hoping that it'd use h2.

Thanks,
Sriram

motorina0
Confirmed Champ
Confirmed Champ
Hi,

   The logs look fine. I have even tested on my machine with your exact Tomcat version (https://archive.apache.org/dist/tomcat/tomcat-8/v8.0.36/bin/).

   What you can do next:
    - try deploying activiti-explorer on a clean tomcat (no other apps deployed)
    - check how was activity-explorer.war obtained? Downloaded, maven build? Can you share the war for cross-testing?
    - check also Activiti version  6, it has a new UI (http://bpmn20inaction.blogspot.ro/)

br,
Vlad

sramanat
Champ in-the-making
Champ in-the-making
Hi Vlad,

I still get 404 error after trying as you suggested by downloading activiti from https://github.com/Activiti/Activiti/releases/download/activiti-5.22.0/activiti-5.22.0.zip

I can't attach the war file because it is 42.453 Megs…

Thanks,
Sriram

motorina0
Confirmed Champ
Confirmed Champ
Hi Sriram,

   Hmm… have you also tried "clean tomcat installation" plus "fresh download of activiti-explorer.war"?

   If that doesn't work and you get no error messages, then I have no other suggestions Smiley Sad

br,
Vlad