cancel
Showing results for 
Search instead for 
Did you mean: 

intermediateCatchEvent with timerEventDefinition failed

vldsr
Champ in-the-making
Champ in-the-making
Hi,

In my very simple process I have next error at the transition to timer step:
2016-06-07 19:48:24 ERROR AcquireAsyncJobsDueRunnable:85 - exception during async job acquisition: org/activiti/engine/impl/asyncexecutor/ExecuteAsyncRunnable
java.lang.NoClassDefFoundError: org/activiti/engine/impl/asyncexecutor/ExecuteAsyncRunnable
   at org.activiti.spring.SpringAsyncExecutor.executeAsyncJob(SpringAsyncExecutor.java:82)
   at org.activiti.engine.impl.asyncexecutor.AcquireAsyncJobsDueRunnable.run(AcquireAsyncJobsDueRunnable.java:56)
   at java.lang.Thread.run(Thread.java:745)

I've tried to use it at very simple process Start->ServiceTask->Timer->ServiceTask2->End
And I have error after ServiceTask finished.
In case I've removed Timer from chain - both ServiceTask works as expected

This error occurs on linux machine under Apache Tomcat/7.0.54
Also note, what locally all works good under in case I am starting application over maven tomcat plugin
I am using spring integration with autoconfiguration.

I am new in Java, so can't say is it important or not, but there is next log messages at startup:
INFO: validateJarFile(/usr/share/tomcat/webapps/mis-activiti/WEB-INF/lib/tomcat-embed-el-8.0.32.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/el/Expression.class



Please, let me know if you need more details.
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

java.lang.NoClassDefFoundError: org/activiti/engine/impl/asyncexecutor/ExecuteAsyncRunnableExecuteAsyncRunnable is not in your classpath. Add library to the classpath.

Regards
Martin

vldsr
Champ in-the-making
Champ in-the-making
Hi, Martin

Thanks for your response!
What library should I add in classpath?
I've already have next dependencies:
        <dependency>
            <groupId>org.activiti</groupId>
            <artifactId>activiti-spring-boot-starter-basic</artifactId>
            <version>${activiti.version}</version>
        </dependency>
        <dependency>
            <groupId>org.activiti</groupId>
            <artifactId>activiti-spring-boot-starter-rest-api</artifactId>
            <version>${activiti.version}</version>
        </dependency>
        <dependency>
            <groupId>org.activiti</groupId>
            <artifactId>activiti-spring-boot-starter-actuator</artifactId>
            <version>${activiti.version}</version>
        </dependency>

I assume ExecuteAsyncRunnable should be in activiti-engine jar, but I have WEB-INF\lib\activiti-engine-5.20.0.jar

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

I assume ExecuteAsyncRunnable should be in activiti-engine jar, but I have WEB-INF\lib\activiti-engine-5.20.0.jar
Yes exactly. In that case the question is why it was not loaded. The answer could be somewhere in your tomcat. If we could reproduce the issue may be I can help more.

Regards
Martin