tomcat 啟動報錯的各種解決
1.Server Tomcat v7.0 Server at localhost failed to start.
嚴重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
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:1123)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase
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[]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
… 6 more
Caused by: java.lang.NoClassDefFoundError: com/octo/captcha/service/CaptchaServiceException
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2436)
at java.lang.Class.getDeclaredFields(Class.java:1806)
at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:270)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:139)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:65)
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:415)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:892)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5380)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
… 6 more
Caused by: java.lang.ClassNotFoundException: com.octo.captcha.service.CaptchaServiceException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
… 20 more
三月 30, 2017 3:08:02 下午 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:1123)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.startup.Catalina.start(Catalina.java:689)
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:321)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase
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:1131)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
… 6 more
三月 30, 2017 3:08:02 下午 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[8005]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.startup.Catalina.start(Catalina.java:689)
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:321)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739)
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:154)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
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:1131)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
… 11 more
解決方案:
檢視釋出的位置jar有沒有釋出上去,我的就是maven 依賴jar包沒打上去引起的錯誤
2.嚴重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘cityServiceImpl’ defined in file [F:\developSource\eclipse\workSpaceX86_64.metadata.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\sport12\WEB-INF\classes\cn\itcast\core\service\country\CityServiceImpl.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.aop.aspectj.AspectJPointcutAdvisor#1’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; nested exception is java.lang.NullPointerException
解決方法:
後面查到是介面的包引錯了,
改為
3Caused by: java.lang.NoClassDefFoundError: org/springframework/web/context/support/ServletRequestHandledEvent
clean 專案,重新部署
4.Server Tomcat v7.0 Server at localhost was unable to start within 90 seconds. If the server requires more time, try increasing the timeout in the server editor.
1) 修改啟動需要的時間
2)將這裡面專案都刪了,在重新部署
3)檢查配置檔案路徑是不是寫錯,或者名字寫錯了
相關推薦
tomcat 啟動報錯的各種解決
1.Server Tomcat v7.0 Server at localhost failed to start. 嚴重: A child container failed during start java.util.concurrent.Executio
Eclipse中部署專案時,Tomcat啟動報錯 “Failed to start component [StandardServer[8005]]”的解決方法
【錯誤現象】SEVERE: The required Server component failed to start so Tomcat is unable to start. org.apache.catalina.LifecycleException: F
Tomcat啟動報錯解決之 Server Tomcat v8.5 Server at localhost failed to start.
Server Tomcat v8.5 Server at localhost failed to start. 一、排查思路 最直接也是最有效的辦法:看console控制檯 二、具體解決 如上圖,異常資訊中會指明報錯原因,一般是以下幾種情況 Tomc
Tomcat啟動報錯: StandardServer.await: create[8005] 簡單解決方案
錯誤資訊 org.apache.catalina.core.StandardServer await 嚴重: StandardServer.await: create[8005]: java.net.BindException: Addre
Tomcat啟動報錯:Error starting static Resources解決方法
這個錯誤發生在刪除一些不需要的專案後,重新啟動Tomcat時報錯:在網上找了以下方法都沒有生效:1、清空Tomcat的根目錄下的\work\Catalina下的檔案,重啟服務,依舊報錯 2、在conf目錄下server.xml的檔案下檢視是否存在已刪除的專案的資訊,發現沒有找
web開發 Tomcat啟動報錯 5種解決方法 Server Tomcat v8.0 Server at localhost failed to start . 五種綜合解決方法
Eclipse 中Tomcat 啟動報錯 Eclipse的提示視窗 Server Tomcat v8.0 Server at localhost failed to start . 日誌輸出中報 Failed to destroy end point associa
tomcat啟動報錯jar包衝突解決方法
從公司的原始碼庫中同步程式碼之後,再啟動tomcat,出現了下面兩張圖的狀況,由於之前的啟動環境是同事給配好的,因此這次打算靠自己解決了。 1、servlet.jar的問題 情景重現: 圖中已經標註出來,檢測servet.jar和servlet_old.jar包時遇到了
tomcat啟動報錯APR問題
java tomcat openssl 報錯 apr 背景很多的生產環境項目都在使用tomcat,所以要經常的跟tomcat打交道,排錯是家常便飯。本博文主要是是介紹關於tomcat啟動時報APR錯誤,報錯信息如下:02-Aug-2017 18:13:00.769 INFO [main]
記錄一次apache服務器啟動報錯和解決方法
受限 png www img oot 端口 使用 rwx 環境 問題描述:在liunx系統上安裝軟件時需要較大的權限,一般用戶是不能隨便安裝的。為了省事,在安裝lamp環境時,整個過程都是以root身份安裝各種軟件的。最後整個環境是安裝成功,但是像apache這樣的服務器如
關於maven項目通過tomcat啟動報錯
src image inf vid maven info clas mage .com 產生的原因是:tomcat中也有servlet-api包 解決方法:添加<scope>provided</scope>,因為provided表明該包只在編譯和
Oracle數據庫監聽器啟動報錯:1067解決
span oracle安裝 安裝oracle 安裝 names 所在 dmi -s 推薦 1.原因:本地ip或主機名在安裝oracle後已經更改,需改回. 2.打開oracle安裝目錄(開始中搜索oracle,查找文件所在位置). 3.進入$\NETWORK\ADMIN\修
記一次Oracle啟動報錯問題解決
無法 問題 connected gpo 需要 base ann 子句 idl 因為之前直接刪除了表空間,重啟oracle後報錯ORA-01157,以下記錄解決方法。 ORA-01157:無法識別/鎖定數據文件字符串 - 請參閱DBWR跟蹤文件原因:後臺進程無法找到其中一個數
tomcat啟動報錯:Address already in use: JVM_Bind
程序 already 原因 輸入 日誌 task exce ID src tomcat啟動時出現Address already in use: JVM_Bind 的原因是因為端口被占用,有可能是因為多次啟動tomcat或者啟動了多個tomcat,或者是其他應用程序或者服務占
Linux安裝ElasticSearch啟動報錯的解決方法
ear nbsp get erro 技術 5.4 如何 成功 用戶名 Linux安裝ElasticSearch後,ElasticSearch是不能用root用戶啟動的,以root用戶啟動會報錯Refer to the log for complete error deta
maven項目使用tomcat啟動報錯:Server Tomcat v8.5 Server at localhost failed to start
com 再次 tar 同事 使用 sta 本地倉庫 art ati 背景說明:1)該項目為maven項目,使用的maven的本地倉庫裏有不少之前使用過下載的jar包; 2)從svn下載該項目後,無報錯情況; 3)部署到tomcat啟動報錯 如下 :
記錄一次SpringBoot打成war包部署到tomcat啟動報錯
tar oca sep localhost ring ant boot exc RoCE 啟動時,報錯信息如下: 28-Sep-2018 16:55:41.567 嚴重 [localhost-startStop-1] org.apache.catalina.core.Sta
Mac下tomcat啟動報錯Error running 'Tomcat7.0.75': Cannot run program "/Volumes/Ma
Error running 'Tomcat7.0.75': Cannot run program "/Volumes/MacOS/Java/apache-tomcat-7.0.75/bin/catalina.sh" (in directory "/Volumes/MacOS/Java/
Tomcat啟動報錯記錄javax.el.ExpressionFactory和javax.el.ELResolver
報錯1: java.lang.NoClassDefFoundError: javax.el.ExpressionFactory 解決方案: 則將javaee.jar包再copy一份放在tomcat目錄的common\lib下就不會了 關於用到的javaee.ja
tomcat啟動報錯:java.lang.ClassCastException: org.apache.jasper.runtime.ELContextImpl cannot be cast to..
啟動tomcat的專案報錯如下: 解決思路: 1.看到這個錯誤,java.lang.ClassCastException: org.apache.jasper.runtime.ELContextImpl cannot be cast to org.apache.jasper.el.ELC
Hbasewindows系統下啟動報錯及解決辦法
今天在本地windows電腦上,裝pinpoint時,需要先安裝一個Hbase資料庫,按照教程下載啟動Hbase資料庫時,卻啟動報錯:java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop bin