tomat started successfully-but the application did not start successfully

Core: In
this case, you must check all tomcat logs to locate the problem. It may be that tomcat reported something wrong.

When deploying a system recently, tomat has started successfully, but accessing the application through the browser always reports error 404.

There is no problem on the port of the local and remote telnet tomcat. It
is guessed that it may be that the tomcat has started successfully, but the application has not started successfully. Or that the application is closed.

Set in a class, when the bean is destroyed, print the information, and indeed find that the bean is destroyed in the log.

But just to see cataline.out log, did not see anything wrong information.
I think of, tomcat there are other logs, some other error is not displayed in cataline.out in, then went to look at all the logs for that day found
localhost .2019-06-10.log An exception appears in
java.lang.ClassNotFoundException: com.xxx.portal.evidence.filter.GzipFilter
By viewing, it is found that this file is needed in our web.xml, but the new version has been deleted long ago , So we also delete it and it will start successfully.

Jun 10, 2019 2:32:33 PM org.apache.catalina.core.ApplicationContext log
INFO: Destroying Spring FrameworkServlet 'portal'
Jun 10, 2019 2:32:33 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Jun 10, 2019 2:37:21 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Jun 10, 2019 2:37:21 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jun 10, 2019 2:37:50 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter GzipFilter
java.lang.ClassNotFoundException: com.xxx.portal.evidence.filter.GzipFilter
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
	at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:527)
	at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:509)
	at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:137)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	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)

Published 331 original articles · 51 praises · 440,000 visits +

Guess you like

Origin blog.csdn.net/y41992910/article/details/91450247