XFire

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

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1.1
  • Fix Version/s: 1.2
  • Component/s: None
  • Labels:
    None
  • Environment:
    xfire 1.1.1
  • Number of attachments :
    0

Description

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.

Activity

Hide
Dan Diephouse added a comment -

This is fixed in 1.2-RC I believe. Thanks for the report!

Show
Dan Diephouse added a comment - This is fixed in 1.2-RC I believe. Thanks for the report!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: