History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XFIRE-527
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dan Diephouse
Reporter: Pablo Pastorino
Votes: 0
Watchers: 0
Operations

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

Use a straight collection instead of Collection<Srting> for JaxbType.SEARCH_PACKAGES property

Created: 08/Jul/06 10:47 AM   Updated: 07/Aug/06 10:47 AM
Component/s: None
Affects Version/s: 1.1.1
Fix Version/s: 1.2

Time Tracking:
Not Specified

Environment: xfire 1.1.1


 Description  « Hide
Hi, I need to setup the JaxbType.SEARCH_PACKAGES using spring remoting configuration.

The problem is the JaxbType class casts the property value to Collection<Srting> and spring doesn't have generics support.

Then the following spring configuration fails with a class cast exception.

<bean name="/XXXService"
class="org.codehaus.xfire.spring.remoting.XFireExporter">

<property name="serviceBean" ref="XXXServiceImpl"/>
<property name="serviceFactory" ref="jaxbServiceFactory"/>

<property name="properties">
<map>
<entry>
<key><value> jaxb.search.pacakges</value></key>
<list>
<value>xxx.packagename1</value>
<value>xxx.packagename2</value>
</list>
</entry>
</map>
</property>
</bean>

Changing to Collection type will fix this problem.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dan Diephouse - 07/Aug/06 10:47 AM
This is fixed in 1.2-RC I believe. Thanks for the report!