NutzCN Logo
问答 在配置Nutz环境时,刚配完MainSetup,启动服务器就报错。
发布于 2693天前 作者 qq_a2ad61b2 1689 次浏览 复制 上一个帖子 下一个帖子
标签:

八月 08, 2017 5:11:32 下午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\java\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/java/bin/server;D:/java/bin;D:/java/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\jdk1.8\bin;E:\MySQL\bin;D:\maven\apache-maven-3.3.9\bin;;D:\eclipseEE\eclipse;;.
八月 08, 2017 5:11:32 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:HoverBoard' did not find a matching property.
八月 08, 2017 5:11:32 下午 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.
八月 08, 2017 5:11:33 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
八月 08, 2017 5:11:33 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
八月 08, 2017 5:11:33 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1125 ms
八月 08, 2017 5:11:33 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
八月 08, 2017 5:11:33 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.52
八月 08, 2017 5:11:34 下午 org.apache.catalina.util.SessionIdGenerator createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [465] milliseconds.
八月 08, 2017 5:11:34 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter HoverBoard
java.lang.ClassNotFoundException: org.HoverBoard.mvc.NutFilter
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1718)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:529)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:511)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:139)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

八月 08, 2017 5:11:34 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
八月 08, 2017 5:11:34 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/HoverBoard] startup failed due to previous errors
八月 08, 2017 5:11:35 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
java.lang.IllegalAccessException: Class org.apache.catalina.core.DefaultInstanceManager can not access a member of class org.nutz.Nutz with modifiers ""
at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:140)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

八月 08, 2017 5:11:35 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
八月 08, 2017 5:11:35 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/nutzbook] startup failed due to previous errors
八月 08, 2017 5:11:36 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\docs
八月 08, 2017 5:11:36 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\examples
八月 08, 2017 5:11:36 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
八月 08, 2017 5:11:36 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
八月 08, 2017 5:11:36 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@3651a82c')
八月 08, 2017 5:11:36 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\host-manager
八月 08, 2017 5:11:37 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\manager
八月 08, 2017 5:11:37 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\ROOT
八月 08, 2017 5:11:37 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
八月 08, 2017 5:11:37 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
八月 08, 2017 5:11:37 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 4090 ms

26 回复

用"插入代码或日志片段" 按钮重新发一下

八月 08, 2017 5:11:32 下午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\java\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/java/bin/server;D:/java/bin;D:/java/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\jdk1.8\bin;E:\MySQL\bin;D:\maven\apache-maven-3.3.9\bin;;D:\eclipseEE\eclipse;;.
八月 08, 2017 5:11:32 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:HoverBoard' did not find a matching property.
八月 08, 2017 5:11:32 下午 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.
八月 08, 2017 5:11:33 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
八月 08, 2017 5:11:33 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
八月 08, 2017 5:11:33 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1125 ms
八月 08, 2017 5:11:33 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
八月 08, 2017 5:11:33 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.52
八月 08, 2017 5:11:34 下午 org.apache.catalina.util.SessionIdGenerator createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [465] milliseconds.
八月 08, 2017 5:11:34 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter HoverBoard
java.lang.ClassNotFoundException: org.HoverBoard.mvc.NutFilter
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1718)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
	at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:529)
	at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:511)
	at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:139)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

八月 08, 2017 5:11:34 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
八月 08, 2017 5:11:34 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/HoverBoard] startup failed due to previous errors
八月 08, 2017 5:11:35 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
java.lang.IllegalAccessException: Class org.apache.catalina.core.DefaultInstanceManager can not access a member of class org.nutz.Nutz with modifiers ""
	at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:140)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

八月 08, 2017 5:11:35 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
八月 08, 2017 5:11:35 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/nutzbook] startup failed due to previous errors
八月 08, 2017 5:11:36 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\docs
八月 08, 2017 5:11:36 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\examples
八月 08, 2017 5:11:36 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
八月 08, 2017 5:11:36 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
八月 08, 2017 5:11:36 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@3651a82c')
八月 08, 2017 5:11:36 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\host-manager
八月 08, 2017 5:11:37 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\manager
八月 08, 2017 5:11:37 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\ROOT
八月 08, 2017 5:11:37 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
八月 08, 2017 5:11:37 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
八月 08, 2017 5:11:37 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 4090 ms

nutz什么版本?

好的
我试试
先谢谢!

还是不行。jar包换成了1.r.62.
错误代码如下:

八月 08, 2017 7:49:18 下午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\java\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/java/bin/server;D:/java/bin;D:/java/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\jdk1.8\bin;E:\MySQL\bin;D:\maven\apache-maven-3.3.9\bin;;D:\eclipseEE\eclipse;;.
八月 08, 2017 7:49:19 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:HoverBoard' did not find a matching property.
八月 08, 2017 7:49:19 下午 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.
八月 08, 2017 7:49:19 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
八月 08, 2017 7:49:19 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
八月 08, 2017 7:49:19 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 911 ms
八月 08, 2017 7:49:19 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
八月 08, 2017 7:49:19 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.52
八月 08, 2017 7:49:20 下午 org.apache.catalina.util.SessionIdGenerator createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [307] milliseconds.
八月 08, 2017 7:49:20 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter HoverBoard
java.lang.ClassNotFoundException: org.HoverBoard.mvc.NutFilter
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1718)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
	at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:529)
	at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:511)
	at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:139)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

八月 08, 2017 7:49:20 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
八月 08, 2017 7:49:20 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/HoverBoard] startup failed due to previous errors
八月 08, 2017 7:49:21 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
java.lang.IllegalAccessException: Class org.apache.catalina.core.DefaultInstanceManager can not access a member of class org.nutz.Nutz with modifiers ""
	at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:140)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

八月 08, 2017 7:49:21 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
八月 08, 2017 7:49:21 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/nutzbook] startup failed due to previous errors
八月 08, 2017 7:49:21 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\docs
八月 08, 2017 7:49:21 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\examples
八月 08, 2017 7:49:22 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
八月 08, 2017 7:49:22 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
八月 08, 2017 7:49:22 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@602f092a')
八月 08, 2017 7:49:22 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\host-manager
八月 08, 2017 7:49:22 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\manager
八月 08, 2017 7:49:22 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\ROOT
八月 08, 2017 7:49:22 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
八月 08, 2017 7:49:22 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
八月 08, 2017 7:49:22 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 2918 ms

换tomcat 8.6 最新版吧, 反正你也在用jdk8了

写错, 是8.5

等等, 难道是你的web.xml写错了? 贴出来看看

java.lang.ClassNotFoundException: org.HoverBoard.mvc.NutFilter 这是啥??? 继承的类?

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  <display-name>nutzbook</display-name>
    <filter>
      <filter-name>nutz</filter-name>
      <filter-class>org.nutz.Nutz</filter-class>
      <init-param>
          <param-name>modules</param-name>
          <param-value>org.HoverBoard.mvc.NutFilter</param-value>
      </init-param>
  </filter>
  <filter-mapping>
      <filter-name>nutz</filter-name>
      <url-pattern>/*</url-pattern>
  </filter-mapping>
  
  
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>
</web-app>

错了,是这个。

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  <display-name>nutzbook</display-name>
    <filter>
      <filter-name>nutz</filter-name>
      <filter-class>org.nutz.Nutz</filter-class>
      <init-param>
          <param-name>modules</param-name>
          <param-value>net.HoverBoard.nutzbook.MainModule</param-value>
      </init-param>
  </filter>
  <filter-mapping>
      <filter-name>nutz</filter-name>
      <url-pattern>/*</url-pattern>
  </filter-mapping>
  
  
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>
</web-app>
<filter-class>org.nutz.mvc.NutFilter</filter-class>

还是错的,刚初始化数据完,一跑起来就错,

八月 08, 2017 9:32:59 下午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\java\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/java/bin/server;D:/java/bin;D:/java/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\jdk1.8\bin;E:\MySQL\bin;D:\maven\apache-maven-3.3.9\bin;;D:\eclipseEE\eclipse;;.
八月 08, 2017 9:33:00 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:HoverBoard' did not find a matching property.
八月 08, 2017 9:33:00 下午 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.
八月 08, 2017 9:33:00 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
八月 08, 2017 9:33:00 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
八月 08, 2017 9:33:00 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1095 ms
八月 08, 2017 9:33:00 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
八月 08, 2017 9:33:00 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.52
八月 08, 2017 9:33:02 下午 org.apache.catalina.util.SessionIdGenerator createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [422] milliseconds.
八月 08, 2017 9:33:02 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter HoverBoard
java.lang.ClassNotFoundException: org.HoverBoard.mvc.NutFilter
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1718)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
	at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:529)
	at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:511)
	at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:139)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

八月 08, 2017 9:33:02 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
八月 08, 2017 9:33:02 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/HoverBoard] startup failed due to previous errors
17-08-08 21:33:03.249 INFO [localhost-startStop-1] Select SystemLog as Nutz.Log implement
17-08-08 21:33:03.262 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
17-08-08 21:33:03.307 DEBUG [localhost-startStop-1] Locations count=3 time use 10ms
17-08-08 21:33:03.449 DEBUG [localhost-startStop-1] Locations count=7 time use 139ms
17-08-08 21:33:03.576 DEBUG [localhost-startStop-1] Using 95 castor for Castors
17-08-08 21:33:03.603 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
17-08-08 21:33:03.611 INFO [localhost-startStop-1] Nutz Version : 1.r.62 
17-08-08 21:33:03.613 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
17-08-08 21:33:03.614 DEBUG [localhost-startStop-1] Web Container Information:
17-08-08 21:33:03.617 DEBUG [localhost-startStop-1]  - Default Charset : UTF-8
17-08-08 21:33:03.617 DEBUG [localhost-startStop-1]  - Current . path  : D:\eclipseEE\eclipse\.
17-08-08 21:33:03.618 DEBUG [localhost-startStop-1]  - Java Version    : 1.8.0_131
17-08-08 21:33:03.618 DEBUG [localhost-startStop-1]  - File separator  : \
17-08-08 21:33:03.619 DEBUG [localhost-startStop-1]  - Timezone        : Asia/Shanghai
17-08-08 21:33:03.625 DEBUG [localhost-startStop-1]  - OS              : Windows 10 amd64
17-08-08 21:33:03.629 DEBUG [localhost-startStop-1]  - ServerInfo      : Apache Tomcat/7.0.52
17-08-08 21:33:03.629 DEBUG [localhost-startStop-1]  - Servlet API     : 3.0
17-08-08 21:33:03.630 DEBUG [localhost-startStop-1]  - ContextPath     : /nutzbook
17-08-08 21:33:03.630 DEBUG [localhost-startStop-1]  - context.tempdir : D:\tomcat\apache-tomcat-7.0.52\work\Catalina\localhost\nutzbook
17-08-08 21:33:03.631 DEBUG [localhost-startStop-1]  - MainModule      : net.HoverBoard.nutzbook.MainModule
17-08-08 21:33:03.631 DEBUG [localhost-startStop-1] >> app.root = D:/tomcat/apache-tomcat-7.0.52/webapps/nutzbook
17-08-08 21:33:03.638 DEBUG [localhost-startStop-1] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx", "*async"],init=[])
17-08-08 21:33:03.800 DEBUG [localhost-startStop-1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
17-08-08 21:33:03.801 DEBUG [localhost-startStop-1] loading [ioc]
17-08-08 21:33:03.808 DEBUG [localhost-startStop-1] Loaded 0 bean define from path=[ioc/] --> []
17-08-08 21:33:03.833 DEBUG [localhost-startStop-1] Found 0 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
17-08-08 21:33:03.833 WARN [localhost-startStop-1] NONE Annotation-Class found!! Check your ioc configure!! packages=[net.wendal.nutzbook]
17-08-08 21:33:03.842 DEBUG [localhost-startStop-1] Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
17-08-08 21:33:03.891 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
17-08-08 21:33:03.897 INFO [localhost-startStop-1] NutIoc init begin ...
17-08-08 21:33:03.901 INFO [localhost-startStop-1] ... NutIoc init complete
17-08-08 21:33:03.912 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
17-08-08 21:33:03.918 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker.class)
17-08-08 21:33:03.931 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
17-08-08 21:33:03.947 DEBUG [localhost-startStop-1] module class location 'file:/D:/tomcat/apache-tomcat-7.0.52/webapps/nutzbook/WEB-INF/classes/net/HoverBoard/nutzbook/MainModule.class'
17-08-08 21:33:03.947 DEBUG [localhost-startStop-1]  > scan 'net.HoverBoard.nutzbook'
17-08-08 21:33:03.957 DEBUG [localhost-startStop-1] Found 4 resource by src( net/HoverBoard/nutzbook/ ) , regex( ^.+[.]class$ )
17-08-08 21:33:03.973 DEBUG [localhost-startStop-1]    >> add 'net.HoverBoard.nutzbook.module.UserModule'
17-08-08 21:33:04.057 WARN [localhost-startStop-1] Moudle with @InjectName('userModule') or @IocBean('userModule') but no such ioc bean found!! Pls check your ioc configure!!
17-08-08 21:33:04.059 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
17-08-08 21:33:04.077 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
17-08-08 21:33:04.100 DEBUG [localhost-startStop-1]    '/user/count'               >> (UserModule.java:23).count            : int        | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
17-08-08 21:33:04.100 INFO [localhost-startStop-1] Found 1 module methods
17-08-08 21:33:04.101 DEBUG [localhost-startStop-1] @Localization not define
17-08-08 21:33:04.102 INFO [localhost-startStop-1] Setup application...
17-08-08 21:33:04.112 DEBUG [localhost-startStop-1] Get 'dao'<interface org.nutz.dao.Dao>
17-08-08 21:33:04.114 DEBUG [localhost-startStop-1] Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
17-08-08 21:33:04.123 DEBUG [localhost-startStop-1] 	 >> Load definition name=$aop_async
17-08-08 21:33:04.139 DEBUG [localhost-startStop-1] Found IocObject($aop_async) in AsyncAopIocLoader@2037811075
17-08-08 21:33:04.140 DEBUG [localhost-startStop-1] 	 >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
17-08-08 21:33:04.143 DEBUG [localhost-startStop-1] Save object '$aop_async' to [app] 
17-08-08 21:33:04.151 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
17-08-08 21:33:04.151 DEBUG [localhost-startStop-1] 	 >> Load definition name=dao
17-08-08 21:33:04.152 ERROR [localhost-startStop-1] Error happend during start serivce!
org.nutz.ioc.IocException: IocBean[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 net.HoverBoard.nutzbook.MainSetup.init(MainSetup.java:18)
	at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:274)
	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:91)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
	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:4809)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.nutz.ioc.ObjectLoadException: Object 'dao' without define!
	at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:166)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
	... 20 more
17-08-08 21:33:04.153 ERROR [localhost-startStop-1] try to depose ioc
17-08-08 21:33:04.154 INFO [localhost-startStop-1] org.nutz.ioc.impl.NutIoc@689383309 is closing. startup date [17-08-08 21:33:03.897]
17-08-08 21:33:04.155 DEBUG [localhost-startStop-1] Depose object '$aop_async' ...
17-08-08 21:33:04.155 INFO [localhost-startStop-1] org.nutz.ioc.impl.NutIoc@689383309 is deposed. startup date [17-08-08 21:33:03.897]
八月 08, 2017 9:33:04 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
org.nutz.mvc.LoadingException: org.nutz.ioc.IocException: IocBean[dao] For object [dao] - type:[interface org.nutz.dao.Dao]
	at org.nutz.mvc.LoadingException$FC$9a86caf9ff5d3b587784fcdf555a4a7d.invoke(LoadingException.java)
	at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
	at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19)
	at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
	at org.nutz.lang.Mirror.born(Mirror.java:990)
	at org.nutz.lang.Lang.wrapThrow(Lang.java:200)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:135)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java: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:4809)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.nutz.ioc.IocException: IocBean[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 net.HoverBoard.nutzbook.MainSetup.init(MainSetup.java:18)
	at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:274)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:121)
	... 15 more
Caused by: org.nutz.ioc.ObjectLoadException: Object 'dao' without define!
	at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:166)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
	... 20 more

八月 08, 2017 9:33:04 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
八月 08, 2017 9:33:04 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/nutzbook] startup failed due to previous errors
八月 08, 2017 9:33:04 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\docs
八月 08, 2017 9:33:04 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\examples
八月 08, 2017 9:33:05 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
八月 08, 2017 9:33:05 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
八月 08, 2017 9:33:05 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@d3e1470')
八月 08, 2017 9:33:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\host-manager
八月 08, 2017 9:33:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\manager
八月 08, 2017 9:33:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\ROOT
八月 08, 2017 9:33:05 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
八月 08, 2017 9:33:05 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
八月 08, 2017 9:33:05 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 4845 ms

dao.js 没抄对

17-08-08 21:33:03.800 DEBUG [localhost-startStop-1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
17-08-08 21:33:03.801 DEBUG [localhost-startStop-1] loading [ioc]
17-08-08 21:33:03.808 DEBUG [localhost-startStop-1] Loaded 0 bean define from path=[ioc/] --> []

这个是dao.js的代码

var ioc = {
        dataSource : {
            type : "com.alibaba.druid.pool.DruidAbstractDataSource",
            events : {
                create : "init",
                depose : 'close'
            },
            fields : {
            	driverClassName:'org.mysql.Driver',
                url : "jdbc:mysql:nutzbook"
            }
        },
        dao : {
            type : "org.nutz.dao.impl.NutDao",
            args : [{refer:"dataSource"}]
        }
};

com.alibaba.druid.pool.DruidAbstractDataSource 很好奇你抄哪个文档的? 给我个链接看看??

没有。文档上面我也有跟着写,然后,你那个视频讲解,我也有跟着看。两边结合的

放弃视频, 不要结合了

好的
我再试试。

var ioc = {
        dataSource : {
            type : "com.alibaba.druid.pool.DruidDataSource",
            events : {
                create : "init",
                depose : 'close'
            },
            fields : {
                url : "jdbc:mysql://127.0.0.1:3306/nutzbook",
                username : "root",
                password : "root",
                testWhileIdle : true, // 非常重要,预防mysql的8小时timeout问题
                //validationQuery : "select 1" , // Oracle的话需要改成 select 1 from dual
                maxActive : 100
            }
        },
        dao : {
            type : "org.nutz.dao.impl.NutDao",
            args : [{refer:"dataSource"}]
        }
};

这是我跟着文档弄得dao,还是错的

错误日志,如下:

八月 08, 2017 10:30:22 下午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\java\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/java/bin/server;D:/java/bin;D:/java/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\jdk1.8\bin;E:\MySQL\bin;D:\maven\apache-maven-3.3.9\bin;;D:\eclipseEE\eclipse;;.
八月 08, 2017 10:30:22 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:HoverBoard' did not find a matching property.
八月 08, 2017 10:30:22 下午 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.
八月 08, 2017 10:30:22 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
八月 08, 2017 10:30:23 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
八月 08, 2017 10:30:23 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 972 ms
八月 08, 2017 10:30:23 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
八月 08, 2017 10:30:23 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.52
八月 08, 2017 10:30:24 下午 org.apache.catalina.util.SessionIdGenerator createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [336] milliseconds.
八月 08, 2017 10:30:24 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter HoverBoard
java.lang.ClassNotFoundException: org.HoverBoard.mvc.NutFilter
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1718)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
	at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:529)
	at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:511)
	at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:139)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

八月 08, 2017 10:30:24 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
八月 08, 2017 10:30:24 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/HoverBoard] startup failed due to previous errors
17-08-08 22:30:25.429 INFO [localhost-startStop-1] Select SystemLog as Nutz.Log implement
17-08-08 22:30:25.441 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
17-08-08 22:30:25.460 DEBUG [localhost-startStop-1] Locations count=3 time use 6ms
17-08-08 22:30:25.516 DEBUG [localhost-startStop-1] Locations count=7 time use 55ms
17-08-08 22:30:25.623 DEBUG [localhost-startStop-1] Using 95 castor for Castors
17-08-08 22:30:25.648 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
17-08-08 22:30:25.652 INFO [localhost-startStop-1] Nutz Version : 1.r.62 
17-08-08 22:30:25.652 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
17-08-08 22:30:25.653 DEBUG [localhost-startStop-1] Web Container Information:
17-08-08 22:30:25.655 DEBUG [localhost-startStop-1]  - Default Charset : UTF-8
17-08-08 22:30:25.655 DEBUG [localhost-startStop-1]  - Current . path  : D:\eclipseEE\eclipse\.
17-08-08 22:30:25.656 DEBUG [localhost-startStop-1]  - Java Version    : 1.8.0_131
17-08-08 22:30:25.657 DEBUG [localhost-startStop-1]  - File separator  : \
17-08-08 22:30:25.661 DEBUG [localhost-startStop-1]  - Timezone        : Asia/Shanghai
17-08-08 22:30:25.663 DEBUG [localhost-startStop-1]  - OS              : Windows 10 amd64
17-08-08 22:30:25.664 DEBUG [localhost-startStop-1]  - ServerInfo      : Apache Tomcat/7.0.52
17-08-08 22:30:25.665 DEBUG [localhost-startStop-1]  - Servlet API     : 3.0
17-08-08 22:30:25.666 DEBUG [localhost-startStop-1]  - ContextPath     : /nutzbook
17-08-08 22:30:25.667 DEBUG [localhost-startStop-1]  - context.tempdir : D:\tomcat\apache-tomcat-7.0.52\work\Catalina\localhost\nutzbook
17-08-08 22:30:25.670 DEBUG [localhost-startStop-1]  - MainModule      : net.HoverBoard.nutzbook.MainModule
17-08-08 22:30:25.671 DEBUG [localhost-startStop-1] >> app.root = D:/tomcat/apache-tomcat-7.0.52/webapps/nutzbook
17-08-08 22:30:25.675 DEBUG [localhost-startStop-1] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx", "*async"],init=[])
17-08-08 22:30:25.765 DEBUG [localhost-startStop-1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
17-08-08 22:30:25.768 DEBUG [localhost-startStop-1] loading [ioc]
17-08-08 22:30:25.783 DEBUG [localhost-startStop-1] Loaded 0 bean define from path=[ioc/] --> []
17-08-08 22:30:25.800 DEBUG [localhost-startStop-1] Found 0 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
17-08-08 22:30:25.800 WARN [localhost-startStop-1] NONE Annotation-Class found!! Check your ioc configure!! packages=[net.wendal.nutzbook]
17-08-08 22:30:25.808 DEBUG [localhost-startStop-1] Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
17-08-08 22:30:25.832 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
17-08-08 22:30:25.836 INFO [localhost-startStop-1] NutIoc init begin ...
17-08-08 22:30:25.839 INFO [localhost-startStop-1] ... NutIoc init complete
17-08-08 22:30:25.842 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
17-08-08 22:30:25.844 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker.class)
17-08-08 22:30:25.857 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
17-08-08 22:30:25.869 DEBUG [localhost-startStop-1] module class location 'file:/D:/tomcat/apache-tomcat-7.0.52/webapps/nutzbook/WEB-INF/classes/net/HoverBoard/nutzbook/MainModule.class'
17-08-08 22:30:25.869 DEBUG [localhost-startStop-1]  > scan 'net.HoverBoard.nutzbook'
17-08-08 22:30:25.876 DEBUG [localhost-startStop-1] Found 4 resource by src( net/HoverBoard/nutzbook/ ) , regex( ^.+[.]class$ )
17-08-08 22:30:25.885 DEBUG [localhost-startStop-1]    >> add 'net.HoverBoard.nutzbook.module.UserModule'
17-08-08 22:30:25.919 WARN [localhost-startStop-1] Moudle with @InjectName('userModule') or @IocBean('userModule') but no such ioc bean found!! Pls check your ioc configure!!
17-08-08 22:30:25.920 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
17-08-08 22:30:25.932 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
17-08-08 22:30:25.959 DEBUG [localhost-startStop-1]    '/user/count'               >> (UserModule.java:23).count            : int        | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
17-08-08 22:30:25.960 INFO [localhost-startStop-1] Found 1 module methods
17-08-08 22:30:25.961 DEBUG [localhost-startStop-1] @Localization not define
17-08-08 22:30:25.962 INFO [localhost-startStop-1] Setup application...
17-08-08 22:30:25.967 DEBUG [localhost-startStop-1] Get 'dao'<interface org.nutz.dao.Dao>
17-08-08 22:30:25.968 DEBUG [localhost-startStop-1] Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
17-08-08 22:30:25.969 DEBUG [localhost-startStop-1] 	 >> Load definition name=$aop_async
17-08-08 22:30:25.976 DEBUG [localhost-startStop-1] Found IocObject($aop_async) in AsyncAopIocLoader@2055688378
17-08-08 22:30:25.979 DEBUG [localhost-startStop-1] 	 >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
17-08-08 22:30:25.984 DEBUG [localhost-startStop-1] Save object '$aop_async' to [app] 
17-08-08 22:30:25.992 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
17-08-08 22:30:25.992 DEBUG [localhost-startStop-1] 	 >> Load definition name=dao
17-08-08 22:30:25.993 ERROR [localhost-startStop-1] Error happend during start serivce!
org.nutz.ioc.IocException: IocBean[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 net.HoverBoard.nutzbook.MainSetup.init(MainSetup.java:18)
	at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:274)
	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:91)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
	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:4809)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.nutz.ioc.ObjectLoadException: Object 'dao' without define!
	at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:166)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
	... 20 more
17-08-08 22:30:26.000 ERROR [localhost-startStop-1] try to depose ioc
17-08-08 22:30:26.000 INFO [localhost-startStop-1] org.nutz.ioc.impl.NutIoc@584827230 is closing. startup date [17-08-08 22:30:25.837]
17-08-08 22:30:26.001 DEBUG [localhost-startStop-1] Depose object '$aop_async' ...
17-08-08 22:30:26.002 INFO [localhost-startStop-1] org.nutz.ioc.impl.NutIoc@584827230 is deposed. startup date [17-08-08 22:30:25.837]
八月 08, 2017 10:30:26 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
org.nutz.mvc.LoadingException: org.nutz.ioc.IocException: IocBean[dao] For object [dao] - type:[interface org.nutz.dao.Dao]
	at org.nutz.mvc.LoadingException$FC$9a86caf9ff5d3b587784fcdf555a4a7d.invoke(LoadingException.java)
	at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
	at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19)
	at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
	at org.nutz.lang.Mirror.born(Mirror.java:990)
	at org.nutz.lang.Lang.wrapThrow(Lang.java:200)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:135)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java: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:4809)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.nutz.ioc.IocException: IocBean[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 net.HoverBoard.nutzbook.MainSetup.init(MainSetup.java:18)
	at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:274)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:121)
	... 15 more
Caused by: org.nutz.ioc.ObjectLoadException: Object 'dao' without define!
	at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:166)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
	... 20 more

八月 08, 2017 10:30:26 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
八月 08, 2017 10:30:26 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/nutzbook] startup failed due to previous errors
八月 08, 2017 10:30:26 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\docs
八月 08, 2017 10:30:26 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\examples
八月 08, 2017 10:30:26 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
八月 08, 2017 10:30:26 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
八月 08, 2017 10:30:26 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@56cf6f73')
八月 08, 2017 10:30:26 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\host-manager
八月 08, 2017 10:30:26 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\manager
八月 08, 2017 10:30:26 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tomcat\apache-tomcat-7.0.52\webapps\ROOT
八月 08, 2017 10:30:26 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
八月 08, 2017 10:30:26 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
八月 08, 2017 10:30:26 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 3884 ms

删除重新做吧, 乱改的.

貌似只能这样了
还是很感谢!

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