I am getting weird "No setter for property 'xxx' errors in class 'yyy'". For instance the 'jndiName' property is only specified in the 'xappPropertiesFile' bean def. But the validator is complaining that there's no setter for 'jndiName' for every other bean in the applicationContext.xml (i.e. xappPropFileResource). The config file works fine in my application so I am not sure what the problem is.
I had this problem w/ v 1.0.3 of the plugin and then updated to the 1.1.0 with the same results. I am running on Eclipse 3, OS X
Here's the config file:
Code:<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <!-- config to read properties from dtsxappint.propertyfile --> <bean id="xappPropertiesFile" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName"> <value>java:comp/env/dtsxappint.propertyfile</value> </property> </bean> <bean id="xappPropFileResource" class="org.springframework.core.io.FileSystemResource"> <constructor-arg> <ref bean="xappPropertiesFile"/> </constructor-arg> </bean> <!-- property placeholder post-processor --> <bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="location"> <ref bean="xappPropFileResource"/> </property> </bean> <!-- Configure Pooling --> <bean id="proxyPoolFactory" class="com.trw.xappint.pool.ProgressProxyObjectFactory"> <!-- <property name="progressAppServerURL"><value>AppServer://214.3.110.57:31522/dts_DEVL04_as_soap</value></property>--> <property name="progressAppServerURL"> <value>${url.progress.appserver}</value> </property> <property name="proxyMap"> <map> <entry key="document"> <value>com.trw.dts.xappint.document.proxy.DocProxy</value> </entry> <entry key="processAuth"> <value>com.trw.dts.xappint.document.proxy.ProcessAuthProxy</value> </entry> </map> </property> </bean> <bean id="proxyPoolConfig" class="com.trw.xappint.pool.GenericKeyedObjectPoolConfigBean"> <!-- pool behavior config items see: http://jakarta.apache.org/commons/pool/apidocs/org/apache/commons/pool/impl/GenericKeyedObjectPool.html for more details --> <!-- testOnBorrow and testOnReturn tell the pool validate objects as they are borrowed from and returned to the pool. Should always be true --> <property name="testOnBorrow"> <value>true</value> </property> <property name="testOnReturn"> <value>true</value> </property> <!-- the following values may be tweaked in enviroments for optimal peformance the defaults appear to be adequate based on preliminary load tests --> <property name="maxActive"> <value>25</value> </property> <property name="maxIdle"> <value>10</value> </property> <!-- these values should not be changed with out reading the above link <property name="maxTotal"><value>-1</value></property> <property name="minEvictableIdleTimeMillis"><value>5000</value></property> <property name="numTestsPerEvictionRun"><value>true</value></property> <property name="testWhileIdle"><value>true</value></property> <property name="timeBetweenEvictionRunsMillis"><value>true</value></property> <property name="whenExhaustedAction"><value>true</value></property> --> </bean> <bean id="proxyPool" class="org.apache.commons.pool.impl.GenericKeyedObjectPool"> <constructor-arg index="0"> <ref bean="proxyPoolFactory"/> </constructor-arg> <constructor-arg index="1"> <ref bean="proxyPoolConfig"/> </constructor-arg> </bean> <!-- services that will be exposed --> <bean id="progressSession" class="com.trw.dts.xappint.session.ProgressSession"> <property name="proxyPool"> <ref bean="proxyPool"/> </property> </bean> <bean id="document" class="com.trw.dts.xappint.document.Document"> <property name="proxyPool"> <ref bean="proxyPool"/> </property> </bean> <bean id="receiptUtil" class="com.trw.ets.xappint.receipt.ReceiptUtil"> <property name="proxyPool"> <ref bean="proxyPool"/> </property> </bean> <bean id="ixAuthorization" class="com.trw.dts.xappint.document.IXAuthorizationImpl"> <property name="proxyPool"> <ref bean="proxyPool"/> </property> </bean> <bean id="glueBridgeRegistry" class="com.trw.springgluebridge.Registry"/> <!-- tracing proxy --> <!-- <bean id="traceInterceptor" class="org.springframework.aop.interceptor.TraceInterceptor"/> <bean id="settersAndAbsquatulateAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor"> <property name="advice"> <ref local="traceInterceptor"/> </property> <property name="patterns"> <list> <value>.*DocProxy.*</value> </list> </property> </bean> --> </beans>


Reply With Quote