14-9-25th Jenkins deployment to tomcat error log

Source: Internet
Author: User
Tags addchild constructor jboss tomcat log4j

1. Today I want to remove some of the previously deployed projects in Tomcat, and the result is that Tomcat has not been able to start, and there may be some reason for the configuration, which can be problematic. Then directly joined a small project HelloWorld, changed into a webtest project, Tomcat started, OK. I think it is because Jenkins configured the WebTest, and the webtest deployed to this tomcat cause, resulting in direct deletion, Tomcat cannot find the file cannot be started. Is there anyone who can provide a better answer?

2. Enter the URL, the port, although to the Tomcat page, but the inside of the Web application has been unable to access the normal

Log4j:error Setfile (null,true) call failed.

Java.io.FileNotFoundException:.. /applogs/cfweb_info.log (Permission denied)

Atjava.io.FileOutputStream.open (Native Method)

Atjava.io.fileoutputstream.<init> (fileoutputstream.java:212)

Atjava.io.fileoutputstream.<init> (fileoutputstream.java:136)

Atorg.apache.log4j.FileAppender.setFile (fileappender.java:294)

Atorg.apache.log4j.FileAppender.activateOptions (fileappender.java:165)

Atorg.apache.log4j.DailyRollingFileAppender.activateOptions (dailyrollingfileappender.java:223)

Atorg.apache.log4j.config.PropertySetter.activate (propertysetter.java:307)

Atorg.apache.log4j.config.PropertySetter.setProperties (propertysetter.java:172)

Atorg.apache.log4j.config.PropertySetter.setProperties (propertysetter.java:104)

Atorg.apache.log4j.PropertyConfigurator.parseAppender (propertyconfigurator.java:842)

Atorg.apache.log4j.PropertyConfigurator.parseCategory (propertyconfigurator.java:768)

Atorg.apache.log4j.PropertyConfigurator.configureRootCategory (propertyconfigurator.java:648)

Atorg.apache.log4j.PropertyConfigurator.doConfigure (propertyconfigurator.java:514)

Atorg.apache.log4j.PropertyConfigurator.doConfigure (propertyconfigurator.java:580)

Atorg.apache.log4j.helpers.OptionConverter.selectAndConfigure (optionconverter.java:526)

Atorg.apache.log4j.logmanager.<clinit> (logmanager.java:127)

Atorg.apache.log4j.Logger.getLogger (logger.java:104)

Atorg.jboss.resteasy.logging.impl.log4jlogger.<init> (log4jlogger.java:19)

Atsun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)

Atsun.reflect.NativeConstructorAccessorImpl.newInstance (nativeconstructoraccessorimpl.java:57)

Atsun.reflect.DelegatingConstructorAccessorImpl.newInstance (delegatingconstructoraccessorimpl.java:45)

Atjava.lang.reflect.Constructor.newInstance (constructor.java:525)

Atorg.jboss.resteasy.logging.Logger.getLogger (logger.java:92)

Atorg.jboss.resteasy.spi.resteasydeployment.<clinit> (resteasydeployment.java:75)

Atorg.jboss.resteasy.plugins.server.servlet.configurationbootstrap.<init> (ConfigurationBootstrap.java:28 )

Atorg.jboss.resteasy.plugins.server.servlet.listenerbootstrap.<init> (listenerbootstrap.java:27)

Atorg.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap.contextInitialized (resteasybootstrap.java:26)

Atorg.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:4206)

Atorg.apache.catalina.core.StandardContext.start (standardcontext.java:4705)

Atorg.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:799)

Atorg.apache.catalina.core.ContainerBase.addChild (containerbase.java:779)

Atorg.apache.catalina.core.StandardHost.addChild (standardhost.java:601)

Atorg.apache.catalina.startup.HostConfig.deployWAR (hostconfig.java:943)

Atorg.apache.catalina.startup.HostConfig.deployWARs (hostconfig.java:778)

Atorg.apache.catalina.startup.HostConfig.deployApps (hostconfig.java:504)

Atorg.apache.catalina.startup.HostConfig.start (hostconfig.java:1317)

Atorg.apache.catalina.startup.HostConfig.lifecycleEvent (hostconfig.java:324)

Atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (lifecyclesupport.java:142)

Atorg.apache.catalina.core.ContainerBase.start (containerbase.java:1065)

Atorg.apache.catalina.core.StandardHost.start (standardhost.java:840)

Atorg.apache.catalina.core.ContainerBase.start (containerbase.java:1057)

Atorg.apache.catalina.core.StandardEngine.start (standardengine.java:463)

Atorg.apache.catalina.core.StandardService.start (standardservice.java:525)

Atorg.apache.catalina.core.StandardServer.start (standardserver.java:754)

Atorg.apache.catalina.startup.Catalina.start (catalina.java:595)

ATSUN.REFLECT.NATIVEMETHODACCESSORIMPL.INVOKE0 (Native Method)

Atsun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57)

Atsun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43)

Atjava.lang.reflect.Method.invoke (method.java:601)

Atorg.apache.catalina.startup.Bootstrap.start (bootstrap.java:289)

Atorg.apache.catalina.startup.Bootstrap.main (bootstrap.java:414)

Log4j:error either File or datepatternoptions is not set for Appender [InfoLog].

Info[main] (contextloader.java:273) 15:31:15,552--Root Webapplicationcontext:initialization started

Info[main] (abstractapplicationcontext.java:510) 15:31:15,637--Refreshing rootwebapplicationcontext:startup date [ Thu Sep 15:31:15 CST 2014]; Root Ofcontext Hierarchy

Info[main] (xmlbeandefinitionreader.java:315) 15:31:15,687--Loading XML Beandefinitions from class path resource [appli Cationcontext.xml]

Info[main] (xmlbeandefinitionreader.java:315) 15:31:15,720--Loading XML Beandefinitions from class path resource [App-b Iz.xml]

Info[main] (classpathscanningcandidatecomponentprovider.java:222) 15:31:15,768--jsr-250 ' Javax.annotation.ManagedBean ' found and supported for componentscanning

Info[main] (xmlbeandefinitionreader.java:315) 15:31:15,962--Loading XML Beandefinitions from class path resource [app-d Ata.xml]

 info[main] (defaultlistablebeanfactory.java:596) 15:31:16,209--Pre-instantiatingsingletons Inorg.springframework.beans.factory.support.defaultlistablebeanfactory@64237b68:defining beans[ Buildpackmanagement,domainmanagement,routemanagement,orgmanagement,usermanagement,spacemanagement,loginhandler , Connectcf,cloudutil,keepcennection,logconfigservice,buildpackservice,patterservice,templatemanagement, Logmanagement,servicemanagement,appmanagement,basicinfo, Org.springframework.context.annotation.internalConfigurationAnnotationProcessor, Org.springframework.context.annotation.internalAutowiredAnnotationProcessor, Org.springframework.context.annotation.internalRequiredAnnotationProcessor, Org.springframework.context.annotation.internalcommonannotationprocessor,propertyconfigurer,datasource, Sqlsessionfactory,org.mybatis.spring.mapper.mapperscannerconfigurer#0, Org.springframework.context.annotation.configurationclasspostprocessor.importawareprocessor,applogconfigmapper , Cfservicebrokermapper,Temsermapper,patternfieldmapper,cfappmapper,cftargetmapper,apptemplatemapper,cfenvironmentmapper, Authusermapper,cfservicemapper,applogpatternsmapper,logpatternmapper,cfusermapper];root of factory hierarchy

Info[main] (mlog.java:80) 15:31:16,283--Mlog clients using log4j logging.

Info[main] (c3p0registry.java:204) 15:31:16,324--Initializing c3p0-0.9.1.1 [built15-march-2007 01:32:31; debug? true; TRACE:10]

The problem is that the file is under this path and there is a permission denied error, so modify the permissions after locating the file

chmod 666xxxx, but Tomcat is still not bootable. No alternative, remove the app in WebApp, then let Jenkins build the project, deploy the past, use it normally, and Jenkins continues to deploy, no problem. Now guess is not one of the reasons, is not a one-time submission of the code has a problem, resulting in Tomcat failure, Jenkins deployment connection problem, the subsequent build has failed. Who else can provide a rough analysis of the cause of the error?

Thank you

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.