【tomcat報錯】A child container failed during start
當我遇到這個問題的時候,我的環境是這樣的
- 使用maven作為基礎架構
- 新增了一些常用的jar包
- 使用tomcat
然後在執行tomcat的過程中發現遇到了下面的報錯(節選)
嚴重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/testcs_dn-admin-web]]
當我百度&Google之後,發現同類錯誤大部分是由於jar包丟失(找不到)引起的,所以我找到eclipse下的tomcat執行目錄下找到部署的專案,在web-inf資料夾中,果然沒有發現maven相關的包。目錄地址如下:
\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
然後,我在web的build-path中,找到依賴,將maven相關jar包加入其中,再次執行程式,就好了
步驟如下:
- 找到buildPath
2. 新增依賴
找到maven相關依賴,點選加入,然後儲存即可
相關文章
- Server Tomcat v7.0 Server at localhost failed to startServerTomcatlocalhostAI
- Server Tomcat v9.0 Server at localhost failed to start.ServerTomcatlocalhostAI
- MediaRecorder start failed -19 java.lang.RuntimeException: start failedAIJavaException
- 安裝GRID CONTROL The OPMN Process Manager failed to start報錯處理AI
- RHEL 7 安裝oracle rac 11.2.0.4執行root.sh報錯ohasd failed to startOracleAI
- React-App:NPM start 報錯ReactAPPNPM
- asm報錯一例-support 報錯rename failedASMAI
- Bug 4632780 - PMON "failed to acquire latch" during shutdownAIUI
- PMON "failed to acquire latch" during shutdown-4632780.8AIUI
- linux下session_start()報錯LinuxSession
- springcloud和Eureka整合時報錯:Unable to start embedded TomcatSpringGCCloudTomcat
- The Tomcat connector configured to listen on port 80 failed to start. The port may already be inTomcatAI
- 關於解決Server Tomcat v9.0 Server at localhost failed to start的問題ServerTomcatlocalhostAI
- tar (child): bzip2: Cannot exec: No such file or directory 報錯
- ftp 報錯 550 Failed to open fileFTPAI
- zabbix報錯fping failed:no outputAI
- tomcat釋出報錯Tomcat
- Failed to start docker.service: Unit not foundAIDocker
- Start of resource “ora.asm -init” failed -ASMAI
- 關於Tomcat啟動報錯:Failed to initialize end point associated with ProtocolHandler ["http-apr-8080"]TomcatAIProtocolHTTP
- OGG Director報錯 Connection FAILEDAI
- PHP composer 報錯 certificate verify failedPHPAI
- 使用 Lumen 中 predis 報錯 `AUTH` failedRedisAI
- SCP報錯:Host key verification failed.AI
- 解決啟動Tomcat報錯:Failed to destroy end point associated with ProtocolHandler["ajp-nio-8009"]TomcatAIProtocol
- Failed to start Master instance in admin modeAIAST
- IDEA 報錯Failed to load JVM DLLIdeaAIJVM
- SQLServer映象報錯Connection handshake failedSQLServerAI
- weblogic報錯: OPatch failed with error code 73WebAIError
- Opatch 報錯 Prerequisite check CheckMinimumOPatchVersion failedUIAI
- tomcat 報錯 java.lang.OutOfMemoryErroTomcatJava
- hadoop執行./start-all.sh,突然報錯Hadoop
- 解決Tomcat啟動報錯問題:Failed to destroy end point associated with ProtocolHandler["ajp-nio-8009"]TomcatAIProtocol
- laradock 執行報錯 Service 'workspace' failed to build:AIUI
- ElasticSearch啟動報錯 ERROR: [4] bootstrap checks failedElasticsearchErrorbootAI
- Xtrabackup備份報錯Failed to connect to MySQL serverAIMySqlServer
- nmap報錯: Failed to open device ethxxxAIdev
- React報錯之React.Children.only expected to receive single React element childReact