zoukankan      html  css  js  c++  java
  • log4j:ERROR setFile(null,true) call failed

    1、错误描述

    usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ]  { -help | start | stop }
    四月 28, 2015 11:38:00 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Server version:        Apache Tomcat/7.0.57
    四月 28, 2015 11:38:00 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Server built:          Nov 3 2014 08:39:16 UTC
    四月 28, 2015 11:38:00 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Server number:         7.0.57.0
    四月 28, 2015 11:38:00 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: OS Name:               Windows 7
    四月 28, 2015 11:38:00 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: OS Version:            6.1
    四月 28, 2015 11:38:00 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Architecture:          amd64
    四月 28, 2015 11:38:00 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: JAVA_HOME:             D:Javajdk1.7.0_67jre
    四月 28, 2015 11:38:00 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: JVM Version:           1.7.0_67-b01
    四月 28, 2015 11:38:00 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: JVM Vendor:            Oracle Corporation
    四月 28, 2015 11:38:00 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: CATALINA_BASE:         D:MyEclipse10apache-tomcat-7.0.57
    四月 28, 2015 11:38:00 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: CATALINA_HOME:         D:MyEclipse10apache-tomcat-7.0.57
    四月 28, 2015 11:38:00 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dcatalina.home=D:MyEclipse10apache-tomcat-7.0.57
    四月 28, 2015 11:38:00 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dcatalina.base=D:MyEclipse10apache-tomcat-7.0.57
    四月 28, 2015 11:38:00 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Djava.endorsed.dirs=D:MyEclipse10apache-tomcat-7.0.57/common/endorsed
    四月 28, 2015 11:38:00 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Djava.io.tmpdir=D:MyEclipse10apache-tomcat-7.0.57	emp
    四月 28, 2015 11:38:00 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Djava.library.path=D:Javajdk1.7.0_67in;D:MyEclipse10apache-tomcat-7.0.57in
    四月 28, 2015 11:38:00 下午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dsun.io.useCanonCaches=false
    四月 28, 2015 11:38:00 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    信息: Loaded APR based Apache Tomcat Native library 1.1.32 using APR version 1.5.1.
    四月 28, 2015 11:38:00 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
    四月 28, 2015 11:38:01 下午 org.apache.catalina.core.AprLifecycleListener initializeSSL
    信息: OpenSSL successfully initialized (OpenSSL 1.0.1j 15 Oct 2014)
    四月 28, 2015 11:38:02 下午 org.apache.coyote.AbstractProtocol init
    信息: Initializing ProtocolHandler ["http-apr-8080"]
    四月 28, 2015 11:38:02 下午 org.apache.coyote.AbstractProtocol init
    信息: Initializing ProtocolHandler ["ajp-apr-8009"]
    四月 28, 2015 11:38:02 下午 org.apache.catalina.startup.Catalina load
    信息: Initialization processed in 4215 ms
    四月 28, 2015 11:38:02 下午 org.apache.catalina.core.StandardService startInternal
    信息: Starting service Catalina
    四月 28, 2015 11:38:02 下午 org.apache.catalina.core.StandardEngine startInternal
    信息: Starting Servlet Engine: Apache Tomcat/7.0.57
    四月 28, 2015 11:38:02 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:MyEclipse10apache-tomcat-7.0.57webappsdocs
    四月 28, 2015 11:38:04 下午 org.apache.catalina.util.SessionIdGenerator createSecureRandom
    信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [238] milliseconds.
    四月 28, 2015 11:38:04 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory D:MyEclipse10apache-tomcat-7.0.57webappsdocs has finished in 1,334 ms
    四月 28, 2015 11:38:04 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:MyEclipse10apache-tomcat-7.0.57webappsecharts
    四月 28, 2015 11:38:05 下午 com.sun.faces.config.ConfigureListener contextInitialized
    信息: 初始化上下文 '/echarts' 的 Mojarra 2.0.3 (FCS b03)
    四月 28, 2015 11:38:06 下午 com.sun.faces.spi.InjectionProviderFactory createInstance
    信息: JSF1048:有 PostConstruct/PreDestroy 注释。标有这些注释的 ManagedBeans 方法将表示注释已处理。
    四月 28, 2015 11:38:07 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory D:MyEclipse10apache-tomcat-7.0.57webappsecharts has finished in 3,232 ms
    四月 28, 2015 11:38:07 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:MyEclipse10apache-tomcat-7.0.57webappsexamples
    四月 28, 2015 11:38:08 下午 org.apache.catalina.core.ApplicationContext log
    信息: ContextListener: contextInitialized()
    四月 28, 2015 11:38:08 下午 org.apache.catalina.core.ApplicationContext log
    信息: SessionListener: contextInitialized()
    四月 28, 2015 11:38:09 下午 org.apache.catalina.core.ApplicationContext log
    信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@4f651ff')
    四月 28, 2015 11:38:09 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory D:MyEclipse10apache-tomcat-7.0.57webappsexamples has finished in 1,538 ms
    四月 28, 2015 11:38:09 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:MyEclipse10apache-tomcat-7.0.57webappsFusionCharts
    四月 28, 2015 11:38:10 下午 com.sun.faces.config.ConfigureListener contextInitialized
    信息: 初始化上下文 '/FusionCharts' 的 Mojarra 2.0.3 (FCS b03)
    四月 28, 2015 11:38:10 下午 com.sun.faces.spi.InjectionProviderFactory createInstance
    信息: JSF1048:有 PostConstruct/PreDestroy 注释。标有这些注释的 ManagedBeans 方法将表示注释已处理。
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Parsing configuration file [struts-default.xml]
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Parsing configuration file [struts-plugin.xml]
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Unable to locate configuration files of the name struts.xml, skipping
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Parsing configuration file [struts.xml]
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ActionFactory)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ResultFactory)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ConverterFactory)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.InterceptorFactory)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ValidatorFactory)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.UnknownHandlerFactory)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.FileManagerFactory)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.CollectionConverter)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.ArrayConverter)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.DateConverter)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.NumberConverter)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.StringConverter)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionPropertiesProcessor)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionFileProcessor)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionAnnotationProcessor)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterCreator)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterHolder)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (org.apache.struts2.views.freemarker.FreemarkerManager)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.TextParser)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.DispatcherErrorHandler)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.security.ExcludedPatternsChecker)
    四月 28, 2015 11:38:11 下午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger info
    信息: Choosing bean (struts) for (com.opensymphony.xwork2.security.AcceptedPatternsChecker)
    log4j:ERROR setFile(null,true) call failed.
    java.io.FileNotFoundException: 
    	at java.io.FileOutputStream.open(Native Method)
    	at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
    
    	at java.io.FileOutputStream.<init>(FileOutputStream.java:142)
    	at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
    	at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
    	at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223)
    	at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
    
    	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
    	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
    	at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
    	at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
    	at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
    	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
    	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)
    	at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
    	at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
    	at org.apache.log4j.Logger.getLogger(Logger.java:104)
    	at freemarker.log.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:65)
    	at freemarker.log.Logger.getLogger(Logger.java:284)
    	at freemarker.template.utility.SecurityUtilities.<clinit>(SecurityUtilities.java:67)
    	at freemarker.ext.beans.BeansWrapper.<clinit>(BeansWrapper.java:147)
    	at freemarker.template.ObjectWrapper.<clinit>(ObjectWrapper.java:69)
    	at freemarker.core.Configurable.<init>(Configurable.java:139)
    	at freemarker.template.Configuration.<init>(Configuration.java:142)
    
    	at freemarker.template.Configuration.<clinit>(Configuration.java:127)
    	at org.apache.struts2.views.freemarker.FreemarkerManager.createConfiguration(FreemarkerManager.java:331)
    	at org.apache.struts2.views.freemarker.FreemarkerManager.init(FreemarkerManager.java:282)
    	at org.apache.struts2.views.freemarker.FreemarkerManager.getConfiguration(FreemarkerManager.java:269)
    	at org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler.init(DefaultDispatcherErrorHandler.java:47)
    	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:488)
    
    	at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
    	at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.init(StrutsPrepareFilter.java:56)
    	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:4830)
    
    	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5510)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
    	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1245)
    	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1895)
    
    	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    	at java.lang.Thread.run(Thread.java:745)
    log4j:ERROR Either File or DatePattern options are not set for appender [ServiceRollingFile].
    log4j:ERROR Could not find value for key log4j.appender.stdout
    log4j:ERROR Could not instantiate appender named "stdout".
    四月 28, 2015 11:38:13 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory D:MyEclipse10apache-tomcat-7.0.57webappsFusionCharts has finished in 4,155 ms
    四月 28, 2015 11:38:13 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:MyEclipse10apache-tomcat-7.0.57webappshost-manager
    四月 28, 2015 11:38:13 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory D:MyEclipse10apache-tomcat-7.0.57webappshost-manager has finished in 110 ms
    四月 28, 2015 11:38:13 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:MyEclipse10apache-tomcat-7.0.57webappsmanager
    四月 28, 2015 11:38:13 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory D:MyEclipse10apache-tomcat-7.0.57webappsmanager has finished in 103 ms
    四月 28, 2015 11:38:13 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory D:MyEclipse10apache-tomcat-7.0.57webappsROOT
    四月 28, 2015 11:38:13 下午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory D:MyEclipse10apache-tomcat-7.0.57webappsROOT has finished in 94 ms
    四月 28, 2015 11:38:13 下午 org.apache.coyote.AbstractProtocol start
    信息: Starting ProtocolHandler ["http-apr-8080"]
    四月 28, 2015 11:38:13 下午 org.apache.coyote.AbstractProtocol start
    信息: Starting ProtocolHandler ["ajp-apr-8009"]
    四月 28, 2015 11:38:13 下午 org.apache.catalina.startup.Catalina start
    信息: Server startup in 10851 ms
    

    2、错误原因


    3、解决办法

  • 相关阅读:
    Linux scp、ssh命令
    Linux ps、top、free、uname命令
    适配器模式
    Linux不能进入图形化界面运行yum不管用
    SpringMVC 测试 mockMVC
    Idea和Git集成,并且Git管理不同的秘钥,idea分别提交项目到GitLab和GitHub
    多线程
    Java中Volatile关键字详解
    Spring事务管理--(二)嵌套事物详解
    jConsole, jVisualvm, btrace 区别和联系
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13314533.html
Copyright © 2011-2022 走看看