初次使用Nutz进行Demo示例开发,启动时报下列错误:
8 回复
18-10-16 20:14:04.205 ERROR [RMI TCP Connection(2)-127.0.0.1] Error happend during start serivce!
org.nutz.ioc.IocException: [dao] # For object [dao] - type:[interface org.nutz.dao.Dao]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:218)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:146)
at com.cck2.frame.main.MainSetup.init(MainSetup.java:16)
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:285)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4590)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1739)
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:482)
at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:431)
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:357)
2018-10-16 20:14:4.207 INFO [RMI TCP Connection(2)-127.0.0.1] org.nutz.ioc.impl.NutIoc@495016775 is closing. startup date [18-10-16 20:14:04.138]
at sun.rmi.transport.Transport$1.run(Transport.java:200)
2018-10-16 20:14:4.207 INFO [RMI TCP Connection(2)-127.0.0.1] org.nutz.ioc.impl.NutIoc@495016775 is deposed. startup date [18-10-16 20:14:04.138]
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:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.nutz.ioc.ObjectLoadException: Wrong type name: 'org.nutz.imple.NutDao'
at org.nutz.ioc.IocLoading.E(IocLoading.java:32)
at org.nutz.ioc.IocLoading.map2iobj(IocLoading.java:59)
at org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:86)
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:155)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
... 56 more
Caused by: java.lang.ClassNotFoundException: org.nutz.imple.NutDao
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.nutz.lang.Lang.loadClass(Lang.java:2022)
at org.nutz.ioc.IocLoading.map2iobj(IocLoading.java:55)
... 59 more
18-10-16 20:14:04.206 ERROR [RMI TCP Connection(2)-127.0.0.1] try to depose ioc
16-Oct-2018 20:14:04.209 严重 [RMI TCP Connection(2)-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
16-Oct-2018 20:14:04.210 严重 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/NutzDemo] startup failed due to previous errors
[2018-10-16 08:14:04,222] Artifact NutzDemo:war exploded: Error during artifact deployment. See server log for details.
16-Oct-2018 20:14:12.644 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/Library/Apache/Tomcat8/webapps/manager]
16-Oct-2018 20:14:12.650 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'driverClassName' to 'com.mysql.jdbc.Driver' did not find a matching property.
16-Oct-2018 20:14:12.650 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'maxActive' to '20' did not find a matching property.
16-Oct-2018 20:14:12.651 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'maxIdle' to '5' did not find a matching property.
16-Oct-2018 20:14:12.651 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'maxWait' to '10000' did not find a matching property.
16-Oct-2018 20:14:12.651 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'name' to 'jdbc/cck' did not find a matching property.
16-Oct-2018 20:14:12.651 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'password' to 'root' did not find a matching property.
16-Oct-2018 20:14:12.651 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'type' to 'javax.sql.DataSource' did not find a matching property.
16-Oct-2018 20:14:12.652 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'url' to 'jdbc:mysql://localhost/cck' did not find a matching property.
16-Oct-2018 20:14:12.652 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'username' to 'root' did not find a matching property.
16-Oct-2018 20:14:12.721 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/Library/Apache/Tomcat8/webapps/manager] has finished in [76] ms
还是不行,这是文档中的代码,
@Override
public void init(NutConfig nc) {
Ioc ioc = nc.getIoc();
Dao dao = ioc.get(Dao.class);
// 如果提示没有createTablesInPackage方法,请确认用了最新版的nutz,且老版本的nutz已经删除干净
Daos.createTablesInPackage(dao, "com.cck2.frame", false);
// 初始化默认根用户
if (dao.count(User.class) == 0) {
User user = new User();
user.setName("admin");
user.setPassword("123456");
user.setCreateTime(new Date());
user.setUpdateTime(new Date());
dao.insert(user);
}
}
运行后就报下面的错了
/Library/Apache/Tomcat8/bin/catalina.sh run
[2018-10-17 07:42:52,995] Artifact NutzDemo:war exploded: Waiting for server connection to start artifact deployment...
17-Oct-2018 19:42:54.049 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.20
17-Oct-2018 19:42:54.056 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Aug 2 2017 21:35:49 UTC
17-Oct-2018 19:42:54.056 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.20.0
17-Oct-2018 19:42:54.057 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Mac OS X
17-Oct-2018 19:42:54.057 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.14
17-Oct-2018 19:42:54.057 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: x86_64
17-Oct-2018 19:42:54.057 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre
17-Oct-2018 19:42:54.057 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_144-b01
17-Oct-2018 19:42:54.057 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
17-Oct-2018 19:42:54.057 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /Users/rongsen/Library/Caches/IntelliJIdea2018.1/tomcat/Unnamed_NutzDemo
17-Oct-2018 19:42:54.057 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /Library/Apache/Tomcat8
17-Oct-2018 19:42:54.058 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/Users/rongsen/Library/Caches/IntelliJIdea2018.1/tomcat/Unnamed_NutzDemo/conf/logging.properties
17-Oct-2018 19:42:54.058 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
17-Oct-2018 19:42:54.058 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
17-Oct-2018 19:42:54.058 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
17-Oct-2018 19:42:54.058 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
17-Oct-2018 19:42:54.059 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
17-Oct-2018 19:42:54.059 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
17-Oct-2018 19:42:54.059 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
17-Oct-2018 19:42:54.059 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
17-Oct-2018 19:42:54.059 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/Users/rongsen/Library/Caches/IntelliJIdea2018.1/tomcat/Unnamed_NutzDemo
17-Oct-2018 19:42:54.059 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/Library/Apache/Tomcat8
17-Oct-2018 19:42:54.060 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/Library/Apache/Tomcat8/temp
17-Oct-2018 19:42:54.060 信息 [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: [/Users/rongsen/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
17-Oct-2018 19:42:54.305 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
17-Oct-2018 19:42:54.364 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
17-Oct-2018 19:42:54.387 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
17-Oct-2018 19:42:54.391 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
17-Oct-2018 19:42:54.393 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 781 ms
17-Oct-2018 19:42:54.428 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
17-Oct-2018 19:42:54.428 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.20
17-Oct-2018 19:42:54.435 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
17-Oct-2018 19:42:54.444 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
17-Oct-2018 19:42:54.448 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 55 ms
Connected to server
[2018-10-17 07:42:54,575] Artifact NutzDemo:war exploded: Artifact is being deployed, please wait...
17-Oct-2018 19:42:54.646 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'driverClassName' to 'com.mysql.jdbc.Driver' did not find a matching property.
17-Oct-2018 19:42:54.646 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'maxActive' to '20' did not find a matching property.
17-Oct-2018 19:42:54.646 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'maxIdle' to '5' did not find a matching property.
17-Oct-2018 19:42:54.647 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'maxWait' to '10000' did not find a matching property.
17-Oct-2018 19:42:54.647 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'name' to 'jdbc/cck' did not find a matching property.
17-Oct-2018 19:42:54.647 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'password' to 'root' did not find a matching property.
17-Oct-2018 19:42:54.647 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'type' to 'javax.sql.DataSource' did not find a matching property.
17-Oct-2018 19:42:54.648 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'url' to 'jdbc:mysql://localhost/cck' did not find a matching property.
17-Oct-2018 19:42:54.648 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'username' to 'root' did not find a matching property.
17-Oct-2018 19:42:55.188 信息 [RMI TCP Connection(2)-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.
2018-10-17 19:42:55.224 INFO [RMI TCP Connection(2)-127.0.0.1] Select SystemLog as Nutz.Log implement
2018-10-17 19:42:55.232 INFO [RMI TCP Connection(2)-127.0.0.1] NutFilter[nutz] starting ...
2018-10-17 19:42:55.282 DEBUG [RMI TCP Connection(2)-127.0.0.1] Locations for Scans:
[Dir[path=/Library/Apache/Tomcat8/bin], Jar[path=/Users/rongsen/Documents/workspace/IntelliJ%20IDE/NutzDemo/target/NutzDemo/WEB-INF/lib/nutz-1.r.60.jar], Jar[path=/Library/Apache/Tomcat8/bin/bootstrap.jar], Jar[path=/Library/Apache/Tomcat8/bin/tomcat-juli.jar]]
2018-10-17 19:42:55.321 DEBUG [RMI TCP Connection(2)-127.0.0.1] Locations for Scans:
{/Library/Apache/Tomcat8/bin=Dir[path=/Library/Apache/Tomcat8/bin], /Users/rongsen/Documents/workspace/IntelliJ%20IDE/NutzDemo/target/NutzDemo/WEB-INF/lib/nutz-1.r.60.jar=Jar[path=/Users/rongsen/Documents/workspace/IntelliJ%20IDE/NutzDemo/target/NutzDemo/WEB-INF/lib/nutz-1.r.60.jar], /Library/Apache/Tomcat8/bin/bootstrap.jar=Jar[path=/Library/Apache/Tomcat8/bin/bootstrap.jar], /Library/Apache/Tomcat8/bin/tomcat-juli.jar=Jar[path=/Library/Apache/Tomcat8/bin/tomcat-juli.jar], /Users/rongsen/Documents/workspace/IntelliJ IDE/NutzDemo/target/NutzDemo/WEB-INF/classes=Dir[path=/Users/rongsen/Documents/workspace/IntelliJ IDE/NutzDemo/target/NutzDemo/WEB-INF/classes], /Users/rongsen/Documents/workspace/IntelliJ IDE/NutzDemo/target/NutzDemo/WEB-INF/lib/nutz-1.r.60.jar=Jar[path=/Users/rongsen/Documents/workspace/IntelliJ IDE/NutzDemo/target/NutzDemo/WEB-INF/lib/nutz-1.r.60.jar]}
2018-10-17 19:42:55.381 DEBUG [RMI TCP Connection(2)-127.0.0.1] Using 95 castor for Castors
2018-10-17 19:42:55.392 DEBUG [RMI TCP Connection(2)-127.0.0.1] Loading by class org.nutz.mvc.impl.NutLoading
2018-10-17 19:42:55.400 INFO [RMI TCP Connection(2)-127.0.0.1] Nutz Version : 1.r.60
2018-10-17 19:42:55.401 INFO [RMI TCP Connection(2)-127.0.0.1] Nutz.Mvc[nutz] is initializing ...
2018-10-17 19:42:55.401 DEBUG [RMI TCP Connection(2)-127.0.0.1] Web Container Information:
2018-10-17 19:42:55.402 DEBUG [RMI TCP Connection(2)-127.0.0.1] - Default Charset : UTF-8
2018-10-17 19:42:55.403 DEBUG [RMI TCP Connection(2)-127.0.0.1] - Current . path : /Library/Apache/Tomcat8/bin/.
2018-10-17 19:42:55.404 DEBUG [RMI TCP Connection(2)-127.0.0.1] - Java Version : 1.8.0_144
2018-10-17 19:42:55.405 DEBUG [RMI TCP Connection(2)-127.0.0.1] - File separator : /
2018-10-17 19:42:55.406 DEBUG [RMI TCP Connection(2)-127.0.0.1] - Timezone : Asia/Shanghai
2018-10-17 19:42:55.407 DEBUG [RMI TCP Connection(2)-127.0.0.1] - OS : Mac OS X x86_64
2018-10-17 19:42:55.411 DEBUG [RMI TCP Connection(2)-127.0.0.1] - ServerInfo : Apache Tomcat/8.5.20
2018-10-17 19:42:55.414 DEBUG [RMI TCP Connection(2)-127.0.0.1] - Servlet API : 3.1
2018-10-17 19:42:55.414 DEBUG [RMI TCP Connection(2)-127.0.0.1] - ContextPath : /NutzDemo
2018-10-17 19:42:55.415 DEBUG [RMI TCP Connection(2)-127.0.0.1] - context.tempdir : /Users/rongsen/Library/Caches/IntelliJIdea2018.1/tomcat/Unnamed_NutzDemo/work/Catalina/localhost/NutzDemo
2018-10-17 19:42:55.415 DEBUG [RMI TCP Connection(2)-127.0.0.1] - MainModule : com.cck2.frame.main.MainModule
2018-10-17 19:42:55.418 DEBUG [RMI TCP Connection(2)-127.0.0.1] >> app.root = /Users/rongsen/Documents/workspace/IntelliJ IDE/NutzDemo/target/NutzDemo
2018-10-17 19:42:55.426 DEBUG [RMI TCP Connection(2)-127.0.0.1] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "com.cck2.frame", "tx", "async"],init=[])
2018-10-17 19:42:55.456 DEBUG [RMI TCP Connection(2)-127.0.0.1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2018-10-17 19:42:55.457 DEBUG [RMI TCP Connection(2)-127.0.0.1] loading ioc js config from [dao.js]
2018-10-17 19:42:55.462 DEBUG [RMI TCP Connection(2)-127.0.0.1] Loaded 2 bean define from path=[ioc/] --> [dataSource, dao]
2018-10-17 19:42:55.470 DEBUG [RMI TCP Connection(2)-127.0.0.1] Found 5 resource by src( com/cck2/frame/ ) , regex( ^.+[.]class$ )
2018-10-17 19:42:55.496 DEBUG [RMI TCP Connection(2)-127.0.0.1] Found @IocBean : class com.cck2.frame.module.UserModule
2018-10-17 19:42:55.512 DEBUG [RMI TCP Connection(2)-127.0.0.1] Found 0 resource by src( tx/ ) , regex( ^.+[.]class$ )
2018-10-17 19:42:55.513 DEBUG [RMI TCP Connection(2)-127.0.0.1] Found 0 resource by src( async/ ) , regex( ^.+[.]class$ )
2018-10-17 19:42:55.514 INFO [RMI TCP Connection(2)-127.0.0.1] Found 1 classes in 3 base-packages!
beans = ["userModule"]
2018-10-17 19:42:55.519 INFO [RMI TCP Connection(2)-127.0.0.1] NutIoc init begin ...
2018-10-17 19:42:55.523 INFO [RMI TCP Connection(2)-127.0.0.1] ... NutIoc init complete
2018-10-17 19:42:55.527 INFO [RMI TCP Connection(2)-127.0.0.1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2018-10-17 19:42:55.529 DEBUG [RMI TCP Connection(2)-127.0.0.1] @Views(DefaultViewMaker.class)
2018-10-17 19:42:55.535 DEBUG [RMI TCP Connection(2)-127.0.0.1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2018-10-17 19:42:55.544 DEBUG [RMI TCP Connection(2)-127.0.0.1] module class location 'file:/Users/rongsen/Documents/workspace/IntelliJ%20IDE/NutzDemo/target/NutzDemo/WEB-INF/classes/'
2018-10-17 19:42:55.545 INFO [RMI TCP Connection(2)-127.0.0.1] [loc=/Users/rongsen/Documents/workspace/IntelliJ%20IDE/NutzDemo/target/NutzDemo/WEB-INF/classes]not exist
2018-10-17 19:42:55.545 DEBUG [RMI TCP Connection(2)-127.0.0.1] > scan 'com.cck2.frame.main'
2018-10-17 19:42:55.547 DEBUG [RMI TCP Connection(2)-127.0.0.1] Found 3 resource by src( com/cck2/frame/main/ ) , regex( ^.+[.]class$ )
2018-10-17 19:42:55.557 DEBUG [RMI TCP Connection(2)-127.0.0.1] >> add 'com.cck2.frame.main.MainModule'
2018-10-17 19:42:55.562 INFO [RMI TCP Connection(2)-127.0.0.1] Create Module obj without Ioc --> class com.cck2.frame.main.MainModule
2018-10-17 19:42:55.562 INFO [RMI TCP Connection(2)-127.0.0.1] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
2018-10-17 19:42:55.566 INFO [RMI TCP Connection(2)-127.0.0.1] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
2018-10-17 19:42:55.576 DEBUG [RMI TCP Connection(2)-127.0.0.1] '/console' >> (MainModule.java:27).console : String | @Ok(jsp:jsp.console) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-10-17 19:42:55.576 DEBUG [RMI TCP Connection(2)-127.0.0.1] '/hello' >> (MainModule.java:21).doHello : String | @Ok(jsp:jsp.hello) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-10-17 19:42:55.577 INFO [RMI TCP Connection(2)-127.0.0.1] Found 2 module methods
2018-10-17 19:42:55.577 DEBUG [RMI TCP Connection(2)-127.0.0.1] @Localization not define
2018-10-17 19:42:55.580 INFO [RMI TCP Connection(2)-127.0.0.1] Setup application...
2018-10-17 19:42:55.581 DEBUG [RMI TCP Connection(2)-127.0.0.1] Get 'dao'<interface org.nutz.dao.Dao>
2018-10-17 19:42:55.583 DEBUG [RMI TCP Connection(2)-127.0.0.1] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
2018-10-17 19:42:55.584 DEBUG [RMI TCP Connection(2)-127.0.0.1] >> Load definition name=dao
18-10-17 19:42:55.589 ERROR [RMI TCP Connection(2)-127.0.0.1] Error happend during start serivce!
org.nutz.ioc.IocException: [dao] # For object [dao] - type:[interface org.nutz.dao.Dao]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:218)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:146)
at com.cck2.frame.main.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:285)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4590)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
2018-10-17 19:42:55.587 DEBUG [RMI TCP Connection(2)-127.0.0.1] Loading define for name=dao
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1739)
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:482)
at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:431)
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: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: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:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.nutz.ioc.ObjectLoadException: Wrong type name: 'org.nutz.imple.NutDao'
at org.nutz.ioc.IocLoading.E(IocLoading.java:32)
at org.nutz.ioc.IocLoading.map2iobj(IocLoading.java:59)
at org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:86)
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:155)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
... 56 more
Caused by: java.lang.ClassNotFoundException: org.nutz.imple.NutDao
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.nutz.lang.Lang.loadClass(Lang.java:2022)
at org.nutz.ioc.IocLoading.map2iobj(IocLoading.java:55)
... 59 more
18-10-17 19:42:55.593 ERROR [RMI TCP Connection(2)-127.0.0.1] try to depose ioc
2018-10-17 19:42:55.593 INFO [RMI TCP Connection(2)-127.0.0.1] org.nutz.ioc.impl.NutIoc@1351007014 is closing. startup date [18-10-17 19:42:55.520]
2018-10-17 19:42:55.596 INFO [RMI TCP Connection(2)-127.0.0.1] org.nutz.ioc.impl.NutIoc@1351007014 is deposed. startup date [18-10-17 19:42:55.520]
17-Oct-2018 19:42:55.597 严重 [RMI TCP Connection(2)-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
17-Oct-2018 19:42:55.597 严重 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/NutzDemo] startup failed due to previous errors
[2018-10-17 07:42:55,616] Artifact NutzDemo:war exploded: Error during artifact deployment. See server log for details.
17-Oct-2018 19:43:04.439 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/Library/Apache/Tomcat8/webapps/manager]
17-Oct-2018 19:43:04.445 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'driverClassName' to 'com.mysql.jdbc.Driver' did not find a matching property.
17-Oct-2018 19:43:04.445 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'maxActive' to '20' did not find a matching property.
17-Oct-2018 19:43:04.446 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'maxIdle' to '5' did not find a matching property.
17-Oct-2018 19:43:04.446 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'maxWait' to '10000' did not find a matching property.
17-Oct-2018 19:43:04.446 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'name' to 'jdbc/cck' did not find a matching property.
17-Oct-2018 19:43:04.446 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'password' to 'root' did not find a matching property.
17-Oct-2018 19:43:04.446 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'type' to 'javax.sql.DataSource' did not find a matching property.
17-Oct-2018 19:43:04.447 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'url' to 'jdbc:mysql://localhost/cck' did not find a matching property.
17-Oct-2018 19:43:04.447 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'username' to 'root' did not find a matching property.
17-Oct-2018 19:43:04.493 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/Library/Apache/Tomcat8/webapps/manager] has finished in [53] ms
java.lang.ClassNotFoundException: org.nutz.imple.NutDao
检查dao.js, 里面的类名写错了!!! 应该是 org.nutz.dao.impl.NutDao 仔细对比
确实是dao.js中的类名写错了,重新执行后又另外一个错
/Library/Apache/Tomcat8/bin/catalina.sh run
[2018-10-17 08:00:36,697] Artifact NutzDemo:war exploded: Waiting for server connection to start artifact deployment...
17-Oct-2018 20:00:37.725 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.20
17-Oct-2018 20:00:37.730 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Aug 2 2017 21:35:49 UTC
17-Oct-2018 20:00:37.730 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.20.0
17-Oct-2018 20:00:37.730 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Mac OS X
17-Oct-2018 20:00:37.730 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.14
17-Oct-2018 20:00:37.730 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: x86_64
17-Oct-2018 20:00:37.743 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre
17-Oct-2018 20:00:37.743 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_144-b01
17-Oct-2018 20:00:37.750 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
17-Oct-2018 20:00:37.750 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /Users/rongsen/Library/Caches/IntelliJIdea2018.1/tomcat/Unnamed_NutzDemo
17-Oct-2018 20:00:37.751 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /Library/Apache/Tomcat8
17-Oct-2018 20:00:37.754 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/Users/rongsen/Library/Caches/IntelliJIdea2018.1/tomcat/Unnamed_NutzDemo/conf/logging.properties
17-Oct-2018 20:00:37.754 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
17-Oct-2018 20:00:37.754 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
17-Oct-2018 20:00:37.754 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
17-Oct-2018 20:00:37.754 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
17-Oct-2018 20:00:37.755 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
17-Oct-2018 20:00:37.755 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
17-Oct-2018 20:00:37.755 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
17-Oct-2018 20:00:37.755 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
17-Oct-2018 20:00:37.755 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/Users/rongsen/Library/Caches/IntelliJIdea2018.1/tomcat/Unnamed_NutzDemo
17-Oct-2018 20:00:37.755 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/Library/Apache/Tomcat8
17-Oct-2018 20:00:37.755 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/Library/Apache/Tomcat8/temp
17-Oct-2018 20:00:37.756 信息 [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: [/Users/rongsen/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
17-Oct-2018 20:00:37.946 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
17-Oct-2018 20:00:38.010 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
17-Oct-2018 20:00:38.022 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
17-Oct-2018 20:00:38.023 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
17-Oct-2018 20:00:38.030 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 740 ms
17-Oct-2018 20:00:38.082 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
17-Oct-2018 20:00:38.082 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.20
17-Oct-2018 20:00:38.090 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
17-Oct-2018 20:00:38.105 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
17-Oct-2018 20:00:38.108 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 77 ms
Connected to server
[2018-10-17 08:00:38,283] Artifact NutzDemo:war exploded: Artifact is being deployed, please wait...
17-Oct-2018 20:00:38.347 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'driverClassName' to 'com.mysql.jdbc.Driver' did not find a matching property.
17-Oct-2018 20:00:38.347 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'maxActive' to '20' did not find a matching property.
17-Oct-2018 20:00:38.348 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'maxIdle' to '5' did not find a matching property.
17-Oct-2018 20:00:38.348 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'maxWait' to '10000' did not find a matching property.
17-Oct-2018 20:00:38.348 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'name' to 'jdbc/cck' did not find a matching property.
17-Oct-2018 20:00:38.348 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'password' to 'root' did not find a matching property.
17-Oct-2018 20:00:38.348 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'type' to 'javax.sql.DataSource' did not find a matching property.
17-Oct-2018 20:00:38.349 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'url' to 'jdbc:mysql://localhost/cck' did not find a matching property.
17-Oct-2018 20:00:38.349 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'username' to 'root' did not find a matching property.
17-Oct-2018 20:00:38.865 信息 [RMI TCP Connection(2)-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.
2018-10-17 20:0:38.901 INFO [RMI TCP Connection(2)-127.0.0.1] Select SystemLog as Nutz.Log implement
2018-10-17 20:0:38.906 INFO [RMI TCP Connection(2)-127.0.0.1] NutFilter[nutz] starting ...
2018-10-17 20:0:38.954 DEBUG [RMI TCP Connection(2)-127.0.0.1] Locations for Scans:
[Dir[path=/Library/Apache/Tomcat8/bin], Jar[path=/Users/rongsen/Documents/workspace/IntelliJ%20IDE/NutzDemo/target/NutzDemo/WEB-INF/lib/nutz-1.r.60.jar], Jar[path=/Library/Apache/Tomcat8/bin/bootstrap.jar], Jar[path=/Library/Apache/Tomcat8/bin/tomcat-juli.jar]]
2018-10-17 20:0:38.991 DEBUG [RMI TCP Connection(2)-127.0.0.1] Locations for Scans:
{/Library/Apache/Tomcat8/bin=Dir[path=/Library/Apache/Tomcat8/bin], /Users/rongsen/Documents/workspace/IntelliJ%20IDE/NutzDemo/target/NutzDemo/WEB-INF/lib/nutz-1.r.60.jar=Jar[path=/Users/rongsen/Documents/workspace/IntelliJ%20IDE/NutzDemo/target/NutzDemo/WEB-INF/lib/nutz-1.r.60.jar], /Library/Apache/Tomcat8/bin/bootstrap.jar=Jar[path=/Library/Apache/Tomcat8/bin/bootstrap.jar], /Library/Apache/Tomcat8/bin/tomcat-juli.jar=Jar[path=/Library/Apache/Tomcat8/bin/tomcat-juli.jar], /Users/rongsen/Documents/workspace/IntelliJ IDE/NutzDemo/target/NutzDemo/WEB-INF/classes=Dir[path=/Users/rongsen/Documents/workspace/IntelliJ IDE/NutzDemo/target/NutzDemo/WEB-INF/classes], /Users/rongsen/Documents/workspace/IntelliJ IDE/NutzDemo/target/NutzDemo/WEB-INF/lib/nutz-1.r.60.jar=Jar[path=/Users/rongsen/Documents/workspace/IntelliJ IDE/NutzDemo/target/NutzDemo/WEB-INF/lib/nutz-1.r.60.jar]}
2018-10-17 20:0:39.53 DEBUG [RMI TCP Connection(2)-127.0.0.1] Using 95 castor for Castors
2018-10-17 20:0:39.67 DEBUG [RMI TCP Connection(2)-127.0.0.1] Loading by class org.nutz.mvc.impl.NutLoading
2018-10-17 20:0:39.71 INFO [RMI TCP Connection(2)-127.0.0.1] Nutz Version : 1.r.60
2018-10-17 20:0:39.71 INFO [RMI TCP Connection(2)-127.0.0.1] Nutz.Mvc[nutz] is initializing ...
2018-10-17 20:0:39.71 DEBUG [RMI TCP Connection(2)-127.0.0.1] Web Container Information:
2018-10-17 20:0:39.72 DEBUG [RMI TCP Connection(2)-127.0.0.1] - Default Charset : UTF-8
2018-10-17 20:0:39.72 DEBUG [RMI TCP Connection(2)-127.0.0.1] - Current . path : /Library/Apache/Tomcat8/bin/.
2018-10-17 20:0:39.73 DEBUG [RMI TCP Connection(2)-127.0.0.1] - Java Version : 1.8.0_144
2018-10-17 20:0:39.73 DEBUG [RMI TCP Connection(2)-127.0.0.1] - File separator : /
2018-10-17 20:0:39.73 DEBUG [RMI TCP Connection(2)-127.0.0.1] - Timezone : Asia/Shanghai
2018-10-17 20:0:39.74 DEBUG [RMI TCP Connection(2)-127.0.0.1] - OS : Mac OS X x86_64
2018-10-17 20:0:39.74 DEBUG [RMI TCP Connection(2)-127.0.0.1] - ServerInfo : Apache Tomcat/8.5.20
2018-10-17 20:0:39.74 DEBUG [RMI TCP Connection(2)-127.0.0.1] - Servlet API : 3.1
2018-10-17 20:0:39.75 DEBUG [RMI TCP Connection(2)-127.0.0.1] - ContextPath : /NutzDemo
2018-10-17 20:0:39.77 DEBUG [RMI TCP Connection(2)-127.0.0.1] - context.tempdir : /Users/rongsen/Library/Caches/IntelliJIdea2018.1/tomcat/Unnamed_NutzDemo/work/Catalina/localhost/NutzDemo
2018-10-17 20:0:39.77 DEBUG [RMI TCP Connection(2)-127.0.0.1] - MainModule : net.wendal.nutzbook.MainModule
2018-10-17 20:0:39.78 DEBUG [RMI TCP Connection(2)-127.0.0.1] >> app.root = /Users/rongsen/Documents/workspace/IntelliJ IDE/NutzDemo/target/NutzDemo
2018-10-17 20:0:39.83 DEBUG [RMI TCP Connection(2)-127.0.0.1] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx", "*async"],init=[])
2018-10-17 20:0:39.112 DEBUG [RMI TCP Connection(2)-127.0.0.1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2018-10-17 20:0:39.112 DEBUG [RMI TCP Connection(2)-127.0.0.1] loading ioc js config from [dao.js]
2018-10-17 20:0:39.118 DEBUG [RMI TCP Connection(2)-127.0.0.1] Loaded 2 bean define from path=[ioc/] --> [dataSource, dao]
2018-10-17 20:0:39.124 DEBUG [RMI TCP Connection(2)-127.0.0.1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2018-10-17 20:0:39.150 DEBUG [RMI TCP Connection(2)-127.0.0.1] Found @IocBean : class net.wendal.nutzbook.module.UserModule
2018-10-17 20:0:39.162 INFO [RMI TCP Connection(2)-127.0.0.1] Found 1 classes in 1 base-packages!
beans = ["userModule"]
2018-10-17 20:0:39.163 DEBUG [RMI TCP Connection(2)-127.0.0.1] Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
2018-10-17 20:0:39.165 DEBUG [RMI TCP Connection(2)-127.0.0.1] Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
2018-10-17 20:0:39.168 INFO [RMI TCP Connection(2)-127.0.0.1] NutIoc init begin ...
2018-10-17 20:0:39.177 INFO [RMI TCP Connection(2)-127.0.0.1] ... NutIoc init complete
2018-10-17 20:0:39.185 INFO [RMI TCP Connection(2)-127.0.0.1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2018-10-17 20:0:39.192 DEBUG [RMI TCP Connection(2)-127.0.0.1] @Views(DefaultViewMaker.class)
2018-10-17 20:0:39.197 DEBUG [RMI TCP Connection(2)-127.0.0.1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2018-10-17 20:0:39.204 DEBUG [RMI TCP Connection(2)-127.0.0.1] module class location 'file:/Users/rongsen/Documents/workspace/IntelliJ%20IDE/NutzDemo/target/NutzDemo/WEB-INF/classes/'
2018-10-17 20:0:39.205 INFO [RMI TCP Connection(2)-127.0.0.1] [loc=/Users/rongsen/Documents/workspace/IntelliJ%20IDE/NutzDemo/target/NutzDemo/WEB-INF/classes]not exist
2018-10-17 20:0:39.205 DEBUG [RMI TCP Connection(2)-127.0.0.1] > scan 'net.wendal.nutzbook'
2018-10-17 20:0:39.207 DEBUG [RMI TCP Connection(2)-127.0.0.1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2018-10-17 20:0:39.209 DEBUG [RMI TCP Connection(2)-127.0.0.1] >> add 'net.wendal.nutzbook.module.UserModule'
2018-10-17 20:0:39.210 DEBUG [RMI TCP Connection(2)-127.0.0.1] >> add 'net.wendal.nutzbook.MainModule'
2018-10-17 20:0:39.216 INFO [RMI TCP Connection(2)-127.0.0.1] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
2018-10-17 20:0:39.220 INFO [RMI TCP Connection(2)-127.0.0.1] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
2018-10-17 20:0:39.228 DEBUG [RMI TCP Connection(2)-127.0.0.1] '/user/count' >> (UserModule.java:26).count : int | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-10-17 20:0:39.235 DEBUG [RMI TCP Connection(2)-127.0.0.1] '/user/login' >> (UserModule.java:31).login : Object | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-10-17 20:0:39.240 DEBUG [RMI TCP Connection(2)-127.0.0.1] '/user/logout' >> (UserModule.java:43).logout : void | @Ok(>>:/ ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-10-17 20:0:39.240 INFO [RMI TCP Connection(2)-127.0.0.1] Create Module obj without Ioc --> class net.wendal.nutzbook.MainModule
2018-10-17 20:0:39.242 DEBUG [RMI TCP Connection(2)-127.0.0.1] '/console' >> (MainModule.java:24).console : String | @Ok(jsp:jsp.console) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-10-17 20:0:39.243 DEBUG [RMI TCP Connection(2)-127.0.0.1] '/hello' >> (MainModule.java:18).doHello : String | @Ok(jsp:jsp.hello) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-10-17 20:0:39.243 INFO [RMI TCP Connection(2)-127.0.0.1] Found 5 module methods
2018-10-17 20:0:39.244 DEBUG [RMI TCP Connection(2)-127.0.0.1] @Localization not define
2018-10-17 20:0:39.245 INFO [RMI TCP Connection(2)-127.0.0.1] Setup application...
2018-10-17 20:0:39.245 DEBUG [RMI TCP Connection(2)-127.0.0.1] Get 'dao'<interface org.nutz.dao.Dao>
2018-10-17 20:0:39.246 DEBUG [RMI TCP Connection(2)-127.0.0.1] Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2018-10-17 20:0:39.246 DEBUG [RMI TCP Connection(2)-127.0.0.1] >> Load definition name=$aop_async
2018-10-17 20:0:39.251 DEBUG [RMI TCP Connection(2)-127.0.0.1] Found IocObject($aop_async) in AsyncAopIocLoader@303839233
2018-10-17 20:0:39.251 DEBUG [RMI TCP Connection(2)-127.0.0.1] >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2018-10-17 20:0:39.252 DEBUG [RMI TCP Connection(2)-127.0.0.1] Save object '$aop_async' to [app]
2018-10-17 20:0:39.258 DEBUG [RMI TCP Connection(2)-127.0.0.1] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
2018-10-17 20:0:39.258 DEBUG [RMI TCP Connection(2)-127.0.0.1] >> Load definition name=dao
2018-10-17 20:0:39.259 DEBUG [RMI TCP Connection(2)-127.0.0.1] Loading define for name=dao
2018-10-17 20:0:39.262 DEBUG [RMI TCP Connection(2)-127.0.0.1] Found IocObject(dao) in JsonLoader(paths=[ioc/])
2018-10-17 20:0:39.263 DEBUG [RMI TCP Connection(2)-127.0.0.1] >> Make...'dao'<interface org.nutz.dao.Dao>
2018-10-17 20:0:39.278 DEBUG [RMI TCP Connection(2)-127.0.0.1] Load class org.nutz.dao.impl.NutDao without AOP
2018-10-17 20:0:39.278 DEBUG [RMI TCP Connection(2)-127.0.0.1] Save object 'dao' to [app]
2018-10-17 20:0:39.279 DEBUG [RMI TCP Connection(2)-127.0.0.1] Get 'dataSource'<>
2018-10-17 20:0:39.279 DEBUG [RMI TCP Connection(2)-127.0.0.1] >> Load definition name=dataSource
2018-10-17 20:0:39.280 DEBUG [RMI TCP Connection(2)-127.0.0.1] Loading define for name=dataSource
2018-10-17 20:0:39.282 DEBUG [RMI TCP Connection(2)-127.0.0.1] Remove object 'dao' from [app]
2018-10-17 20:0:39.283 INFO [RMI TCP Connection(2)-127.0.0.1] org.nutz.ioc.impl.NutIoc@284475153 is closing. startup date [18-10-17 20:00:39.168]
2018-10-17 20:0:39.284 DEBUG [RMI TCP Connection(2)-127.0.0.1] Depose object '$aop_async' ...
2018-10-17 20:0:39.284 INFO [RMI TCP Connection(2)-127.0.0.1] org.nutz.ioc.impl.NutIoc@284475153 is deposed. startup date [18-10-17 20:00:39.168]
18-10-17 20:00:39.282 ERROR [RMI TCP Connection(2)-127.0.0.1] Error happend during start serivce!
org.nutz.ioc.IocException: [dao, dataSource] # For object [dataSource] - type:[]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:218)
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 net.wendal.nutzbook.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:285)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4590)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1739)
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:482)
at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:431)
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: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: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:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.nutz.ioc.ObjectLoadException: Wrong type name: 'com.alibaba.druid.pool.DruidDataSource'
at org.nutz.ioc.IocLoading.E(IocLoading.java:32)
at org.nutz.ioc.IocLoading.map2iobj(IocLoading.java:59)
at org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:86)
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:155)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
... 59 more
Caused by: java.lang.ClassNotFoundException: com.alibaba.druid.pool.DruidDataSource
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.nutz.lang.Lang.loadClass(Lang.java:2022)
at org.nutz.ioc.IocLoading.map2iobj(IocLoading.java:55)
... 62 more
18-10-17 20:00:39.283 ERROR [RMI TCP Connection(2)-127.0.0.1] try to depose ioc
17-Oct-2018 20:00:39.285 严重 [RMI TCP Connection(2)-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
17-Oct-2018 20:00:39.286 严重 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/NutzDemo] startup failed due to previous errors
[2018-10-17 08:00:39,305] Artifact NutzDemo:war exploded: Error during artifact deployment. See server log for details.
17-Oct-2018 20:00:48.096 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/Library/Apache/Tomcat8/webapps/manager]
17-Oct-2018 20:00:48.101 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'driverClassName' to 'com.mysql.jdbc.Driver' did not find a matching property.
17-Oct-2018 20:00:48.101 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'maxActive' to '20' did not find a matching property.
17-Oct-2018 20:00:48.101 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'maxIdle' to '5' did not find a matching property.
17-Oct-2018 20:00:48.101 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'maxWait' to '10000' did not find a matching property.
17-Oct-2018 20:00:48.101 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'name' to 'jdbc/cck' did not find a matching property.
17-Oct-2018 20:00:48.102 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'password' to 'root' did not find a matching property.
17-Oct-2018 20:00:48.102 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'type' to 'javax.sql.DataSource' did not find a matching property.
17-Oct-2018 20:00:48.102 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'url' to 'jdbc:mysql://localhost/cck' did not find a matching property.
17-Oct-2018 20:00:48.102 警告 [localhost-startStop-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Context/Resources} Setting property 'username' to 'root' did not find a matching property.
17-Oct-2018 20:00:48.135 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/Library/Apache/Tomcat8/webapps/manager] has finished in [39] ms
没下载druid? http://nutzbook.wendal.net/prepare/jars.html 前面的章节有的
按这个日志
[Dir[path=/Library/Apache/Tomcat8/bin], Jar[path=/Users/rongsen/Documents/workspace/IntelliJ%20IDE/NutzDemo/target/NutzDemo/WEB-INF/lib/nutz-1.r.60.jar], Jar[path=/Library/Apache/Tomcat8/bin/bootstrap.jar], Jar[path=/Library/Apache/Tomcat8/bin/tomcat-juli.jar]]
2018-10-17 20:0:38.991 DEBUG [RMI TCP Connection(2)-127.0.0.1] Locations for Scans:
{/Library/Apache/Tomcat8/bin=Dir[path=/Library/Apache/Tomcat8/bin], /Users/rongsen/Documents/workspace/IntelliJ%20IDE/NutzDemo/target/NutzDemo/WEB-INF/lib/nutz-1.r.60.jar=Jar[path=/Users/rongsen/Documents/workspace/IntelliJ%20IDE/NutzDemo/target/NutzDemo/WEB-INF/lib/nutz-1.r.60.jar], /Library/Apache/Tomcat8/bin/bootstrap.jar=Jar[path=/Library/Apache/Tomcat8/bin/bootstrap.jar], /Library/Apache/Tomcat8/bin/tomcat-juli.jar=Jar[path=/Library/Apache/Tomcat8/bin/tomcat-juli.jar], /Users/rongsen/Documents/workspace/IntelliJ IDE/NutzDemo/target/NutzDemo/WEB-INF/classes=Dir[path=/Users/rongsen/Documents/workspace/IntelliJ IDE/NutzDemo/target/NutzDemo/WEB-INF/classes], /Users/rongsen/Documents/workspace/IntelliJ IDE/NutzDemo/target/NutzDemo/WEB-INF/lib/nutz-1.r.60.jar=Jar[path=/Users/rongsen/Documents/workspace/IntelliJ IDE/NutzDemo/target/NutzDemo/WEB-INF/lib/nutz-1.r.60.jar]}
driud连接池, mysql驱动,都没有加
添加回复
请先登陆