2018-4-9 15:58:23 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/7.0.73
2018-4-9 15:58:23 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Nov 7 2016 21:27:23 UTC
2018-4-9 15:58:23 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 7.0.73.0
2018-4-9 15:58:23 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows Vista
2018-4-9 15:58:23 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 6.1
2018-4-9 15:58:23 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: amd64
2018-4-9 15:58:23 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: D:\myEclipse\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\jre
2018-4-9 15:58:23 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.6.0_13-b03
2018-4-9 15:58:23 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Sun Microsystems Inc.
2018-4-9 15:58:23 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: E:/nutztomcat/tomcat/apache-tomcat-7.0.73
2018-4-9 15:58:23 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: E:/nutztomcat/tomcat/apache-tomcat-7.0.73
2018-4-9 15:58:23 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=E:/nutztomcat/tomcat/apache-tomcat-7.0.73
2018-4-9 15:58:23 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=E:/nutztomcat/tomcat/apache-tomcat-7.0.73
2018-4-9 15:58:23 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=E:/nutztomcat/tomcat/apache-tomcat-7.0.73/common/endorsed
2018-4-9 15:58:23 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.io.tmpdir=E:/nutztomcat/tomcat/apache-tomcat-7.0.73/temp
2018-4-9 15:58:23 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.library.path=D:/myEclipse/Common/binary/com.sun.java.jdk.win32.x86_64_1.6.0.013/bin;E:/nutztomcat/tomcat/apache-tomcat-7.0.73/bin
2018-4-9 15:58:23 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dsun.io.useCanonCaches=false
2018-4-9 15:58:23 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
2018-4-9 15:58:23 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: Loaded APR based Apache Tomcat Native library 1.2.10 using APR version 1.5.2.
2018-4-9 15:58:23 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
2018-4-9 15:58:24 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized (OpenSSL 1.0.2j 26 Sep 2016)
2018-4-9 15:58:24 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-apr-8080"]
2018-4-9 15:58:24 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-apr-8009"]
2018-4-9 15:58:24 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 871 ms
2018-4-9 15:58:24 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
2018-4-9 15:58:24 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.73
2018-4-9 15:58:24 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\nutztomcat\tomcat\apache-tomcat-7.0.73\webapps\docs
2018-4-9 15:58:24 org.apache.tomcat.websocket.server.WsSci onStartup
信息: JSR 356 WebSocket (Java WebSocket 1.1) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocket JARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available.
2018-4-9 15:58:24 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\nutztomcat\tomcat\apache-tomcat-7.0.73\webapps\docs has finished in 380 ms
2018-4-9 15:58:24 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\nutztomcat\tomcat\apache-tomcat-7.0.73\webapps\examples
2018-4-9 15:58:24 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2018-4-9 15:58:24 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2018-4-9 15:58:25 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@368b1a4f')
2018-4-9 15:58:25 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\nutztomcat\tomcat\apache-tomcat-7.0.73\webapps\examples has finished in 398 ms
2018-4-9 15:58:25 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\nutztomcat\tomcat\apache-tomcat-7.0.73\webapps\host-manager
2018-4-9 15:58:25 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\nutztomcat\tomcat\apache-tomcat-7.0.73\webapps\host-manager has finished in 60 ms
2018-4-9 15:58:25 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\nutztomcat\tomcat\apache-tomcat-7.0.73\webapps\manager
2018-4-9 15:58:25 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\nutztomcat\tomcat\apache-tomcat-7.0.73\webapps\manager has finished in 50 ms
2018-4-9 15:58:25 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\nutztomcat\tomcat\apache-tomcat-7.0.73\webapps\nutzbook
2018-4-9 15:58:25 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.
18-04-09 15:58:25.880 INFO [localhost-startStop-1] Select SystemLog as Nutz.Log implement
18-04-09 15:58:25.890 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
18-04-09 15:58:25.911 DEBUG [localhost-startStop-1] Locations count=4 time use 10ms
18-04-09 15:58:25.941 DEBUG [localhost-startStop-1] Locations count=9 time use 30ms
18-04-09 15:58:26.021 DEBUG [localhost-startStop-1] Using 95 castor for Castors
18-04-09 15:58:26.031 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
18-04-09 15:58:26.031 INFO [localhost-startStop-1] Nutz Version : 1.r.62
18-04-09 15:58:26.031 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
18-04-09 15:58:26.041 DEBUG [localhost-startStop-1] Web Container Information:
18-04-09 15:58:26.041 DEBUG [localhost-startStop-1] - Default Charset : UTF-8
18-04-09 15:58:26.041 DEBUG [localhost-startStop-1] - Current . path : E:\nutztomcat\tomcat\apache-tomcat-7.0.73\bin\.
18-04-09 15:58:26.041 DEBUG [localhost-startStop-1] - Java Version : 1.6.0_13
18-04-09 15:58:26.041 DEBUG [localhost-startStop-1] - File separator : \
18-04-09 15:58:26.041 DEBUG [localhost-startStop-1] - Timezone : Asia/Shanghai
18-04-09 15:58:26.041 DEBUG [localhost-startStop-1] - OS : Windows Vista amd64
18-04-09 15:58:26.041 DEBUG [localhost-startStop-1] - ServerInfo : Apache Tomcat/7.0.73
18-04-09 15:58:26.041 DEBUG [localhost-startStop-1] - Servlet API : 3.0
18-04-09 15:58:26.041 DEBUG [localhost-startStop-1] - ContextPath : /nutzbook
18-04-09 15:58:26.041 DEBUG [localhost-startStop-1] - context.tempdir : E:\nutztomcat\tomcat\apache-tomcat-7.0.73\work\Catalina\localhost\nutzbook
18-04-09 15:58:26.041 DEBUG [localhost-startStop-1] - MainModule : com.wendal.nutzbook.MainModule
18-04-09 15:58:26.041 DEBUG [localhost-startStop-1] >> app.root = E:/nutztomcat/tomcat/apache-tomcat-7.0.73/webapps/nutzbook
18-04-09 15:58:26.051 DEBUG [localhost-startStop-1] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx", "*async"],init=[])
18-04-09 15:58:26.111 DEBUG [localhost-startStop-1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
18-04-09 15:58:26.111 DEBUG [localhost-startStop-1] loading [dao.js]
18-04-09 15:58:26.121 DEBUG [localhost-startStop-1] Loaded 2 bean define from path=[ioc/] --> [dataSource, dao]
18-04-09 15:58:26.131 DEBUG [localhost-startStop-1] Found 0 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
18-04-09 15:58:26.131 WARN [localhost-startStop-1]
NONE Annotation-Class found!! Check your ioc configure!! packages=[net.wendal.nutzbook]
18-04-09 15:58:26.131 DEBUG [localhost-startStop-1] Loaded 5 bean define from reader --
[txREPEATABLE_READ, txREAD_COMMITTED, txNONE, txSERIALIZABLE, txREAD_UNCOMMITTED]
18-04-09 15:58:26.151 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
18-04-09 15:58:26.151 INFO [localhost-startStop-1] NutIoc init begin ...
18-04-09 15:58:26.161 INFO [localhost-startStop-1] ... NutIoc init complete
18-04-09 15:58:26.161 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
18-04-09 15:58:26.161 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker.class)
18-04-09 15:58:26.175 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
18-04-09 15:58:26.185 DEBUG [localhost-startStop-1] module class location 'file:/E:/nutztomcat/tomcat/apache-tomcat-7.0.73/webapps/nutzbook/WEB-INF/classes/'
18-04-09 15:58:26.185 DEBUG [localhost-startStop-1] > scan 'com.wendal.nutzbook'
18-04-09 15:58:26.185 DEBUG [localhost-startStop-1] Found 4 resource by src( com/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
18-04-09 15:58:26.195 DEBUG [localhost-startStop-1] >> add 'com.wendal.nutzbook.module.UserModule'
18-04-09 15:58:26.215 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
18-04-09 15:58:26.215 WARN [localhost-startStop-1] Moudle with @InjectName('userModule') or @IocBean('userModule') but no such ioc bean found!! Pls check your ioc configure!!
18-04-09 15:58:26.225 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
18-04-09 15:58:26.245 DEBUG [localhost-startStop-1] '/user/count' >> (UserModule.java:24).count : int | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
18-04-09 15:58:26.245 INFO [localhost-startStop-1] Found 1 module methods
18-04-09 15:58:26.245 DEBUG [localhost-startStop-1] @Localization not define
18-04-09 15:58:26.245 INFO [localhost-startStop-1] Setup application...
18-04-09 15:58:26.245 DEBUG [localhost-startStop-1] Get 'dao'<interface org.nutz.dao.Dao>
18-04-09 15:58:26.245 DEBUG [localhost-startStop-1] Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
18-04-09 15:58:26.245 DEBUG [localhost-startStop-1] >> Load definition name=$aop_async
18-04-09 15:58:26.255 DEBUG [localhost-startStop-1] Found IocObject($aop_async) in AsyncAopIocLoader@72177013
18-04-09 15:58:26.255 DEBUG [localhost-startStop-1] >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
18-04-09 15:58:26.255 DEBUG [localhost-startStop-1] Save object '$aop_async' to [app]
18-04-09 15:58:26.265 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
18-04-09 15:58:26.265 DEBUG [localhost-startStop-1] >> Load definition name=dao
18-04-09 15:58:26.265 DEBUG [localhost-startStop-1] Loading define for name=dao
18-04-09 15:58:26.265 DEBUG [localhost-startStop-1] Found IocObject(dao) in JsonLoader(paths=[ioc/])
18-04-09 15:58:26.265 DEBUG [localhost-startStop-1] >> Make...'dao'<interface org.nutz.dao.Dao>
18-04-09 15:58:26.285 DEBUG [localhost-startStop-1] Load class org.nutz.dao.impl.NutDao without AOP
18-04-09 15:58:26.285 DEBUG [localhost-startStop-1] Save object 'dao' to [app]
18-04-09 15:58:26.285 DEBUG [localhost-startStop-1] Get 'dataSource'<>
18-04-09 15:58:26.285 DEBUG [localhost-startStop-1] >> Load definition name=dataSource
18-04-09 15:58:26.285 DEBUG [localhost-startStop-1] Loading define for name=dataSource
18-04-09 15:58:26.295 DEBUG [localhost-startStop-1] Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
18-04-09 15:58:26.295 DEBUG [localhost-startStop-1] >> Make...'dataSource'<>
18-04-09 15:58:26.315 DEBUG [localhost-startStop-1] Load class com.alibaba.druid.pool.DruidDataSource without AOP
18-04-09 15:58:26.315 DEBUG [localhost-startStop-1] Save object 'dataSource' to [app]
2018-4-9 15:58:26 com.alibaba.druid.pool.DruidDataSource info
信息: {dataSource-1} inited
18-04-09 15:58:26.565 DEBUG [localhost-startStop-1] Get 'dataSource'<>
18-04-09 15:58:26.835 DEBUG [localhost-startStop-1] Jdbcs init complete
18-04-09 15:58:26.835 INFO [localhost-startStop-1] Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure
18-04-09 15:58:26.981 DEBUG [localhost-startStop-1] select expert : org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert
18-04-09 15:58:26.991 DEBUG [localhost-startStop-1] JDBC Driver --> mysql-connector-java-5.1.37 ( Revision: 09940f05b4c98150f352e787a2549f11a2e9da93 )
18-04-09 15:58:26.991 DEBUG [localhost-startStop-1] JDBC Name --> MySQL Connector Java
18-04-09 15:58:26.991 DEBUG [localhost-startStop-1] JDBC URL --> jdbc:mysql://127.0.0.1/nutzbook?useUnicode=true&characterEncoding=UTF-8
18-04-09 15:58:27.004 DEBUG [localhost-startStop-1] Mysql : character_set_client=utf8
18-04-09 15:58:27.004 DEBUG [localhost-startStop-1] Mysql : character_set_connection=utf8
18-04-09 15:58:27.004 DEBUG [localhost-startStop-1] Mysql : character_set_database=utf8
18-04-09 15:58:27.004 DEBUG [localhost-startStop-1] Mysql : character_set_filesystem=binary
18-04-09 15:58:27.004 DEBUG [localhost-startStop-1] Mysql : character_set_results=
18-04-09 15:58:27.004 DEBUG [localhost-startStop-1] Mysql : character_set_server=utf8
18-04-09 15:58:27.004 DEBUG [localhost-startStop-1] Mysql : character_set_system=utf8
18-04-09 15:58:27.004 DEBUG [localhost-startStop-1] Mysql : character_sets_dir=D:\mysql\share\charsets\
18-04-09 15:58:27.004 DEBUG [localhost-startStop-1] Mysql : binlog_format=STATEMENT
18-04-09 15:58:27.004 DEBUG [localhost-startStop-1] Mysql : database=nutzbook
18-04-09 15:58:27.004 DEBUG [localhost-startStop-1] Mysql : user=root@localhost
18-04-09 15:58:27.024 DEBUG [localhost-startStop-1] Database info --> MYSQL:[MySQL - 5.5.56]
18-04-09 15:58:27.024 DEBUG [localhost-startStop-1] Found 4 resource by src( com/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
18-04-09 15:58:27.084 DEBUG [localhost-startStop-1] SELECT COUNT(*) FROM t_user
18-04-09 15:58:27.084 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is up in 1043ms
2018-4-9 15:58:27 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\nutztomcat\tomcat\apache-tomcat-7.0.73\webapps\nutzbook has finished in 1,959 ms
2018-4-9 15:58:27 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\nutztomcat\tomcat\apache-tomcat-7.0.73\webapps\ROOT
2018-4-9 15:58:27 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\nutztomcat\tomcat\apache-tomcat-7.0.73\webapps\ROOT has finished in 41 ms
2018-4-9 15:58:27 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-apr-8080"]
2018-4-9 15:58:27 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-apr-8009"]
2018-4-9 15:58:27 org.apache.catalina.startup.Catalina start
信息: Server startup in 2966 ms
18-04-09 15:58:40.717 DEBUG [http-apr-8080-exec-6] Found mapping for [GET] path=/user/count : UserModule.count(UserModule.java:24)
18-04-09 15:58:40.719 DEBUG [http-apr-8080-exec-6] Get 'userModule'<class com.wendal.nutzbook.module.UserModule>
18-04-09 15:58:40.719 DEBUG [http-apr-8080-exec-6] >> Load definition name=userModule
18-04-09 15:58:40.720 WARN [http-apr-8080-exec-6] Error@/user/count :
org.nutz.ioc.IocException: IocBean[userModule] For object [userModule] - type:[class com.wendal.nutzbook.module.UserModule]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:218)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:116)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:958)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2517)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2506)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.nutz.ioc.ObjectLoadException: Object 'userModule' without define!
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:166)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
... 28 more
18-04-09 16:04:58.763 DEBUG [http-apr-8080-exec-9] Found mapping for [GET] path=/user/count : UserModule.count(UserModule.java:24)
18-04-09 16:04:58.765 DEBUG [http-apr-8080-exec-9] Get 'userModule'<class com.wendal.nutzbook.module.UserModule>
18-04-09 16:04:58.765 DEBUG [http-apr-8080-exec-9] >> Load definition name=userModule
18-04-09 16:04:58.765 WARN [http-apr-8080-exec-9] Error@/user/count :
org.nutz.ioc.IocException: IocBean[userModule] For object [userModule] - type:[class com.wendal.nutzbook.module.UserModule]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:218)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:116)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:958)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2517)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2506)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.nutz.ioc.ObjectLoadException: Object 'userModule' without define!
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:166)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
... 28 more
18-04-09 16:05:10.585 DEBUG [http-apr-8080-exec-1] Found mapping for [GET] path=/user/count : UserModule.count(UserModule.java:24)
18-04-09 16:05:10.586 DEBUG [http-apr-8080-exec-1] Get 'userModule'<class com.wendal.nutzbook.module.UserModule>
18-04-09 16:05:10.586 DEBUG [http-apr-8080-exec-1] >> Load definition name=userModule
18-04-09 16:05:10.586 WARN [http-apr-8080-exec-1] Error@/user/count :
org.nutz.ioc.IocException: IocBean[userModule] For object [userModule] - type:[class com.wendal.nutzbook.module.UserModule]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:218)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:116)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:958)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2517)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2506)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.nutz.ioc.ObjectLoadException: Object 'userModule' without define!
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:166)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
... 28 more
package com.wendal.nutzbook.module;
import com.wendal.nutzbook.bean.User;
import org.nutz.dao.Dao;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Fail;
import org.nutz.mvc.annotation.Ok;
@IocBean
@At("/user")
@Ok("json")
@Fail("http:500")
public class UserModule {
@Inject
protected Dao dao;
@At
public int count() {
return dao.count(User.class);
}
}