tomcat關閉重啟遇到A child container failed during start問題
tomcat重啟的時候遇到了如下錯誤:
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/chapter5]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:188) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:939) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) 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) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/chapter5]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) ... 6 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [
[email protected]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4842) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4974) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 6 more Caused by: java.lang.IllegalArgumentException: The main resource set specified [/u01/apps/apache-tomcat-8.5.11-8090/webapps/chapter5] is not valid at org.apache.catalina.webresources.StandardRoot.createMainResourceSet(StandardRoot.java:732) at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:690) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 9 more 29-Sep-2018 14:42:46.715 SEVERE [main] org.apache.catalina.core.ContainerBase.startInternal A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:188) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:939) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.startup.Catalina.start(Catalina.java:655) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) 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) Caused by: org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:947) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 6 more 29-Sep-2018 14:42:46.716 SEVERE [main] org.apache.catalina.startup.Catalina.start The required Server component failed to start so Tomcat is unable to start. org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8045]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.startup.Catalina.start(Catalina.java:655) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 7 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 9 more Caused by: org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:947) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 11 more
根本原因是上面說缺少chapter5這個工程,原來發現是在server.xml檔案中配置瞭如下,註釋掉即可。
<!-- <Context docBase="/u01/apps/apache-tomcat-8.5.11-8090/webapps/chapter5" path="/chapter5" reloadable="false" crossContext="true"/>-->
相關推薦
tomcat關閉重啟遇到A child container failed during start問題
tomcat重啟的時候遇到了如下錯誤: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [St
Tomcat啟動失敗(A child container failed during start)
最近在導專案時,經常發生一個Tomcat的啟動錯誤,查了不少資料都說是缺少包的原因,於是使用了各種加包的方式,只有以下為親測可行(Maven配置下) 錯誤內容: 導包方式如下: (專案右鍵——properties——Deployment Assembly) (Add——
Eclipse Maven項目報錯2之A child container failed during start
gif spa VM match pan lap omr 倉庫 自動識別 問題:在同事那裏拿了一個Eclipse的maven項目,導入報錯,主要顯示的是A child container failed during start 具體錯誤如下 六月 02, 201
嚴重: A child container failed during start的問題解決方法
star contain png start upload container 方法 art 問題解決 找到tomcat中的server.xml中的文件, 將圖中陰影的部分註釋掉,即可。 嚴重: A child container failed during st
A child container failed during start:org.apache.catalina.LifecycleException,有需要的朋友可以參考下。
最近在使用Spring時報出了下面的錯誤,網上查的資料都是說web.xml中的servlet-mapping配置的問題,這種說法也不盡然,我遇到的情況就不是這樣。 最後的解決辦法是匯入commons-logging-1.1.3.jar包就可以了 嚴重: A child
tomcat7啟動出錯“A child container failed during start”
嚴重: A child container failed during startjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [Standa
異常:嚴重: A child container failed during start
1.異常資訊描述 嚴重: A child container failed during startjava.util.concurrent.ExecutionException: org.apach
Struts2的web.xml中的url-pattern路徑配置為/*.action時,Tomcat一啟動執行就報錯(嚴重: A child container failed during star)
Struts2中web.xml中的url-pattern路徑配置錯誤導致Tomcat一起動就報錯。 如上圖url-pattern配置為/*.action (錯誤) 修改成:  
啟動Tomcat伺服器失敗_A child container failed during start
1. 啟動Tomcat伺服器之後發現不能夠執行index.jsp頁面,報錯: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.Lifecy
Springboot啟動報錯:child container failed during start
Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String;引入了一個hsf pom檔案後後,翻到異常堆疊最下面發現是:ServletContext沒有
CentOS 7.2重啟網絡報錯 Failed to start LSB: Bring up/down
script 3.5 dhcp ifcfg ron centos str sys 日誌 CentOS 7.2重啟網絡報錯 Failed to start LSB: Bring up/down 我的虛擬機原本有兩塊網卡,一塊叫eno16777736,另一塊叫eno5033
windows設定tomcat定時重啟(關閉,啟動)設定成服務,並重啟服務
一、配置windows設定tomcat定時重啟 1.首先將tomcat註冊為服務,先開啟tomcat的bin目錄下service.bat檔案,修改下面的值,這是sevvice的註冊名稱和顯示名稱,一般可使用預設值。 set SERVICE_NAME=tomcat-7.0.
linux 優雅的退出/關閉/重啟gunicorn進程
inux HR down ref 通過 AS 銷毀 發生 html 在工作中,會發現gunicorn啟動的web服務,無論怎麽使用kill -9 進程號都是無法殺死gunicorn,經過我一番百度和谷歌,發現想要刪除gunicorn進程其實很簡單。 第一步獲取Gunicor
優雅的退出/關閉/重啟gunicorn進程
unicorn ati local 進程id 命令 怎麽 gun 百度 hup 在工作中,會發現gunicorn啟動的web服務,無論怎麽使用kill -9 進程號都是無法殺死gunicorn,經過我一番百度和谷歌,發現想要刪除gunicorn進程其實很簡單。 第一步獲
liunx檢視tomcat 版本,重啟tomcat 及檢視日誌
1.linux下檢視tomcat和jdk版本號的命令: 這個需要進入到bin目錄下面 [[email protected] bin]# ./version.sh Using CATALINA_BASE: /opt/di
ftp啟動關閉重啟命令
ftp啟動關閉重啟命令 // 重啟:centeros7寫法 systemctl restart vsftpd.service // 舊版寫法 service vsftpd restart //檢視 Vsftpd 當前的狀態 sy
tomcat定時重啟任務的簡單方式
start /d "F:\apache-tomcat-6.0.37\bin" shutdown.bat ping 127.0.0.1 -n 10 rd /s /q "F:\apache-tomcat-6.0.37\work\Catalina" ping 127.0.0.1 -n 10 sta
Linux下Redis啟動/關閉/重啟服務指令碼
指令碼功能: 實現Redis單機多例項情況下的正常啟動、關閉、重啟單個redis例項。完成系統標準服務的以下常用功能: start|stop|status|restart 注:redis程式程式碼遮蔽了HUP訊號,不支援線上過載配置檔案,故去掉reloa
Tomcat自動重啟指令碼
我做過的Tomcat自動重啟其實是讓Windows系統的任務計劃程式來實現觸發的,先讓Tomcat自動關閉,然後讓Tomcat自動啟動,這樣就是自動重啟了。 一、編寫指令碼 指令碼如下: 自動關閉指令碼:tomcat_stop.bat @echo off echo 執行開始時間 da
zabbix_agented啟動關閉重啟指令碼_2018_lcf
請根據自己實際路徑修改第二行路徑即可 #!/bin/bash pfurl='/usr/local/sbin/zabbix_agentd -c /usr/local/etc/zabbix_agentd.conf' PID=0 kill_zabbix_agentd(){ ps aux