Thanks I solved this by doing:
<bean id="jaxbContext" class="javax.xml.bind.JAXBContext"
factory-method="newInstance">
<constructor-arg index="0" value="com.acme.model"/>
</bean>
<jaxws:dataBinding>
<bean class="org.apache.cxf.jaxb.JAXBDataBinding">
<constructor-arg ref="jaxbContext"></constructor-arg>
</bean>
</jaxws:dataBinding>
On Wed, Jan 27, 2010 at 8:25 PM, Daniel Kulp <[email protected]> wrote:
> On Wed January 27 2010 11:44:10 am Vinicius Carvalho wrote:
>> Hello there! How can I inform the org.apache.cxf.jaxb.JAXBDataBinding
>> which packages to look at?
>
> JAXBDataBinding has a constructor which is a Set<Class> that you can use. I
> BELIEVE if you use that constructor, it won't then scan. Not 100% sure
> though.
>
> Dan
>
>
>>
>> It seems that it is scanning the whole classpath for annotations, and
>> now it throwing errors complaining about my DAOs Interfaces (and JAXB
>> not being able to handle interface)
>>
>> My previous experiences with jaxb I manually created the Context and
>> set the packagenames of it. Dunno how to pass it (the correct
>> property) of the JAXBDatabinding.
>>
>> Regards
>>
>
> --
> Daniel Kulp
> [email protected]
> http://www.dankulp.com/blog
>