NutzCN Logo
问答 按照入门的教程搭建环境,但是启动后报 Search mapping for [GET] path=/ : NOT Action match
发布于 2429天前 作者 qq_5b55bc6f 4219 次浏览 复制 上一个帖子 下一个帖子
标签:

三月 23, 2018 5:12:26 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.0.36
三月 23, 2018 5:12:26 下午 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.
三月 23, 2018 5:12:27 下午 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.
18-03-23 17:12:27.914 INFO [localhost-startStop-1] Select SystemLog as Nutz.Log implement
18-03-23 17:12:28.122 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
18-03-23 17:12:28.149 DEBUG [localhost-startStop-1] Locations count=3 time use 8ms
18-03-23 17:12:28.159 DEBUG [localhost-startStop-1] Locations count=10 time use 10ms
18-03-23 17:12:28.179 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
18-03-23 17:12:28.185 INFO [localhost-startStop-1] Nutz Version : 1.r.65
18-03-23 17:12:28.185 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
18-03-23 17:12:28.186 DEBUG [localhost-startStop-1] Web Container Information:
18-03-23 17:12:28.187 DEBUG [localhost-startStop-1] - Default Charset : UTF-8
18-03-23 17:12:28.188 DEBUG [localhost-startStop-1] - Current . path : D:\eclipse-jee-mars-2-win32-x86_64\eclipse-jee-mars-2-win32-x86_64\eclipse.
18-03-23 17:12:28.188 DEBUG [localhost-startStop-1] - Java Version : 1.8.0_131
18-03-23 17:12:28.188 DEBUG [localhost-startStop-1] - File separator : \
18-03-23 17:12:28.188 DEBUG [localhost-startStop-1] - Timezone : Asia/Shanghai
18-03-23 17:12:28.189 DEBUG [localhost-startStop-1] - OS : Windows 7 amd64
18-03-23 17:12:28.189 DEBUG [localhost-startStop-1] - ServerInfo : Apache Tomcat/8.0.36
18-03-23 17:12:28.189 DEBUG [localhost-startStop-1] - Servlet API : 3.1
18-03-23 17:12:28.190 DEBUG [localhost-startStop-1] - ContextPath : /nutzbook
18-03-23 17:12:28.190 DEBUG [localhost-startStop-1] - context.tempdir : E:\NUTZ.metadata.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\nutzbook
18-03-23 17:12:28.190 DEBUG [localhost-startStop-1] - MainModule : net.wendal.nutzbook.MainModule
18-03-23 17:12:28.195 DEBUG [localhost-startStop-1] >> app.root = E:/NUTZ/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/nutzbook
18-03-23 17:12:28.297 DEBUG [localhost-startStop-1] Using 95 castor for Castors
18-03-23 17:12:28.298 DEBUG [localhost-startStop-1] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx", "*async"],init=[])
18-03-23 17:12:28.350 DEBUG [localhost-startStop-1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
18-03-23 17:12:28.350 DEBUG [localhost-startStop-1] loading [dao.js]
18-03-23 17:12:28.355 DEBUG [localhost-startStop-1] Loaded 2 bean define from path=[ioc/] --> [dataSource, dao]
18-03-23 17:12:28.366 INFO [localhost-startStop-1] > scan 'net.wendal.nutzbook'
18-03-23 17:12:28.368 DEBUG [localhost-startStop-1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
18-03-23 17:12:28.378 INFO [localhost-startStop-1] > add 'userModule ' - net.wendal.nutzbook.module.UserModule
18-03-23 17:12:28.415 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
18-03-23 17:12:28.421 INFO [localhost-startStop-1] ... NutIoc init complete
18-03-23 17:12:28.427 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
18-03-23 17:12:28.432 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker.class)
18-03-23 17:12:28.438 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
18-03-23 17:12:28.449 DEBUG [localhost-startStop-1] module class location 'file:/E:/NUTZ/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/nutzbook/WEB-INF/classes/'
18-03-23 17:12:28.450 DEBUG [localhost-startStop-1] > scan 'net.wendal.nutzbook'
18-03-23 17:12:28.452 DEBUG [localhost-startStop-1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
18-03-23 17:12:28.456 DEBUG [localhost-startStop-1] >> add 'net.wendal.nutzbook.module.UserModule'
18-03-23 17:12:28.456 DEBUG [localhost-startStop-1] Use org.nutz.mvc.impl.NutEntryDeterminer as EntryMethodDeterminer
18-03-23 17:12:28.482 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
18-03-23 17:12:28.501 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
18-03-23 17:12:28.535 DEBUG [localhost-startStop-1] '/user/count' >> (UserModule.java:28).count : int | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
18-03-23 17:12:28.543 DEBUG [localhost-startStop-1] '/user/login' >> (UserModule.java:33).login : Object | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
18-03-23 17:12:28.550 DEBUG [localhost-startStop-1] '/user/logout' >> (UserModule.java:45).logout : void | @Ok(>>:/ ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
18-03-23 17:12:28.551 INFO [localhost-startStop-1] Found 3 module methods
18-03-23 17:12:28.553 DEBUG [localhost-startStop-1] @Localization not define
18-03-23 17:12:28.554 INFO [localhost-startStop-1] Setup application...
18-03-23 17:12:28.557 DEBUG [localhost-startStop-1] Get 'dao'<interface org.nutz.dao.Dao>
18-03-23 17:12:28.558 DEBUG [localhost-startStop-1] Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
18-03-23 17:12:28.559 DEBUG [localhost-startStop-1] >> Load definition name=$aop_async
18-03-23 17:12:28.563 DEBUG [localhost-startStop-1] Found IocObject($aop_async) in AsyncAopIocLoader@415841597
18-03-23 17:12:28.563 DEBUG [localhost-startStop-1] >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
18-03-23 17:12:28.596 DEBUG [localhost-startStop-1] Save object '$aop_async' to [app]
18-03-23 17:12:28.610 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
18-03-23 17:12:28.611 DEBUG [localhost-startStop-1] >> Load definition name=dao
18-03-23 17:12:28.611 DEBUG [localhost-startStop-1] Found IocObject(dao) in JsonLoader(paths=[ioc/])
18-03-23 17:12:28.611 DEBUG [localhost-startStop-1] >> Make...'dao'<interface org.nutz.dao.Dao>
18-03-23 17:12:28.612 DEBUG [localhost-startStop-1] Save object 'dao' to [app]
18-03-23 17:12:28.614 DEBUG [localhost-startStop-1] Get 'dataSource'<>
18-03-23 17:12:28.614 DEBUG [localhost-startStop-1] >> Load definition name=dataSource
18-03-23 17:12:28.615 DEBUG [localhost-startStop-1] Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
18-03-23 17:12:28.615 DEBUG [localhost-startStop-1] >> Make...'dataSource'<>
18-03-23 17:12:28.616 DEBUG [localhost-startStop-1] Save object 'dataSource' to [app]
18-03-23 17:12:28.654 DEBUG [localhost-startStop-1] Load class com.alibaba.druid.pool.DruidDataSource without AOP
三月 23, 2018 5:12:29 下午 com.alibaba.druid.pool.DruidDataSource info
信息: {dataSource-1} inited
18-03-23 17:12:29.184 DEBUG [localhost-startStop-1] Load class org.nutz.dao.impl.NutDao without AOP
18-03-23 17:12:29.186 DEBUG [localhost-startStop-1] Get 'dataSource'<>
18-03-23 17:12:29.618 DEBUG [localhost-startStop-1] Jdbcs init complete
18-03-23 17:12:29.619 INFO [localhost-startStop-1] Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure
Fri Mar 23 17:12:29 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
18-03-23 17:12:29.921 DEBUG [localhost-startStop-1] select expert : org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert
18-03-23 17:12:29.932 DEBUG [localhost-startStop-1] JDBC Driver --> mysql-connector-java-5.1.40 ( Revision: 402933ef52cad9aa82624e80acbea46e3a701ce6 )
18-03-23 17:12:29.933 DEBUG [localhost-startStop-1] JDBC Name --> MySQL Connector Java
18-03-23 17:12:29.933 DEBUG [localhost-startStop-1] JDBC URL --> jdbc:mysql://127.0.0.1:3306/nutzbook
18-03-23 17:12:29.944 DEBUG [localhost-startStop-1] Mysql : character_set_client=utf8
18-03-23 17:12:29.944 DEBUG [localhost-startStop-1] Mysql : character_set_connection=utf8
18-03-23 17:12:29.944 DEBUG [localhost-startStop-1] Mysql : character_set_database=utf8
18-03-23 17:12:29.944 DEBUG [localhost-startStop-1] Mysql : character_set_filesystem=binary
18-03-23 17:12:29.944 DEBUG [localhost-startStop-1] Mysql : character_set_results=
18-03-23 17:12:29.944 DEBUG [localhost-startStop-1] Mysql : character_set_server=utf8
18-03-23 17:12:29.945 DEBUG [localhost-startStop-1] Mysql : character_set_system=utf8
18-03-23 17:12:29.945 DEBUG [localhost-startStop-1] Mysql : character_sets_dir=C:\Program Files\MySQL\MySQL Server 5.7\share\charsets\
18-03-23 17:12:29.947 DEBUG [localhost-startStop-1] Mysql : binlog_format=ROW
18-03-23 17:12:29.948 DEBUG [localhost-startStop-1] Mysql : database=nutzbook
18-03-23 17:12:29.949 DEBUG [localhost-startStop-1] Mysql : user=root@localhost
18-03-23 17:12:29.969 DEBUG [localhost-startStop-1] Database info --> MYSQL:[MySQL - 5.7.13-log]
18-03-23 17:12:29.976 DEBUG [localhost-startStop-1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
18-03-23 17:12:30.061 DEBUG [localhost-startStop-1] SELECT COUNT(*) FROM t_user
18-03-23 17:12:30.064 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is up in 1873ms
三月 23, 2018 5:12:30 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8092"]
三月 23, 2018 5:12:30 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8011"]
三月 23, 2018 5:12:30 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 3782 ms

18-03-23 17:17:08.220 DEBUG [http-nio-8092-exec-3] Search mapping for [GET] path=/ : NOT Action match
20 回复

package net.wendal.nutzbook;

import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.IocBy;
import org.nutz.mvc.annotation.Modules;
import org.nutz.mvc.annotation.SetupBy;
import org.nutz.mvc.ioc.provider.ComboIocProvider;

@SetupBy(value=MainSetup.class)
@At("")
//请注意星号!!不要拷贝少了
@IocBy(type=ComboIocProvider.class, args={"*js", "ioc/",
// 这个package下所有带@IocBean注解的类,都会登记上
"*anno", "net.wendal.nutzbook",
"*tx", // 事务拦截 aop
"*async"}) // 异步执行aop
@Modules(scanPackage=true)
public class MainModule {

}

package net.wendal.nutzbook.module;

import javax.servlet.http.HttpSession;

import org.nutz.dao.Cnd;
import org.nutz.dao.Dao;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Fail;
import org.nutz.mvc.annotation.GET;
import org.nutz.mvc.annotation.Ok;
import org.nutz.mvc.annotation.Param;

import net.wendal.nutzbook.bean.User;

@IocBean // 还记得@IocBy吗? 这个跟@IocBy有很大的关系哦
@At("/user")
@Ok("json")
@Fail("http:500")
public class UserModule {

@Inject
protected Dao dao; // 就这么注入了,有@IocBean它才会生效

@At
public int count() {
    return dao.count(User.class);
}

@At
public Object login(@Param("username")String name, @Param("password")String password, HttpSession session) {
    User user = dao.fetch(User.class, Cnd.where("name", "=", name).and("password", "=", password));
    if (user == null) {
        return false;
    } else {
        session.setAttribute("me", user.getId());
        return true;
    }
}

@At
@Ok(">>:/")
public void logout(HttpSession session) {
    session.invalidate();
}

}

<?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">
nutzbook

nutz
org.nutz.mvc.NutFilter

modules
net.wendal.nutzbook.MainModule



nutz
/*

REQUEST
FORWARD
INCLUDE


index.html
index.htm
index.jsp
default.html
default.htm
default.jsp

完全是按照 教程 搭建的

看到 插入代码或日志 按钮没?

18-03-23 17:17:08.220 DEBUG [http-nio-8092-exec-3] Search mapping for [GET] path=/ : NOT Action match
<?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.mvc.NutFilter</filter-class>
      <init-param>
          <param-name>modules</param-name>
          <param-value>net.wendal.nutzbook.MainModule</param-value>
      </init-param>
  </filter>
  <filter-mapping>
      <filter-name>nutz</filter-name>
      <url-pattern>/*</url-pattern>
    <!-- ForwardView需要下面的配置 @Ok("->:/xxx/yyy/zzz") -->
      <dispatcher>REQUEST</dispatcher>
      <dispatcher>FORWARD</dispatcher>
      <dispatcher>INCLUDE</dispatcher>
  </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>
package net.wendal.nutzbook.module;

import javax.servlet.http.HttpSession;

import org.nutz.dao.Cnd;
import org.nutz.dao.Dao;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Fail;
import org.nutz.mvc.annotation.GET;
import org.nutz.mvc.annotation.Ok;
import org.nutz.mvc.annotation.Param;

import net.wendal.nutzbook.bean.User;

@IocBean // 还记得@IocBy吗? 这个跟@IocBy有很大的关系哦
@At("/user")
@Ok("json")
@Fail("http:500")
public class UserModule {

    @Inject
    protected Dao dao; // 就这么注入了,有@IocBean它才会生效

    @At
    public int count() {
        return dao.count(User.class);
    }
    
    @At
    public Object login(@Param("username")String name, @Param("password")String password, HttpSession session) {
        User user = dao.fetch(User.class, Cnd.where("name", "=", name).and("password", "=", password));
        if (user == null) {
            return false;
        } else {
            session.setAttribute("me", user.getId());
            return true;
        }
    }
    
    @At
    @Ok(">>:/")
    public void logout(HttpSession session) {
        session.invalidate();
    }
}
三月 23, 2018 5:12:25 下午 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.
三月 23, 2018 5:12:25 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/8.0.36
三月 23, 2018 5:12:25 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Jun 9 2016 13:55:50 UTC
三月 23, 2018 5:12:25 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         8.0.36.0
三月 23, 2018 5:12:25 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Windows 7
三月 23, 2018 5:12:25 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            6.1
三月 23, 2018 5:12:25 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
三月 23, 2018 5:12:25 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             C:\Program Files\Java\jre1.8.0_131
三月 23, 2018 5:12:25 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.8.0_131-b11
三月 23, 2018 5:12:25 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
三月 23, 2018 5:12:25 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         E:\NUTZ\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
三月 23, 2018 5:12:25 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         D:\apache-tomcat-8.0.36\apache-tomcat-8.0.36
三月 23, 2018 5:12:25 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=E:\NUTZ\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
三月 23, 2018 5:12:25 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\apache-tomcat-8.0.36\apache-tomcat-8.0.36
三月 23, 2018 5:12:25 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=E:\NUTZ\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
三月 23, 2018 5:12:25 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\apache-tomcat-8.0.36\apache-tomcat-8.0.36\endorsed
三月 23, 2018 5:12:25 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
三月 23, 2018 5:12:25 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.8.0_131\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_131/bin/server;C:/Program Files/Java/jre1.8.0_131/bin;C:/Program Files/Java/jre1.8.0_131/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jdk1.8.0_131\bin;D:\maven\apache-maven-3.3.9\bin;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\Doctrine extensions for PHP\;C:\Program Files\MySQL\MySQL Server 5.7\bin;C:\Users\Administrator\AppData\Local\Programs\Fiddler;D:\eclipse-jee-mars-2-win32-x86_64\eclipse-jee-mars-2-win32-x86_64\eclipse;;.
三月 23, 2018 5:12:26 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-nio-8092"]
三月 23, 2018 5:12:26 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
三月 23, 2018 5:12:26 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-nio-8011"]
三月 23, 2018 5:12:26 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
三月 23, 2018 5:12:26 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 941 ms
三月 23, 2018 5:12:26 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
三月 23, 2018 5:12:26 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.0.36
三月 23, 2018 5:12:26 下午 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.
三月 23, 2018 5:12:27 下午 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.
18-03-23 17:12:27.914 INFO [localhost-startStop-1] Select SystemLog as Nutz.Log implement
18-03-23 17:12:28.122 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
18-03-23 17:12:28.149 DEBUG [localhost-startStop-1] Locations count=3 time use 8ms
18-03-23 17:12:28.159 DEBUG [localhost-startStop-1] Locations count=10 time use 10ms
18-03-23 17:12:28.179 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
18-03-23 17:12:28.185 INFO [localhost-startStop-1] Nutz Version : 1.r.65 
18-03-23 17:12:28.185 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
18-03-23 17:12:28.186 DEBUG [localhost-startStop-1] Web Container Information:
18-03-23 17:12:28.187 DEBUG [localhost-startStop-1]  - Default Charset : UTF-8
18-03-23 17:12:28.188 DEBUG [localhost-startStop-1]  - Current . path  : D:\eclipse-jee-mars-2-win32-x86_64\eclipse-jee-mars-2-win32-x86_64\eclipse\.
18-03-23 17:12:28.188 DEBUG [localhost-startStop-1]  - Java Version    : 1.8.0_131
18-03-23 17:12:28.188 DEBUG [localhost-startStop-1]  - File separator  : \
18-03-23 17:12:28.188 DEBUG [localhost-startStop-1]  - Timezone        : Asia/Shanghai
18-03-23 17:12:28.189 DEBUG [localhost-startStop-1]  - OS              : Windows 7 amd64
18-03-23 17:12:28.189 DEBUG [localhost-startStop-1]  - ServerInfo      : Apache Tomcat/8.0.36
18-03-23 17:12:28.189 DEBUG [localhost-startStop-1]  - Servlet API     : 3.1
18-03-23 17:12:28.190 DEBUG [localhost-startStop-1]  - ContextPath     : /nutzbook
18-03-23 17:12:28.190 DEBUG [localhost-startStop-1]  - context.tempdir : E:\NUTZ\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\nutzbook
18-03-23 17:12:28.190 DEBUG [localhost-startStop-1]  - MainModule      : net.wendal.nutzbook.MainModule
18-03-23 17:12:28.195 DEBUG [localhost-startStop-1] >> app.root = E:/NUTZ/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/nutzbook
18-03-23 17:12:28.297 DEBUG [localhost-startStop-1] Using 95 castor for Castors
18-03-23 17:12:28.298 DEBUG [localhost-startStop-1] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx", "*async"],init=[])
18-03-23 17:12:28.350 DEBUG [localhost-startStop-1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
18-03-23 17:12:28.350 DEBUG [localhost-startStop-1] loading [dao.js]
18-03-23 17:12:28.355 DEBUG [localhost-startStop-1] Loaded 2 bean define from path=[ioc/] --> [dataSource, dao]
18-03-23 17:12:28.366 INFO [localhost-startStop-1]  > scan 'net.wendal.nutzbook'
18-03-23 17:12:28.368 DEBUG [localhost-startStop-1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
18-03-23 17:12:28.378 INFO [localhost-startStop-1]    > add 'userModule                              ' - net.wendal.nutzbook.module.UserModule
18-03-23 17:12:28.415 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
18-03-23 17:12:28.421 INFO [localhost-startStop-1] ... NutIoc init complete
18-03-23 17:12:28.427 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
18-03-23 17:12:28.432 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker.class)
18-03-23 17:12:28.438 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
18-03-23 17:12:28.449 DEBUG [localhost-startStop-1] module class location 'file:/E:/NUTZ/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/nutzbook/WEB-INF/classes/'
18-03-23 17:12:28.450 DEBUG [localhost-startStop-1]  > scan 'net.wendal.nutzbook'
18-03-23 17:12:28.452 DEBUG [localhost-startStop-1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
18-03-23 17:12:28.456 DEBUG [localhost-startStop-1]    >> add 'net.wendal.nutzbook.module.UserModule'
18-03-23 17:12:28.456 DEBUG [localhost-startStop-1] Use org.nutz.mvc.impl.NutEntryDeterminer as EntryMethodDeterminer
18-03-23 17:12:28.482 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
18-03-23 17:12:28.501 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
18-03-23 17:12:28.535 DEBUG [localhost-startStop-1]    '/user/count'               >> (UserModule.java:28).count            : int        | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
18-03-23 17:12:28.543 DEBUG [localhost-startStop-1]    '/user/login'               >> (UserModule.java:33).login            : Object     | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
18-03-23 17:12:28.550 DEBUG [localhost-startStop-1]    '/user/logout'              >> (UserModule.java:45).logout           : void       | @Ok(>>:/ ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
18-03-23 17:12:28.551 INFO [localhost-startStop-1] Found 3 module methods
18-03-23 17:12:28.553 DEBUG [localhost-startStop-1] @Localization not define
18-03-23 17:12:28.554 INFO [localhost-startStop-1] Setup application...
18-03-23 17:12:28.557 DEBUG [localhost-startStop-1] Get 'dao'<interface org.nutz.dao.Dao>
18-03-23 17:12:28.558 DEBUG [localhost-startStop-1] Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
18-03-23 17:12:28.559 DEBUG [localhost-startStop-1] 	 >> Load definition name=$aop_async
18-03-23 17:12:28.563 DEBUG [localhost-startStop-1] Found IocObject($aop_async) in AsyncAopIocLoader@415841597
18-03-23 17:12:28.563 DEBUG [localhost-startStop-1] 	 >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
18-03-23 17:12:28.596 DEBUG [localhost-startStop-1] Save object '$aop_async' to [app] 
18-03-23 17:12:28.610 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
18-03-23 17:12:28.611 DEBUG [localhost-startStop-1] 	 >> Load definition name=dao
18-03-23 17:12:28.611 DEBUG [localhost-startStop-1] Found IocObject(dao) in JsonLoader(paths=[ioc/])
18-03-23 17:12:28.611 DEBUG [localhost-startStop-1] 	 >> Make...'dao'<interface org.nutz.dao.Dao>
18-03-23 17:12:28.612 DEBUG [localhost-startStop-1] Save object 'dao' to [app] 
18-03-23 17:12:28.614 DEBUG [localhost-startStop-1] Get 'dataSource'<>
18-03-23 17:12:28.614 DEBUG [localhost-startStop-1] 	 >> Load definition name=dataSource
18-03-23 17:12:28.615 DEBUG [localhost-startStop-1] Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
18-03-23 17:12:28.615 DEBUG [localhost-startStop-1] 	 >> Make...'dataSource'<>
18-03-23 17:12:28.616 DEBUG [localhost-startStop-1] Save object 'dataSource' to [app] 
18-03-23 17:12:28.654 DEBUG [localhost-startStop-1] Load class com.alibaba.druid.pool.DruidDataSource without AOP
三月 23, 2018 5:12:29 下午 com.alibaba.druid.pool.DruidDataSource info
信息: {dataSource-1} inited
18-03-23 17:12:29.184 DEBUG [localhost-startStop-1] Load class org.nutz.dao.impl.NutDao without AOP
18-03-23 17:12:29.186 DEBUG [localhost-startStop-1] Get 'dataSource'<>
18-03-23 17:12:29.618 DEBUG [localhost-startStop-1] Jdbcs init complete
18-03-23 17:12:29.619 INFO [localhost-startStop-1] Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure
Fri Mar 23 17:12:29 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
18-03-23 17:12:29.921 DEBUG [localhost-startStop-1] select expert : org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert
18-03-23 17:12:29.932 DEBUG [localhost-startStop-1] JDBC Driver --> mysql-connector-java-5.1.40 ( Revision: 402933ef52cad9aa82624e80acbea46e3a701ce6 )
18-03-23 17:12:29.933 DEBUG [localhost-startStop-1] JDBC Name   --> MySQL Connector Java
18-03-23 17:12:29.933 DEBUG [localhost-startStop-1] JDBC URL    --> jdbc:mysql://127.0.0.1:3306/nutzbook
18-03-23 17:12:29.944 DEBUG [localhost-startStop-1] Mysql : character_set_client=utf8
18-03-23 17:12:29.944 DEBUG [localhost-startStop-1] Mysql : character_set_connection=utf8
18-03-23 17:12:29.944 DEBUG [localhost-startStop-1] Mysql : character_set_database=utf8
18-03-23 17:12:29.944 DEBUG [localhost-startStop-1] Mysql : character_set_filesystem=binary
18-03-23 17:12:29.944 DEBUG [localhost-startStop-1] Mysql : character_set_results=
18-03-23 17:12:29.944 DEBUG [localhost-startStop-1] Mysql : character_set_server=utf8
18-03-23 17:12:29.945 DEBUG [localhost-startStop-1] Mysql : character_set_system=utf8
18-03-23 17:12:29.945 DEBUG [localhost-startStop-1] Mysql : character_sets_dir=C:\Program Files\MySQL\MySQL Server 5.7\share\charsets\
18-03-23 17:12:29.947 DEBUG [localhost-startStop-1] Mysql : binlog_format=ROW
18-03-23 17:12:29.948 DEBUG [localhost-startStop-1] Mysql : database=nutzbook
18-03-23 17:12:29.949 DEBUG [localhost-startStop-1] Mysql : user=root@localhost
18-03-23 17:12:29.969 DEBUG [localhost-startStop-1] Database info --> MYSQL:[MySQL - 5.7.13-log]
18-03-23 17:12:29.976 DEBUG [localhost-startStop-1] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
18-03-23 17:12:30.061 DEBUG [localhost-startStop-1] SELECT COUNT(*) FROM t_user 
18-03-23 17:12:30.064 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is up in 1873ms
三月 23, 2018 5:12:30 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8092"]
三月 23, 2018 5:12:30 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8011"]
三月 23, 2018 5:12:30 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 3782 ms
18-03-23 17:17:08.220 DEBUG [http-nio-8092-exec-3] Search mapping for [GET] path=/ : NOT Action match

首次接触这个。不知道原因是什么?

后台 也没有报错。

大神 ,指点下啊

根路径并没有写入口方法去映射,提示这个没毛病,继续往下做啦

教程上不是 新增了一个 JSP 页面。
启动 tomcat.
登录网址 http://localhost:8080/nutzbook/
y应该是 显示 index.jsp 页面的啊。

为什么没有 显示呢? 是哪个地方写的不对。

根路径并没有写入口方法去映射 ?? 这个 需要在哪个地方修改??

谢谢

现在显示啥?404?

HTTP Status 404 - /nutzbook/

type Status report

message /nutzbook/

description The requested resource is not available.

Apache Tomcat/8.0.36

index.jsp 放在哪里了? 绝对路径发一下

E:\NUTZ\nutzbook\WebContent\WEB-INF\index.jsp

/nutzbook/WebContent/WEB-INF/index.jsp

拷贝到 /nutzbook/WebContent/index.jsp

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