cancel
Showing results for 
Search instead for 
Did you mean: 

errors when run activiti-rest.war by tomcat7

时光机
Champ in-the-making
Champ in-the-making

I putted the source code of activiti-webapp-rest2 into idea ,and tried to run it by tomcat7.The db.properties like this

db=mysql
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://127.0.0.1:3306/dumii_activiti?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
jdbc.username=root
jdbc.password=root

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

When i use db of h2,it can start successful,but when i use mysql,it give errors like this:

--------------------------------------------------------------------------------------

三月 06, 2018 11:20:36 上午 org.apache.catalina.core.StandardContext startInternal
11:20:36,218 [RMI TCP Connection(3)-127.0.0.1] INFO  org.activiti.rest.servlet.WebConfigurer  - Destroying Web application
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
三月 06, 2018 11:20:36 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [] startup failed due to previous errors
[2018-03-06 11:20:36,246] Artifact activiti-webapp-rest2:war exploded: Error during artifact deployment. See server log for details.
三月 06, 2018 11:20:43 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\Development\apache-tomcat-7.0.85\webapps\manager
三月 06, 2018 11:20:44 上午 org.apache.catalina.startup.TldConfig execute
信息: 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.
三月 06, 2018 11:20:44 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\Development\apache-tomcat-7.0.85\webapps\manager has finished in 181 ms

--------------------------------------------------------------------------------------

then i tried to run it by mvn tomcat7:run,it gives errors like this:

--------------------------------------------------------------------------------------

严重: Error listenerStart
三月 06, 2018 11:26:48 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/activiti-rest] startup failed due to previous errors
三月 06, 2018 11:26:48 上午 org.apache.catalina.core.StandardContext listenerStop
严重: Exception sending context destroyed event to listener instance of class org.activiti.rest.servlet.WebConfigurer
java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
    at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:83)
    at org.activiti.rest.servlet.WebConfigurer.contextDestroyed(WebConfigurer.java:92)
    at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4980)
    at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5626)
    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
    at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:262)
    at java.util.concurrent.FutureTask.run(FutureTask.java)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)

--------------------------------------------------------------------------------------

Who can help me with it,thanks!

1 REPLY 1

andrakula
Champ on-the-rise
Champ on-the-rise

can you paste a full log with errors please.