NutzCN Logo
问答 按照nutzbook操作到初始化数据库时,tomcat启动失败,报错日志如下有个 “async”错误
发布于 2928天前 作者 burnszp 2151 次浏览 复制 上一个帖子 下一个帖子
标签:
十二月 16, 2016 5:55:38 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:nutzbook' did not find a matching property.
十二月 16, 2016 5:55:38 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/8.0.33
十二月 16, 2016 5:55:38 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Mar 18 2016 20:31:49 UTC
十二月 16, 2016 5:55:38 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         8.0.33.0
十二月 16, 2016 5:55:38 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Windows 7
十二月 16, 2016 5:55:38 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            6.1
十二月 16, 2016 5:55:38 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
十二月 16, 2016 5:55:38 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             E:\Programs\Java\jdk8_111\jre
十二月 16, 2016 5:55:38 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.8.0_111-b14
十二月 16, 2016 5:55:38 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
十二月 16, 2016 5:55:38 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
十二月 16, 2016 5:55:38 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         D:\nutzbook\apache-tomcat-8.0.33
十二月 16, 2016 5:55:38 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
十二月 16, 2016 5:55:38 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\nutzbook\apache-tomcat-8.0.33
十二月 16, 2016 5:55:38 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
十二月 16, 2016 5:55:38 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\nutzbook\apache-tomcat-8.0.33\endorsed
十二月 16, 2016 5:55:38 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
十二月 16, 2016 5:55:38 下午 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: E:\Programs\Java\jdk8_111\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;F:/soft/jdk/jdk1.7.0_06/bin/../jre/bin/client;F:/soft/jdk/jdk1.7.0_06/bin/../jre/bin;F:/soft/jdk/jdk1.7.0_06/bin/../jre/lib/i386;E:\MentorGraphics\Capital2015.1\bin;E:\MentorGraphics\Capital2015.1\jre\bin;E:\MentorGraphics\Capital2015.1\jre\bin\client;C:\ProgramData\Oracle\Java\javapath;E:\MentorGraphics\Capital2012.1\bin;E:\MentorGraphics\Capital2011.1\jre\bin;E:\MentorGraphics\Capital2011.1\jre\bin\client;E:\MentorGraphics\Capital2012.1\jre\bin;E:\MentorGraphics\Capital2012.1\jre\bin\client;E:\Programs\Java\jdk1.6.0_45\bin;E:\Programs\Java\jdk1.6.0_45\jre\bin;E:\MentorGraphics\Capital2010_1\jre\bin;E:\MentorGraphics\Capital2010_1\jre\bin\client;E:\MentorGraphics\PCB\Helper\7.9.5EE\SDD_HOME\common\win32\bin;E:\MentorGraphics\PCB\Helper\7.9.5EE\SDD_HOME\common\win32\lib;E:\MentorGraphics\PCB\Helper\7.9.5EE\MGC_HOME.ixn\bin;E:\MentorGraphics\PCB\Helper\7.9.5EE\MGC_HOME.ixn\lib;E:\MentorGraphics\Capital2010.1\bin;E:\MentorGraphics\Capital2010.1\jre\bin;E:\MentorGraphics\Capital2010.1\jre\bin\client;E:\MentorGraphics\Capital2014.1\bin;E:\MentorGraphics\Capital2014.1\jre\bin;E:\MentorGraphics\Capital2014.1\jre\bin\client;E:\Programs\oracle\product\10.2.0\db_2\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;E:\Program Files\TortoiseSVN\bin;E:/AllPlugins/apache-ant-1.8.2/bin;E:\Programs\NSIS;E:\AllPlugins\apache-maven-3.0.4\bin;D:\Program Files (x86)\Brackets\command;C:\Program Files (x86)\Autodesk\Backburner\;C:\Program Files\Common Files\Autodesk Shared\;%M2_HOME%\bin;D:\Program Files (x86)\Git\cmd;%VC6%;D:\Program Files (x86)\Go\bin;E:\MentorGraphics\Capital2010.1;C:\Program Files (x86)\MySQL\MySQL Server 5.0\bin;D:\nutzbook\eclipse;;.
十二月 16, 2016 5:55:38 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-nio-8080"]
十二月 16, 2016 5:55:39 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
十二月 16, 2016 5:55:39 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-nio-8009"]
十二月 16, 2016 5:55:39 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
十二月 16, 2016 5:55:39 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1073 ms
十二月 16, 2016 5:55:39 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
十二月 16, 2016 5:55:39 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.0.33
十二月 16, 2016 5:55:40 下午 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.
2016-12-16 17:55:40.228 WARN [localhost-startStop-1] !!You are using default SystemLog! Don't use it in Production environment!!
2016-12-16 17:55:40.231 INFO [localhost-startStop-1] Nutz is licensed under the Apache License, Version 2.0 .
Report bugs : https://github.com/nutzam/nutz/issues
2016-12-16 17:55:40.235 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
2016-12-16 17:55:40.404 DEBUG [localhost-startStop-1] Locations for Scans:
[JarResourceLocation [jarPath=E:\Programs\Java\jdk8_111\lib\tools.jar], JarResourceLocation [jarPath=D:/nutzbook/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/nutzbook/WEB-INF/lib/nutz-1.b.52.jar], JarResourceLocation [jarPath=D:\nutzbook\apache-tomcat-8.0.33\bin\tomcat-juli.jar], FileSystemResourceLocation [root=D:\nutzbook\eclipse], FileSystemResourceLocation [root=D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\classes], JarResourceLocation [jarPath=D:\nutzbook\apache-tomcat-8.0.33\bin\bootstrap.jar]]
2016-12-16 17:55:40.515 DEBUG [localhost-startStop-1] Locations for Scans:
[JarResourceLocation [jarPath=D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\nutz-1.b.52.jar], JarResourceLocation [jarPath=E:\Programs\Java\jdk8_111\lib\tools.jar], JarResourceLocation [jarPath=D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\mysql-connector-java-5.1.34.jar], JarResourceLocation [jarPath=D:/nutzbook/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/nutzbook/WEB-INF/lib/nutz-1.b.52.jar], JarResourceLocation [jarPath=D:\nutzbook\apache-tomcat-8.0.33\bin\tomcat-juli.jar], FileSystemResourceLocation [root=D:\nutzbook\eclipse], JarResourceLocation [jarPath=D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\druid-1.0.13.jar], FileSystemResourceLocation [root=D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\classes], JarResourceLocation [jarPath=D:\nutzbook\apache-tomcat-8.0.33\bin\bootstrap.jar]]
2016-12-16 17:55:40.518 DEBUG [localhost-startStop-1] MainModule: <net.wendal.nutzbook.MainModule>
2016-12-16 17:55:40.528 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
2016-12-16 17:55:40.531 INFO [localhost-startStop-1] Nutz Version : 1.b.52 
2016-12-16 17:55:40.531 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
2016-12-16 17:55:40.531 DEBUG [localhost-startStop-1] Web Container Information:
2016-12-16 17:55:40.532 DEBUG [localhost-startStop-1]  - Default Charset : UTF-8
2016-12-16 17:55:40.533 DEBUG [localhost-startStop-1]  - Current . path  : D:\nutzbook\eclipse\.
2016-12-16 17:55:40.533 DEBUG [localhost-startStop-1]  - Java Version    : 1.8.0_111
2016-12-16 17:55:40.533 DEBUG [localhost-startStop-1]  - File separator  : \
2016-12-16 17:55:40.534 DEBUG [localhost-startStop-1]  - Timezone        : Asia/Shanghai
2016-12-16 17:55:40.534 DEBUG [localhost-startStop-1]  - OS              : Windows 7 amd64
2016-12-16 17:55:40.534 DEBUG [localhost-startStop-1]  - ServerInfo      : Apache Tomcat/8.0.33
2016-12-16 17:55:40.535 DEBUG [localhost-startStop-1]  - Servlet API     : 3.1
2016-12-16 17:55:40.535 DEBUG [localhost-startStop-1]  - ContextPath     : /nutzbook
2016-12-16 17:55:40.536 DEBUG [localhost-startStop-1] MainModule: <net.wendal.nutzbook.MainModule>
2016-12-16 17:55:40.537 DEBUG [localhost-startStop-1] >> app.root = D:/nutzbook/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/nutzbook
2016-12-16 17:55:40.611 DEBUG [localhost-startStop-1] Using 91 castor for Castors
2016-12-16 17:55:40.620 DEBUG [localhost-startStop-1] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx", "*async"])
2016-12-16 17:55:40.643 DEBUG [localhost-startStop-1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2016-12-16 17:55:40.644 DEBUG [localhost-startStop-1] loading ioc js config from [dao.js]
2016-12-16 17:55:40.651 DEBUG [localhost-startStop-1] Loaded 2 bean define from path=[ioc/] --> [dataSource, dao]
2016-12-16 17:55:40.655 DEBUG [localhost-startStop-1] Found 3 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
2016-12-16 17:55:40.665 WARN [2016-12-16 17:55:40.666 DEBUG [localhost-startStop-1] Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
localhost-startStop-1] NONE Annotation-Class found!! Check your configure or report a bug!! packages=[net.wendal.nutzbook]
2016-12-16 17:55:40.667 ERROR [localhost-startStop-1] Error happend during start serivce!
java.lang.RuntimeException: java.lang.ClassNotFoundException: async
	at org.nutz.lang.Lang.wrapThrow(Lang.java:148)
	at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:18)
	at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:356)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:97)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:78)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4658)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5277)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: async
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1139)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at org.nutz.lang.Lang.loadClass(Lang.java:1799)
	at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:105)
	at org.nutz.ioc.loader.combo.ComboIocLoader.<init>(ComboIocLoader.java:90)
	at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:15)
	... 16 more
十二月 16, 2016 5:55:40 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
org.nutz.mvc.LoadingException: java.lang.RuntimeException: java.lang.ClassNotFoundException: async
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:17)
	at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
	at org.nutz.lang.Mirror.born(Mirror.java:931)
	at org.nutz.lang.Lang.wrapThrow(Lang.java:164)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:120)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:78)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4658)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5277)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: async
	at org.nutz.lang.Lang.wrapThrow(Lang.java:148)
	at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:18)
	at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:356)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:97)
	... 14 more
Caused by: java.lang.ClassNotFoundException: async
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1139)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at org.nutz.lang.Lang.loadClass(Lang.java:1799)
	at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:105)
	at org.nutz.ioc.loader.combo.ComboIocLoader.<init>(ComboIocLoader.java:90)
	at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:15)
	... 16 more

十二月 16, 2016 5:55:40 下午 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, 2016 5:55:40 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/nutzbook] startup failed due to previous errors
十二月 16, 2016 5:55:40 下午 org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
严重: The web application [nutzbook] created a ThreadLocal with key of type [org.nutz.mvc.NutMvcContext$1] (value [org.nutz.mvc.NutMvcContext$1@693508e6]) and a value of type [org.nutz.lang.util.SimpleContext] (value [{
}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
十二月 16, 2016 5:55:40 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8080"]
十二月 16, 2016 5:55:40 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8009"]
十二月 16, 2016 5:55:40 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 1448 ms

6 回复

请换上nutz 1.r.59

你好,我这次换上了hutz 1.r.59.这次tomcat启动正常了,但是没有正确插入数据到mysql啊,什么原因,也没报错。,日志如下:

十二月 16, 2016 9:31:36 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:nutzbook' did not find a matching property.
十二月 16, 2016 9:31:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/8.0.33
十二月 16, 2016 9:31:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Mar 18 2016 20:31:49 UTC
十二月 16, 2016 9:31:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         8.0.33.0
十二月 16, 2016 9:31:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Windows 7
十二月 16, 2016 9:31:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            6.1
十二月 16, 2016 9:31:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
十二月 16, 2016 9:31:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             E:\Programs\Java\jdk8_111\jre
十二月 16, 2016 9:31:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.8.0_111-b14
十二月 16, 2016 9:31:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
十二月 16, 2016 9:31:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
十二月 16, 2016 9:31:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         D:\nutzbook\apache-tomcat-8.0.33
十二月 16, 2016 9:31:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
十二月 16, 2016 9:31:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\nutzbook\apache-tomcat-8.0.33
十二月 16, 2016 9:31:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
十二月 16, 2016 9:31:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\nutzbook\apache-tomcat-8.0.33\endorsed
十二月 16, 2016 9:31:36 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
十二月 16, 2016 9:31:36 下午 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: E:\Programs\Java\jdk8_111\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;E:/Programs/Java/jdk1.7.0_06/bin/../jre/bin/client;E:/Programs/Java/jdk1.7.0_06/bin/../jre/bin;E:/Programs/Java/jdk1.7.0_06/bin/../jre/lib/i386;E:\MentorGraphics\Capital2015.1\bin;E:\MentorGraphics\Capital2015.1\jre\bin;E:\MentorGraphics\Capital2015.1\jre\bin\client;C:\ProgramData\Oracle\Java\javapath;E:\MentorGraphics\Capital2012.1\bin;E:\MentorGraphics\Capital2011.1\jre\bin;E:\MentorGraphics\Capital2011.1\jre\bin\client;E:\MentorGraphics\Capital2012.1\jre\bin;E:\MentorGraphics\Capital2012.1\jre\bin\client;E:\Programs\Java\jdk1.6.0_45\bin;E:\Programs\Java\jdk1.6.0_45\jre\bin;E:\MentorGraphics\Capital2010_1\jre\bin;E:\MentorGraphics\Capital2010_1\jre\bin\client;E:\MentorGraphics\PCB\Helper\7.9.5EE\SDD_HOME\common\win32\bin;E:\MentorGraphics\PCB\Helper\7.9.5EE\SDD_HOME\common\win32\lib;E:\MentorGraphics\PCB\Helper\7.9.5EE\MGC_HOME.ixn\bin;E:\MentorGraphics\PCB\Helper\7.9.5EE\MGC_HOME.ixn\lib;E:\MentorGraphics\Capital2010.1\bin;E:\MentorGraphics\Capital2010.1\jre\bin;E:\MentorGraphics\Capital2010.1\jre\bin\client;E:\MentorGraphics\Capital2014.1\bin;E:\MentorGraphics\Capital2014.1\jre\bin;E:\MentorGraphics\Capital2014.1\jre\bin\client;E:\Programs\oracle\product\10.2.0\db_2\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;E:\Program Files\TortoiseSVN\bin;E:/AllPlugins/apache-ant-1.8.2/bin;E:\Programs\NSIS;E:\AllPlugins\apache-maven-3.0.4\bin;D:\Program Files (x86)\Brackets\command;C:\Program Files (x86)\Autodesk\Backburner\;C:\Program Files\Common Files\Autodesk Shared\;%M2_HOME%\bin;D:\Program Files (x86)\Git\cmd;%VC6%;D:\Program Files (x86)\Go\bin;E:\MentorGraphics\Capital2010.1;C:\Program Files (x86)\MySQL\MySQL Server 5.0\bin;D:\Program Files (x86)\Tesseract-OCR;E:\MentorGraphics\PCB\Helper\7.9.5EE\SDD_HOME\common\win32\bin;E:\MentorGraphics\PCB\Helper\7.9.5EE\SDD_HOME\common\win32\lib;E:\MentorGraphics\PCB\Helper\7.9.5EE\MGC_HOME.ixn\bin;E:\MentorGraphics\PCB\Helper\7.9.5EE\MGC_HOME.ixn\lib;E:\MentorGraphics\Capital2010.1\bin;E:\MentorGraphics\Capital2010.1\jre\bin;E:\MentorGraphics\Capital2010.1\jre\bin\client;E:\Programs\Java\jdk1.6.0_45\bin;E:\Programs\Java\jdk1.6.0_45\jre\bin;E:\MentorGraphics\Capital2014.1\bin;E:\MentorGraphics\Capital2014.1\jre\bin;E:\MentorGraphics\Capital2014.1\jre\bin\client;E:\Programs\oracle\product\10.2.0\db_2\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;E:\Program Files\TortoiseSVN\bin;E:/AllPlugins/apache-ant-1.8.2/bin;E:\Programs\NSIS;E:\AllPlugins\apache-maven-3.0.4\bin;D:\Program Files (x86)\Brackets\command;C:\Program Files (x86)\Autodesk\Backburner\;C:\Program Files\Common Files\Autodesk Shared\;E:\AllPlugins\apache-maven-3.0.4\bin;D:\Program Files (x86)\Git\cmd;D:\Program Files (x86)\Microsoft Visual Studio\VC98\Bin;E:\MentorGraphics\Capital2010.1\lib;D:\nutzbook\eclipse;;.
十二月 16, 2016 9:31:37 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-nio-8080"]
十二月 16, 2016 9:31:37 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
十二月 16, 2016 9:31:37 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-nio-8009"]
十二月 16, 2016 9:31:37 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
十二月 16, 2016 9:31:37 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 903 ms
十二月 16, 2016 9:31:37 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
十二月 16, 2016 9:31:37 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.0.33
十二月 16, 2016 9:31:38 下午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
[INFO ] 21:31:38.321 org.nutz.mvc.NutFilter._init(NutFilter.java:81) - NutFilter[nutz] starting ...
[DEBUG] 21:31:38.492 org.nutz.resource.Scans.<init>(Scans.java:509) - Locations for Scans:
[Dir[path=D:\nutzbook\eclipse], Jar[path=D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\nutz-1.r.59.jar], Dir[path=D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\classes], Jar[path=D:\nutzbook\apache-tomcat-8.0.33\bin\bootstrap.jar], Jar[path=D:\nutzbook\apache-tomcat-8.0.33\bin\tomcat-juli.jar], Jar[path=E:\Programs\Java\jdk8_111\lib\tools.jar]]
[DEBUG] 21:31:38.608 org.nutz.resource.Scans.init(Scans.java:105) - Locations for Scans:
{D:\nutzbook\eclipse=Dir[path=D:\nutzbook\eclipse], D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\nutz-1.r.59.jar=Jar[path=D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\nutz-1.r.59.jar], D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\classes=Dir[path=D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\classes], D:\nutzbook\apache-tomcat-8.0.33\bin\bootstrap.jar=Jar[path=D:\nutzbook\apache-tomcat-8.0.33\bin\bootstrap.jar], D:\nutzbook\apache-tomcat-8.0.33\bin\tomcat-juli.jar=Jar[path=D:\nutzbook\apache-tomcat-8.0.33\bin\tomcat-juli.jar], E:\Programs\Java\jdk8_111\lib\tools.jar=Jar[path=E:\Programs\Java\jdk8_111\lib\tools.jar], D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\druid-1.0.13.jar=Jar[path=D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\druid-1.0.13.jar], D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\log4j.jar=Jar[path=D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\log4j.jar], D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\mysql-connector-java-5.1.34.jar=Jar[path=D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nutzbook\WEB-INF\lib\mysql-connector-java-5.1.34.jar]}
[DEBUG] 21:31:38.676 org.nutz.castor.Castors.reload(Castors.java:115) - Using 94 castor for Castors
[DEBUG] 21:31:38.685 org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:59) - Loading by class org.nutz.mvc.impl.NutLoading
[INFO ] 21:31:38.688 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) - Nutz Version : 1.r.59 
[INFO ] 21:31:38.688 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) - Nutz.Mvc[nutz] is initializing ...
[DEBUG] 21:31:38.688 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) - Web Container Information:
[DEBUG] 21:31:38.689 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) -  - Default Charset : UTF-8
[DEBUG] 21:31:38.689 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) -  - Current . path  : D:\nutzbook\eclipse\.
[DEBUG] 21:31:38.690 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) -  - Java Version    : 1.8.0_111
[DEBUG] 21:31:38.690 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) -  - File separator  : \
[DEBUG] 21:31:38.690 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) -  - Timezone        : Asia/Shanghai
[DEBUG] 21:31:38.690 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) -  - OS              : Windows 7 amd64
[DEBUG] 21:31:38.690 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) -  - ServerInfo      : Apache Tomcat/8.0.33
[DEBUG] 21:31:38.690 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) -  - Servlet API     : 3.1
[DEBUG] 21:31:38.691 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) -  - ContextPath     : /nutzbook
[DEBUG] 21:31:38.691 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74) -  - context.tempdir : D:\nutzbook\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\nutzbook
[DEBUG] 21:31:38.691 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75) -  - MainModule      : net.wendal.nutzbook.MainModule
[DEBUG] 21:31:38.693 org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:238) - >> app.root = D:/nutzbook/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/nutzbook
[DEBUG] 21:31:38.699 org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:379) - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx", "*async"],init=[])
[DEBUG] 21:31:38.735 org.nutz.resource.Scans.scan(Scans.java:274) - Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
[DEBUG] 21:31:38.735 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:48) - loading ioc js config from [dao.js]
[DEBUG] 21:31:38.741 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:56) - Loaded 2 bean define from path=[ioc/] --> [dataSource, dao]
[DEBUG] 21:31:38.744 org.nutz.resource.Scans.scan(Scans.java:274) - Found 3 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
[WARN ] 21:31:38.755 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:55) - NONE Annotation-Class found!! Check your ioc configure!! packages=[net.wendal.nutzbook]
[DEBUG] 21:31:38.755 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:40) - Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
[DEBUG] 21:31:38.757 org.nutz.ioc.aop.SimpleAopMaker.<init>(SimpleAopMaker.java:79) - Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
[INFO ] 21:31:38.760 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:98) - NutIoc init begin ...
[INFO ] 21:31:38.763 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:115) - ... NutIoc init complete
[INFO ] 21:31:38.766 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:159) - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
[DEBUG] 21:31:38.768 org.nutz.mvc.impl.NutLoading.createViewMakers(NutLoading.java:369) - @Views(DefaultViewMaker.class)
[DEBUG] 21:31:38.776 org.nutz.mvc.impl.NutLoading.createChainMaker(NutLoading.java:266) - @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
[DEBUG] 21:31:38.787 org.nutz.mvc.impl.Loadings.scanModules(Loadings.java:154) - module class location 'file:/D:/nutzbook/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/nutzbook/WEB-INF/classes/'
[DEBUG] 21:31:38.788 org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:184) -  > scan 'net.wendal.nutzbook'
[DEBUG] 21:31:38.791 org.nutz.resource.Scans.scan(Scans.java:274) - Found 3 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
[WARN ] 21:31:38.791 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:184) - None module classes found!!!
[WARN ] 21:31:38.791 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:218) - None @At found in any modules class!!
[DEBUG] 21:31:38.792 org.nutz.mvc.impl.NutLoading.evalLocalization(NutLoading.java:334) - @Localization not define
[INFO ] 21:31:38.794 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:141) - Nutz.Mvc[nutz] is up in 102ms
十二月 16, 2016 9:31:38 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8080"]
十二月 16, 2016 9:31:38 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8009"]
十二月 16, 2016 9:31:38 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 1475 ms

正在写MainSetup吗? 贴出来看看?? 是不是init和depose写反了?

你好,我是直接从网站上复制的,MainSetup.java代码如下:

package net.wendal.nutzbook;

import java.util.Date;

import net.wendal.nutzbook.bean.User;

import org.nutz.dao.Dao;
import org.nutz.dao.util.Daos;
import org.nutz.ioc.Ioc;
import org.nutz.mvc.NutConfig;
import org.nutz.mvc.Setup;

public class MainSetup implements Setup {

    public void init(NutConfig conf) {
        Ioc ioc = conf.getIoc();
        Dao dao = ioc.get(Dao.class);
        Daos.createTablesInPackage(dao, "net.wendal.nutzbook", 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);
        }
    }

    public void destroy(NutConfig conf) {
    }

}

MainModule的@SetupBy忘记写了?

哦,是我不仔细了,没看到这个图:http://nutzbook.wendal.net/setup30mins/setupby.html
确实@SetupBy忘记写了。现在执行成功了,数据库也插入数据了,谢谢。@_@

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