IntelliJ idea running Web program error Listenerstart

Source: Internet
Author: User
18-sep-2016 17:04:03.023 SEVERE [localhost-startstop-1] Org.apache.catalina.core.StandardContext.startInternal Error Listenerstart 18-sep-2016 17:04:03.096 SEVERE [localhost-startstop-1] Org.apache.catalina.core.StandardContext.startInternal Context [/api] startup failed due to previous errors

The above problem is not clearly given where the error really appears.
The steps to resolve are as follows:
1, in the project directory web-info/classes a new logging.properties file, the file content is as follows:
Handlers = Org.apache.juli.filehandler,java.util.logging.consolehandler
Org.apache.juli.FileHandler.level = FINE
Org.apache.juli.FileHandler.directory = ${catalina.base}/logs
Org.apache.juli.FileHandler.prefix = Error-debug.

Java.util.logging.ConsoleHandler.level = FINE
Java.util.logging.ConsoleHandler.formatter = Java.util.logging.SimpleFormatter

2. Rebuild and run the Web project, and the log file beginning with Error-debug will be generated in the Logs folder under Tomcat.
3, the log file in the specific cause of error listenerstart errors, I this main reason is serious:
Error Configuring application Listener of Class Com.kindergartenmanagement.framework.listeners.MySessionListener
JVM 1 | Java.lang.ClassNotFoundException:com.kindergartenmanagement.framework.listeners.MySessionListener
JVM 1 | At Org.apache.catalina.loader.WebappClassLoaderBase.loadClass (webappclassloaderbase.java:1295)
JVM 1 | At Org.apache.catalina.loader.WebappClassLoaderBase.loadClass (webappclassloaderbase.java:1147)
JVM 1 | At Org.apache.catalina.core.DefaultInstanceManager.loadClass (defaultinstancemanager.java:520)
JVM 1 | At Org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged (defaultinstancemanager.java:501)
JVM 1 | At Org.apache.catalina.core.DefaultInstanceManager.newInstance (defaultinstancemanager.java:120)
JVM 1 | At Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:4693)
JVM 1 | At Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5196)
JVM 1 | At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150)
JVM 1 | At Org.apache.catalina.core.ContainerBase Startchild.call (containerbase.java:1409) jvm1| Atorg.apache.catalina.core.ContainerBase Startchild.call (containerbase.java:1409) JVM 1 | At Org.apache.catalina.core.ContainerBaseStartChild.call (containerbase.java:1399)
JVM 1 | At Java.util.concurrent.FutureTask.run (Unknown Source)
JVM 1 | At Java.util.concurrent.ThreadPoolExecutor.runWorker (Unknown Source)
JVM 1 | At Java.util.concurrent.threadpoolexecutor$worker.run (Unknown Source)
JVM 1 | At Java.lang.Thread.run (Unknown Source)
The above error occurs because/web-info/ Classes can not find Com.kindergartenmanagement.framework.listeners.MySessionListener this class, and then delete the corresponding class, regenerate.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.