NutzCN Logo
问答 maven nutz datasources报异常
发布于 2682天前 作者 qq_4945a577 3369 次浏览 复制 上一个帖子 下一个帖子
标签: nutzbook

maven的资源目录是resources不是conf ,所以再一次仿照新手入门里的建造nutz项目抱如下错误:
17-08-19 15:52:20.061 WARN [http-bio-8080-exec-4] Error@/user/login :
org.nutz.ioc.IocException: [userModule, dao, dataSource, resources] # For object [resources] - type:[]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:218)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:88)
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:67)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:114)

将conf改成resources配置的文件代码如下

dataSource : {
        factory : "$resources#make",
        args : ["com.alibaba.druid.pool.DruidDataSource", "db."],
        type : "com.alibaba.druid.pool.DruidDataSource",
        events : {
            create : "init",
            depose : 'close'
        }
    },
16 回复

把 log 贴全

来自美丽的 NutzCN

D:\s_develop\JDK\jdk1.8.0_121\bin\java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:58337,suspend=y,server=n -Dmaven.home=D:\s_develop\maven\apache-maven-3.1.1 -Dclassworlds.conf=D:\s_develop\maven\apache-maven-3.1.1\bin\m2.conf -Dfile.encoding=UTF-8 -classpath "D:\s_develop\maven\apache-maven-3.1.1\boot\plexus-classworlds-2.5.1.jar;D:\s_develop\IntelliJ_IDEAR\IntelliJ IDEA 2017.2.1\lib\idea_rt.jar" org.codehaus.classworlds.Launcher -Didea.version=2017.2.2 -s D:\s_develop\maven\apache-maven-3.1.1\conf\settings.xml tomcat7:run
Connected to the target VM, address: '127.0.0.1:58337', transport: 'socket'
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building nutzbook 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> tomcat7-maven-plugin:2.1:run (default-cli) @ nutzbook >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ nutzbook ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ nutzbook ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] <<< tomcat7-maven-plugin:2.1:run (default-cli) @ nutzbook <<<
[INFO] 
[INFO] --- tomcat7-maven-plugin:2.1:run (default-cli) @ nutzbook ---
[INFO] Running war on http://localhost:8080/nutzbook
[INFO] Using existing Tomcat server configuration at E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook\target\tomcat
[INFO] create webapp with contextPath: /nutzbook
八月 19, 2017 4:06:33 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
八月 19, 2017 4:06:34 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Tomcat
八月 19, 2017 4:06:34 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.37
2017-8-19 16:6:35.608 INFO [localhost-startStop-1] Select SystemLog as Nutz.Log implement
2017-8-19 16:6:35.615 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
2017-8-19 16:6:35.688 DEBUG [localhost-startStop-1] Locations for Scans:
[Dir[path=E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook], Jar[path=D:\s_develop\maven\repository\org\nutz\nutz\1.r.60\nutz-1.r.60.jar], Jar[path=D:\s_develop\maven\apache-maven-3.1.1\boot\plexus-classworlds-2.5.1.jar], Jar[path=D:\s_develop\IntelliJ_IDEAR\IntelliJ IDEA 2017.2.1\lib\idea_rt.jar]]
2017-8-19 16:6:35.688 INFO [localhost-startStop-1] [loc=E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook\src\main\webapp\WEB-INF\classes]not exist
2017-8-19 16:6:35.689 DEBUG [localhost-startStop-1] Locations for Scans:
{E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook=Dir[path=E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook], D:\s_develop\maven\repository\org\nutz\nutz\1.r.60\nutz-1.r.60.jar=Jar[path=D:\s_develop\maven\repository\org\nutz\nutz\1.r.60\nutz-1.r.60.jar], D:\s_develop\maven\apache-maven-3.1.1\boot\plexus-classworlds-2.5.1.jar=Jar[path=D:\s_develop\maven\apache-maven-3.1.1\boot\plexus-classworlds-2.5.1.jar], D:\s_develop\IntelliJ_IDEAR\IntelliJ IDEA 2017.2.1\lib\idea_rt.jar=Jar[path=D:\s_develop\IntelliJ_IDEAR\IntelliJ IDEA 2017.2.1\lib\idea_rt.jar], E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook\src\main\webapp\WEB-INF\classes=ErrorResourceLocation [loc=E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook\src\main\webapp\WEB-INF\classes]}
17-08-19 16:06:35.689 WARN [localhost-startStop-1] /WEB-INF/lib/ NOT found?!
2017-8-19 16:6:35.761 DEBUG [localhost-startStop-1] Using 95 castor for Castors
2017-8-19 16:6:35.775 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
2017-8-19 16:6:35.778 INFO [localhost-startStop-1] Nutz Version : 1.r.60 
2017-8-19 16:6:35.779 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
2017-8-19 16:6:35.779 DEBUG [localhost-startStop-1] Web Container Information:
2017-8-19 16:6:35.781 DEBUG [localhost-startStop-1]  - Default Charset : UTF-8
2017-8-19 16:6:35.781 DEBUG [localhost-startStop-1]  - Current . path  : E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook\.
2017-8-19 16:6:35.781 DEBUG [localhost-startStop-1]  - Java Version    : 1.8.0_121
2017-8-19 16:6:35.782 DEBUG [localhost-startStop-1]  - File separator  : \
2017-8-19 16:6:35.782 DEBUG [localhost-startStop-1]  - Timezone        : Asia/Shanghai
2017-8-19 16:6:35.782 DEBUG [localhost-startStop-1]  - OS              : Windows 10 amd64
2017-8-19 16:6:35.783 DEBUG [localhost-startStop-1]  - ServerInfo      : Apache Tomcat/7.0.37
2017-8-19 16:6:35.783 DEBUG [localhost-startStop-1]  - Servlet API     : 3.0
2017-8-19 16:6:35.784 DEBUG [localhost-startStop-1]  - ContextPath     : /nutzbook
2017-8-19 16:6:35.784 DEBUG [localhost-startStop-1]  - context.tempdir : E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook\target\tomcat\work\Tomcat\localhost\nutzbook
2017-8-19 16:6:35.784 DEBUG [localhost-startStop-1]  - MainModule      : net.wendal.nutzbook.MainModule
2017-8-19 16:6:35.786 DEBUG [localhost-startStop-1] >> app.root = E:/WorkSpace/workspace_InstallJIDAER.No2/nutzbook/src/main/webapp
2017-8-19 16:6:35.789 DEBUG [localhost-startStop-1] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx", "*async"],init=[])
2017-8-19 16:6:35.815 DEBUG [localhost-startStop-1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2017-8-19 16:6:35.815 DEBUG [localhost-startStop-1] loading ioc js config from [E:/WorkSpace/workspace_InstallJIDAER.No2/nutzbook/target/classes/ioc/dao.js]
2017-8-19 16:6:35.825 DEBUG [localhost-startStop-1] Loaded 3 bean define from path=[ioc/] --> [conf, dao, dataSource]
2017-8-19 16:6:35.829 DEBUG [localhost-startStop-1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2017-8-19 16:6:35.881 DEBUG [localhost-startStop-1] Found @IocBean : class net.wendal.nutzbook.module.UserModule
2017-8-19 16:6:36.787 INFO [localhost-startStop-1] Found 1 classes in 1 base-packages!
beans = ["userModule"]
2017-8-19 16:6:36.791 DEBUG [localhost-startStop-1] Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
2017-8-19 16:6:36.799 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
2017-8-19 16:6:36.804 INFO [localhost-startStop-1] NutIoc init begin ...
2017-8-19 16:6:36.809 INFO [localhost-startStop-1] ... NutIoc init complete
2017-8-19 16:6:36.815 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2017-8-19 16:6:36.820 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker.class)
2017-8-19 16:6:36.831 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2017-8-19 16:6:36.839 DEBUG [localhost-startStop-1] module class location 'file:/E:/WorkSpace/workspace_InstallJIDAER.No2/nutzbook/target/classes/'
2017-8-19 16:6:36.840 DEBUG [localhost-startStop-1]  > scan 'net.wendal.nutzbook'
2017-8-19 16:6:36.841 DEBUG [localhost-startStop-1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2017-8-19 16:6:36.842 DEBUG [localhost-startStop-1]    >> add 'net.wendal.nutzbook.module.UserModule'
2017-8-19 16:6:36.853 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
2017-8-19 16:6:36.870 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
2017-8-19 16:6:36.889 DEBUG [localhost-startStop-1]    '/user/login'               >> (UserModule.java:25).login            : Object     | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2017-8-19 16:6:36.897 DEBUG [localhost-startStop-1]    '/user/logout'              >> (UserModule.java:36).logout           : void       | @Ok(>>:/ ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2017-8-19 16:6:36.898 INFO [localhost-startStop-1] Found 2 module methods
2017-8-19 16:6:36.898 DEBUG [localhost-startStop-1] @Localization not define
2017-8-19 16:6:36.899 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is up in 1114ms
八月 19, 2017 4:06:36 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
2017-8-19 16:6:44.830 DEBUG [http-bio-8080-exec-4] Found mapping for [POST] path=/user/login : UserModule.login(UserModule.java:25)
2017-8-19 16:6:44.834 DEBUG [http-bio-8080-exec-4] Get 'userModule'<class net.wendal.nutzbook.module.UserModule>
2017-8-19 16:6:44.834 DEBUG [http-bio-8080-exec-4] Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-8-19 16:6:44.837 DEBUG [http-bio-8080-exec-4] 	 >> Load definition name=$aop_async
2017-8-19 16:6:44.843 DEBUG [http-bio-8080-exec-4] Found IocObject($aop_async) in AsyncAopIocLoader@1001842222
2017-8-19 16:6:44.844 DEBUG [http-bio-8080-exec-4] 	 >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-8-19 16:6:44.846 DEBUG [http-bio-8080-exec-4] Save object '$aop_async' to [app] 
2017-8-19 16:6:44.858 DEBUG [http-bio-8080-exec-4] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
2017-8-19 16:6:44.858 DEBUG [http-bio-8080-exec-4] 	 >> Load definition name=userModule
2017-8-19 16:6:44.858 DEBUG [http-bio-8080-exec-4] Found IocObject(userModule) in AnnotationIocLoader(packages=[net.wendal.nutzbook])
2017-8-19 16:6:44.858 DEBUG [http-bio-8080-exec-4] 	 >> Make...'userModule'<class net.wendal.nutzbook.module.UserModule>
2017-8-19 16:6:44.859 DEBUG [http-bio-8080-exec-4] Load class net.wendal.nutzbook.module.UserModule without AOP
2017-8-19 16:6:44.859 DEBUG [http-bio-8080-exec-4] Save object 'userModule' to [app] 
2017-8-19 16:6:44.869 DEBUG [http-bio-8080-exec-4] Get 'dao'<interface org.nutz.dao.Dao>
2017-8-19 16:6:44.869 DEBUG [http-bio-8080-exec-4] 	 >> Load definition name=dao
2017-8-19 16:6:44.869 DEBUG [http-bio-8080-exec-4] Loading define for name=dao
2017-8-19 16:6:44.875 DEBUG [http-bio-8080-exec-4] Found IocObject(dao) in JsonLoader(paths=[ioc/])
2017-8-19 16:6:44.876 DEBUG [http-bio-8080-exec-4] 	 >> Make...'dao'<interface org.nutz.dao.Dao>
2017-8-19 16:6:44.889 DEBUG [http-bio-8080-exec-4] Load class org.nutz.dao.impl.NutDao without AOP
2017-8-19 16:6:44.889 DEBUG [http-bio-8080-exec-4] Save object 'dao' to [app] 
2017-8-19 16:6:44.892 DEBUG [http-bio-8080-exec-4] Get 'dataSource'<>
2017-8-19 16:6:44.892 DEBUG [http-bio-8080-exec-4] 	 >> Load definition name=dataSource
2017-8-19 16:6:44.892 DEBUG [http-bio-8080-exec-4] Loading define for name=dataSource
2017-8-19 16:6:44.900 DEBUG [http-bio-8080-exec-4] Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
2017-8-19 16:6:44.900 DEBUG [http-bio-8080-exec-4] 	 >> Make...'dataSource'<>
2017-8-19 16:6:44.928 DEBUG [http-bio-8080-exec-4] Load class com.alibaba.druid.pool.DruidDataSource without AOP
2017-8-19 16:6:44.928 DEBUG [http-bio-8080-exec-4] Save object 'dataSource' to [app] 
2017-8-19 16:6:44.930 DEBUG [http-bio-8080-exec-4] Get 'resources'<>
2017-8-19 16:6:44.930 DEBUG [http-bio-8080-exec-4] 	 >> Load definition name=resources
2017-8-19 16:6:44.933 DEBUG [http-bio-8080-exec-4] Remove object 'dataSource' from [app] 
2017-8-19 16:6:44.933 DEBUG [http-bio-8080-exec-4] Remove object 'dao' from [app] 
2017-8-19 16:6:44.933 DEBUG [http-bio-8080-exec-4] Remove object 'userModule' from [app] 
17-08-19 16:06:44.933 WARN [http-bio-8080-exec-4] Error@/user/login :
org.nutz.ioc.IocException: [userModule, dao, dataSource, resources] # For object [resources] - type:[]
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:218)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
	at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:88)
	at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:67)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:114)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:75)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:60)
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:31)
	at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:56)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:135)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	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:198)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.nutz.ioc.ObjectLoadException: Object 'resources' without define!
	at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:174)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
	... 39 more

var ioc = {
    conf : {
        type : "org.nutz.ioc.impl.PropertiesProxy",
        fields : {
            paths : ["custom/"]
        }
    },
    dataSource : {
        factory : "$resources#make",
        args : ["com.alibaba.druid.pool.DruidDataSource", "db."],
        type : "com.alibaba.druid.pool.DruidDataSource",
        events : {
            create : "init",
            depose : 'close'
        }
    },
    dao : {
        type : "org.nutz.dao.impl.NutDao",
        args : [{refer:"dataSource"}]
    }
};

刚修改的

var ioc = {
    resources : {
        type : "org.nutz.ioc.impl.PropertiesProxy",
        fields : {
            paths : ["custom/"]
        }
    },
    dataSource : {
        factory : "$resources#make",
        args : ["com.alibaba.druid.pool.DruidDataSource", "db."],
        type : "com.alibaba.druid.pool.DruidDataSource",
        events : {
            create : "init",
            depose : 'close'
        }
    },
    dao : {
        type : "org.nutz.dao.impl.NutDao",
        args : [{refer:"dataSource"}]
    }
};

问题解决了,但是又报另一个错了

D:\s_develop\JDK\jdk1.8.0_121\bin\java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:58369,suspend=y,server=n -Dmaven.home=D:\s_develop\maven\apache-maven-3.1.1 -Dclassworlds.conf=D:\s_develop\maven\apache-maven-3.1.1\bin\m2.conf -Dfile.encoding=UTF-8 -classpath "D:\s_develop\maven\apache-maven-3.1.1\boot\plexus-classworlds-2.5.1.jar;D:\s_develop\IntelliJ_IDEAR\IntelliJ IDEA 2017.2.1\lib\idea_rt.jar" org.codehaus.classworlds.Launcher -Didea.version=2017.2.2 -s D:\s_develop\maven\apache-maven-3.1.1\conf\settings.xml tomcat7:run
Connected to the target VM, address: '127.0.0.1:58369', transport: 'socket'
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building nutzbook 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> tomcat7-maven-plugin:2.1:run (default-cli) @ nutzbook >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ nutzbook ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ nutzbook ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] <<< tomcat7-maven-plugin:2.1:run (default-cli) @ nutzbook <<<
[INFO] 
[INFO] --- tomcat7-maven-plugin:2.1:run (default-cli) @ nutzbook ---
[INFO] Running war on http://localhost:8080/nutzbook
[INFO] Using existing Tomcat server configuration at E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook\target\tomcat
[INFO] create webapp with contextPath: /nutzbook
八月 19, 2017 4:10:24 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
八月 19, 2017 4:10:24 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Tomcat
八月 19, 2017 4:10:24 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.37
2017-8-19 16:10:26.368 INFO [localhost-startStop-1] Select SystemLog as Nutz.Log implement
2017-8-19 16:10:26.376 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
2017-8-19 16:10:26.454 DEBUG [localhost-startStop-1] Locations for Scans:
[Dir[path=E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook], Jar[path=D:\s_develop\maven\repository\org\nutz\nutz\1.r.60\nutz-1.r.60.jar], Jar[path=D:\s_develop\maven\apache-maven-3.1.1\boot\plexus-classworlds-2.5.1.jar], Jar[path=D:\s_develop\IntelliJ_IDEAR\IntelliJ IDEA 2017.2.1\lib\idea_rt.jar]]
2017-8-19 16:10:26.455 INFO [localhost-startStop-1] [loc=E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook\src\main\webapp\WEB-INF\classes]not exist
2017-8-19 16:10:26.456 DEBUG [localhost-startStop-1] Locations for Scans:
{E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook=Dir[path=E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook], D:\s_develop\maven\repository\org\nutz\nutz\1.r.60\nutz-1.r.60.jar=Jar[path=D:\s_develop\maven\repository\org\nutz\nutz\1.r.60\nutz-1.r.60.jar], D:\s_develop\maven\apache-maven-3.1.1\boot\plexus-classworlds-2.5.1.jar=Jar[path=D:\s_develop\maven\apache-maven-3.1.1\boot\plexus-classworlds-2.5.1.jar], D:\s_develop\IntelliJ_IDEAR\IntelliJ IDEA 2017.2.1\lib\idea_rt.jar=Jar[path=D:\s_develop\IntelliJ_IDEAR\IntelliJ IDEA 2017.2.1\lib\idea_rt.jar], E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook\src\main\webapp\WEB-INF\classes=ErrorResourceLocation [loc=E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook\src\main\webapp\WEB-INF\classes]}
17-08-19 16:10:26.455 WARN [localhost-startStop-1] /WEB-INF/lib/ NOT found?!
2017-8-19 16:10:26.520 DEBUG [localhost-startStop-1] Using 95 castor for Castors
2017-8-19 16:10:26.529 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
2017-8-19 16:10:26.536 INFO [localhost-startStop-1] Nutz Version : 1.r.60 
2017-8-19 16:10:26.536 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
2017-8-19 16:10:26.536 DEBUG [localhost-startStop-1] Web Container Information:
2017-8-19 16:10:26.539 DEBUG [localhost-startStop-1]  - Default Charset : UTF-8
2017-8-19 16:10:26.539 DEBUG [localhost-startStop-1]  - Current . path  : E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook\.
2017-8-19 16:10:26.539 DEBUG [localhost-startStop-1]  - Java Version    : 1.8.0_121
2017-8-19 16:10:26.539 DEBUG [localhost-startStop-1]  - File separator  : \
2017-8-19 16:10:26.540 DEBUG [localhost-startStop-1]  - Timezone        : Asia/Shanghai
2017-8-19 16:10:26.540 DEBUG [localhost-startStop-1]  - OS              : Windows 10 amd64
2017-8-19 16:10:26.540 DEBUG [localhost-startStop-1]  - ServerInfo      : Apache Tomcat/7.0.37
2017-8-19 16:10:26.541 DEBUG [localhost-startStop-1]  - Servlet API     : 3.0
2017-8-19 16:10:26.541 DEBUG [localhost-startStop-1]  - ContextPath     : /nutzbook
2017-8-19 16:10:26.541 DEBUG [localhost-startStop-1]  - context.tempdir : E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook\target\tomcat\work\Tomcat\localhost\nutzbook
2017-8-19 16:10:26.542 DEBUG [localhost-startStop-1]  - MainModule      : net.wendal.nutzbook.MainModule
2017-8-19 16:10:26.543 DEBUG [localhost-startStop-1] >> app.root = E:/WorkSpace/workspace_InstallJIDAER.No2/nutzbook/src/main/webapp
2017-8-19 16:10:26.545 DEBUG [localhost-startStop-1] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx", "*async"],init=[])
2017-8-19 16:10:26.574 DEBUG [localhost-startStop-1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2017-8-19 16:10:26.575 DEBUG [localhost-startStop-1] loading ioc js config from [E:/WorkSpace/workspace_InstallJIDAER.No2/nutzbook/target/classes/ioc/dao.js]
2017-8-19 16:10:26.584 DEBUG [localhost-startStop-1] Loaded 3 bean define from path=[ioc/] --> [resources, dao, dataSource]
2017-8-19 16:10:26.589 DEBUG [localhost-startStop-1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2017-8-19 16:10:26.634 DEBUG [localhost-startStop-1] Found @IocBean : class net.wendal.nutzbook.module.UserModule
2017-8-19 16:10:27.654 INFO [localhost-startStop-1] Found 1 classes in 1 base-packages!
beans = ["userModule"]
2017-8-19 16:10:27.658 DEBUG [localhost-startStop-1] Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
2017-8-19 16:10:27.664 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
2017-8-19 16:10:27.671 INFO [localhost-startStop-1] NutIoc init begin ...
2017-8-19 16:10:27.676 INFO [localhost-startStop-1] ... NutIoc init complete
2017-8-19 16:10:27.688 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2017-8-19 16:10:27.691 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker.class)
2017-8-19 16:10:27.733 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2017-8-19 16:10:27.755 DEBUG [localhost-startStop-1] module class location 'file:/E:/WorkSpace/workspace_InstallJIDAER.No2/nutzbook/target/classes/'
2017-8-19 16:10:27.755 DEBUG [localhost-startStop-1]  > scan 'net.wendal.nutzbook'
2017-8-19 16:10:27.762 DEBUG [localhost-startStop-1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2017-8-19 16:10:27.763 DEBUG [localhost-startStop-1]    >> add 'net.wendal.nutzbook.module.UserModule'
2017-8-19 16:10:27.778 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
2017-8-19 16:10:27.792 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
2017-8-19 16:10:27.840 DEBUG [localhost-startStop-1]    '/user/logout'              >> (UserModule.java:36).logout           : void       | @Ok(>>:/ ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2017-8-19 16:10:27.850 DEBUG [localhost-startStop-1]    '/user/login'               >> (UserModule.java:25).login            : Object     | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2017-8-19 16:10:27.852 INFO [localhost-startStop-1] Found 2 module methods
2017-8-19 16:10:27.852 DEBUG [localhost-startStop-1] @Localization not define
2017-8-19 16:10:27.853 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is up in 1310ms
八月 19, 2017 4:10:27 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
2017-8-19 16:10:47.125 DEBUG [http-bio-8080-exec-4] Found mapping for [POST] path=/user/login : UserModule.login(UserModule.java:25)
2017-8-19 16:10:47.128 DEBUG [http-bio-8080-exec-4] Get 'userModule'<class net.wendal.nutzbook.module.UserModule>
2017-8-19 16:10:47.128 DEBUG [http-bio-8080-exec-4] Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-8-19 16:10:47.130 DEBUG [http-bio-8080-exec-4] 	 >> Load definition name=$aop_async
2017-8-19 16:10:47.136 DEBUG [http-bio-8080-exec-4] Found IocObject($aop_async) in AsyncAopIocLoader@1058135170
2017-8-19 16:10:47.136 DEBUG [http-bio-8080-exec-4] 	 >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-8-19 16:10:47.138 DEBUG [http-bio-8080-exec-4] Save object '$aop_async' to [app] 
2017-8-19 16:10:47.150 DEBUG [http-bio-8080-exec-4] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
2017-8-19 16:10:47.150 DEBUG [http-bio-8080-exec-4] 	 >> Load definition name=userModule
2017-8-19 16:10:47.150 DEBUG [http-bio-8080-exec-4] Found IocObject(userModule) in AnnotationIocLoader(packages=[net.wendal.nutzbook])
2017-8-19 16:10:47.151 DEBUG [http-bio-8080-exec-4] 	 >> Make...'userModule'<class net.wendal.nutzbook.module.UserModule>
2017-8-19 16:10:47.151 DEBUG [http-bio-8080-exec-4] Load class net.wendal.nutzbook.module.UserModule without AOP
2017-8-19 16:10:47.151 DEBUG [http-bio-8080-exec-4] Save object 'userModule' to [app] 
2017-8-19 16:10:47.161 DEBUG [http-bio-8080-exec-4] Get 'dao'<interface org.nutz.dao.Dao>
2017-8-19 16:10:47.161 DEBUG [http-bio-8080-exec-4] 	 >> Load definition name=dao
2017-8-19 16:10:47.161 DEBUG [http-bio-8080-exec-4] Loading define for name=dao
2017-8-19 16:10:47.168 DEBUG [http-bio-8080-exec-4] Found IocObject(dao) in JsonLoader(paths=[ioc/])
2017-8-19 16:10:47.168 DEBUG [http-bio-8080-exec-4] 	 >> Make...'dao'<interface org.nutz.dao.Dao>
2017-8-19 16:10:47.185 DEBUG [http-bio-8080-exec-4] Load class org.nutz.dao.impl.NutDao without AOP
2017-8-19 16:10:47.185 DEBUG [http-bio-8080-exec-4] Save object 'dao' to [app] 
2017-8-19 16:10:47.188 DEBUG [http-bio-8080-exec-4] Get 'dataSource'<>
2017-8-19 16:10:47.188 DEBUG [http-bio-8080-exec-4] 	 >> Load definition name=dataSource
2017-8-19 16:10:47.188 DEBUG [http-bio-8080-exec-4] Loading define for name=dataSource
2017-8-19 16:10:47.198 DEBUG [http-bio-8080-exec-4] Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
2017-8-19 16:10:47.198 DEBUG [http-bio-8080-exec-4] 	 >> Make...'dataSource'<>
2017-8-19 16:10:47.225 DEBUG [http-bio-8080-exec-4] Load class com.alibaba.druid.pool.DruidDataSource without AOP
2017-8-19 16:10:47.226 DEBUG [http-bio-8080-exec-4] Save object 'dataSource' to [app] 
2017-8-19 16:10:47.228 DEBUG [http-bio-8080-exec-4] Get 'resources'<>
2017-8-19 16:10:47.228 DEBUG [http-bio-8080-exec-4] 	 >> Load definition name=resources
2017-8-19 16:10:47.228 DEBUG [http-bio-8080-exec-4] Loading define for name=resources
2017-8-19 16:10:47.228 DEBUG [http-bio-8080-exec-4] Found IocObject(resources) in JsonLoader(paths=[ioc/])
2017-8-19 16:10:47.228 DEBUG [http-bio-8080-exec-4] 	 >> Make...'resources'<>
2017-8-19 16:10:47.231 DEBUG [http-bio-8080-exec-4] Load class org.nutz.ioc.impl.PropertiesProxy without AOP
2017-8-19 16:10:47.231 DEBUG [http-bio-8080-exec-4] Save object 'resources' to [app] 
2017-8-19 16:10:47.303 DEBUG [http-bio-8080-exec-4] Found 1 resource by src( custom/ ) , regex( ^.+[.]properties$ )
2017-8-19 16:10:47.387 DEBUG [http-bio-8080-exec-4] Remove object 'dataSource' from [app] 
17-08-19 16:10:47.390 WARN [http-bio-8080-exec-4] Error@/user/login :
org.nutz.ioc.IocException: [userModule, dao, dataSource] # FAIL to create Ioc Bean name=[dataSource]
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:149)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:75)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:60)
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:31)
	at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:56)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:135)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	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:198)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:307)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1628)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1558)
	at com.alibaba.druid.util.JdbcUtils.createDriver(JdbcUtils.java:559)
	at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:642)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.nutz.ioc.trigger.MethodEventTrigger.trigger(MethodEventTrigger.java:18)
	at org.nutz.ioc.weaver.DefaultWeaver.onCreate(DefaultWeaver.java:72)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
	... 35 more
2017-8-19 16:10:47.389 DEBUG [http-bio-8080-exec-4] Remove object 'dao' from [app] 
2017-8-19 16:10:47.390 DEBUG [http-bio-8080-exec-4] Remove object 'userModule' from [app] 

没找到 $resources 的定义

来自美丽的 NutzCN

ioc文件不要改!那是bean的名字,不是路径名,按原版写!

这个问题已经解决了,

 resources : {
        type : "org.nutz.ioc.impl.PropertiesProxy",

这个地方的resources没有改,应该是被我乱改出的毛病,主要原因是我建好以后登录时出现一个异常一直找不到原因然后被我乱改该出的毛病,登录爆出的就是新贴的这个日志的异常,

改回conf !!! maven项目跟非maven项目只是文件系统上的路径不一样, ioc, mvc配置都是一样的

dao.js里面的名字统统改回去

改回去了,可是登录方法报的异常还在

D:\s_develop\JDK\jdk1.8.0_121\bin\java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:58587,suspend=y,server=n -Dmaven.home=D:\s_develop\maven\apache-maven-3.1.1 -Dclassworlds.conf=D:\s_develop\maven\apache-maven-3.1.1\bin\m2.conf -Dfile.encoding=UTF-8 -classpath "D:\s_develop\maven\apache-maven-3.1.1\boot\plexus-classworlds-2.5.1.jar;D:\s_develop\IntelliJ_IDEAR\IntelliJ IDEA 2017.2.1\lib\idea_rt.jar" org.codehaus.classworlds.Launcher -Didea.version=2017.2.2 -s D:\s_develop\maven\apache-maven-3.1.1\conf\settings.xml tomcat7:run
Connected to the target VM, address: '127.0.0.1:58587', transport: 'socket'
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building nutzbook 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> tomcat7-maven-plugin:2.1:run (default-cli) @ nutzbook >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ nutzbook ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ nutzbook ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] <<< tomcat7-maven-plugin:2.1:run (default-cli) @ nutzbook <<<
[INFO] 
[INFO] --- tomcat7-maven-plugin:2.1:run (default-cli) @ nutzbook ---
[INFO] Running war on http://localhost:8080/nutzbook
[INFO] Using existing Tomcat server configuration at E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook\target\tomcat
[INFO] create webapp with contextPath: /nutzbook
八月 19, 2017 4:35:41 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
八月 19, 2017 4:35:41 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Tomcat
八月 19, 2017 4:35:41 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.37
2017-8-19 16:35:42.680 INFO [localhost-startStop-1] Select SystemLog as Nutz.Log implement
2017-8-19 16:35:42.686 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
2017-8-19 16:35:42.771 DEBUG [localhost-startStop-1] Locations for Scans:
[Dir[path=E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook], Jar[path=D:\s_develop\maven\repository\org\nutz\nutz\1.r.60\nutz-1.r.60.jar], Jar[path=D:\s_develop\maven\apache-maven-3.1.1\boot\plexus-classworlds-2.5.1.jar], Jar[path=D:\s_develop\IntelliJ_IDEAR\IntelliJ IDEA 2017.2.1\lib\idea_rt.jar]]
2017-8-19 16:35:42.774 INFO [localhost-startStop-1] [loc=E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook\src\main\webapp\WEB-INF\classes]not exist
2017-8-19 16:35:42.775 DEBUG [localhost-startStop-1] Locations for Scans:
{E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook=Dir[path=E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook], D:\s_develop\maven\repository\org\nutz\nutz\1.r.60\nutz-1.r.60.jar=Jar[path=D:\s_develop\maven\repository\org\nutz\nutz\1.r.60\nutz-1.r.60.jar], D:\s_develop\maven\apache-maven-3.1.1\boot\plexus-classworlds-2.5.1.jar=Jar[path=D:\s_develop\maven\apache-maven-3.1.1\boot\plexus-classworlds-2.5.1.jar], D:\s_develop\IntelliJ_IDEAR\IntelliJ IDEA 2017.2.1\lib\idea_rt.jar=Jar[path=D:\s_develop\IntelliJ_IDEAR\IntelliJ IDEA 2017.2.1\lib\idea_rt.jar], E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook\src\main\webapp\WEB-INF\classes=ErrorResourceLocation [loc=E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook\src\main\webapp\WEB-INF\classes]}
17-08-19 16:35:42.775 WARN [localhost-startStop-1] /WEB-INF/lib/ NOT found?!
2017-8-19 16:35:42.862 DEBUG [localhost-startStop-1] Using 95 castor for Castors
2017-8-19 16:35:42.872 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
2017-8-19 16:35:42.876 INFO [localhost-startStop-1] Nutz Version : 1.r.60 
2017-8-19 16:35:42.876 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
2017-8-19 16:35:42.877 DEBUG [localhost-startStop-1] Web Container Information:
2017-8-19 16:35:42.879 DEBUG [localhost-startStop-1]  - Default Charset : UTF-8
2017-8-19 16:35:42.879 DEBUG [localhost-startStop-1]  - Current . path  : E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook\.
2017-8-19 16:35:42.879 DEBUG [localhost-startStop-1]  - Java Version    : 1.8.0_121
2017-8-19 16:35:42.879 DEBUG [localhost-startStop-1]  - File separator  : \
2017-8-19 16:35:42.880 DEBUG [localhost-startStop-1]  - Timezone        : Asia/Shanghai
2017-8-19 16:35:42.880 DEBUG [localhost-startStop-1]  - OS              : Windows 10 amd64
2017-8-19 16:35:42.882 DEBUG [localhost-startStop-1]  - ServerInfo      : Apache Tomcat/7.0.37
2017-8-19 16:35:42.883 DEBUG [localhost-startStop-1]  - Servlet API     : 3.0
2017-8-19 16:35:42.884 DEBUG [localhost-startStop-1]  - ContextPath     : /nutzbook
2017-8-19 16:35:42.884 DEBUG [localhost-startStop-1]  - context.tempdir : E:\WorkSpace\workspace_InstallJIDAER.No2\nutzbook\target\tomcat\work\Tomcat\localhost\nutzbook
2017-8-19 16:35:42.884 DEBUG [localhost-startStop-1]  - MainModule      : net.wendal.nutzbook.MainModule
2017-8-19 16:35:42.885 DEBUG [localhost-startStop-1] >> app.root = E:/WorkSpace/workspace_InstallJIDAER.No2/nutzbook/src/main/webapp
2017-8-19 16:35:42.890 DEBUG [localhost-startStop-1] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx", "*async"],init=[])
2017-8-19 16:35:42.919 DEBUG [localhost-startStop-1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2017-8-19 16:35:42.919 DEBUG [localhost-startStop-1] loading ioc js config from [E:/WorkSpace/workspace_InstallJIDAER.No2/nutzbook/target/classes/ioc/dao.js]
2017-8-19 16:35:42.925 DEBUG [localhost-startStop-1] Loaded 3 bean define from path=[ioc/] --> [conf, dao, dataSource]
2017-8-19 16:35:42.930 DEBUG [localhost-startStop-1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2017-8-19 16:35:42.982 DEBUG [localhost-startStop-1] Found @IocBean : class net.wendal.nutzbook.module.UserModule
2017-8-19 16:35:42.992 INFO [localhost-startStop-1] Found 1 classes in 1 base-packages!
beans = ["userModule"]
2017-8-19 16:35:42.994 DEBUG [localhost-startStop-1] Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
2017-8-19 16:35:42.997 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
2017-8-19 16:35:43.0 INFO [localhost-startStop-1] NutIoc init begin ...
2017-8-19 16:35:43.2 INFO [localhost-startStop-1] ... NutIoc init complete
2017-8-19 16:35:43.7 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2017-8-19 16:35:43.11 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker.class)
2017-8-19 16:35:43.18 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2017-8-19 16:35:43.28 DEBUG [localhost-startStop-1] module class location 'file:/E:/WorkSpace/workspace_InstallJIDAER.No2/nutzbook/target/classes/'
2017-8-19 16:35:43.28 DEBUG [localhost-startStop-1]  > scan 'net.wendal.nutzbook'
2017-8-19 16:35:43.30 DEBUG [localhost-startStop-1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2017-8-19 16:35:43.31 DEBUG [localhost-startStop-1]    >> add 'net.wendal.nutzbook.module.UserModule'
2017-8-19 16:35:43.37 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
2017-8-19 16:35:43.51 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
2017-8-19 16:35:43.65 DEBUG [localhost-startStop-1]    '/user/login'               >> (UserModule.java:25).login            : Object     | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2017-8-19 16:35:43.70 DEBUG [localhost-startStop-1]    '/user/logout'              >> (UserModule.java:36).logout           : void       | @Ok(>>:/ ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2017-8-19 16:35:43.70 INFO [localhost-startStop-1] Found 2 module methods
2017-8-19 16:35:43.71 DEBUG [localhost-startStop-1] @Localization not define
2017-8-19 16:35:43.73 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is up in 188ms
八月 19, 2017 4:35:43 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
2017-8-19 16:35:47.981 DEBUG [http-bio-8080-exec-4] Found mapping for [POST] path=/user/login : UserModule.login(UserModule.java:25)
2017-8-19 16:35:47.983 DEBUG [http-bio-8080-exec-4] Get 'userModule'<class net.wendal.nutzbook.module.UserModule>
2017-8-19 16:35:47.983 DEBUG [http-bio-8080-exec-4] Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-8-19 16:35:47.984 DEBUG [http-bio-8080-exec-4] 	 >> Load definition name=$aop_async
2017-8-19 16:35:47.988 DEBUG [http-bio-8080-exec-4] Found IocObject($aop_async) in AsyncAopIocLoader@1493166514
2017-8-19 16:35:47.988 DEBUG [http-bio-8080-exec-4] 	 >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-8-19 16:35:47.990 DEBUG [http-bio-8080-exec-4] Save object '$aop_async' to [app] 
2017-8-19 16:35:47.995 DEBUG [http-bio-8080-exec-4] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
2017-8-19 16:35:47.995 DEBUG [http-bio-8080-exec-4] 	 >> Load definition name=userModule
2017-8-19 16:35:47.995 DEBUG [http-bio-8080-exec-4] Found IocObject(userModule) in AnnotationIocLoader(packages=[net.wendal.nutzbook])
2017-8-19 16:35:47.995 DEBUG [http-bio-8080-exec-4] 	 >> Make...'userModule'<class net.wendal.nutzbook.module.UserModule>
2017-8-19 16:35:47.996 DEBUG [http-bio-8080-exec-4] Load class net.wendal.nutzbook.module.UserModule without AOP
2017-8-19 16:35:47.996 DEBUG [http-bio-8080-exec-4] Save object 'userModule' to [app] 
2017-8-19 16:35:48.0 DEBUG [http-bio-8080-exec-4] Get 'dao'<interface org.nutz.dao.Dao>
2017-8-19 16:35:48.0 DEBUG [http-bio-8080-exec-4] 	 >> Load definition name=dao
2017-8-19 16:35:48.0 DEBUG [http-bio-8080-exec-4] Loading define for name=dao
2017-8-19 16:35:48.4 DEBUG [http-bio-8080-exec-4] Found IocObject(dao) in JsonLoader(paths=[ioc/])
2017-8-19 16:35:48.4 DEBUG [http-bio-8080-exec-4] 	 >> Make...'dao'<interface org.nutz.dao.Dao>
2017-8-19 16:35:48.14 DEBUG [http-bio-8080-exec-4] Load class org.nutz.dao.impl.NutDao without AOP
2017-8-19 16:35:48.14 DEBUG [http-bio-8080-exec-4] Save object 'dao' to [app] 
2017-8-19 16:35:48.15 DEBUG [http-bio-8080-exec-4] Get 'dataSource'<>
2017-8-19 16:35:48.15 DEBUG [http-bio-8080-exec-4] 	 >> Load definition name=dataSource
2017-8-19 16:35:48.15 DEBUG [http-bio-8080-exec-4] Loading define for name=dataSource
2017-8-19 16:35:48.23 DEBUG [http-bio-8080-exec-4] Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
2017-8-19 16:35:48.23 DEBUG [http-bio-8080-exec-4] 	 >> Make...'dataSource'<>
2017-8-19 16:35:48.43 DEBUG [http-bio-8080-exec-4] Load class com.alibaba.druid.pool.DruidDataSource without AOP
2017-8-19 16:35:48.44 DEBUG [http-bio-8080-exec-4] Save object 'dataSource' to [app] 
2017-8-19 16:35:48.45 DEBUG [http-bio-8080-exec-4] Get 'conf'<>
2017-8-19 16:35:48.45 DEBUG [http-bio-8080-exec-4] 	 >> Load definition name=conf
2017-8-19 16:35:48.45 DEBUG [http-bio-8080-exec-4] Loading define for name=conf
2017-8-19 16:35:48.46 DEBUG [http-bio-8080-exec-4] Found IocObject(conf) in JsonLoader(paths=[ioc/])
2017-8-19 16:35:48.46 DEBUG [http-bio-8080-exec-4] 	 >> Make...'conf'<>
2017-8-19 16:35:48.47 DEBUG [http-bio-8080-exec-4] Load class org.nutz.ioc.impl.PropertiesProxy without AOP
2017-8-19 16:35:48.47 DEBUG [http-bio-8080-exec-4] Save object 'conf' to [app] 
2017-8-19 16:35:48.94 DEBUG [http-bio-8080-exec-4] Found 1 resource by src( custom/ ) , regex( ^.+[.]properties$ )
17-08-19 16:35:48.147 WARN [http-bio-8080-exec-4] Error@/user/login :
org.nutz.ioc.IocException: [userModule, dao, dataSource] # FAIL to create Ioc Bean name=[dataSource]
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:149)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:75)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:60)
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:31)
	at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:56)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:135)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	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:198)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:307)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1628)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1558)
	at com.alibaba.druid.util.JdbcUtils.createDriver(JdbcUtils.java:559)
	at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:642)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.nutz.ioc.trigger.MethodEventTrigger.trigger(MethodEventTrigger.java:18)
	at org.nutz.ioc.weaver.DefaultWeaver.onCreate(DefaultWeaver.java:72)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
	... 35 more
2017-8-19 16:35:48.147 DEBUG [http-bio-8080-exec-4] Remove object 'dataSource' from [app] 
2017-8-19 16:35:48.147 DEBUG [http-bio-8080-exec-4] Remove object 'dao' from [app] 
2017-8-19 16:35:48.147 DEBUG [http-bio-8080-exec-4] Remove object 'userModule' from [app] 

2017-8-19 16:41:6.881 DEBUG [http-nio-8080-exec-6] Found mapping for [POST] path=/user/login : UserModule.login(UserModule.java:25)
2017-8-19 16:41:6.884 DEBUG [http-nio-8080-exec-6] Get 'userModule'<class net.wendal.nutzbook.module.UserModule>
2017-8-19 16:41:6.884 DEBUG [http-nio-8080-exec-6] Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-8-19 16:41:6.886 DEBUG [http-nio-8080-exec-6] 	 >> Load definition name=$aop_async
2017-8-19 16:41:6.889 DEBUG [http-nio-8080-exec-6] Found IocObject($aop_async) in AsyncAopIocLoader@361927865
2017-8-19 16:41:6.890 DEBUG [http-nio-8080-exec-6] 	 >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-8-19 16:41:6.892 DEBUG [http-nio-8080-exec-6] Save object '$aop_async' to [app] 
2017-8-19 16:41:6.899 DEBUG [http-nio-8080-exec-6] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
2017-8-19 16:41:6.900 DEBUG [http-nio-8080-exec-6] 	 >> Load definition name=userModule
2017-8-19 16:41:6.900 DEBUG [http-nio-8080-exec-6] Found IocObject(userModule) in AnnotationIocLoader(packages=[net.wendal.nutzbook])
2017-8-19 16:41:6.900 DEBUG [http-nio-8080-exec-6] 	 >> Make...'userModule'<class net.wendal.nutzbook.module.UserModule>
2017-8-19 16:41:6.901 DEBUG [http-nio-8080-exec-6] Load class net.wendal.nutzbook.module.UserModule without AOP
2017-8-19 16:41:6.901 DEBUG [http-nio-8080-exec-6] Save object 'userModule' to [app] 
2017-8-19 16:41:6.908 DEBUG [http-nio-8080-exec-6] Get 'dao'<interface org.nutz.dao.Dao>
2017-8-19 16:41:6.908 DEBUG [http-nio-8080-exec-6] 	 >> Load definition name=dao
2017-8-19 16:41:6.909 DEBUG [http-nio-8080-exec-6] Loading define for name=dao
2017-8-19 16:41:6.915 DEBUG [http-nio-8080-exec-6] Found IocObject(dao) in JsonLoader(paths=[ioc/])
2017-8-19 16:41:6.915 DEBUG [http-nio-8080-exec-6] 	 >> Make...'dao'<interface org.nutz.dao.Dao>
2017-8-19 16:41:6.936 DEBUG [http-nio-8080-exec-6] Load class org.nutz.dao.impl.NutDao without AOP
2017-8-19 16:41:6.936 DEBUG [http-nio-8080-exec-6] Save object 'dao' to [app] 
2017-8-19 16:41:6.938 DEBUG [http-nio-8080-exec-6] Get 'dataSource'<>
2017-8-19 16:41:6.938 DEBUG [http-nio-8080-exec-6] 	 >> Load definition name=dataSource
2017-8-19 16:41:6.938 DEBUG [http-nio-8080-exec-6] Loading define for name=dataSource
2017-8-19 16:41:6.949 DEBUG [http-nio-8080-exec-6] Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
2017-8-19 16:41:6.949 DEBUG [http-nio-8080-exec-6] 	 >> Make...'dataSource'<>
2017-8-19 16:41:6.975 DEBUG [http-nio-8080-exec-6] Load class com.alibaba.druid.pool.DruidDataSource without AOP
2017-8-19 16:41:6.975 DEBUG [http-nio-8080-exec-6] Save object 'dataSource' to [app] 
2017-8-19 16:41:6.976 DEBUG [http-nio-8080-exec-6] Get 'conf'<>
2017-8-19 16:41:6.977 DEBUG [http-nio-8080-exec-6] 	 >> Load definition name=conf
2017-8-19 16:41:6.977 DEBUG [http-nio-8080-exec-6] Loading define for name=conf
2017-8-19 16:41:6.977 DEBUG [http-nio-8080-exec-6] Found IocObject(conf) in JsonLoader(paths=[ioc/])
2017-8-19 16:41:6.977 DEBUG [http-nio-8080-exec-6] 	 >> Make...'conf'<>
2017-8-19 16:41:6.978 DEBUG [http-nio-8080-exec-6] Load class org.nutz.ioc.impl.PropertiesProxy without AOP
2017-8-19 16:41:6.978 DEBUG [http-nio-8080-exec-6] Save object 'conf' to [app] 
2017-8-19 16:41:6.983 DEBUG [http-nio-8080-exec-6] Found 0 resource by src( custom/ ) , regex( ^.+[.]properties$ )
2017-8-19 16:41:6.984 INFO [http-nio-8080-exec-6] Fail to value by setter
java.lang.RuntimeException: folder or file like '^.+[.]properties$' no found in custom/
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:17)
	at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
	at org.nutz.lang.Mirror.born(Mirror.java:990)
	at org.nutz.lang.Lang.makeThrow(Lang.java:149)
	at org.nutz.resource.Scans.loadResource(Scans.java:116)
	at org.nutz.ioc.impl.PropertiesProxy.getResources(PropertiesProxy.java:151)
	at org.nutz.ioc.impl.PropertiesProxy.setPaths(PropertiesProxy.java:109)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.nutz.lang.inject.InjectBySetter.inject(InjectBySetter.java:40)
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
	at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:56)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:135)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
	at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:88)
	at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:67)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:114)
17-08-19 16:41:06.987 WARN [http-nio-8080-exec-6] Error@/user/login :
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
org.nutz.ioc.IocException: [userModule, dao, dataSource, conf] # FAIL to create Ioc Bean name=[conf]
	at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:149)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:75)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:60)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:31)
	at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:88)
	at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:56)
	at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:67)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:135)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:114)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
	at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
	at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:116)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:75)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:60)
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:31)
	at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:56)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:135)
	at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	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.ioc.impl.NutIoc.get(NutIoc.java:239)
	at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	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.NutFilter.doFilter(NutFilter.java:198)
	at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
	at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
	at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
	at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
	at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
	at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:198)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
	at java.lang.Thread.run(Thread.java:745)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
2017-8-19 16:41:6.986 DEBUG [http-nio-8080-exec-6] Remove object 'conf' from [app] 
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
2017-8-19 16:41:6.987 DEBUG [http-nio-8080-exec-6] Remove object 'dataSource' from [app] 
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861)
2017-8-19 16:41:6.987 DEBUG [http-nio-8080-exec-6] Remove object 'dao' from [app] 
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
2017-8-19 16:41:6.987 DEBUG [http-nio-8080-exec-6] Remove object 'userModule' from [app] 
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Fail to set '[custom/]'[ [Ljava.lang.String;@6e700ce3 ] by setter org.nutz.ioc.impl.PropertiesProxy.'setPaths()' because [java.lang.RuntimeException: folder or file like '^.+[.]properties$' no found in custom/]: folder or file like '^.+[.]properties$' no found in custom/
	at org.nutz.lang.Lang.wrapThrow(Lang.java:164)
	at org.nutz.lang.inject.InjectBySetter.inject(InjectBySetter.java:48)
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
	at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:56)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:135)
	... 43 more
Caused by: java.lang.RuntimeException: folder or file like '^.+[.]properties$' no found in custom/
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:17)
	at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
	at org.nutz.lang.Mirror.born(Mirror.java:990)
	at org.nutz.lang.Lang.makeThrow(Lang.java:149)
	at org.nutz.resource.Scans.loadResource(Scans.java:116)
	at org.nutz.ioc.impl.PropertiesProxy.getResources(PropertiesProxy.java:151)
	at org.nutz.ioc.impl.PropertiesProxy.setPaths(PropertiesProxy.java:109)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.nutz.lang.inject.InjectBySetter.inject(InjectBySetter.java:40)
	... 46 more

是不是把文件目录也改了?

custom的路径应该是 src/main/resources/custom

对就是他错了

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