NutzCN Logo
问答 谁来救救我,服务器项目启动失败
发布于 2647天前 作者 qq_1d84c364 1713 次浏览 复制 上一个帖子 下一个帖子
标签:

我本地电脑好的,放到服务器报错,tomcat环境和jdk都统一了。怎么会找不到类?

九月 23, 2017 3:52:47 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:nutz.document' did not find a matching property.
九月 23, 2017 3:52:47 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/8.0.35
九月 23, 2017 3:52:47 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          May 11 2016 21:57:08 UTC
九月 23, 2017 3:52:47 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         8.0.35.0
九月 23, 2017 3:52:47 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Windows 10
九月 23, 2017 3:52:47 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            10.0
九月 23, 2017 3:52:47 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
九月 23, 2017 3:52:47 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             D:\Program Files\jdk1.8.0_77\jre
九月 23, 2017 3:52:47 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.8.0_77-b03
九月 23, 2017 3:52:47 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
九月 23, 2017 3:52:47 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         D:\Frank\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2
九月 23, 2017 3:52:47 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         D:\Frank\webServer\apache-tomcat-8.0.35_64bit
九月 23, 2017 3:52:47 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\Frank\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2
九月 23, 2017 3:52:47 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\Frank\webServer\apache-tomcat-8.0.35_64bit
九月 23, 2017 3:52:47 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\Frank\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps
九月 23, 2017 3:52:47 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\Frank\webServer\apache-tomcat-8.0.35_64bit\endorsed
九月 23, 2017 3:52:47 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=GBK
九月 23, 2017 3:52:47 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\jdk1.8.0_77\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files\Docker\Docker\Resources\bin;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.8.0_121\bin;C:\Program Files\Java\jdk1.8.0_121\jre\bin;D:\Frank\webServer\apache-maven-3.3.9\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Git\cmd;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;;.
九月 23, 2017 3:52:47 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-nio-8080"]
九月 23, 2017 3:52:47 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
九月 23, 2017 3:52:47 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-nio-8009"]
九月 23, 2017 3:52:47 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
九月 23, 2017 3:52:47 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 781 ms
九月 23, 2017 3:52:47 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
九月 23, 2017 3:52:47 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.0.35
九月 23, 2017 3:52:48 下午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [113] milliseconds.
九月 23, 2017 3:52:55 下午 org.apache.jasper.servlet.TldScanner scanJars
信息: 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.
log4j:WARN No appenders could be found for logger (org.nutz.mvc.NutFilter).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
九月 23, 2017 3:52:55 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
org.nutz.mvc.NutConfigException: java.lang.ClassNotFoundException: com.easysoft.MainMoudle
	at org.nutz.mvc.config.AbstractNutConfig.getMainModule(AbstractNutConfig.java:134)
	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:91)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
	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:4660)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5298)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: com.easysoft.MainMoudle
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1139)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at org.nutz.lang.Lang.loadClass(Lang.java:2063)
	at org.nutz.mvc.config.AbstractNutConfig.getMainModule(AbstractNutConfig.java:127)
	... 16 more

九月 23, 2017 3:52:55 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
九月 23, 2017 3:52:55 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/nutz.document] startup failed due to previous errors
九月 23, 2017 3:52:55 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8080"]
九月 23, 2017 3:52:55 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8009"]
九月 23, 2017 3:52:55 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 7869 ms

4 回复

MainMoudle这个类的所在的jar包,没有打包到war包里

如果是部署,应该是生成war文件放入tomcat的webapps目录吧,而不是用eclipse启动

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