NutzCN Logo
问答 为什么我没有任何debug log信息在console呢
发布于 2880天前 作者 qq_df433f5d 4140 次浏览 复制 上一个帖子 下一个帖子
标签: eclipse

我是小白,刚接触java和nutz,我按照nutzbook上的步骤创建了项目,但是启动的时候没看到什么debug log信息,不是可以不配置log4j吗?
下面就是log的信息:

Dec 27, 2016 12:48:05 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:nutzbook' did not find a matching property.
Dec 27, 2016 12:48:05 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version:        Apache Tomcat/8.0.39
Dec 27, 2016 12:48:05 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          Nov 9 2016 08:48:39 UTC
Dec 27, 2016 12:48:05 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number:         8.0.39.0
Dec 27, 2016 12:48:05 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:               Windows Server 2012 R2
Dec 27, 2016 12:48:05 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:            6.3
Dec 27, 2016 12:48:05 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:          amd64
Dec 27, 2016 12:48:05 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:             C:\Program Files\Java\jre1.8.0_111
Dec 27, 2016 12:48:05 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:           1.8.0_111-b14
Dec 27, 2016 12:48:05 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:            Oracle Corporation
Dec 27, 2016 12:48:05 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE:         C:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
Dec 27, 2016 12:48:05 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME:         C:\nutzbook\apache-tomcat-8.0.39
Dec 27, 2016 12:48:05 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
Dec 27, 2016 12:48:05 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\nutzbook\apache-tomcat-8.0.39
Dec 27, 2016 12:48:05 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps
Dec 27, 2016 12:48:05 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\nutzbook\apache-tomcat-8.0.39\endorsed
Dec 27, 2016 12:48:05 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Dec 27, 2016 12:48:05 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.8.0_111\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:/Program Files/Java/jre1.8.0_111/bin/server;C:/Program Files/Java/jre1.8.0_111/bin;C:/Program Files/Java/jre1.8.0_111/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Python27\;C:\Program Files\Python27\Scripts;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Infor\Scheduler;C:\Program Files (x86)\Infor\Planner\bin;C:\Program Files (x86)\Infor\Server;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Users\Administrator\Desktop;;.
Dec 27, 2016 12:48:05 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Dec 27, 2016 12:48:05 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Dec 27, 2016 12:48:05 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Dec 27, 2016 12:48:05 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Dec 27, 2016 12:48:05 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1445 ms
Dec 27, 2016 12:48:05 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Dec 27, 2016 12:48:05 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.39
Dec 27, 2016 12:48:08 PM org.apache.jasper.servlet.TldScanner scanJars
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.
Dec 27, 2016 12:48:08 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Dec 27, 2016 12:48:08 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Dec 27, 2016 12:48:08 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2533 ms

24 回复

贴一下你的log4j.properties

我没有写log4j.properties,我是按照nutzbook上的“30分钟把项目跑起来”来做的,需要配置log4j吗?

用是maven吗? 如果不是, 把log4j.jar先移除掉.

没用maven,我就没添加过log4j.jar,只是按照nutzbook(http://nutzbook.wendal.net/setup30mins/add_jar.html)要求添加了nutz,druid,mysql的jar包

那看来根本没部署到tomcat哦, 项目右键 run as --> Run in Server

我贴的console log就是run as run in server输出出来的。
我有点糊涂了,我只要添加了nutz的jar包,不需要添加log4j的jar包,也不需要配置什么东西,就应该输出教程里的那些debug log信息对吗?现在我是按照教程,添加了那三个jar包,添加了MainModule和配置了web.xml,然后启动空项目就看不到debug的log信息,我就有点搞不明白还需要设置哪里了。

点开server view, 看看是不是部署上了

部署上了。
tomcat是started的状态,nutzbook是Synchronized的状态

回复不支持贴图吗?

我试了一下, 不带任何项目的话, tomcat启动不需要那么久

十二月 27, 2016 2:28:58 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/9.0.0.M13
十二月 27, 2016 2:28:58 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Nov 3 2016 20:59:41 UTC
十二月 27, 2016 2:28:58 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         9.0.0.0
十二月 27, 2016 2:28:58 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Windows 7
十二月 27, 2016 2:28:58 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            6.1
十二月 27, 2016 2:28:58 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
十二月 27, 2016 2:28:58 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             D:\Java\jre
十二月 27, 2016 2:28:58 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.8.0_112-b15
十二月 27, 2016 2:28:58 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
十二月 27, 2016 2:28:58 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         D:\nutzbook\apache-tomcat-9.0.0.M9
十二月 27, 2016 2:28:58 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         D:\nutzbook\apache-tomcat-9.0.0.M9
十二月 27, 2016 2:28:58 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\nutzbook\apache-tomcat-9.0.0.M9
十二月 27, 2016 2:28:58 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\nutzbook\apache-tomcat-9.0.0.M9
十二月 27, 2016 2:28:58 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\nutzbook\apache-tomcat-9.0.0.M9\wtpwebapps
十二月 27, 2016 2:28:58 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\nutzbook\apache-tomcat-9.0.0.M9\endorsed
十二月 27, 2016 2:28:58 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dlog4j2.disable.jmx=true
十二月 27, 2016 2:28:58 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
十二月 27, 2016 2:28:58 下午 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:\Java\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/Java/jre/bin/server;D:/Java/jre/bin;D:/Java/jre/lib/amd64;C:\Python27\;C:\Python27\Scripts;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Program Files (x86)\GNU\GnuPG\pub;C:\Program Files\OpenVPN\bin;C:\ProgramData\chocolatey\bin;C:\Windows\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;D:\nodejs\;C:\Program Files (x86)\Calibre2\;D:\sbt\bin;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\MySQL\MySQL Utilities 1.6\;D:\Java\bin;D:\gradle-3.2.1\bin;D:\apache-maven-3.3.9\bin;C:\Users\wendal\AppData\Roaming\npm;C:\Users\wendal\AppData\Local\atom\bin;D:\activator-dist-1.3.12\bin;D:\nutzbook\eclipse;;.
十二月 27, 2016 2:28:58 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-nio-8080"]
十二月 27, 2016 2:28:59 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
十二月 27, 2016 2:28:59 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-nio-8009"]
十二月 27, 2016 2:28:59 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
十二月 27, 2016 2:28:59 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 770 ms
十二月 27, 2016 2:28:59 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
十二月 27, 2016 2:28:59 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/9.0.0.M13
十二月 27, 2016 2:28:59 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler [http-nio-8080]
十二月 27, 2016 2:28:59 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler [ajp-nio-8009]
十二月 27, 2016 2:28:59 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 53 ms

到这个目录看看 C:\nutzbook\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps

有一种可能性是web.xml的名字错了,导致tomcat当成静态网站了

C:\nutzbook\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps这个目录找不到。
web.xml的名字错了指的是文件名?还是web.xml里的配置写错了?

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  <display-name>nutzbook</display-name>
  <filter>
      <filter-name>nutz</filter-name>
      <filter-class>org.nutz.mvc.NutFilter</filter-class>
      <init-param>
          <param-name>modules</param-name>
          <param-value>net.wendal.nutzbook.MainModule</param-value>
      </init-param>
  </filter>
  <filter-mapping>
      <filter-name>nutz</filter-name>
      <url-pattern>/*</url-pattern>
    <!-- ForwardView需要下面的配置 @Ok("->:/xxx/yyy/zzz") -->
      <dispatcher>REQUEST</dispatcher>
      <dispatcher>FORWARD</dispatcher>
      <dispatcher>INCLUDE</dispatcher>
  </filter-mapping>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>
</web-app>

web.xml这个文件名称.

文件名称不会错啊,就是这几个字母web.xml。这不过这个文件是我手动创建的,不是自动生成的,Dynamic Web Project创建完了没有这个web.xml文件,我就手动在WEB-INF目录下建了一个,把配置的代码贴了进去保存的。

那真的有可能哦... 例如有些人建log4j.properties的时候, 文件名多了个空格

我删除了重新建了一个还是没有debug log出来。这个web文件是自动生成的吗?我手动创建就不行吗?

理论上是一样的, 只是个文本文件而已.

要不新建一个项目试试吧

重建一个项目还是得手动添加这个web文件,因为我这边没有自动生成,哪里有问题吗?
还有一个问题,就是我的module version是3.1,不是2.5,这个有关系吗?

@qq_df433f5d 没有什么影响, nutzcn用的也是3.1

https://github.com/wendal/nutz-book-project

重新建了一个就好了。。。搞不懂了。

Dec 27, 2016 3:07:47 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:nutzbook' did not find a matching property.
Dec 27, 2016 3:07:47 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:nutzbook1' did not find a matching property.
Dec 27, 2016 3:07:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version:        Apache Tomcat/8.0.39
Dec 27, 2016 3:07:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          Nov 9 2016 08:48:39 UTC
Dec 27, 2016 3:07:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number:         8.0.39.0
Dec 27, 2016 3:07:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:               Windows Server 2012 R2
Dec 27, 2016 3:07:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:            6.3
Dec 27, 2016 3:07:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:          amd64
Dec 27, 2016 3:07:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:             C:\Program Files\Java\jre1.8.0_111
Dec 27, 2016 3:07:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:           1.8.0_111-b14
Dec 27, 2016 3:07:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:            Oracle Corporation
Dec 27, 2016 3:07:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE:         C:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
Dec 27, 2016 3:07:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME:         C:\nutzbook\apache-tomcat-8.0.39
Dec 27, 2016 3:07:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
Dec 27, 2016 3:07:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\nutzbook\apache-tomcat-8.0.39
Dec 27, 2016 3:07:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps
Dec 27, 2016 3:07:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\nutzbook\apache-tomcat-8.0.39\endorsed
Dec 27, 2016 3:07:47 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Dec 27, 2016 3:07:47 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.8.0_111\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:/Program Files/Java/jre1.8.0_111/bin/server;C:/Program Files/Java/jre1.8.0_111/bin;C:/Program Files/Java/jre1.8.0_111/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Python27\;C:\Program Files\Python27\Scripts;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Infor\Scheduler;C:\Program Files (x86)\Infor\Planner\bin;C:\Program Files (x86)\Infor\Server;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Users\Administrator\Desktop;;.
Dec 27, 2016 3:07:48 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Dec 27, 2016 3:07:48 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Dec 27, 2016 3:07:48 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Dec 27, 2016 3:07:48 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Dec 27, 2016 3:07:48 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1547 ms
Dec 27, 2016 3:07:48 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Dec 27, 2016 3:07:48 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.39
Dec 27, 2016 3:07:50 PM org.apache.jasper.servlet.TldScanner scanJars
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-12-27 15:7:50.432 WARN [localhost-startStop-1] !!You are using default SystemLog! Don't use it in Production environment!!
2016-12-27 15:7:50.451 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
2016-12-27 15:7:50.646 DEBUG [localhost-startStop-1] Locations for Scans:
[Dir[path=C:\Users\Administrator\Desktop], Jar[path=C:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzbook1\WEB-INF\lib\nutz-1.r.59.jar], Jar[path=C:\nutzbook\apache-tomcat-8.0.39\bin\bootstrap.jar], Jar[path=C:\nutzbook\apache-tomcat-8.0.39\bin\tomcat-juli.jar]]
2016-12-27 15:7:50.840 DEBUG [localhost-startStop-1] Locations for Scans:
{C:\Users\Administrator\Desktop=Dir[path=C:\Users\Administrator\Desktop], C:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzbook1\WEB-INF\lib\nutz-1.r.59.jar=Jar[path=C:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzbook1\WEB-INF\lib\nutz-1.r.59.jar], C:\nutzbook\apache-tomcat-8.0.39\bin\bootstrap.jar=Jar[path=C:\nutzbook\apache-tomcat-8.0.39\bin\bootstrap.jar], C:\nutzbook\apache-tomcat-8.0.39\bin\tomcat-juli.jar=Jar[path=C:\nutzbook\apache-tomcat-8.0.39\bin\tomcat-juli.jar], C:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzbook1\WEB-INF\classes=Dir[path=C:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzbook1\WEB-INF\classes], C:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzbook1\WEB-INF\lib\druid-1.0.26.jar=Jar[path=C:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzbook1\WEB-INF\lib\druid-1.0.26.jar], C:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzbook1\WEB-INF\lib\mysql-connector-java-5.1.40.jar=Jar[path=C:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\nutzbook1\WEB-INF\lib\mysql-connector-java-5.1.40.jar]}
2016-12-27 15:7:51.143 DEBUG [localhost-startStop-1] Using 94 castor for Castors
2016-12-27 15:7:51.163 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
2016-12-27 15:7:51.173 INFO [localhost-startStop-1] Nutz Version : 1.r.59 
2016-12-27 15:7:51.174 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
2016-12-27 15:7:51.174 DEBUG [localhost-startStop-1] Web Container Information:
2016-12-27 15:7:51.178 DEBUG [localhost-startStop-1]  - Default Charset : UTF-8
2016-12-27 15:7:51.179 DEBUG [localhost-startStop-1]  - Current . path  : C:\Users\Administrator\Desktop\.
2016-12-27 15:7:51.179 DEBUG [localhost-startStop-1]  - Java Version    : 1.8.0_111
2016-12-27 15:7:51.180 DEBUG [localhost-startStop-1]  - File separator  : \
2016-12-27 15:7:51.181 DEBUG [localhost-startStop-1]  - Timezone        : Asia/Shanghai
2016-12-27 15:7:51.181 DEBUG [localhost-startStop-1]  - OS              : Windows Server 2012 R2 amd64
2016-12-27 15:7:51.182 DEBUG [localhost-startStop-1]  - ServerInfo      : Apache Tomcat/8.0.39
2016-12-27 15:7:51.182 DEBUG [localhost-startStop-1]  - Servlet API     : 3.1
2016-12-27 15:7:51.183 DEBUG [localhost-startStop-1]  - ContextPath     : /nutzbook1
2016-12-27 15:7:51.184 DEBUG [localhost-startStop-1]  - context.tempdir : C:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\work\Catalina\localhost\nutzbook1
2016-12-27 15:7:51.184 DEBUG [localhost-startStop-1]  - MainModule      : net.wendal.nutzbook.MainModule
2016-12-27 15:7:51.190 DEBUG [localhost-startStop-1] >> app.root = C:/nutzbook/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/nutzbook1
2016-12-27 15:7:51.195 INFO [localhost-startStop-1] !!!Your application without @IocBy supporting
2016-12-27 15:7:51.206 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2016-12-27 15:7:51.215 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker.class)
2016-12-27 15:7:51.254 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2016-12-27 15:7:51.292 DEBUG [localhost-startStop-1] module class location 'file:/C:/nutzbook/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/nutzbook1/WEB-INF/classes/'
2016-12-27 15:7:51.293 DEBUG [localhost-startStop-1]  > scan 'net.wendal.nutzbook'
2016-12-27 15:7:51.309 DEBUG [localhost-startStop-1] Found 1 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2016-12-27 15:7:51.311 WARN [localhost-startStop-1] None module classes found!!!
2016-12-27 15:7:51.311 WARN [localhost-startStop-1] None @At found in any modules class!!
2016-12-27 15:7:51.315 DEBUG [localhost-startStop-1] @Localization not define
2016-12-27 15:7:51.322 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is up in 133ms
Dec 27, 2016 3:07:52 PM org.apache.jasper.servlet.TldScanner scanJars
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.
Dec 27, 2016 3:07:52 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Dec 27, 2016 3:07:52 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Dec 27, 2016 3:07:52 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4725 ms
2016-12-27 15:7:53.974 DEBUG [http-nio-8080-exec-2] Search mapping for path=/ : NOT Action match

能搞定就好 ^_^

我今天也遇到该问题了,发现问题是 web.xml 放错位置了,应该放在WEB-INF目录下,一不小心放到WebContent下了

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