i have the following section in my spring config file:
<jaxws:endpoint
id="simpleWsEndpoint"
implementor="#SimpleImpl"
address="/Simple">
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding"/>
</jaxws:dataBinding>
</jaxws:endpoint>
According to the "Add support for <databinding> in endpoint & client
configuration" (https://issues.apache.org/jira/browse/CXF-768), it should be
work to define the dataBinding for that endpoint in cxf 2.0.1. However, i
got the following error after deployed to the app. server:
<Aug 17, 2007 11:08:44 AM GMT+08:00> <Warning> <HTTP> <BEA-101162> <User
defined listener org.springframework.web.context.ContextLoaderListener
failed: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'simpleWsEndpoint': Error setting property values;
nested exception is org.springframework.beans.NotWritablePropertyException:
Invalid property 'dataBinding' of bean class
[org.apache.cxf.jaxws.EndpointImpl]: Bean property 'dataBinding' is not
writable or has an invalid setter method. Does the parameter type of the
setter match the return type of the getter?.
i am using maven2 to build my application with the following in my pom.xml.
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>2.0.1-incubator</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>2.0.1-incubator</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-databinding-aegis</artifactId>
<version>2.0.1-incubator</version>
</dependency>
--
View this message in context:
http://www.nabble.com/problem-when-using-%3Cjaxws%3Adatabinding-%3E-in-%3Cjaxws%3Aendpoint-%3E-in-cxf-2.0.1-tf4283503.html#a12193431
Sent from the cxf-user mailing list archive at Nabble.com.