アプリケーションをJboss 4.2.2/java 6/Spring 2.5.4からWildfly 9.0.2/java 8/Spring 4.3.2にアップグレードしています。ehcache:proxyをspring4に移行する
Spring/Ehcacheは、インターフェイスとワークフローに多くの変更を加えました。私のxmlがもはや正しくない理由に関する情報は見つかりません。
私はとの問題を抱えている宣言:
<ehcache:proxy id="itemDaoCacheProxy" refId="itemDao">
<ehcache:caching methodName="getAllItemNo" cacheName="itemTableCache" />
</ehcache:proxy>
エラーメッセージ:
コンテキストの初期化に失敗しました:org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:ライン98でServletContextリソース[/WEB-INF/spring-cfg.xml]のXMLドキュメントが無効です。ネストされた例外はorg.xml.sax.SAXParseExceptionです。 lineNumber:98; columnNumber:54; cvc-complex-type.2.4.c:一致するワイルドカードは厳密ですが、要素 'cache:proxy'の宣言は見つかりません。
私のXML宣言は次のようになります。
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:cache="http://www.springframework.org/schema/cache"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-4.3.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-4.3.xsd
http://www.springframework.org/schema/cache
http://www.springframework.org/schema/cache/spring-cache.xsd">
私はchacheユーティリティの春-コンテキストsupport.jarを使用していますが、問題は、XMLファイルとスキーマに孤立しているようです。 "プロキシ"要素は、後のバージョンでは見えなくなっているようです。
旧:
新:
http://www.springframework.org/schema/cache/spring-cache.xsd
exacly ehcacheを何:プロキシは、私は新しいにこれをどのように移行することができないと標準?
よろしくお願いいたします。