NutzCN Logo
问答 本地tomcat跑着没事,移到服务器上就挂了
发布于 3012天前 作者 LuoYY 3178 次浏览 复制 上一个帖子 下一个帖子
标签:

日志如下:

Aug 24, 2016 4:46:27 PM org.apache.catalina.startup.TldConfig execute
INFO: 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.
2016-08-24 16:46:27,577 org.nutz.mvc.NutFilter._init(NutFilter.java:81) INFO  - NutFilter[ds] starting ...
2016-08-24 16:46:27,697 org.nutz.resource.Scans.<init>(Scans.java:486) DEBUG - Locations for Scans:
[JarResourceLocation [jarPath=/home/apache-tomcat-test/bin/bootstrap.jar], JarResourceLocation [jarPath=/home/apache-tomcat-test/bin/tomcat-juli.jar], FileSystemResourceLocation [root=/home/apache-tomcat-test/webapps/ds/WEB-INF/classes], FileSystemResourceLocation [root=/home/apache-tomcat-test/bin], JarResourceLocation [jarPath=/home/apache-tomcat-test/webapps/ds/WEB-INF/lib/nutz-1.r.57.jar]]
2016-08-24 16:46:28,032 org.nutz.resource.Scans.init(Scans.java:75) DEBUG - Locations for Scans:
[JarResourceLocation [jarPath=/home/apache-tomcat-test/webapps/ds/WEB-INF/lib/httpclient-4.3.6.jar], JarResourceLocation [jarPath=/home/apache-tomcat-test/webapps/ds/WEB-INF/lib/mongo-java-driver-3.1.1.jar], JarResourceLocation [jarPath=/home/apache-tomcat-test/webapps/ds/WEB-INF/lib/slf4j-api-1.7.7.jar], JarResourceLocation [jarPath=/home/apache-tomcat-test/webapps/ds/WEB-INF/lib/quartz-jobs-2.2.3.jar], JarResourceLocation [jarPath=/home/apache-tomcat-test/webapps/ds/WEB-INF/lib/wcomp-1.3.jar], FileSystemResourceLocation [root=/home/apache-tomcat-test/bin], FileSystemResourceLocation [root=/home/apache-tomcat-test/webapps/ds/WEB-INF/classes], JarResourceLocation [jarPath=/home/apache-tomcat-test/bin/tomcat-juli.jar], JarResourceLocation [jarPath=/home/apache-tomcat-test/webapps/ds/WEB-INF/lib/httpcore-4.3.3.jar], JarResourceLocation [jarPath=/home/apache-tomcat-test/webapps/ds/WEB-INF/lib/druid-1.0.16.jar], JarResourceLocation [jarPath=/home/apache-tomcat-test/webapps/ds/WEB-INF/lib/httpmime-4.3.6.jar], JarResourceLocation [jarPath=/home/apache-tomcat-test/webapps/ds/WEB-INF/lib/quartz-2.2.3.jar], JarResourceLocation [jarPath=/home/apache-tomcat-test/webapps/ds/WEB-INF/lib/mysql-connector-java-5.1.39-bin.jar], JarResourceLocation [jarPath=/home/apache-tomcat-test/webapps/ds/WEB-INF/lib/nutz-integration-quartz-1.r.56.jar], JarResourceLocation [jarPath=/home/apache-tomcat-test/bin/bootstrap.jar], JarResourceLocation [jarPath=/home/apache-tomcat-test/webapps/ds/WEB-INF/lib/log4j-1.2.17.jar], JarResourceLocation [jarPath=/home/apache-tomcat-test/webapps/ds/WEB-INF/lib/slf4j-log4j12-1.7.7.jar], JarResourceLocation [jarPath=/home/apache-tomcat-test/webapps/ds/WEB-INF/lib/commons-logging-1.2.jar], JarResourceLocation [jarPath=/home/apache-tomcat-test/webapps/ds/WEB-INF/lib/nutz-1.r.57.jar]]
Aug 24, 2016 4:46:28 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more Filters failed to start. Full details will be found in the appropriate container log file
Aug 24, 2016 4:46:28 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/ds] startup failed due to previous errors
8 回复

还有其他日志呢.

SEVERE: One or more Filters failed to start. Full details will be found in the appropriate container log file

另外,请换成 1.r.57.r3

@wendal 这个appropriate container log file在哪里啊,不知道怎么看,现在的日子使用 tail -f catalina.out 命令看的

logs目录下找, 还有几个日志文件呢

@wendal
该看哪一个呢

catalina.out
catalina.2016-08-23.log
catalina.2016-08-24.log
host-manager.2016-08-23.log
host-manager.2016-08-24.log
localhost.2016-08-23.log
localhost.2016-08-24.log
localhost_access_log.2016-08-23.txt
localhost_access_log.2016-08-24.txt
manager.2016-08-23.log
manager.2016-08-24.log

我先给一个localhost.2016-08-24.log

Aug 24, 2016 4:22:06 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter ds
java.lang.UnsupportedClassVersionError: pub/mysci/ds/MainModule : Unsupported major.minor version 52.0 (unable to load class pub.mysci.ds.MainModule)
	at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3179)
	at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1372)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1860)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1734)
	at org.nutz.lang.Lang.loadClass(Lang.java:1991)
	at org.nutz.mvc.config.AbstractNutConfig.getMainModule(AbstractNutConfig.java:127)
	at org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:51)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:18)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4939)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5633)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
	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)

Aug 24, 2016 4:22:07 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Aug 24, 2016 4:22:07 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Aug 24, 2016 4:22:07 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@37b8a033')
Aug 24, 2016 4:43:45 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Aug 24, 2016 4:43:45 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Aug 24, 2016 4:43:57 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter ds
java.lang.UnsupportedClassVersionError: pub/mysci/ds/MainModule : Unsupported major.minor version 52.0 (unable to load class pub.mysci.ds.MainModule)
	at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3179)
	at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1372)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1860)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1734)
	at org.nutz.lang.Lang.loadClass(Lang.java:1991)
	at org.nutz.mvc.config.AbstractNutConfig.getMainModule(AbstractNutConfig.java:127)
	at org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:51)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:18)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4939)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5633)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
	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)

Aug 24, 2016 4:43:59 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Aug 24, 2016 4:43:59 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Aug 24, 2016 4:43:59 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@72cef095')
Aug 24, 2016 4:44:54 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter ds
java.lang.UnsupportedClassVersionError: pub/mysci/ds/MainModule : Unsupported major.minor version 52.0 (unable to load class pub.mysci.ds.MainModule)
	at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3179)
	at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1372)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1860)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1734)
	at org.nutz.lang.Lang.loadClass(Lang.java:1991)
	at org.nutz.mvc.config.AbstractNutConfig.getMainModule(AbstractNutConfig.java:127)
	at org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:51)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:18)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4939)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5633)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1312)
	at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:690)
	at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:216)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:442)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1082)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:623)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)

Aug 24, 2016 4:46:28 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter ds
java.lang.UnsupportedClassVersionError: pub/mysci/ds/MainModule : Unsupported major.minor version 52.0 (unable to load class pub.mysci.ds.MainModule)
	at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3179)
	at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1372)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1860)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1734)
	at org.nutz.lang.Lang.loadClass(Lang.java:1991)
	at org.nutz.mvc.config.AbstractNutConfig.getMainModule(AbstractNutConfig.java:127)
	at org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:51)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:18)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4939)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5633)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1312)
	at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:690)
	at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:216)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:442)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1082)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:623)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)

你的代码用JDK8编译的, 然后服务器上的JDK不是8

java.lang.UnsupportedClassVersionError: pub/mysci/ds/MainModule : Unsupported major.minor version 52.0 (unable to load class pub.mysci.ds.MainModule)

@wendal 哦,原来是这样啊,难怪本地跑着一直没问题,谢啦

@wendal 对了,1.r.57.r3在哪下载,官网还没有啊,我这项目没用maven

官网有啊, 第一个压缩包就是啊

maven也能直接下载:

http://repo1.maven.org/maven2/org/nutz/nutz/1.r.57.r3/

添加回复
请先登陆
回到顶部