No, that wouldn't cause the problem.

The JaxWsServiceConfiguration isn't enough. We still need the
defaultServiceConfiguration in there. Can you try something like:

<list>
<bean class="org.apache.cxf.jaxws.JaxWsServiceConfiguration">
<bean class="org.apache.cxf.aegis.databinding.AegisServiceConfiguration">
<bean class="org.apache.cxf.service.factory.DefaultServiceConfiguration">
</list>

(if for some reason that doesn't work, try inversing the order, but I'm
pretty sure thats the right order)

Cheers,
- Dan

On 7/27/07, Dave Kallstrom <[EMAIL PROTECTED]> wrote:
>
> I just though of something. I don't have aegis.xml config files for all
> classes only some of them. Could this be the reason this is not working?
>
> On 7/27/07, Dave Kallstrom <[EMAIL PROTECTED]> wrote:
> >
> > Nope.. Same error. Even tried adding the JaxWsServiceConfiguration along
> > with the AegisServiceConfiguration. I think I'll just have to study the
> > spring docs a little more.
> >
> >
> > On 7/27/07, Dan Diephouse <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi Dave,
> > >
> > > The problem is when you supplied the aegis configuration you overwrote
> > > the
> > > default configuration. Try this instead:
> > >
> > > <list merge=true>
> > > <ref bean="aegisConfig"/>
> > > </list>
> > >
> > > Hope that helps,
> > > - Dan
> > >
> > > On 7/26/07, Dave Kallstrom <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Here is my cxf.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
> > > >
> > >
> > >
> > >
> > > --
> > > Dan Diephouse
> > > Envoi Solutions
> > > http://envoisolutions.com | http://netzooid.com/blog
> > >
> >
> >
> >
> > --
> > Dave Kallstrom
>
>
>
>
> --
> Dave Kallstrom
>



-- 
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog

Reply via email to