NutzCN Logo
问答 配置动作链后启动异常
发布于 293天前 作者 jeasonsilver 249 次浏览 复制 上一个帖子 下一个帖子
标签:

//在我加上@ChainBy(args="mvc/nutzbook-mvc-chain.js")后就无法正常启动(删掉此注释就能启动),报错:
[2017-04-04 08:55:01,141] Artifact nutztest:war exploded: Error during artifact deployment. See server log for details.
04-Apr-2017 20:55:07.535 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory E:\Work_Dictionary\IDEAR_TomcatNo.1\apache-tomcat-8.0.22\webapps\manager
04-Apr-2017 20:55:07.888 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory E:\Work_Dictionary\IDEAR_TomcatNo.1\apache-tomcat-8.0.22\webapps\manager has finished in 352 ms

import org.nutz.mvc.annotation.*;
import org.nutz.mvc.ioc.provider.ComboIocProvider;

/**
 * Created by dell on 2017/4/2.
 */
@SetupBy(value=MainSetup.class)
@Modules(scanPackage=true)
@Ok("json:full")
@Fail("jsp:jsp.500")
@Localization(value="msg/", defaultLocalizationKey="zh-CN")
@ChainBy(args="mvc/nutzbook-mvc-chain.js")
@IocBy(type=ComboIocProvider.class, args={"*js", "ioc/",
        // 这个package下所有带@IocBean注解的类,都会登记上
        "*anno", "net.wendal.nutzbook",
        "*tx", // 事务拦截 aop
        "*async"}) // 异步执行aop
public class MainModule {
}

5 回复

全部日志

E:\Work_Dictionary\IDEAR_TomcatNo.1\apache-tomcat-8.0.22\bin\catalina.bat run
[2017-04-04 08:54:54,825] Artifact nutztest:war exploded: Server is not connected. Deploy is not available.
Using CATALINA_BASE:   "C:\Users\dell\.IntelliJIdea2017.1\system\tomcat\Unnamed_nutztest"
Using CATALINA_HOME:   "E:\Work_Dictionary\IDEAR_TomcatNo.1\apache-tomcat-8.0.22"
Using CATALINA_TMPDIR: "E:\Work_Dictionary\IDEAR_TomcatNo.1\apache-tomcat-8.0.22\temp"
Using JRE_HOME:        "D:\Java\jdk1.8.0_111"
Using CLASSPATH:       "E:\Work_Dictionary\IDEAR_TomcatNo.1\apache-tomcat-8.0.22\bin\bootstrap.jar;E:\Work_Dictionary\IDEAR_TomcatNo.1\apache-tomcat-8.0.22\bin\tomcat-juli.jar"
Connected to the target VM, address: '127.0.0.1:63962', transport: 'socket'
04-Apr-2017 20:54:56.158 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.0.22
04-Apr-2017 20:54:56.159 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Apr 29 2015 11:46:15 UTC
04-Apr-2017 20:54:56.160 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.0.22.0
04-Apr-2017 20:54:56.160 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 10
04-Apr-2017 20:54:56.160 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            10.0
04-Apr-2017 20:54:56.160 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
04-Apr-2017 20:54:56.160 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             D:\Java\jdk1.8.0_111\jre
04-Apr-2017 20:54:56.160 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_111-b14
04-Apr-2017 20:54:56.160 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
04-Apr-2017 20:54:56.163 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         C:\Users\dell\.IntelliJIdea2017.1\system\tomcat\Unnamed_nutztest
04-Apr-2017 20:54:56.163 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         E:\Work_Dictionary\IDEAR_TomcatNo.1\apache-tomcat-8.0.22
04-Apr-2017 20:54:56.163 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:63962,suspend=y,server=n
04-Apr-2017 20:54:56.164 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
04-Apr-2017 20:54:56.164 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
04-Apr-2017 20:54:56.164 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
04-Apr-2017 20:54:56.164 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
04-Apr-2017 20:54:56.164 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
04-Apr-2017 20:54:56.164 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\dell\.IntelliJIdea2017.1\system\tomcat\Unnamed_nutztest\conf\logging.properties
04-Apr-2017 20:54:56.165 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
04-Apr-2017 20:54:56.165 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=E:\Work_Dictionary\IDEAR_TomcatNo.1\apache-tomcat-8.0.22\endorsed
04-Apr-2017 20:54:56.165 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\dell\.IntelliJIdea2017.1\system\tomcat\Unnamed_nutztest
04-Apr-2017 20:54:56.165 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=E:\Work_Dictionary\IDEAR_TomcatNo.1\apache-tomcat-8.0.22
04-Apr-2017 20:54:56.165 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=E:\Work_Dictionary\IDEAR_TomcatNo.1\apache-tomcat-8.0.22\temp
04-Apr-2017 20:54:56.165 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.1.33 using APR version 1.5.1.
04-Apr-2017 20:54:56.166 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
04-Apr-2017 20:54:57.230 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.1m 19 Mar 2015)
04-Apr-2017 20:54:57.367 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-8080"]
04-Apr-2017 20:54:57.397 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-apr-8009"]
04-Apr-2017 20:54:57.399 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1732 ms
04-Apr-2017 20:54:57.470 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
04-Apr-2017 20:54:57.470 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.22
04-Apr-2017 20:54:57.507 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-8080"]
04-Apr-2017 20:54:57.521 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-apr-8009"]
04-Apr-2017 20:54:57.523 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 122 ms
Connected to server
[2017-04-04 08:54:57,612] Artifact nutztest:war exploded: Artifact is being deployed, please wait...
04-Apr-2017 20:55:00.403 INFO [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
log4j:WARN No appenders could be found for logger (org.nutz.mvc.NutFilter).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
04-Apr-2017 20:55:01.111 SEVERE [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file
04-Apr-2017 20:55:01.112 SEVERE [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/nutzbook] startup failed due to previous errors
[2017-04-04 08:55:01,141] Artifact nutztest:war exploded: Error during artifact deployment. See server log for details.
04-Apr-2017 20:55:07.535 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory E:\Work_Dictionary\IDEAR_TomcatNo.1\apache-tomcat-8.0.22\webapps\manager
04-Apr-2017 20:55:07.888 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory E:\Work_Dictionary\IDEAR_TomcatNo.1\apache-tomcat-8.0.22\webapps\manager has finished in 352 ms

把log4j配好

我是按照进新手手册配的,用intelliJIDEAR建的maven项目,log4j我是i按照手册里建的我不知道为什么是这个样子,请问手册里的建造简单项目的步骤是你们测过的吗

当然测过

贴你现在的log4j.properties

手册那个简单项目是能行的 我试过的

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