I'm hoping someone can shed some light on this for me. Why does the following throw a PropertyAccessExceptionsException:
and this doesn't (it works fine):Code:<bean id="myJob" class="com.blahblah.myJob"></bean> <bean id="myJobDetail" class="org.springframework.scheduling.quartz.JobDetailBean"> <property name="jobClass"> <ref local="myJob"/> </property> </bean>
Is there a way to reference the myJob bean class? Here's the exception thrown from the former configuration:Code:<bean id="myJob" class="com.blahblah.myJob"></bean> <bean id="myJobDetail" class="org.springframework.scheduling.quartz.JobDetailBean"> <property name="jobClass"> <value>com.blahblah.myJob</value> </property> </bean>
What can I do to set the jobClass property to myJob's class? Is it even possible? Muchas gracias in advance!Code:Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.blahblah.myJob] to required type [java.lang.Class] for property 'jobClass']


Reply With Quote