NutzCN Logo
问答 nutz jedis :Fail to born xx.xx.xxx.JedisIocLoader
发布于 1713天前 作者 qq_2a0dc1da 1607 次浏览 复制 上一个帖子 下一个帖子
标签:

pom

<dependency>
            <groupId>redis.clients</groupId>
            <artifactId>jedis</artifactId>
            <version>2.8.1</version>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutz-integration-jedis</artifactId>
            <version>1.r.60.r2</version>
        </dependency>

MainModule

@IocBy(type = ComboIocProvider.class, args = {"*js", "ioc/",
        "*anno", "cn.koer.petskeeper",
        "*tx", // 事务拦截 aop
        "*quartz",// 异步执行aop
        "*jedis",
        ""})

MainSetup

        JedisAgent jedisAgent = ioc.get(JedisAgent.class);
        try (Jedis jedis = jedisAgent.getResource()) { // Java7的语法
            String re = jedis.set("_nutzbook_test_key", "http://nutzbook.wendal.net");
            log.debug("redis say : " + re);
            re = jedis.get("_nutzbook_test_key");
            log.debug("redis say : " + re);
        } finally {}

Log

"G:\Tomcat 8.5.51\bin\catalina.bat" run
[2020-03-07 10:41:24,029] Artifact petskeeper:war exploded: Waiting for server connection to start artifact deployment...
Using CATALINA_BASE:   "C:\Users\Administrator\.IntelliJIdea2019.3\system\tomcat\Unnamed_petskeeper_7"
Using CATALINA_HOME:   "G:\Tomcat 8.5.51"
Using CATALINA_TMPDIR: "G:\Tomcat 8.5.51\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_221"
Using CLASSPATH:       "G:\Tomcat 8.5.51\bin\bootstrap.jar;G:\Tomcat 8.5.51\bin\tomcat-juli.jar"
07-Mar-2020 22:41:25.511 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.服务器版本:     Apache Tomcat/8.5.51
07-Mar-2020 22:41:25.513 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器构建:            Feb 5 2020 22:26:25 UTC
07-Mar-2020 22:41:25.513 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器版本号(:8.5.51.0
07-Mar-2020 22:41:25.513 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 10
07-Mar-2020 22:41:25.513 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.版本:               10.0
07-Mar-2020 22:41:25.513 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 架构:                  amd64
07-Mar-2020 22:41:25.514 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 环境变量:         C:\Program Files\Java\jdk1.8.0_221\jre
07-Mar-2020 22:41:25.514 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM 版本:              1.8.0_221-b11
07-Mar-2020 22:41:25.514 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.供应商:            Oracle Corporation
07-Mar-2020 22:41:25.514 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         C:\Users\Administrator\.IntelliJIdea2019.3\system\tomcat\Unnamed_petskeeper_7
07-Mar-2020 22:41:25.514 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         G:\Tomcat 8.5.51
07-Mar-2020 22:41:25.514 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\Administrator\.IntelliJIdea2019.3\system\tomcat\Unnamed_petskeeper_7\conf\logging.properties
07-Mar-2020 22:41:25.514 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
07-Mar-2020 22:41:25.515 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
07-Mar-2020 22:41:25.515 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
07-Mar-2020 22:41:25.515 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
07-Mar-2020 22:41:25.515 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.password.file=C:\Users\Administrator\.IntelliJIdea2019.3\system\tomcat\Unnamed_petskeeper_7\jmxremote.password
07-Mar-2020 22:41:25.515 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.access.file=C:\Users\Administrator\.IntelliJIdea2019.3\system\tomcat\Unnamed_petskeeper_7\jmxremote.access
07-Mar-2020 22:41:25.515 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
07-Mar-2020 22:41:25.515 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
07-Mar-2020 22:41:25.515 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
07-Mar-2020 22:41:25.515 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
07-Mar-2020 22:41:25.515 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\Administrator\.IntelliJIdea2019.3\system\tomcat\Unnamed_petskeeper_7
07-Mar-2020 22:41:25.515 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=G:\Tomcat 8.5.51
07-Mar-2020 22:41:25.515 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=G:\Tomcat 8.5.51\temp
07-Mar-2020 22:41:25.515 信息 [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_221\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;G:\python3.7\Scripts\;G:\python3.7\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\MySQL\MySQL Server 8.0\bin;G:\Git\cmd;C:\Program Files\Java\jdk1.8.0_221\bin;G:\redis5.0.7;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;;.]
07-Mar-2020 22:41:25.635 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["http-nio-8080"]
07-Mar-2020 22:41:25.648 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
07-Mar-2020 22:41:25.658 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 472 ms
07-Mar-2020 22:41:25.683 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
07-Mar-2020 22:41:25.683 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.51
07-Mar-2020 22:41:25.692 信息 [main] org.apache.coyote.AbstractProtocol.start 开始协议处理句柄["http-nio-8080"]
07-Mar-2020 22:41:25.700 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 42 ms
Connected to server
[2020-03-07 10:41:26,117] Artifact petskeeper:war exploded: Artifact is being deployed, please wait...
07-Mar-2020 22:41:28.322 信息 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2020-03-07 22:41:29,547 org.nutz.mvc.NutFilter._init(NutFilter.java:81) INFO  - NutFilter[nutz] starting ...
2020-03-07 22:41:29,620 org.nutz.resource.Scans.<init>(Scans.java:509) DEBUG - Locations for Scans:
[Dir[path=G:\Tomcat 8.5.51\bin], Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\nutz-1.r.60.jar], Dir[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\classes], Jar[path=G:\Tomcat 8.5.51\bin\bootstrap.jar], Jar[path=G:\Tomcat 8.5.51\bin\tomcat-juli.jar]]
2020-03-07 22:41:29,780 org.nutz.resource.Scans.init(Scans.java:105) DEBUG - Locations for Scans:
{G:\Tomcat 8.5.51\bin=Dir[path=G:\Tomcat 8.5.51\bin], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\nutz-1.r.60.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\nutz-1.r.60.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\classes=Dir[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\classes], G:\Tomcat 8.5.51\bin\bootstrap.jar=Jar[path=G:\Tomcat 8.5.51\bin\bootstrap.jar], G:\Tomcat 8.5.51\bin\tomcat-juli.jar=Jar[path=G:\Tomcat 8.5.51\bin\tomcat-juli.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\protobuf-java-2.6.0.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\protobuf-java-2.6.0.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\mchange-commons-java-0.2.15.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\mchange-commons-java-0.2.15.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\activation-1.1.1.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\activation-1.1.1.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\jcl-over-slf4j-1.7.25.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\jcl-over-slf4j-1.7.25.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\commons-logging-1.2.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\commons-logging-1.2.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\guice-multibindings-3.0.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\guice-multibindings-3.0.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\aopalliance-1.0.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\aopalliance-1.0.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\mail-1.4.7.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\mail-1.4.7.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\quartz-2.3.1.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\quartz-2.3.1.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\druid-1.0.26.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\druid-1.0.26.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\nutz-integration-quartz-1.r.68.v20190731.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\nutz-integration-quartz-1.r.68.v20190731.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\simplecaptcha-1.2.2.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\simplecaptcha-1.2.2.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\shiro-all-1.3.2.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\shiro-all-1.3.2.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\commons-collections-3.2.2.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\commons-collections-3.2.2.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\nutz-integration-shiro-1.r.68.v20190731.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\nutz-integration-shiro-1.r.68.v20190731.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\nutz-integration-jedis-1.r.60.r2.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\nutz-integration-jedis-1.r.60.r2.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\slf4j-api-1.7.26.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\slf4j-api-1.7.26.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\commons-beanutils-1.9.3.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\commons-beanutils-1.9.3.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\guice-3.0.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\guice-3.0.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\jedis-2.8.1.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\jedis-2.8.1.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\fastjson-1.2.62.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\fastjson-1.2.62.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\javax.inject-1.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\javax.inject-1.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\c3p0-0.9.5.3.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\c3p0-0.9.5.3.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\shiro-guice-1.3.2.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\shiro-guice-1.3.2.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\shiro-core-1.3.2.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\shiro-core-1.3.2.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\commons-pool2-2.4.2.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\commons-pool2-2.4.2.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\log4j-1.2.17.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\log4j-1.2.17.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\mysql-connector-java-8.0.11.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\mysql-connector-java-8.0.11.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\HikariCP-java7-2.4.13.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\HikariCP-java7-2.4.13.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\jstl-1.2.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\jstl-1.2.jar], C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\commons-email-1.3.3.jar=Jar[path=C:\Users\Administrator\IdeaProjects\petskeeper\target\petskeeper\WEB-INF\lib\commons-email-1.3.3.jar]}
2020-03-07 22:41:29,946 org.nutz.castor.Castors.reload(Castors.java:115) DEBUG - Using 95 castor for Castors
2020-03-07 22:41:29,974 org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:59) DEBUG - Loading by class org.nutz.mvc.impl.NutLoading
2020-03-07 22:41:29,977 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) INFO  - Nutz Version : 1.r.60 
2020-03-07 22:41:29,978 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) INFO  - Nutz.Mvc[nutz] is initializing ...
2020-03-07 22:41:29,978 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) DEBUG - Web Container Information:
2020-03-07 22:41:29,979 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) DEBUG -  - Default Charset : GBK
2020-03-07 22:41:29,980 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) DEBUG -  - Current . path  : G:\Tomcat 8.5.51\bin\.
2020-03-07 22:41:29,980 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) DEBUG -  - Java Version    : 1.8.0_221
2020-03-07 22:41:29,980 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) DEBUG -  - File separator  : \
2020-03-07 22:41:29,981 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) DEBUG -  - Timezone        : Asia/Shanghai
2020-03-07 22:41:29,981 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) DEBUG -  - OS              : Windows 10 amd64
2020-03-07 22:41:29,981 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) DEBUG -  - ServerInfo      : Apache Tomcat/8.5.51
2020-03-07 22:41:29,981 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) DEBUG -  - Servlet API     : 3.1
2020-03-07 22:41:29,982 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) DEBUG -  - ContextPath     : /petskeeper
2020-03-07 22:41:29,983 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74) DEBUG -  - context.tempdir : C:\Users\Administrator\.IntelliJIdea2019.3\system\tomcat\Unnamed_petskeeper_7\work\Catalina\localhost\petskeeper
2020-03-07 22:41:29,983 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75) DEBUG -  - MainModule      : cn.koer.petskeeper.MainModule
2020-03-07 22:41:29,987 org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:238) DEBUG - >> app.root = C:/Users/Administrator/IdeaProjects/petskeeper/target/petskeeper
2020-03-07 22:41:29,992 org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:379) DEBUG - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "cn.koer.petskeeper", "*tx", "*quartz", "*jedis", ""],init=[])
2020-03-07 22:41:30,038 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 2 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2020-03-07 22:41:30,039 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:48) DEBUG - loading ioc js config from [dao.js]
2020-03-07 22:41:30,044 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:48) DEBUG - loading ioc js config from [mail.js]
2020-03-07 22:41:30,045 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:56) DEBUG - Loaded 5 bean define from path=[ioc/] --> [conf, dao, emailAuthenticator, dataSource, htmlEmail]
2020-03-07 22:41:30,070 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 38 resource by src( cn/koer/petskeeper/ ) , regex( ^.+[.]class$ )
2020-03-07 22:41:30,138 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class cn.koer.petskeeper.module.ArticleModule
2020-03-07 22:41:30,149 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:230) WARN  - class(cn.koer.petskeeper.module.BaseModule) don't has @IocBean, but field(dao) has @Inject! Miss @IocBean ??
2020-03-07 22:41:30,150 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class cn.koer.petskeeper.module.CaptchaModule
2020-03-07 22:41:30,153 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class cn.koer.petskeeper.module.CollectModule
2020-03-07 22:41:30,154 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class cn.koer.petskeeper.module.CommentModule
2020-03-07 22:41:30,155 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class cn.koer.petskeeper.module.FollowModule
2020-03-07 22:41:30,156 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class cn.koer.petskeeper.module.PetModule
2020-03-07 22:41:30,157 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class cn.koer.petskeeper.module.PraiseModule
2020-03-07 22:41:30,158 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class cn.koer.petskeeper.module.UserModule
2020-03-07 22:41:30,163 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class cn.koer.petskeeper.module.UserProfileModule
2020-03-07 22:41:30,177 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class cn.koer.petskeeper.quartz.job.CleanNonActiveUserJob
2020-03-07 22:41:30,183 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class cn.koer.petskeeper.service.EmailServiceImpl
2020-03-07 22:41:30,186 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class cn.koer.petskeeper.service.UserService
2020-03-07 22:41:30,192 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:50) INFO  - Found 12 classes in 1 base-packages!
beans = ["commentModule", "cleanNonActiveUserJob", "petModule", "userProfileModule", "collectModule", "captchaModule", "followModule", "praiseModule", "userModule", "EmailService", "articleModule", "userService"]
2020-03-07 22:41:30,196 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]
2020-03-07 22:41:30,202 org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:118) DEBUG - found org.nutz.integration.quartz.QuartzIocLoader -- org.nutz.integration.quartz.QuartzIocLoader
2020-03-07 22:41:30,203 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:56) DEBUG - Loaded 0 bean define from path=[] --> []
2020-03-07 22:41:30,207 org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:118) DEBUG - found org.nutz.integration.jedis.JedisIocLoader -- org.nutz.integration.jedis.JedisIocLoader
2020-03-07 22:41:30,211 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:125) ERROR - Error happend during start serivce!
org.nutz.lang.born.BorningException: Fail to born 'org.nutz.integration.jedis.JedisIocLoader'
 by args: [
  @()] because: No suitable Constructor or Factory Method!!
	at org.nutz.lang.Mirror.born(Mirror.java:988)
	at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:126)
	at org.nutz.ioc.loader.combo.ComboIocLoader.<init>(ComboIocLoader.java:92)
	at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:20)
	at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:384)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:103)
	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:283)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:264)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4546)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5191)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
	at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1720)
	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:287)
	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:479)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:428)
	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:287)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)
	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 java.security.AccessController.doPrivileged(Native Method)
	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408)
	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:357)
	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:573)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
07-Mar-2020 22:41:30.223 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal 一个或多个筛选器启动失败。完整的详细信息将在相应的容器日志文件中找到
07-Mar-2020 22:41:30.224 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/petskeeper] startup failed due to previous errors
[2020-03-07 10:41:30,254] Artifact petskeeper:war exploded: Error during artifact deployment. See server log for details.
07-Mar-2020 22:41:35.694 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [G:\Tomcat 8.5.51\webapps\manager]
07-Mar-2020 22:41:35.734 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [G:\Tomcat 8.5.51\webapps\manager] has finished in [39] ms

17 回复

nutz版本太老了吧

往高版本靠一靠

我是新手...照着进阶手册来的,就没改..
我去改下

@wendal 换成1.67了,但是好像和版本没什么关系额

"G:\Tomcat 8.5.51\bin\catalina.bat" run
[2020-03-07 11:57:34,324] Artifact petskeeper:war exploded: Waiting for server connection to start artifact deployment...
Using CATALINA_BASE:   "C:\Users\Administrator\.IntelliJIdea2019.3\system\tomcat\Unnamed_petskeeper_7"
Using CATALINA_HOME:   "G:\Tomcat 8.5.51"
Using CATALINA_TMPDIR: "G:\Tomcat 8.5.51\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_221"
Using CLASSPATH:       "G:\Tomcat 8.5.51\bin\bootstrap.jar;G:\Tomcat 8.5.51\bin\tomcat-juli.jar"
07-Mar-2020 23:57:35.947 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.服务器版本:     Apache Tomcat/8.5.51
07-Mar-2020 23:57:35.950 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器构建:            Feb 5 2020 22:26:25 UTC
07-Mar-2020 23:57:35.950 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器版本号(:8.5.51.0
07-Mar-2020 23:57:35.950 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 10
07-Mar-2020 23:57:35.950 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.版本:               10.0
07-Mar-2020 23:57:35.950 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 架构:                  amd64
07-Mar-2020 23:57:35.950 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 环境变量:         C:\Program Files\Java\jdk1.8.0_221\jre
07-Mar-2020 23:57:35.950 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM 版本:              1.8.0_221-b11
07-Mar-2020 23:57:35.950 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.供应商:            Oracle Corporation
07-Mar-2020 23:57:35.950 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         C:\Users\Administrator\.IntelliJIdea2019.3\system\tomcat\Unnamed_petskeeper_7
07-Mar-2020 23:57:35.950 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         G:\Tomcat 8.5.51
07-Mar-2020 23:57:35.951 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\Administrator\.IntelliJIdea2019.3\system\tomcat\Unnamed_petskeeper_7\conf\logging.properties
07-Mar-2020 23:57:35.951 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
07-Mar-2020 23:57:35.951 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
07-Mar-2020 23:57:35.951 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
07-Mar-2020 23:57:35.951 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
07-Mar-2020 23:57:35.951 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.password.file=C:\Users\Administrator\.IntelliJIdea2019.3\system\tomcat\Unnamed_petskeeper_7\jmxremote.password
07-Mar-2020 23:57:35.951 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.access.file=C:\Users\Administrator\.IntelliJIdea2019.3\system\tomcat\Unnamed_petskeeper_7\jmxremote.access
07-Mar-2020 23:57:35.951 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
07-Mar-2020 23:57:35.951 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
07-Mar-2020 23:57:35.952 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
07-Mar-2020 23:57:35.952 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
07-Mar-2020 23:57:35.952 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\Administrator\.IntelliJIdea2019.3\system\tomcat\Unnamed_petskeeper_7
07-Mar-2020 23:57:35.952 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=G:\Tomcat 8.5.51
07-Mar-2020 23:57:35.952 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=G:\Tomcat 8.5.51\temp
07-Mar-2020 23:57:35.952 信息 [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_221\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;G:\python3.7\Scripts\;G:\python3.7\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\MySQL\MySQL Server 8.0\bin;G:\Git\cmd;C:\Program Files\Java\jdk1.8.0_221\bin;G:\redis5.0.7;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;;.]
07-Mar-2020 23:57:36.066 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["http-nio-8080"]
07-Mar-2020 23:57:36.082 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
07-Mar-2020 23:57:36.094 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 495 ms
07-Mar-2020 23:57:36.121 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
07-Mar-2020 23:57:36.122 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.51
07-Mar-2020 23:57:36.129 信息 [main] org.apache.coyote.AbstractProtocol.start 开始协议处理句柄["http-nio-8080"]
07-Mar-2020 23:57:36.138 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 43 ms
Connected to server
[2020-03-07 11:57:36,407] Artifact petskeeper:war exploded: Artifact is being deployed, please wait...
07-Mar-2020 23:57:38.344 信息 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。
2020-03-07 23:57:38,747 org.nutz.mvc.NutFilter._init(NutFilter.java:85) INFO  - NutFilter[nutz] starting ...
2020-03-07 23:57:38,773 org.nutz.resource.Scans.printLocations(Scans.java:527) DEBUG - Locations count=4 time use 7ms
2020-03-07 23:57:38,799 org.nutz.resource.Scans.printLocations(Scans.java:527) DEBUG - Locations count=25 time use 26ms
2020-03-07 23:57:38,838 org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:62) DEBUG - Loading by class org.nutz.mvc.impl.NutLoading
2020-03-07 23:57:38,844 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) INFO  - Nutz Version : 1.r.67-20190109 
2020-03-07 23:57:38,845 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) INFO  - Nutz.Mvc[nutz] is initializing ...
2020-03-07 23:57:38,845 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) DEBUG - Web Container Information:
2020-03-07 23:57:38,848 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) DEBUG -  - Default Charset : GBK
2020-03-07 23:57:38,848 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) DEBUG -  - Current . path  : G:\Tomcat 8.5.51\bin\.
2020-03-07 23:57:38,849 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) DEBUG -  - Java Version    : 1.8.0_221
2020-03-07 23:57:38,849 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) DEBUG -  - File separator  : \
2020-03-07 23:57:38,849 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) DEBUG -  - Timezone        : Asia/Shanghai
2020-03-07 23:57:38,850 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) DEBUG -  - OS              : Windows 10 amd64
2020-03-07 23:57:38,850 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) DEBUG -  - ServerInfo      : Apache Tomcat/8.5.51
2020-03-07 23:57:38,850 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) DEBUG -  - Servlet API     : 3.1
2020-03-07 23:57:38,851 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) DEBUG -  - ContextPath     : /petskeeper
2020-03-07 23:57:38,852 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74) DEBUG -  - context.tempdir : C:\Users\Administrator\.IntelliJIdea2019.3\system\tomcat\Unnamed_petskeeper_7\work\Catalina\localhost\petskeeper
2020-03-07 23:57:38,853 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75) DEBUG -  - MainModule      : cn.koer.petskeeper.MainModule
2020-03-07 23:57:38,856 org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:239) DEBUG - >> app.root = C:/Users/Administrator/IdeaProjects/petskeeper/target/petskeeper
2020-03-07 23:57:39,000 org.nutz.castor.Castors.reload(Castors.java:116) DEBUG - Using 107 castor for Castors
2020-03-07 23:57:39,002 org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:379) DEBUG - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "cn.koer.petskeeper", "*tx", "*quartz", "*jedis", ""],init=[])
2020-03-07 23:57:39,075 org.nutz.resource.Scans.scan(Scans.java:280) DEBUG - Found 2 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2020-03-07 23:57:39,075 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) DEBUG - loading [dao.js]
2020-03-07 23:57:39,080 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) DEBUG - loading [mail.js]
2020-03-07 23:57:39,082 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) DEBUG - Loaded 5 bean define from path=[ioc/] --> [conf, dao, emailAuthenticator, dataSource, htmlEmail]
2020-03-07 23:57:39,098 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:51) INFO  -  > scan 'cn.koer.petskeeper'
2020-03-07 23:57:39,123 org.nutz.resource.Scans.scan(Scans.java:280) DEBUG - Found 38 resource by src( cn/koer/petskeeper/ ) , regex( ^.+[.]class$ )
2020-03-07 23:57:39,253 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) INFO  -    > add 'articleModule                           ' - cn.koer.petskeeper.module.ArticleModule
2020-03-07 23:57:39,268 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) INFO  -    > add 'captchaModule                           ' - cn.koer.petskeeper.module.CaptchaModule
2020-03-07 23:57:39,273 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) INFO  -    > add 'collectModule                           ' - cn.koer.petskeeper.module.CollectModule
2020-03-07 23:57:39,275 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) INFO  -    > add 'commentModule                           ' - cn.koer.petskeeper.module.CommentModule
2020-03-07 23:57:39,278 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) INFO  -    > add 'followModule                            ' - cn.koer.petskeeper.module.FollowModule
2020-03-07 23:57:39,280 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) INFO  -    > add 'petModule                               ' - cn.koer.petskeeper.module.PetModule
2020-03-07 23:57:39,283 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) INFO  -    > add 'praiseModule                            ' - cn.koer.petskeeper.module.PraiseModule
2020-03-07 23:57:39,284 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) INFO  -    > add 'userModule                              ' - cn.koer.petskeeper.module.UserModule
2020-03-07 23:57:39,292 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) INFO  -    > add 'userProfileModule                       ' - cn.koer.petskeeper.module.UserProfileModule
2020-03-07 23:57:39,311 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) INFO  -    > add 'cleanNonActiveUserJob                   ' - cn.koer.petskeeper.quartz.job.CleanNonActiveUserJob
2020-03-07 23:57:39,318 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) INFO  -    > add 'EmailService                            ' - cn.koer.petskeeper.service.EmailServiceImpl
2020-03-07 23:57:39,323 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:99) INFO  -    > add 'userService                             ' - cn.koer.petskeeper.service.UserService
2020-03-07 23:57:39,351 org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:116) DEBUG - found quartz -- org.nutz.integration.quartz.QuartzIocLoader
2020-03-07 23:57:39,359 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) DEBUG - Loaded 0 bean define from path=[] --> []
2020-03-07 23:57:39,364 org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:116) DEBUG - found jedis -- org.nutz.integration.jedis.JedisIocLoader
2020-03-07 23:57:39,366 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:125) ERROR - Error happend during start serivce!
org.nutz.lang.born.BorningException: Fail to born or cast to 'org.nutz.integration.jedis.JedisIocLoader'
 by args: [@()]
 because: No suitable Constructor or Factory Method!!
	at org.nutz.lang.Mirror.born(Mirror.java:1020)
	at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:124)
	at org.nutz.ioc.loader.combo.ComboIocLoader.<init>(ComboIocLoader.java:98)
	at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:20)
	at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:384)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:103)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:283)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:264)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4546)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5191)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
	at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1720)
	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:287)
	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:479)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:428)
	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:287)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)
	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 java.security.AccessController.doPrivileged(Native Method)
	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408)
	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:357)
	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:573)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
07-Mar-2020 23:57:39.385 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal 一个或多个筛选器启动失败。完整的详细信息将在相应的容器日志文件中找到
07-Mar-2020 23:57:39.385 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/petskeeper] startup failed due to previous errors
[2020-03-07 11:57:39,404] Artifact petskeeper:war exploded: Error during artifact deployment. See server log for details.
07-Mar-2020 23:57:46.131 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [G:\Tomcat 8.5.51\webapps\manager]
07-Mar-2020 23:57:46.179 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [G:\Tomcat 8.5.51\webapps\manager] has finished in [47] ms

打开JedisIocLoader看看构造方法

感觉你加了什么奇怪的东西进去

//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package org.nutz.integration.jedis;

import org.nutz.ioc.loader.json.JsonLoader;

public class JedisIocLoader extends JsonLoader {
    public JedisIocLoader() {
        super(new String[]{"org/nutz/integration/jedis/jedis.js"});
    }
}

没有动过这个文件 我是加了依赖,加了iocby就在Mainsetup测试了

jedis用了什么版本? 需要2.9.x

另外, 加个断点看看 有没有进构造方法

020-03-08 16:15:18,980 org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:116) DEBUG - found jedis -- org.nutz.integration.jedis.JedisIocLoader
08-Mar-2020 16:15:18.978 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [G:\Tomcat 8.5.51\webapps\manager]
2020-03-08 16:15:18,985 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:125) ERROR - Error happend during start serivce!
org.nutz.lang.born.BorningException: Fail to born or cast to 'org.nutz.integration.jedis.JedisIocLoader'
 by args: [@()]
 because: No suitable Constructor or Factory Method!!

看着是找到了 但是没进去就报错了

看看是不是有多个JedisIocLoader类

idea就找到lib里一个这个类

已经解决了,莫名其妙变成Could not get resource from pool了
开了个server就好了。。。之前的问题有点莫名其妙...
但还是多谢

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