またもエニグマ
Eclipse+Tomcatプラグインでテストをしようとしたら、こんなExcepiton。
23:39:53 (ERROR) Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hogehogeBean' defined in ServletContext resource [/WEB-INF/config/domain/controller.xml]: Can't resolve reference to bean 'hogehogeBeanTarget' while setting property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hogehogeBeanTarget' defined in ServletContext resource [/WEB-INF/config/domain/controller.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'masterCodeDao' of bean class [hoge.HogehogeBeanImpl]: Bean property 'masterCodeDao' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hogehogeBeanTarget' defined in ServletContext resource [/WEB-INF/config/domain/controller.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'masterCodeDao' of bean class [hoge.HogehogeBeanImpl]: Bean property 'masterCodeDao' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
org.springframework.beans.NotWritablePropertyException: Invalid property 'masterCodeDao' of bean class [hoge.HogehogeBeanImpl]: Bean property 'masterCodeDao' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:761)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:674)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:815)
at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:842)
at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:831)(以下略)
Bean property 'masterCodeDao' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
ということなのだが、開発サーバや他の端末では動作している。
とりあえずリコンパイル。
ダメ。
効果なし。
・・・Orz。
仕方がないので、プロジェクトを削除して再度CVSからインポート。
そしたら成功。
確かに問題となっている「hoge.HogehogeBeanImpl」は更新されている。
が、ソース上は何も問題ないので、コンパイルされた古いソースがどこかに残っていたということなのだろうか。