cancel
Showing results for 
Search instead for 
Did you mean: 

Web Application Shutting down due to async job

mwm1
Champ in-the-making
Champ in-the-making
Dear all,
When I try to start the application Activiti Explorer, I have got the following error:

[localhost-startStop-1] INFO  org.springframework.beans.factory.config.PropertyPlaceholderConfigurer  - Loading properties file from class path resource [ui.properties]
[localhost-startStop-1] INFO  org.activiti.engine.impl.ProcessEngineImpl  - ProcessEngine default created
[localhost-startStop-1] INFO  org.activiti.engine.impl.asyncexecutor.DefaultAsyncJobExecutor  - Starting up the default async job executor [org.activiti.engine.impl.asyncexecutor.DefaultAsyncJobExecutor].
[localhost-startStop-1] INFO  org.activiti.engine.impl.asyncexecutor.DefaultAsyncJobExecutor  - Creating thread pool queue of size 100
[localhost-startStop-1] INFO  org.activiti.engine.impl.asyncexecutor.DefaultAsyncJobExecutor  - Creating executor service with corePoolSize 2, maxPoolSize 10 and keepAliveTime 5000
[Thread-4] INFO  org.activiti.engine.impl.asyncexecutor.AcquireTimerJobsRunnable  - {} starting to acquire async jobs due
[Thread-5] INFO  org.activiti.engine.impl.asyncexecutor.AcquireAsyncJobsDueRunnable  - {} starting to acquire async jobs due
[localhost-startStop-1] INFO  org.activiti.explorer.conf.DemoDataConfiguration  - Initializing demo groups
[localhost-startStop-1] INFO  org.activiti.explorer.conf.DemoDataConfiguration  - Initializing demo users
[localhost-startStop-1] INFO  org.activiti.engine.impl.asyncexecutor.DefaultAsyncJobExecutor  - Shutting down the default async job executor [org.activiti.engine.impl.asyncexecutor.DefaultAsyncJobExecutor].
[Thread-4] INFO  org.activiti.engine.impl.asyncexecutor.AcquireTimerJobsRunnable  - {} stopped async job due acquisition
[Thread-5] INFO  org.activiti.engine.impl.asyncexecutor.AcquireAsyncJobsDueRunnable  - {} stopped async job due acquisition
Dec 01, 2015 11:53:20 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Dec 01, 2015 11:53:20 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/activiti-explorer] startup failed due to previous errors
11:53:20,053 [localhost-startStop-1] INFO  org.activiti.explorer.servlet.WebConfigurer  - Destroying Web application


The engine properties are:

# demo data properties
create.demo.users=true
create.demo.definitions=false
create.demo.models=false
create.demo.reports=false

# engine properties
engine.schema.update=true
engine.activate.jobexecutor=false
engine.asyncexecutor.enabled=true
engine.asyncexecutor.activate=true
engine.history.level=full


3 REPLIES 3

vasile_dirla
Star Contributor
Star Contributor
Hi,
Since this log does not contain so many precious information it's hard to know what's happening.
please provide some more information:
- Activiti version
- database configuration (in case you changed it)
- or any other information you think could help. (maybe you'll find also some more detailed logs about the error)

mwm1
Champ in-the-making
Champ in-the-making
Please see the attached log file.
Here you have database connection
<code>
db=pgsql
jdbc.driver=org.postgresql.Driver
jdbc.url=jdbcSmiley Tongueostgresql://localhost/postgres
jdbc.username=postgres
jdbc.password=
</code>

Best regards

mwm1
Champ in-the-making
Champ in-the-making
I have got this SEVERE: Error listenerStart:

<code>
Dec 02, 2015 12:47:17 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Dec 02, 2015 12:47:17 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Dec 02, 2015 12:47:17 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Dec 02, 2015 12:47:17 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 739 ms
Dec 02, 2015 12:47:17 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Dec 02, 2015 12:47:17 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.55
Dec 02, 2015 12:47:17 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /appli/tomcat/webapps/activiti-rest.war
12:47:18,975 [localhost-startStop-1] INFO  org.springframework.web.context.support.AnnotationConfigWebApplicationContext  - Refreshing Root WebApplicationContext: startup date [Wed Dec 02 12:47:18 EST 2015]; root of context hierarchy
12:47:19,136 [localhost-startStop-1] INFO  org.springframework.web.context.support.AnnotationConfigWebApplicationContext  - Registering annotated classes: [class org.activiti.rest.conf.ApplicationConfiguration]
12:47:19,408 [localhost-startStop-1] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Loading XML bean definitions from class path resource [activiti-custom-context.xml]
Dec 02, 2015 12:47:22 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Dec 02, 2015 12:47:22 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/activiti-rest] startup failed due to previous errors
12:47:22,118 [localhost-startStop-1] INFO  org.activiti.rest.servlet.WebConfigurer  - Destroying Web application
Dec 02, 2015 12:47:22 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/activiti-rest] created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Transactional resources]) and a value of type [java.util.HashMap] (value [{org.springframework.jdbc.datasource.SimpleDriverDataSource@47b34499=org.springframework.jdbc.datasource.ConnectionHolder@70e9311d}]) 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.
Dec 02, 2015 12:47:22 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive /appli/tomcat/webapps/activiti-rest.war has finished in 4,258 ms
Dec 02, 2015 12:47:22 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /appli/tomcat/webapps/activiti-explorer.war

</code>