ibatisファイルをロードしてタイムアウト異常が発生した解決方法
1689 ワード
年前までちゃんとした工事だったのに、今日は出勤できない.エラーの原因は2013-02-18 10:17:25:920:WARN::Nested in org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:applicationContext.xml]|Offending resource: ServletContext resource [/WEB-INF/webx.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [sqlmap-config.xml]|Offending resource: class path resource [applicationContext.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [sqlmap-config.xml]; nested exception is java.net.ConnectException: Connection timed out: connect:
java.net.ConnectException: Connection timed out: connect
大まかに言えば、ネットワーク異常、第一反応はファイルがローカルでどうしてネットワーク異常なのか、ファイルを開けてよく見た.
ブラウザでアクセスしますhttp://www.ibatis.com/dtd/sql-map-config-2.dtdやっぱり開かない.so.それをhttp://ibatis.apache.org/dtd/sql-map-config-2.dtdOKです.
java.net.ConnectException: Connection timed out: connect
大まかに言えば、ネットワーク異常、第一反応はファイルがローカルでどうしてネットワーク異常なのか、ファイルを開けてよく見た.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN" "http://www.ibatis.com/dtd/sql-map-config-2.dtd">
<sqlMapConfig>
<settings useStatementNamespaces="true"/>
<sqlMap resource="sqlmap/Msgstatistics_sqlmap.xml"/>
<sqlMap resource="sqlmap/sqlmap_Conf.xml"/>
<sqlMap resource="sqlmap/Bet_sqlmap.xml"/>
</sqlMapConfig>
ブラウザでアクセスしますhttp://www.ibatis.com/dtd/sql-map-config-2.dtdやっぱり開かない.so.それをhttp://ibatis.apache.org/dtd/sql-map-config-2.dtdOKです.