org.springframework.web.context.ContextLoaderListenertomcat在啟動的時候發生如下錯誤:2008-9-2811:13:01org.apache.catalina.core.StandardContextstart嚴重:ErrorlistenerStart2008-9-2811:1" />

亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

startup failed due to previous errors

系統 2592 0

在使用SSH添加

? <listener>
???? <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
?? </listener>

?

tomcat在啟動的時候發生如下錯誤:?

2008-9-28 11:13:01 org.apache.catalina.core.StandardContext start
嚴重: Error listenerStart
2008-9-28 11:13:01 org.apache.catalina.core.StandardContext start
嚴重: Context [/xxfire] startup failed due to previous errors

?

?

錯誤分析:

?

????? 錯誤觸發在web.xml中定義

Xml代碼 復制代碼
  1. < context-param > ??
  2. ???????? < param-name > contextConfigLocation </ param-name > ??
  3. ???????? < param-value > /WEB-INF/context/ApplicationContext-*.xml </ param-value > ??
  4. </ context-param > ??
  5. < SPAN ? style = "COLOR:?#000000" > < listener > ??
  6. ???????? < listener-class > < SPAN ? style = "BACKGROUND-COLOR:?#ff6600" > org.springframework.web.context.ContextLoaderListener </ SPAN > </ listener-class > ??
  7. </ listener > </ SPAN > ??
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/context/ApplicationContext-*.xml</param-value>
</context-param>

    
      <listener>
        <listener-class>
      
        org.springframework.web.context.ContextLoaderListener
      
      </listener-class>
</listener>
    
  

?? 檢查spring配置管理xml文件。發現錯誤產生在:

?

Xml代碼 復制代碼
  1. < bean ? id = "dataSource" ? class =" < SPAN ?style=" COLOR :?#000000;?BACKGROUND-COLOR:?#ff6600" > org.apache.commons.dbcp.BasicDataSource </ SPAN > " > ??
  2. ???? < property ? name = "driverClassName" ? value = "oracle.jdbc.driver.OracleDriver" > </ property > ??
  3. ???? < property ? name = "url" ? value = "jdbc:oracle:thin:@localhost:1521:orcl" > </ property > ??
  4. ???? < property ? name = "username" ? value = "sys8" > </ property > ??
  5. ???? < property ? name = "password" ? value = "sys8" > </ property > ??
  6. </ bean > ??
    <bean id="dataSource" class="
    
      org.apache.commons.dbcp.BasicDataSource
    
    ">
	<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"></property>
	<property name="url" value="jdbc:oracle:thin:@localhost:1521:orcl"></property>
	<property name="username" value="sys8"></property>
	<property name="password" value="sys8"></property>
</bean>
  

?? 上面所示的代碼中,紅色代碼是產生錯誤的根源,在spring管理Hibernate的dataSource是用的是:

Java代碼 復制代碼
  1. <SPAN?style= "COLOR:?#000000" >org.springframework.jdbc.datasource.DriverManagerDataSource</SPAN>??
    
      org.springframework.jdbc.datasource.DriverManagerDataSource
    
  

?

解決:

Xml代碼 復制代碼
  1. < bean ? id = "dataSource" ? class =" < SPAN ?style=" BACKGROUND -COLOR:?#ff6600" > org.springframework.jdbc.datasource.DriverManagerDataSource </ SPAN > " > ??
  2. ???? < property ? name = "driverClassName" ? value = "oracle.jdbc.driver.OracleDriver" > </ property > ??
  3. ???? < property ? name = "url" ? value = "jdbc:oracle:thin:@localhost:1521:orcl" > </ property > ??
  4. ???? < property ? name = "username" ? value = "sys8" > </ property > ??
  5. ???? < property ? name = "password" ? value = "sys8" > </ property > ??
  6. </ bean > ??

startup failed due to previous errors


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 四虎影视永久在线精品免费 | 欧美性xxxxxx爱 | 国产精品高清全国免费观看 | 91资源| 欧美特级毛片 | 九九精品视频免费 | 99伦理| 欧美日韩国产在线人成 | 99热在线只有精品 | 夜色私人影院永久地址入口 | 97久久人人| 欧美性插视频 | 国产一区在线观看视频 | 26uuu另类亚洲欧美日本一 | 日本一级在线观看 | 热热色国产 | 精品国产日韩亚洲一区91 | 99久久免费精品国产免费高清 | 色婷婷狠狠久久综合五月 | 日韩日b视频 | 中文字幕在线精品视频入口一区 | 国产精品视频久久 | 最新国产一区二区精品久久 | 欧美观看一级毛片 | 四虎黄色网址 | 一级毛片q片 | 国产精品aaa | 国产中文字幕久久 | 国产成人亚洲精品大帝 | 成人亚洲国产综合精品91 | 亚洲国产一区二区a毛片 | 欧美区一区二区三 | 亚洲一区小说区中文字幕 | 外国一级黄色毛片 | 四虎一影院区永久精品 | 国产精品视频一区麻豆 | 青草福利| 91视频精品| 免费网站看v片在线成人国产系列 | 在线观看日本免费视频大片一区 | 看真人一级毛多毛片 |