Here is my cfx.xml file.
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
<import resource="classpath:META-INF/cxf/cxf.xml"/>
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
<jaxws:endpoint id="CollectiveServices" implementor="#serviceBean"
address="/CollectiveServices" >
<jaxws:serviceFactory>
<bean class="
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">
<property name="dataBinding" ref="aegisBean"/>
<property name="serviceConfigurations">
<list>
<ref bean="aegisConfig"/>
</list>
</property>
</bean>
</jaxws:serviceFactory>
</jaxws:endpoint>
<bean id="aegisConfig" class="
org.apache.cxf.aegis.databinding.AegisServiceConfiguration"/>
<bean id="aegisBean" class="
org.apache.cxf.aegis.databinding.AegisDatabinding"/>
<bean id="serviceBean" class="
collective.webservices.CollectiveServicesImpl">
<property name="assetFactory" ref="assetFactoryBean"></property>
</bean>
<bean id="assetFactoryBean" class="
collective.webservices.DefaultWSAssetFactory">
</bean>
</beans>
When I start the app I am getting the following error
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'CollectiveServices': Invocation of init method failed; nested
exception is java.lang.IllegalStateException: ServiceConfiguration must
provide a value!
Caused by:
java.lang.IllegalStateException: ServiceConfiguration must provide a value!
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.getInputMessageName
(ReflectionServiceFactoryBean.java:1061)
I took a peek at AegisServiceConfiguration and notice that it extends
AbtractServiceConfiguration which returns null for
protected QName getInputMessageName(final OperationInfo op, final Method
method)
Am I doing something wrong here or is there something wrong with
AegisServiceConfiguration?
--
Dave Kallstrom