startup failed due to previous errors

來源:互聯網
上載者:User

      這次建立立了的個工程,發布到tomcat上面的時候,總提示startup failed due to previous errors;

      完整的錯誤資訊是:

資訊: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bpslocal] has not been started
2010-10-19 22:56:53 org.apache.catalina.loader.WebappClassLoader validateJarFile
資訊: validateJarFile(C:/primeton/BPS/apache-tomcat-5.5.20/webapps/bpslocal/WEB-INF/lib/j2ee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
2010-10-19 22:56:53 org.apache.catalina.core.StandardContext start
嚴重: Error listenerStart
2010-10-19 22:56:53 org.apache.catalina.core.StandardContext start
嚴重: Context [/bpslocal] startup failed due to previous errors

 

   一開始搜尋索引鍵錯誤,結果給的意見是我的包多餘,刪了我一下午,也沒弄好,心情很是煩躁。當我看到下面的這段文章的時候,才徹底的查明問題的所在。原來我在部署之前,用工具給我增加了一些xml的配置資訊,導致一些servlet不存在,然後啟動不起來。

 

作者: hongyiqiye 連結:http://hongyiqiye.javaeye.com/blog/266068

     在tomcat上部署應用的時候經常會發上startup failed due to previous errors錯誤。這個錯誤產生以後經常會讓人摸不到頭腦。以下是幾點尋找經驗:

     1.web.xml檔案,這個檔案中定義了很多web服務啟動需要的類、xml檔案,如果這些找不到就會發生startup failed due to previous errors錯誤。

     2.如果使用spring的話,在applicationContext.xml中定義的類、xml檔案找不到也會報這個錯誤。

     3。如果使用ibatis的話,在SqlMapConfig.xml中定義的xml檔案找不到也會報這個錯誤。

     總結的經驗就是一定要把設定檔中定義的每條資訊弄清楚,不要拿來別人的代碼就使用,這樣就會解決這個問題。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.