NutzCN Logo
问答 刚接触nutz,按照文档创建hellonutz项目,用Tomcat启动后页面显示404
发布于 2102天前 作者 zy 1136 次浏览 复制 上一个帖子 下一个帖子
标签:
19-02-20 09:53:56.282 DEBUG [http-nio-8080-exec-2] Using 101 castor for Castors
19-02-20 09:53:56.285 DEBUG [http-nio-8080-exec-2] Search mapping for [GET] path=/ : NOT Action match
7 回复

发完整日志

二月 20, 2019 9:53:49 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/8.5.38
二月 20, 2019 9:53:49 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Feb 5 2019 11:42:42 UTC
二月 20, 2019 9:53:49 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         8.5.38.0
二月 20, 2019 9:53:49 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Windows 10
二月 20, 2019 9:53:49 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            10.0
二月 20, 2019 9:53:49 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
二月 20, 2019 9:53:49 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             D:\eclipse\Java\jdk1.8.0_172\jre
二月 20, 2019 9:53:49 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.8.0_172-b11
二月 20, 2019 9:53:49 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
二月 20, 2019 9:53:49 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         D:\Work\nutzbook\apache-tomcat-8.5.38
二月 20, 2019 9:53:49 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         D:\Work\nutzbook\apache-tomcat-8.5.38
二月 20, 2019 9:53:49 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\Work\nutzbook\apache-tomcat-8.5.38
二月 20, 2019 9:53:49 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\Work\nutzbook\apache-tomcat-8.5.38
二月 20, 2019 9:53:49 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\Work\nutzbook\apache-tomcat-8.5.38\webapps
二月 20, 2019 9:53:49 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\Work\nutzbook\apache-tomcat-8.5.38\endorsed
二月 20, 2019 9:53:49 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
二月 20, 2019 9:53:49 上午 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:\eclipse\Java\jdk1.8.0_172\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:/eclipse/Java/jdk1.8.0_172/bin/../jre/bin/server;D:/eclipse/Java/jdk1.8.0_172/bin/../jre/bin;D:/eclipse/Java/jdk1.8.0_172/bin/../jre/lib/amd64;D:\eclipse\Java\jdk1.8.0_172\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\MySQL\MySQL Server 5.7\bin;D:\eclipse\apache-tomcat-9.0.10;D:\eclipse\apache-maven-3.6.0\bin;C:\Users\zy\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;;D:\Work\nutzbook\eclipse;;.]
二月 20, 2019 9:53:49 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-nio-8080"]
二月 20, 2019 9:53:50 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
二月 20, 2019 9:53:50 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-nio-8009"]
二月 20, 2019 9:53:50 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
二月 20, 2019 9:53:50 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1907 ms
二月 20, 2019 9:53:50 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Catalina]
二月 20, 2019 9:53:50 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.5.38
二月 20, 2019 9:53:51 上午 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.
19-02-20 09:53:51.324 INFO [localhost-startStop-1] Select SystemLog as Nutz.Log implement
19-02-20 09:53:51.634 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
19-02-20 09:53:51.677 DEBUG [localhost-startStop-1] Locations count=4 time use 16ms
19-02-20 09:53:51.681 DEBUG [localhost-startStop-1] Locations count=6 time use 3ms
19-02-20 09:53:51.696 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
19-02-20 09:53:51.703 INFO [localhost-startStop-1] Nutz Version : 1.r.67-SNAPSHOT 
19-02-20 09:53:51.704 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
19-02-20 09:53:51.704 DEBUG [localhost-startStop-1] Web Container Information:
19-02-20 09:53:51.707 DEBUG [localhost-startStop-1]  - Default Charset : UTF-8
19-02-20 09:53:51.707 DEBUG [localhost-startStop-1]  - Current . path  : D:\Work\nutzbook\eclipse\.
19-02-20 09:53:51.708 DEBUG [localhost-startStop-1]  - Java Version    : 1.8.0_172
19-02-20 09:53:51.708 DEBUG [localhost-startStop-1]  - File separator  : \
19-02-20 09:53:51.709 DEBUG [localhost-startStop-1]  - Timezone        : Asia/Shanghai
19-02-20 09:53:51.709 DEBUG [localhost-startStop-1]  - OS              : Windows 10 amd64
19-02-20 09:53:51.710 DEBUG [localhost-startStop-1]  - ServerInfo      : Apache Tomcat/8.5.38
19-02-20 09:53:51.711 DEBUG [localhost-startStop-1]  - Servlet API     : 3.1
19-02-20 09:53:51.712 DEBUG [localhost-startStop-1]  - ContextPath     : /_hellonutz
19-02-20 09:53:51.712 DEBUG [localhost-startStop-1]  - context.tempdir : D:\Work\nutzbook\apache-tomcat-8.5.38\work\Catalina\localhost\_hellonutz
19-02-20 09:53:51.713 DEBUG [localhost-startStop-1]  - MainModule      : demo.hello.MainModule
19-02-20 09:53:51.715 DEBUG [localhost-startStop-1] >> app.root = D:/Work/nutzbook/apache-tomcat-8.5.38/webapps/ hellonutz
19-02-20 09:53:51.719 INFO [localhost-startStop-1] !!!Your application without @IocBy supporting
19-02-20 09:53:51.728 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
19-02-20 09:53:51.735 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker.class)
19-02-20 09:53:51.748 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
19-02-20 09:53:51.778 DEBUG [localhost-startStop-1] module class location 'file:/D:/Work/nutzbook/apache-tomcat-8.5.38/webapps/%20hellonutz/WEB-INF/classes/'
19-02-20 09:53:51.778 DEBUG [localhost-startStop-1]  > scan 'demo.hello'
19-02-20 09:53:51.789 DEBUG [localhost-startStop-1] Found 1 resource by src( demo/hello/ ) , regex( ^.+[.]class$ )
19-02-20 09:53:51.813 DEBUG [localhost-startStop-1]    >> add 'demo.hello.MainModule'
19-02-20 09:53:51.814 DEBUG [localhost-startStop-1] Use org.nutz.mvc.impl.NutEntryDeterminer as EntryMethodDeterminer
19-02-20 09:53:51.886 INFO [localhost-startStop-1] Create Module obj without Ioc --> class demo.hello.MainModule
19-02-20 09:53:51.891 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
19-02-20 09:53:51.913 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
19-02-20 09:53:51.968 DEBUG [localhost-startStop-1]    '/hello'                    >> (MainModule.java:11).doHello          : String     | @Ok(jsp:jsp.hello) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
19-02-20 09:53:51.968 INFO [localhost-startStop-1] Found 1 module methods
19-02-20 09:53:51.970 DEBUG [localhost-startStop-1] @Localization not define
19-02-20 09:53:51.976 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is up in 263ms
二月 20, 2019 9:53:52 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\Work\nutzbook\apache-tomcat-8.5.38\webapps\ hellonutz]
二月 20, 2019 9:53:52 上午 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.
19-02-20 09:53:52.381 INFO [localhost-startStop-1] Select SystemLog as Nutz.Log implement
19-02-20 09:53:52.650 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
19-02-20 09:53:52.697 DEBUG [localhost-startStop-1] Locations count=4 time use 13ms
19-02-20 09:53:52.700 DEBUG [localhost-startStop-1] Locations count=6 time use 2ms
19-02-20 09:53:52.709 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
19-02-20 09:53:52.717 INFO [localhost-startStop-1] Nutz Version : 1.r.67-SNAPSHOT 
19-02-20 09:53:52.717 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
19-02-20 09:53:52.718 DEBUG [localhost-startStop-1] Web Container Information:
19-02-20 09:53:52.719 DEBUG [localhost-startStop-1]  - Default Charset : UTF-8
19-02-20 09:53:52.720 DEBUG [localhost-startStop-1]  - Current . path  : D:\Work\nutzbook\eclipse\.
19-02-20 09:53:52.721 DEBUG [localhost-startStop-1]  - Java Version    : 1.8.0_172
19-02-20 09:53:52.721 DEBUG [localhost-startStop-1]  - File separator  : \
19-02-20 09:53:52.721 DEBUG [localhost-startStop-1]  - Timezone        : Asia/Shanghai
19-02-20 09:53:52.722 DEBUG [localhost-startStop-1]  - OS              : Windows 10 amd64
19-02-20 09:53:52.722 DEBUG [localhost-startStop-1]  - ServerInfo      : Apache Tomcat/8.5.38
19-02-20 09:53:52.722 DEBUG [localhost-startStop-1]  - Servlet API     : 3.1
19-02-20 09:53:52.723 DEBUG [localhost-startStop-1]  - ContextPath     : / hellonutz
19-02-20 09:53:52.723 DEBUG [localhost-startStop-1]  - context.tempdir : D:\Work\nutzbook\apache-tomcat-8.5.38\work\Catalina\localhost\ hellonutz
19-02-20 09:53:52.723 DEBUG [localhost-startStop-1]  - MainModule      : demo.hello.MainModule
19-02-20 09:53:52.725 DEBUG [localhost-startStop-1] >> app.root = D:/Work/nutzbook/apache-tomcat-8.5.38/webapps/ hellonutz
19-02-20 09:53:52.727 INFO [localhost-startStop-1] !!!Your application without @IocBy supporting
19-02-20 09:53:52.732 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
19-02-20 09:53:52.737 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker.class)
19-02-20 09:53:52.744 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
19-02-20 09:53:52.772 DEBUG [localhost-startStop-1] module class location 'file:/D:/Work/nutzbook/apache-tomcat-8.5.38/webapps/%20hellonutz/WEB-INF/classes/'
19-02-20 09:53:52.773 DEBUG [localhost-startStop-1]  > scan 'demo.hello'
19-02-20 09:53:52.781 DEBUG [localhost-startStop-1] Found 1 resource by src( demo/hello/ ) , regex( ^.+[.]class$ )
19-02-20 09:53:52.791 DEBUG [localhost-startStop-1]    >> add 'demo.hello.MainModule'
19-02-20 09:53:52.791 DEBUG [localhost-startStop-1] Use org.nutz.mvc.impl.NutEntryDeterminer as EntryMethodDeterminer
19-02-20 09:53:52.826 INFO [localhost-startStop-1] Create Module obj without Ioc --> class demo.hello.MainModule
19-02-20 09:53:52.830 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
19-02-20 09:53:52.864 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
19-02-20 09:53:52.910 DEBUG [localhost-startStop-1]    '/hello'                    >> (MainModule.java:11).doHello          : String     | @Ok(jsp:jsp.hello) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
19-02-20 09:53:52.910 INFO [localhost-startStop-1] Found 1 module methods
19-02-20 09:53:52.912 DEBUG [localhost-startStop-1] @Localization not define
19-02-20 09:53:52.918 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is up in 195ms
二月 20, 2019 9:53:52 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\Work\nutzbook\apache-tomcat-8.5.38\webapps\ hellonutz] has finished in [923] ms
二月 20, 2019 9:53:52 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\Work\nutzbook\apache-tomcat-8.5.38\webapps\docs]
二月 20, 2019 9:53:52 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\Work\nutzbook\apache-tomcat-8.5.38\webapps\docs] has finished in [48] ms
二月 20, 2019 9:53:52 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\Work\nutzbook\apache-tomcat-8.5.38\webapps\examples]
二月 20, 2019 9:53:53 上午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
二月 20, 2019 9:53:53 上午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
二月 20, 2019 9:53:53 上午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('StockTicker', 'async.Stockticker@1822a16')
二月 20, 2019 9:53:53 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\Work\nutzbook\apache-tomcat-8.5.38\webapps\examples] has finished in [523] ms
二月 20, 2019 9:53:53 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\Work\nutzbook\apache-tomcat-8.5.38\webapps\host-manager]
二月 20, 2019 9:53:53 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\Work\nutzbook\apache-tomcat-8.5.38\webapps\host-manager] has finished in [35] ms
二月 20, 2019 9:53:53 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\Work\nutzbook\apache-tomcat-8.5.38\webapps\manager]
二月 20, 2019 9:53:53 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\Work\nutzbook\apache-tomcat-8.5.38\webapps\manager] has finished in [39] ms
二月 20, 2019 9:53:53 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\Work\nutzbook\apache-tomcat-8.5.38\webapps\ROOT]
二月 20, 2019 9:53:53 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\Work\nutzbook\apache-tomcat-8.5.38\webapps\ROOT] has finished in [48] ms
二月 20, 2019 9:53:53 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8080"]
二月 20, 2019 9:53:53 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8009"]
二月 20, 2019 9:53:53 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 3347 ms
19-02-20 09:53:56.282 DEBUG [http-nio-8080-exec-2] Using 101 castor for Castors
19-02-20 09:53:56.285 DEBUG [http-nio-8080-exec-2] Search mapping for [GET] path=/ : NOT Action match

19-02-20 09:53:51.968 DEBUG [localhost-startStop-1]    '/hello'                    >> (MainModule.java:11).doHello          : String     | @Ok(jsp:jsp.hello) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)

只映射了/hello哦,没有映射/,所以你访问/hello就好了

话说你参考的是哪个文档? 发链接

nutz-1.r.66-manual.pdf

可以了,谢谢大哥!

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