NutzCN Logo
问答 为何不见dao初始化日志?
发布于 2703天前 作者 蛋蛋的忧伤 1824 次浏览 复制 上一个帖子 下一个帖子
标签:

MainModule:

@IocBy(type=ComboIocProvider.class, args={"*js", "ioc/",
        "*anno", "com.wsd.oa",
        "*tx", // 事务拦截 aop
        "*async"}) // 异步执行aop
@Modules(scanPackage=true)
@Filters({@By(type=CheckSession.class)})
public class MainModule {
}

ioc/dao.js:

var ioc = {
    conf : {
        type : "org.nutz.ioc.impl.PropertiesProxy",
        fields : {
            paths : ["custom/"]
        }
    },
    dataSource : {
        factory : "$conf#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"}]
    }
};

custom/db.properties:


db.url=jdbc:oracle:thin:@172.21.29.61:1521/orcl db.username=wsd db.password=wsd #db.validationQuery=select 1 db.maxActive=100 db.testWhileIdle=true db.filters=mergeStat db.connectionProperties=druid.stat.slowSqlMillis=2000 #db.defaultAutoCommit=true

tomcat启动日志:

E:\program\apache-tomcat-8.0.44\bin\catalina.bat run
[2017-07-29 09:46:02,136] Artifact api:war exploded: Waiting for server connection to start artifact deployment...
Using CATALINA_BASE:   "C:\Users\Administrator.PC-20170703OBGO\.IntelliJIdea2017.2\system\tomcat\Unnamed_api"
Using CATALINA_HOME:   "E:\program\apache-tomcat-8.0.44"
Using CATALINA_TMPDIR: "E:\program\apache-tomcat-8.0.44\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_131"
Using CLASSPATH:       "E:\program\apache-tomcat-8.0.44\bin\bootstrap.jar;E:\program\apache-tomcat-8.0.44\bin\tomcat-juli.jar"
Connected to the target VM, address: '127.0.0.1:50669', transport: 'socket'
29-Jul-2017 09:46:03.399 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.0.44
29-Jul-2017 09:46:03.403 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          May 10 2017 17:21:09 UTC
29-Jul-2017 09:46:03.403 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.0.44.0
29-Jul-2017 09:46:03.403 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 7
29-Jul-2017 09:46:03.403 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            6.1
29-Jul-2017 09:46:03.403 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
29-Jul-2017 09:46:03.404 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             C:\Program Files\Java\jdk1.8.0_131\jre
29-Jul-2017 09:46:03.404 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_131-b11
29-Jul-2017 09:46:03.404 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
29-Jul-2017 09:46:03.404 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         C:\Users\Administrator.PC-20170703OBGO\.IntelliJIdea2017.2\system\tomcat\Unnamed_api
29-Jul-2017 09:46:03.404 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         E:\program\apache-tomcat-8.0.44
29-Jul-2017 09:46:03.405 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\Administrator.PC-20170703OBGO\.IntelliJIdea2017.2\system\tomcat\Unnamed_api\conf\logging.properties
29-Jul-2017 09:46:03.405 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
29-Jul-2017 09:46:03.405 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:50669,suspend=y,server=n
29-Jul-2017 09:46:03.406 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dfile.encoding=UTF-8
29-Jul-2017 09:46:03.406 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
29-Jul-2017 09:46:03.406 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
29-Jul-2017 09:46:03.406 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
29-Jul-2017 09:46:03.407 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
29-Jul-2017 09:46:03.407 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
29-Jul-2017 09:46:03.407 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
29-Jul-2017 09:46:03.407 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
29-Jul-2017 09:46:03.407 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=E:\program\apache-tomcat-8.0.44\endorsed
29-Jul-2017 09:46:03.407 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\Administrator.PC-20170703OBGO\.IntelliJIdea2017.2\system\tomcat\Unnamed_api
29-Jul-2017 09:46:03.410 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=E:\program\apache-tomcat-8.0.44
29-Jul-2017 09:46:03.410 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=E:\program\apache-tomcat-8.0.44\temp
29-Jul-2017 09:46:03.410 信息 [main] 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: C:\Program Files\Java\jdk1.8.0_131\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Broadcom\Broadcom 802.11;;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.8.0_131\bin;.
29-Jul-2017 09:46:03.595 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
29-Jul-2017 09:46:03.619 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
29-Jul-2017 09:46:03.624 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
29-Jul-2017 09:46:03.627 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
29-Jul-2017 09:46:03.628 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 718 ms
29-Jul-2017 09:46:03.682 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
29-Jul-2017 09:46:03.682 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.44
29-Jul-2017 09:46:03.698 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
29-Jul-2017 09:46:03.719 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
29-Jul-2017 09:46:03.724 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 95 ms
Connected to server
[2017-07-29 09:46:03,856] Artifact api:war exploded: Artifact is being deployed, please wait...
29-Jul-2017 09:46:05.045 信息 [RMI TCP Connection(4)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
[INFO ] 09:46:05.207 org.nutz.mvc.NutFilter._init(NutFilter.java:81) - NutFilter[nutz] starting ...
[DEBUG] 09:46:05.289 org.nutz.resource.Scans.<init>(Scans.java:509) - Locations for Scans:
[Dir[path=E:\program\apache-tomcat-8.0.44\bin], Jar[path=E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\lib\nutz-1.r.60.jar], Dir[path=E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\classes], Jar[path=E:\program\apache-tomcat-8.0.44\bin\bootstrap.jar], Jar[path=E:\program\apache-tomcat-8.0.44\bin\tomcat-juli.jar]]
[DEBUG] 09:46:05.386 org.nutz.resource.Scans.init(Scans.java:105) - Locations for Scans:
{E:\program\apache-tomcat-8.0.44\bin=Dir[path=E:\program\apache-tomcat-8.0.44\bin], E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\lib\nutz-1.r.60.jar=Jar[path=E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\lib\nutz-1.r.60.jar], E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\classes=Dir[path=E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\classes], E:\program\apache-tomcat-8.0.44\bin\bootstrap.jar=Jar[path=E:\program\apache-tomcat-8.0.44\bin\bootstrap.jar], E:\program\apache-tomcat-8.0.44\bin\tomcat-juli.jar=Jar[path=E:\program\apache-tomcat-8.0.44\bin\tomcat-juli.jar], E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\lib\log4j-1.2.17.jar=Jar[path=E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\lib\log4j-1.2.17.jar], E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\lib\javax.servlet-api-3.1.0.jar=Jar[path=E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\lib\javax.servlet-api-3.1.0.jar], E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\lib\druid-1.0.26.jar=Jar[path=E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\lib\druid-1.0.26.jar]}
[DEBUG] 09:46:05.495 org.nutz.castor.Castors.reload(Castors.java:115) - Using 95 castor for Castors
[DEBUG] 09:46:05.520 org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:59) - Loading by class org.nutz.mvc.impl.NutLoading
[INFO ] 09:46:05.526 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) - Nutz Version : 1.r.60 
[INFO ] 09:46:05.527 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) - Nutz.Mvc[nutz] is initializing ...
[DEBUG] 09:46:05.528 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) - Web Container Information:
[DEBUG] 09:46:05.531 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) -  - Default Charset : UTF-8
[DEBUG] 09:46:05.531 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) -  - Current . path  : E:\program\apache-tomcat-8.0.44\bin\.
[DEBUG] 09:46:05.532 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) -  - Java Version    : 1.8.0_131
[DEBUG] 09:46:05.532 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) -  - File separator  : \
[DEBUG] 09:46:05.533 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) -  - Timezone        : Asia/Shanghai
[DEBUG] 09:46:05.533 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) -  - OS              : Windows 7 amd64
[DEBUG] 09:46:05.535 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) -  - ServerInfo      : Apache Tomcat/8.0.44
[DEBUG] 09:46:05.536 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) -  - Servlet API     : 3.1
[DEBUG] 09:46:05.538 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) -  - ContextPath     : 
[DEBUG] 09:46:05.539 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74) -  - context.tempdir : C:\Users\Administrator.PC-20170703OBGO\.IntelliJIdea2017.2\system\tomcat\Unnamed_api\work\Catalina\localhost\ROOT
[DEBUG] 09:46:05.539 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75) -  - MainModule      : com.wsd.oa.MainModule
[DEBUG] 09:46:05.541 org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:238) - >> app.root = E:/111/api/target/api-1.0-SNAPSHOT
[DEBUG] 09:46:05.562 org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:379) - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "com.wsd.oa", "*tx", "*async"],init=[])
[DEBUG] 09:46:05.593 org.nutz.resource.Scans.scan(Scans.java:274) - Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
[DEBUG] 09:46:05.594 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:48) - loading ioc js config from [dao.js]
[DEBUG] 09:46:05.594 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:48) - loading ioc js config from [dao.js]
[DEBUG] 09:46:05.601 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:56) - Loaded 3 bean define from path=[ioc/] --> [conf, dao, dataSource]
[DEBUG] 09:46:05.601 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:56) - Loaded 3 bean define from path=[ioc/] --> [conf, dao, dataSource]
[DEBUG] 09:46:05.606 org.nutz.resource.Scans.scan(Scans.java:274) - Found 5 resource by src( com/wsd/oa/ ) , regex( ^.+[.]class$ )
[WARN ] 09:46:05.621 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:55) - NONE Annotation-Class found!! Check your ioc configure!! packages=[com.wsd.oa]
[WARN ] 09:46:05.621 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:55) - NONE Annotation-Class found!! Check your ioc configure!! packages=[com.wsd.oa]
[DEBUG] 09:46:05.624 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:40) - Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
[DEBUG] 09:46:05.624 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:40) - Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
[DEBUG] 09:46:05.627 org.nutz.ioc.aop.SimpleAopMaker.<init>(SimpleAopMaker.java:79) - Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
[DEBUG] 09:46:05.627 org.nutz.ioc.aop.SimpleAopMaker.<init>(SimpleAopMaker.java:79) - Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
[INFO ] 09:46:05.632 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:98) - NutIoc init begin ...
[INFO ] 09:46:05.632 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:98) - NutIoc init begin ...
[INFO ] 09:46:05.636 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:115) - ... NutIoc init complete
[INFO ] 09:46:05.636 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:115) - ... NutIoc init complete
[INFO ] 09:46:05.641 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:159) - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
[DEBUG] 09:46:05.644 org.nutz.mvc.impl.NutLoading.createViewMakers(NutLoading.java:369) - @Views(DefaultViewMaker.class)
[DEBUG] 09:46:05.654 org.nutz.mvc.impl.NutLoading.createChainMaker(NutLoading.java:266) - @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
[DEBUG] 09:46:05.665 org.nutz.mvc.impl.Loadings.scanModules(Loadings.java:154) - module class location 'file:/E:/111/api/target/api-1.0-SNAPSHOT/WEB-INF/classes/'
[DEBUG] 09:46:05.665 org.nutz.mvc.impl.Loadings.scanModules(Loadings.java:154) - module class location 'file:/E:/111/api/target/api-1.0-SNAPSHOT/WEB-INF/classes/'
[DEBUG] 09:46:05.666 org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:184) -  > scan 'com.wsd.oa'
[DEBUG] 09:46:05.666 org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:184) -  > scan 'com.wsd.oa'
[DEBUG] 09:46:05.670 org.nutz.resource.Scans.scan(Scans.java:274) - Found 5 resource by src( com/wsd/oa/ ) , regex( ^.+[.]class$ )
[DEBUG] 09:46:05.673 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:198) -    >> add 'com.wsd.oa.controller.UserController'
[DEBUG] 09:46:05.673 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:198) -    >> add 'com.wsd.oa.controller.UserController'
[INFO ] 09:46:05.681 org.nutz.mvc.impl.processor.ModuleProcessor.init(ModuleProcessor.java:61) - Create Module obj without Ioc --> class com.wsd.oa.controller.UserController
[INFO ] 09:46:05.684 org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:72) - Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
[INFO ] 09:46:05.701 org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:72) - Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
[DEBUG] 09:46:05.735 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) -    '/user/index'               >> (UserController.java:13).index        : Object     | @Ok(json ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
[DEBUG] 09:46:05.739 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) -    '/user/logout'              >> (UserController.java:19).logout       : Object     | @Ok(json ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
[INFO ] 09:46:05.739 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:220) - Found 2 module methods
[DEBUG] 09:46:05.743 org.nutz.mvc.impl.NutLoading.evalLocalization(NutLoading.java:334) - @Localization not define
[INFO ] 09:46:05.746 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:141) - Nutz.Mvc[nutz] is up in 205ms
[INFO ] 09:46:05.747 org.nutz.mvc.NutFilter._init(NutFilter.java:113) - exclusionsPrefix  = ^(/rs/|/druid/)
[2017-07-29 09:46:05,820] Artifact api:war exploded: Artifact is deployed successfully
[2017-07-29 09:46:05,820] Artifact api:war exploded: Deploy took 1,964 milliseconds
[DEBUG] 09:46:06.042 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:110) - Search mapping for [GET] path=/ : NOT Action match
[DEBUG] 09:46:06.063 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:110) - Search mapping for [GET] path=/ : NOT Action match
[DEBUG] 09:46:06.392 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:110) - Search mapping for [GET] path=/ : NOT Action match
29-Jul-2017 09:46:13.702 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory E:\program\apache-tomcat-8.0.44\webapps\manager
29-Jul-2017 09:46:13.776 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory E:\program\apache-tomcat-8.0.44\webapps\manager has finished in 73 ms

为啥不见nutzdao出来?

6 回复

log4j.properties 贴一下

log4j.rootLogger=debug,Console,file

log4j.logger.org.nutz.dao = debug,Console,file
log4j.logger.org.nutz.ioc = debug,Console,file
log4j.logger.freemarker = debug,Console,file
log4j.logger.org.apache.commons = debug,Console,file
log4j.logger.me.zouooh.mvc.quartz.QuartzIocLoader = debug,Console,file
log4j.logger.org.nutz.mvc.impl.Loadings = debug,Console,file

log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=[%-5p] %d{HH:mm:ss.SSS} %l - %m%n


log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
log4j.appender.file.DatePattern='-'yyyy-MM-dd-HH'.log'
log4j.appender.file.File= ${catalina.home}/logs/market/out
log4j.appender.file.Append=true
log4j.appender.file.Encoding=UTF8
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=[%-5p] %d{yyyy-MM-dd HH:mm:ss.SSS} %l - %m%n.

因为还没有代码执行的时候使用到Dao, 所以没有初始化

所以也不知道数据库链接是否成功咯...

好了报错了......

E:\program\apache-tomcat-8.0.44\bin\catalina.bat run
[2017-07-29 09:55:25,328] Artifact api:war exploded: Waiting for server connection to start artifact deployment...
Using CATALINA_BASE:   "C:\Users\Administrator.PC-20170703OBGO\.IntelliJIdea2017.2\system\tomcat\Unnamed_api"
Using CATALINA_HOME:   "E:\program\apache-tomcat-8.0.44"
Using CATALINA_TMPDIR: "E:\program\apache-tomcat-8.0.44\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_131"
Using CLASSPATH:       "E:\program\apache-tomcat-8.0.44\bin\bootstrap.jar;E:\program\apache-tomcat-8.0.44\bin\tomcat-juli.jar"
Connected to the target VM, address: '127.0.0.1:50669', transport: 'socket'
29-Jul-2017 09:55:26.627 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.0.44
29-Jul-2017 09:55:26.635 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          May 10 2017 17:21:09 UTC
29-Jul-2017 09:55:26.635 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.0.44.0
29-Jul-2017 09:55:26.635 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 7
29-Jul-2017 09:55:26.635 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            6.1
29-Jul-2017 09:55:26.635 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
29-Jul-2017 09:55:26.637 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             C:\Program Files\Java\jdk1.8.0_131\jre
29-Jul-2017 09:55:26.638 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_131-b11
29-Jul-2017 09:55:26.638 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
29-Jul-2017 09:55:26.638 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         C:\Users\Administrator.PC-20170703OBGO\.IntelliJIdea2017.2\system\tomcat\Unnamed_api
29-Jul-2017 09:55:26.638 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         E:\program\apache-tomcat-8.0.44
29-Jul-2017 09:55:26.639 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\Administrator.PC-20170703OBGO\.IntelliJIdea2017.2\system\tomcat\Unnamed_api\conf\logging.properties
29-Jul-2017 09:55:26.639 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
29-Jul-2017 09:55:26.639 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:50669,suspend=y,server=n
29-Jul-2017 09:55:26.639 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dfile.encoding=UTF-8
29-Jul-2017 09:55:26.640 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
29-Jul-2017 09:55:26.640 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
29-Jul-2017 09:55:26.640 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
29-Jul-2017 09:55:26.640 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
29-Jul-2017 09:55:26.640 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
29-Jul-2017 09:55:26.640 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
29-Jul-2017 09:55:26.640 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
29-Jul-2017 09:55:26.641 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=E:\program\apache-tomcat-8.0.44\endorsed
29-Jul-2017 09:55:26.641 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\Administrator.PC-20170703OBGO\.IntelliJIdea2017.2\system\tomcat\Unnamed_api
29-Jul-2017 09:55:26.641 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=E:\program\apache-tomcat-8.0.44
29-Jul-2017 09:55:26.641 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=E:\program\apache-tomcat-8.0.44\temp
29-Jul-2017 09:55:26.641 信息 [main] 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: C:\Program Files\Java\jdk1.8.0_131\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Broadcom\Broadcom 802.11;;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.8.0_131\bin;.
29-Jul-2017 09:55:26.853 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
29-Jul-2017 09:55:26.885 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
29-Jul-2017 09:55:26.892 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
29-Jul-2017 09:55:26.896 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
29-Jul-2017 09:55:26.901 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 794 ms
29-Jul-2017 09:55:26.966 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
29-Jul-2017 09:55:26.966 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.44
29-Jul-2017 09:55:26.984 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
29-Jul-2017 09:55:27.002 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
29-Jul-2017 09:55:27.008 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 106 ms
Connected to server
[2017-07-29 09:55:27,508] Artifact api:war exploded: Artifact is being deployed, please wait...
29-Jul-2017 09:55:28.717 信息 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
2017-07-29 09:55:28,859 org.nutz.mvc.NutFilter._init(NutFilter.java:81) INFO  - NutFilter[nutz] starting ...
2017-07-29 09:55:28,938 org.nutz.resource.Scans.<init>(Scans.java:509) DEBUG - Locations for Scans:
[Dir[path=E:\program\apache-tomcat-8.0.44\bin], Jar[path=E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\lib\nutz-1.r.60.jar], Dir[path=E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\classes], Jar[path=E:\program\apache-tomcat-8.0.44\bin\bootstrap.jar], Jar[path=E:\program\apache-tomcat-8.0.44\bin\tomcat-juli.jar]]
2017-07-29 09:55:29,074 org.nutz.resource.Scans.init(Scans.java:105) DEBUG - Locations for Scans:
{E:\program\apache-tomcat-8.0.44\bin=Dir[path=E:\program\apache-tomcat-8.0.44\bin], E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\lib\nutz-1.r.60.jar=Jar[path=E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\lib\nutz-1.r.60.jar], E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\classes=Dir[path=E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\classes], E:\program\apache-tomcat-8.0.44\bin\bootstrap.jar=Jar[path=E:\program\apache-tomcat-8.0.44\bin\bootstrap.jar], E:\program\apache-tomcat-8.0.44\bin\tomcat-juli.jar=Jar[path=E:\program\apache-tomcat-8.0.44\bin\tomcat-juli.jar], E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\lib\log4j-1.2.17.jar=Jar[path=E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\lib\log4j-1.2.17.jar], E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\lib\javax.servlet-api-3.1.0.jar=Jar[path=E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\lib\javax.servlet-api-3.1.0.jar], E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\lib\druid-1.0.26.jar=Jar[path=E:\111\api\target\api-1.0-SNAPSHOT\WEB-INF\lib\druid-1.0.26.jar]}
2017-07-29 09:55:29,157 org.nutz.castor.Castors.reload(Castors.java:115) DEBUG - Using 95 castor for Castors
2017-07-29 09:55:29,182 org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:59) DEBUG - Loading by class org.nutz.mvc.impl.NutLoading
2017-07-29 09:55:29,185 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) INFO  - Nutz Version : 1.r.60 
2017-07-29 09:55:29,186 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) INFO  - Nutz.Mvc[nutz] is initializing ...
2017-07-29 09:55:29,186 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) DEBUG - Web Container Information:
2017-07-29 09:55:29,188 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) DEBUG -  - Default Charset : UTF-8
2017-07-29 09:55:29,188 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) DEBUG -  - Current . path  : E:\program\apache-tomcat-8.0.44\bin\.
2017-07-29 09:55:29,189 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) DEBUG -  - Java Version    : 1.8.0_131
2017-07-29 09:55:29,189 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) DEBUG -  - File separator  : \
2017-07-29 09:55:29,190 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) DEBUG -  - Timezone        : Asia/Shanghai
2017-07-29 09:55:29,190 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) DEBUG -  - OS              : Windows 7 amd64
2017-07-29 09:55:29,191 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) DEBUG -  - ServerInfo      : Apache Tomcat/8.0.44
2017-07-29 09:55:29,191 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) DEBUG -  - Servlet API     : 3.1
2017-07-29 09:55:29,193 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) DEBUG -  - ContextPath     : 
2017-07-29 09:55:29,194 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74) DEBUG -  - context.tempdir : C:\Users\Administrator.PC-20170703OBGO\.IntelliJIdea2017.2\system\tomcat\Unnamed_api\work\Catalina\localhost\ROOT
2017-07-29 09:55:29,194 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75) DEBUG -  - MainModule      : com.wsd.oa.MainModule
2017-07-29 09:55:29,197 org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:238) DEBUG - >> app.root = E:/111/api/target/api-1.0-SNAPSHOT
2017-07-29 09:55:29,201 org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:379) DEBUG - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "com.wsd.oa", "*tx", "*async"],init=[])
2017-07-29 09:55:29,231 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2017-07-29 09:55:29,232 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:48) DEBUG - loading ioc js config from [dao.js]
2017-07-29 09:55:29,237 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:56) DEBUG - Loaded 3 bean define from path=[ioc/] --> [conf, dao, dataSource]
2017-07-29 09:55:29,242 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 6 resource by src( com/wsd/oa/ ) , regex( ^.+[.]class$ )
2017-07-29 09:55:29,255 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:55) WARN  - NONE Annotation-Class found!! Check your ioc configure!! packages=[com.wsd.oa]
2017-07-29 09:55:29,259 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:40) DEBUG - Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
2017-07-29 09:55:29,262 org.nutz.ioc.aop.SimpleAopMaker.<init>(SimpleAopMaker.java:79) DEBUG - Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
2017-07-29 09:55:29,266 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:98) INFO  - NutIoc init begin ...
2017-07-29 09:55:29,271 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:115) INFO  - ... NutIoc init complete
2017-07-29 09:55:29,276 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:159) INFO  - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2017-07-29 09:55:29,279 org.nutz.mvc.impl.NutLoading.createViewMakers(NutLoading.java:369) DEBUG - @Views(DefaultViewMaker.class)
2017-07-29 09:55:29,296 org.nutz.mvc.impl.NutLoading.createChainMaker(NutLoading.java:266) DEBUG - @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2017-07-29 09:55:29,308 org.nutz.mvc.impl.Loadings.scanModules(Loadings.java:154) DEBUG - module class location 'file:/E:/111/api/target/api-1.0-SNAPSHOT/WEB-INF/classes/'
2017-07-29 09:55:29,309 org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:184) DEBUG -  > scan 'com.wsd.oa'
2017-07-29 09:55:29,313 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 6 resource by src( com/wsd/oa/ ) , regex( ^.+[.]class$ )
2017-07-29 09:55:29,328 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:198) DEBUG -    >> add 'com.wsd.oa.controller.UserController'
2017-07-29 09:55:29,341 org.nutz.mvc.impl.processor.ModuleProcessor.init(ModuleProcessor.java:61) INFO  - Create Module obj without Ioc --> class com.wsd.oa.controller.UserController
2017-07-29 09:55:29,344 org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:72) INFO  - Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
2017-07-29 09:55:29,374 org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:72) INFO  - Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
2017-07-29 09:55:29,397 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/user/index'               >> (UserController.java:13).index        : Object     | @Ok(json ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-07-29 09:55:29,401 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/user/logout'              >> (UserController.java:19).logout       : Object     | @Ok(json ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-07-29 09:55:29,402 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:220) INFO  - Found 2 module methods
2017-07-29 09:55:29,403 org.nutz.mvc.impl.NutLoading.evalLocalization(NutLoading.java:334) DEBUG - @Localization not define
2017-07-29 09:55:29,404 org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:274) INFO  - Setup application...
2017-07-29 09:55:29,406 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<interface org.nutz.dao.Dao>
2017-07-29 09:55:29,407 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-07-29 09:55:29,408 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=$aop_async
2017-07-29 09:55:29,418 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject($aop_async) in AsyncAopIocLoader@1167101934
2017-07-29 09:55:29,419 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-07-29 09:55:29,421 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object '$aop_async' to [app] 
2017-07-29 09:55:29,430 org.nutz.ioc.aop.SimpleAopMaker.<init>(SimpleAopMaker.java:79) DEBUG - Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
2017-07-29 09:55:29,431 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=dao
2017-07-29 09:55:29,432 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=dao
2017-07-29 09:55:29,439 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(dao) in JsonLoader(paths=[ioc/])
2017-07-29 09:55:29,440 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'dao'<interface org.nutz.dao.Dao>
2017-07-29 09:55:29,458 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class org.nutz.dao.impl.NutDao without AOP
2017-07-29 09:55:29,459 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'dao' to [app] 
2017-07-29 09:55:29,461 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dataSource'<>
2017-07-29 09:55:29,461 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=dataSource
2017-07-29 09:55:29,461 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=dataSource
2017-07-29 09:55:29,647 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
2017-07-29 09:55:29,649 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'dataSource'<>
2017-07-29 09:55:29,686 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.alibaba.druid.pool.DruidDataSource without AOP
2017-07-29 09:55:29,686 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'dataSource' to [app] 
2017-07-29 09:55:29,688 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'conf'<>
2017-07-29 09:55:29,688 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=conf
2017-07-29 09:55:29,688 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=conf
2017-07-29 09:55:29,689 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(conf) in JsonLoader(paths=[ioc/])
2017-07-29 09:55:29,690 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'conf'<>
2017-07-29 09:55:29,691 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class org.nutz.ioc.impl.PropertiesProxy without AOP
2017-07-29 09:55:29,692 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'conf' to [app] 
2017-07-29 09:55:29,696 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 1 resource by src( custom/ ) , regex( ^.+[.]properties$ )
2017-07-29 09:55:29,766 com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:706) ERROR - {dataSource-1} init error
java.sql.SQLException: oracle.jdbc.OracleDriver
	at com.alibaba.druid.util.JdbcUtils.createDriver(JdbcUtils.java:566)
	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)
	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.impl.NutIoc.get(NutIoc.java:239)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:146)
	at com.wsd.oa.MainSetup.init(MainSetup.java:18)
	at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:277)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:121)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4700)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5340)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
	at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1696)
	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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:484)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:433)
	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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)
	at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)
	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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:346)
	at sun.rmi.transport.Transport$1.run(Transport.java:200)
	at sun.rmi.transport.Transport$1.run(Transport.java:197)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
	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:748)
Caused by: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at com.alibaba.druid.util.JdbcUtils.createDriver(JdbcUtils.java:564)
	... 68 more
2017-07-29 09:55:29,771 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:84) DEBUG - Remove object 'dataSource' from [app] 
2017-07-29 09:55:29,772 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:84) DEBUG - Remove object 'dao' from [app] 
2017-07-29 09:55:29,772 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:125) ERROR - Error happend during start serivce!
org.nutz.ioc.IocException: [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.impl.NutIoc.get(NutIoc.java:239)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:146)
	at com.wsd.oa.MainSetup.init(MainSetup.java:18)
	at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:277)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:121)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4700)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5340)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
	at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1696)
	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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:484)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:433)
	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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
29-Jul-2017 09:55:29.789 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file
29-Jul-2017 09:55:29.790 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
29-Jul-2017 09:55:29.795 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)
	at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)
	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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:346)
	at sun.rmi.transport.Transport$1.run(Transport.java:200)
	at sun.rmi.transport.Transport$1.run(Transport.java:197)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
	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:748)
Caused by: java.lang.RuntimeException: java.sql.SQLException: oracle.jdbc.OracleDriver
	at org.nutz.lang.Lang.wrapThrow(Lang.java:181)
	at org.nutz.lang.Lang.wrapThrow(Lang.java:180)
	at org.nutz.ioc.trigger.MethodEventTrigger.trigger(MethodEventTrigger.java:21)
	at org.nutz.ioc.weaver.DefaultWeaver.onCreate(DefaultWeaver.java:72)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
	... 60 more
Caused by: java.sql.SQLException: oracle.jdbc.OracleDriver
	at com.alibaba.druid.util.JdbcUtils.createDriver(JdbcUtils.java:566)
	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)
	... 62 more
Caused by: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at com.alibaba.druid.util.JdbcUtils.createDriver(JdbcUtils.java:564)
	... 68 more
2017-07-29 09:55:29,780 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:127) ERROR - try to depose ioc
2017-07-29 09:55:29,784 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:255) INFO  - org.nutz.ioc.impl.NutIoc@884778454 is closing. startup date [17-07-29 09:55:29.267]
2017-07-29 09:55:29,785 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:108) DEBUG - Depose object 'conf' ...
2017-07-29 09:55:29,787 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:108) DEBUG - Depose object '$aop_async' ...
2017-07-29 09:55:29,787 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:262) INFO  - org.nutz.ioc.impl.NutIoc@884778454 is deposed. startup date [17-07-29 09:55:29.267]
[2017-07-29 09:55:29,824] Artifact api:war exploded: Error during artifact deployment. See server log for details.
29-Jul-2017 09:55:36.987 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory E:\program\apache-tomcat-8.0.44\webapps\manager
29-Jul-2017 09:55:37.061 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory E:\program\apache-tomcat-8.0.44\webapps\manager has finished in 73 ms

我丢了一个ojdbc6的包,没用maven,难道不行吗?

果然是,我将ojdbc打包到maven本地仓库猴就正常了,感谢大叔

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