NutzCN Logo
问答 NutzWk-4.x (NutzWk-modular.zip) tomcat一直没加载项目
发布于 2395天前 作者 netexe 1743 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

今天下载的 NutzWk-4.x (NutzWk-modular.zip) tomcat一直没加载项目。
tomcat 8.5.28 , 8.5.31
JDK 1.8.171
数据库配置是正确的。

IDEA里debug跑不起来,直接部署到Tomcat也跑不起来。catalina.log没有任何错误信息。

能找到 http://localhost:8080/index.html
http://localhost:8080/sysadmin 404错误

不知道又是我自己哪里的低级错误。请指教。

03-Jun-2018 00:10:37.730 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1837 ms
03-Jun-2018 00:10:37.795 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
03-Jun-2018 00:10:37.796 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.28
03-Jun-2018 00:10:37.819 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [D:\DevTools\apache-tomcat-8.5.28\webapps\ROOT]
03-Jun-2018 00:10:50.693 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.5.28
03-Jun-2018 00:10:50.704 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Feb 6 2018 23:10:25 UTC
03-Jun-2018 00:10:50.704 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.5.28.0
03-Jun-2018 00:10:50.705 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 10
03-Jun-2018 00:10:50.705 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            10.0
03-Jun-2018 00:10:50.706 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
03-Jun-2018 00:10:50.706 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             C:\Program Files\Java\jdk1.8.0_171\jre
03-Jun-2018 00:10:50.707 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_171-b11
03-Jun-2018 00:10:50.707 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
03-Jun-2018 00:10:50.710 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         D:\DevTools\apache-tomcat-8.5.28
03-Jun-2018 00:10:50.711 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         D:\DevTools\apache-tomcat-8.5.28
03-Jun-2018 00:10:50.712 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=D:\DevTools\apache-tomcat-8.5.28\conf\logging.properties
03-Jun-2018 00:10:50.712 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
03-Jun-2018 00:10:50.715 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
03-Jun-2018 00:10:50.716 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
03-Jun-2018 00:10:50.719 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
03-Jun-2018 00:10:50.722 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=D:\DevTools\apache-tomcat-8.5.28
03-Jun-2018 00:10:50.723 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=D:\DevTools\apache-tomcat-8.5.28
03-Jun-2018 00:10:50.726 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=D:\DevTools\apache-tomcat-8.5.28\temp
03-Jun-2018 00:10:50.729 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.16] using APR version [1.6.3].
03-Jun-2018 00:10:50.730 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
03-Jun-2018 00:10:50.731 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
03-Jun-2018 00:10:51.789 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.0.2m  2 Nov 2017]
03-Jun-2018 00:10:52.143 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
03-Jun-2018 00:10:52.649 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
03-Jun-2018 00:10:52.663 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
03-Jun-2018 00:10:52.673 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
03-Jun-2018 00:10:52.674 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 2924 ms
03-Jun-2018 00:10:52.734 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
03-Jun-2018 00:10:52.735 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.28
03-Jun-2018 00:10:52.755 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [D:\DevTools\apache-tomcat-8.5.28\webapps\ROOT]
03-Jun-2018 00:11:01.308 信息 [localhost-startStop-1] 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.
03-Jun-2018 00:11:01.440 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\DevTools\apache-tomcat-8.5.28\webapps\ROOT] has finished in [8,685] ms
03-Jun-2018 00:11:01.447 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
03-Jun-2018 00:11:01.477 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
03-Jun-2018 00:11:01.491 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 8817 ms

log4j.rootLogger=debug,Console,file

#log4j.logger.org.apache.commons.beanutils=error
#log4j.logger.org.quartz.core.QuartzSchedulerThread=info
#log4j.logger.org.apache.shiro.web=error
#log4j.logger.net.sf.ehcache.statistics=error
#log4j.logger.net.sf.ehcache=error
#log4j.logger.org.apache.shiro.session=error
#log4j.logger.org.apache.shiro.mgt=error
#log4j.logger.org.apache.shiro.cache.ehcache=error

log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=[%-5p] %d %l - %m%n

log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=./logs/nutzwk.log
log4j.appender.file.MaxFileSize=100MB
log4j.appender.file.MaxBackupIndex=10
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=[%-5p] %d %l - %m%n

#log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
#log4j.appender.file.File=${catalina.base}/logs/nutzwk.log
#log4j.appender.file.DatePattern='.'yyyy-MM-dd'.log'
#log4j.appender.file.layout=org.apache.log4j.PatternLayout
#log4j.appender.file.layout.ConversionPattern=[%-5p] %d %l - %m%n

项目根本没加载,没有任何 nutzwk.log 日志

6 回复

web.xml 没复制。。。

根本的原因,是因为 webapp 目录的位置,在src目录下。而src目录下的xml文件,默认不会自动复制到target目录

NutzWk-modular\wk-app\wk-web\src\main\webapp\WEB-INF\web.xml
我把 webapp 移动到 NutzWk-modular\wk-app\wk-web\就可以了,即:

NutzWk-modular\wk-app\wk-web\src
NutzWk-modular\wk-app\wk-web\webapp

没按maven项目导入??

谢谢 @wendal
是按maven导入的。刚才我又仔细看了看,

NutzWk-modular\wk-app\wk-web\pom.xml 有配置“排除”web.xml
<packagingExcludes>WEB-INF/web.xml</packagingExcludes>

默认不打包web.xml,不知道这个是出于什么目的的考虑?

不清楚,这个得问问大鲨鱼了

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