Issue Details (XML | Word | Printable)

Key: XFIRE-224
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dan Diephouse
Reporter: Brian Bonner
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XFire

Problem setting Service propertis using "native" Spring Configuration

Created: 07/Jan/06 12:03 PM   Updated: 16/Jan/06 08:58 PM
Component/s: Spring
Affects Version/s: 1.0-M6
Fix Version/s: 1.0-RC

Time Tracking:
Not Specified

Environment: jdk1.4.2_10


 Description  « Hide
I tried setting the properties of service using:

<property name="property">
<props>
<prop key="xmlbeans-namespace-hack"><value>true</value></prop>
</props>
</property>

This resulted in the following Exception:

Error creating bean with name 'Service' defined in ServletContext resource [/WEB-INF/xfire-servlet.xml]: Initialization of bean failed; nested exception is java.lang.ClassCastException: java.util.LinkedHashMap
java.lang.ClassCastException: java.util.LinkedHashMap
at org.codehaus.xfire.spring.ServiceBean.copyProperties(ServiceBean.java:405)
at org.codehaus.xfire.spring.ServiceBean.afterPropertiesSet(ServiceBean.java:139)

It turns out that (ServiceBean) and ServicePropertyBean is implementing the properties as a List of 2darray objects.

This should be changed to support properties or map config.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dan Diephouse added a comment - 16/Jan/06 08:58 PM
This should work now as I've patched net beans to be able to handle this. We'll need to get an xbean release yet before we do ours, but that shouldn't be too hard.