NutzCN Logo
问答 找不到action
发布于 3065天前 作者 qq_13048060 1658 次浏览 复制 上一个帖子 下一个帖子
标签:

Search mapping for path=/user/login : NOT Action match 找不到action
登录页面可以显示,点提交按钮时,报上面的错误。 QQ截图20160801093943_png QQ截图20160801094653_png

9 回复

看后台日志!不要截图!

来自炫酷的 NutzCN

@wendal Search mapping for path=/user/login : NOT Action match

@qq_13048060 贴完整启动日志,用菜单里面代码按钮

来自炫酷的 NutzCN

@wendal 菜单里面代码按钮怎么用?说详细点啊,我新人一个啊,多谢啦

@qq_13048060 编辑框上的菜单,图片按钮的右边。

来自炫酷的 NutzCN

@qq_13048060 我说的是网站的功能啊,网站的回复框啊

来自炫酷的 NutzCN

八月 01, 2016 9:57:35 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:webProject' did not find a matching property.
八月 01, 2016 9:57:35 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/7.0.69
八月 01, 2016 9:57:35 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Apr 11 2016 07:57:09 UTC
八月 01, 2016 9:57:35 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         7.0.69.0
八月 01, 2016 9:57:35 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Windows 7
八月 01, 2016 9:57:35 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            6.1
八月 01, 2016 9:57:35 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
八月 01, 2016 9:57:35 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             D:\Program Files\Java
八月 01, 2016 9:57:35 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.8.0_91-b15
八月 01, 2016 9:57:35 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
八月 01, 2016 9:57:35 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         D:\javaWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
八月 01, 2016 9:57:35 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         D:\Program Files\Apache Software Foundation\Tomcat 7.0
八月 01, 2016 9:57:35 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\javaWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
八月 01, 2016 9:57:35 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\Program Files\Apache Software Foundation\Tomcat 7.0
八月 01, 2016 9:57:35 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\javaWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
八月 01, 2016 9:57:35 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\Program Files\Apache Software Foundation\Tomcat 7.0\endorsed
八月 01, 2016 9:57:35 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
八月 01, 2016 9:57:35 上午 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\Java\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_92/bin/server;C:/Program Files/Java/jre1.8.0_92/bin;C:/Program Files/Java/jre1.8.0_92/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static\;D:\Program Files\Java\jdk1.8.0_91\bin;D:\Program Files\TortoiseSVN\bin;D:\javaDevelop\apache-maven-3.3.9\bin;%CATALINA_HOME%\bin;%CATALINA_HOME%\lib;D:\javaDevelop\mysql-5.7.13-winx64\bin;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\Doctrine extensions for PHP\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\SD\Desktop;;.
八月 01, 2016 9:57:35 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
八月 01, 2016 9:57:35 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
八月 01, 2016 9:57:35 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 567 ms
八月 01, 2016 9:57:36 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
八月 01, 2016 9:57:36 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.69
八月 01, 2016 9:57:36 上午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [143] milliseconds.
八月 01, 2016 9:57:36 上午 org.apache.catalina.startup.TldConfig execute
信息: 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-8-1 9:57:36.945 WARN [localhost-startStop-1] !!You are using default SystemLog! Don't use it in Production environment!!
2016-8-1 9:57:36.950 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
2016-8-1 9:57:37.11 DEBUG [localhost-startStop-1] Locations for Scans:
[JarResourceLocation [jarPath=D:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\bootstrap.jar], JarResourceLocation [jarPath=D:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\tomcat-juli.jar], FileSystemResourceLocation [root=C:\Users\SD\Desktop], JarResourceLocation [jarPath=D:\javaWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\webProject\WEB-INF\lib\nutz-1.r.57.jar]]
2016-8-1 9:57:37.164 DEBUG [localhost-startStop-1] Locations for Scans:
[JarResourceLocation [jarPath=D:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\bootstrap.jar], JarResourceLocation [jarPath=D:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\tomcat-juli.jar], JarResourceLocation [jarPath=D:\javaWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\webProject\WEB-INF\lib\mysql-connector-java-5.1.37.jar], FileSystemResourceLocation [root=C:\Users\SD\Desktop], JarResourceLocation [jarPath=D:\javaWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\webProject\WEB-INF\lib\druid-1.0.16.jar], JarResourceLocation [jarPath=D:\javaWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\webProject\WEB-INF\lib\nutz-last.jar], JarResourceLocation [jarPath=D:\javaWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\webProject\WEB-INF\lib\nutz-1.r.57.jar], FileSystemResourceLocation [root=D:\javaWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\webProject\WEB-INF\classes]]
2016-8-1 9:57:37.167 DEBUG [localhost-startStop-1] MainModule: <com.qdyy.MainModule>
2016-8-1 9:57:37.183 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
2016-8-1 9:57:37.185 INFO [localhost-startStop-1] Nutz Version : 1.r.57 
2016-8-1 9:57:37.186 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
2016-8-1 9:57:37.186 DEBUG [localhost-startStop-1] Web Container Information:
2016-8-1 9:57:37.187 DEBUG [localhost-startStop-1]  - Default Charset : UTF-8
2016-8-1 9:57:37.188 DEBUG [localhost-startStop-1]  - Current . path  : C:\Users\SD\Desktop\.
2016-8-1 9:57:37.191 DEBUG [localhost-startStop-1]  - Java Version    : 1.8.0_91
2016-8-1 9:57:37.193 DEBUG [localhost-startStop-1]  - File separator  : \
2016-8-1 9:57:37.193 DEBUG [localhost-startStop-1]  - Timezone        : Asia/Shanghai
2016-8-1 9:57:37.194 DEBUG [localhost-startStop-1]  - OS              : Windows 7 amd64
2016-8-1 9:57:37.194 DEBUG [localhost-startStop-1]  - ServerInfo      : Apache Tomcat/7.0.69
2016-8-1 9:57:37.194 DEBUG [localhost-startStop-1]  - Servlet API     : 3.0
2016-8-1 9:57:37.195 DEBUG [localhost-startStop-1]  - ContextPath     : /webProject
2016-8-1 9:57:37.195 DEBUG [localhost-startStop-1]  - context.tempdir : D:\javaWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\webProject
2016-8-1 9:57:37.195 DEBUG [localhost-startStop-1] MainModule: <com.qdyy.MainModule>
2016-8-1 9:57:37.196 DEBUG [localhost-startStop-1] >> app.root = D:/javaWorkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/webProject
2016-8-1 9:57:37.241 DEBUG [localhost-startStop-1] Using 94 castor for Castors
2016-8-1 9:57:37.243 DEBUG [localhost-startStop-1] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "com.qdyy", "*tx"],init=[])
2016-8-1 9:57:37.263 DEBUG [localhost-startStop-1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2016-8-1 9:57:37.263 DEBUG [localhost-startStop-1] loading ioc js config from [dao.js]
2016-8-1 9:57:37.268 DEBUG [localhost-startStop-1] Loaded 2 bean define from path=[ioc/] --> [dataSource, dao]
2016-8-1 9:57:37.272 DEBUG [localhost-startStop-1] Found 5 resource by src( com/qdyy/ ) , regex( ^.+[.]class$ )
2016-8-1 9:57:37.288 DEBUG [localhost-startStop-1] Found @IocBean : class com.qdyy.UserModule
2016-8-1 9:57:37.296 INFO [localhost-startStop-1] Found 1 classes in 1 base-packages!
beans = ["userModule"]
2016-8-1 9:57:37.300 DEBUG [localhost-startStop-1] Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
2016-8-1 9:57:37.302 INFO [localhost-startStop-1] NutIoc init begin ...
2016-8-1 9:57:37.305 INFO [localhost-startStop-1] ... NutIoc init complete
2016-8-1 9:57:37.307 DEBUG [localhost-startStop-1] MainModule: <com.qdyy.MainModule>
2016-8-1 9:57:37.310 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2016-8-1 9:57:37.312 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker.class)
2016-8-1 9:57:37.318 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2016-8-1 9:57:37.325 DEBUG [localhost-startStop-1] module class location 'file:/D:/javaWorkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/webProject/WEB-INF/classes/'
2016-8-1 9:57:37.325 DEBUG [localhost-startStop-1]  > scan 'com.qdyy'
2016-8-1 9:57:37.327 DEBUG [localhost-startStop-1] Found 5 resource by src( com/qdyy/ ) , regex( ^.+[.]class$ )
2016-8-1 9:57:37.328 DEBUG [localhost-startStop-1]    >> add 'com.qdyy.action.AuthModule'
2016-8-1 9:57:37.328 DEBUG [localhost-startStop-1]    >> add 'com.qdyy.UserModule'
2016-8-1 9:57:37.332 INFO [localhost-startStop-1] Create Module obj without Ioc --> class com.qdyy.action.AuthModule
2016-8-1 9:57:37.332 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
2016-8-1 9:57:37.336 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
2016-8-1 9:57:37.343 DEBUG [localhost-startStop-1]    '/test'                     >> AuthModule.test(...)           : Object     | @Ok(json ) @Fail(json ) | by 0 Filters | (I:UTF-8/O:UTF-8)
2016-8-1 9:57:37.347 DEBUG [localhost-startStop-1]    '/ser/count'                >> UserModule.count(...)          : int        | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2016-8-1 9:57:37.357 DEBUG [localhost-startStop-1]    '/ser/query'                >> UserModule.query(...)          : Object     | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2016-8-1 9:57:37.358 DEBUG [localhost-startStop-1]    '/ser/login'                >> UserModule.login(...)          : Object     | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2016-8-1 9:57:37.362 DEBUG [localhost-startStop-1]    '/ser/logout'               >> UserModule.logout(...)         : void       | @Ok(>>:/ ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2016-8-1 9:57:37.362 INFO [localhost-startStop-1] Found 5 module methods
2016-8-1 9:57:37.363 DEBUG [localhost-startStop-1] @Localization not define
2016-8-1 9:57:37.363 INFO [localhost-startStop-1] Setup application...
2016-8-1 9:57:37.363 DEBUG [localhost-startStop-1] Get 'dao'<interface org.nutz.dao.Dao>
2016-8-1 9:57:37.365 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
2016-8-1 9:57:37.365 DEBUG [localhost-startStop-1] 	 >> Load definition name=dao
2016-8-1 9:57:37.366 DEBUG [localhost-startStop-1] Loading define for name=dao
2016-8-1 9:57:37.370 DEBUG [localhost-startStop-1] Found IocObject(dao) in JsonLoader(paths=[ioc/])
2016-8-1 9:57:37.370 DEBUG [localhost-startStop-1] 	 >> Make...'dao'<interface org.nutz.dao.Dao>
2016-8-1 9:57:37.379 DEBUG [localhost-startStop-1] Load class org.nutz.dao.impl.NutDao without AOP
2016-8-1 9:57:37.380 DEBUG [localhost-startStop-1] Save object 'dao' to [app] 
2016-8-1 9:57:37.381 DEBUG [localhost-startStop-1] Get 'dataSource'<>
2016-8-1 9:57:37.381 DEBUG [localhost-startStop-1] 	 >> Load definition name=dataSource
2016-8-1 9:57:37.381 DEBUG [localhost-startStop-1] Loading define for name=dataSource
2016-8-1 9:57:37.387 DEBUG [localhost-startStop-1] Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
2016-8-1 9:57:37.387 DEBUG [localhost-startStop-1] 	 >> Make...'dataSource'<>
2016-8-1 9:57:37.403 DEBUG [localhost-startStop-1] Load class com.alibaba.druid.pool.DruidDataSource without AOP
2016-8-1 9:57:37.404 DEBUG [localhost-startStop-1] Save object 'dataSource' to [app] 
八月 01, 2016 9:57:37 上午 com.alibaba.druid.pool.DruidDataSource info
信息: {dataSource-1} inited
2016-8-1 9:57:37.450 DEBUG [localhost-startStop-1] Get 'dataSource'<>
2016-8-1 9:57:37.456 DEBUG [localhost-startStop-1] NutDao[_selfId=0] init ...
2016-8-1 9:57:37.489 INFO [localhost-startStop-1] Init file-pool by: C:\Users\SD/.nutz/tmp/dao/ [200000]
2016-8-1 9:57:37.489 DEBUG [localhost-startStop-1] file-pool.home: 'C:\Users\SD\.nutz\tmp\dao'
2016-8-1 9:57:37.490 INFO [localhost-startStop-1] file-pool.cursor: 0
2016-8-1 9:57:37.497 DEBUG [localhost-startStop-1] Jdbcs init complete
2016-8-1 9:57:37.497 INFO [localhost-startStop-1] Get Connection from DataSource for JdbcExpert, if I lock at here, check your database server and configure
2016-8-1 9:57:37.692 DEBUG [localhost-startStop-1] JDBC Driver --> mysql-connector-java-5.1.37 ( Revision: 09940f05b4c98150f352e787a2549f11a2e9da93 )
2016-8-1 9:57:37.692 DEBUG [localhost-startStop-1] JDBC Name   --> MySQL Connector Java
2016-8-1 9:57:37.692 DEBUG [localhost-startStop-1] JDBC URL    --> jdbc:mysql://127.0.0.1:3306/nutzbook
2016-8-1 9:57:37.701 DEBUG [localhost-startStop-1] Mysql : character_set_client=utf8
2016-8-1 9:57:37.702 DEBUG [localhost-startStop-1] Mysql : character_set_connection=utf8
2016-8-1 9:57:37.702 DEBUG [localhost-startStop-1] Mysql : character_set_database=utf8
2016-8-1 9:57:37.702 DEBUG [localhost-startStop-1] Mysql : character_set_filesystem=binary
2016-8-1 9:57:37.702 DEBUG [localhost-startStop-1] Mysql : character_set_results=
2016-8-1 9:57:37.702 DEBUG [localhost-startStop-1] Mysql : character_set_server=utf8
2016-8-1 9:57:37.702 DEBUG [localhost-startStop-1] Mysql : character_set_system=utf8
2016-8-1 9:57:37.702 DEBUG [localhost-startStop-1] Mysql : character_sets_dir=C:\Program Files\MySQL\MySQL Server 5.7\share\charsets\
2016-8-1 9:57:37.703 DEBUG [localhost-startStop-1] Mysql : database=nutzbook
2016-8-1 9:57:37.704 DEBUG [localhost-startStop-1] Mysql : user=root@localhost
2016-8-1 9:57:37.715 DEBUG [localhost-startStop-1] Database info --> MYSQL:[MySQL - 5.7.14-log]
2016-8-1 9:57:37.721 DEBUG [localhost-startStop-1] Found 5 resource by src( com/qdyy/ ) , regex( ^.+[.]class$ )
2016-8-1 9:57:37.754 DEBUG [localhost-startStop-1] SELECT COUNT(*) FROM t_user 
2016-8-1 9:57:37.755 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is up in 560ms
八月 01, 2016 9:57:37 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
八月 01, 2016 9:57:37 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
八月 01, 2016 9:57:37 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 1772 ms
2016-8-1 9:58:30.527 DEBUG [http-bio-8080-exec-4] Search mapping for path=/user/login : NOT Action match

你代码配置的是 /ser/login

来自炫酷的 NutzCN

@wendal 好了,

@IocBean
@At("/user")
@Ok("json")
@Fail("http:500")

第二行少了个字母u

这里的社区环境真好,无论多么小白的问题,都认真的回复。现在才开始用这个,真是相见恨晚啊。

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