Check you classpaths. It sounds like you have an older version of Neethi on
the classpath. CXF 2.4.x requires Neethi 3.x.
Dan
On Thursday, June 30, 2011 9:08:06 AM Lalit Kumar wrote:
> Hi,
>
> I have created a web application using wsdl first approach.
>
> *Step 1: Created a wsdl file
> Step 2: generated stubs using ant task
> Step 3: created a bean.xml
>
> while server startup I am facing this issue with cxf 2.4.1..... while the
> same works fine with 2.2.9
> *
>
> <BR>
>
>
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]:
> Instantiation of bean failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Could not instantiate
> bean class [org.apache.cxf.bus.spring.SpringBus]: Constructor threw
> exception; nested exception is java.lang.IncompatibleClassChangeError:
> org.apache.neethi.AssertionBuilderFactory
>
>
> <BR>
>
> <target name="cxfWSDLToJava">
> <mkdir dir="${src_component}" />
> <echo level="info" message="Generating code using wsdl2java..."
> />
> <java classname="org.apache.cxf.tools.wsdlto.WSDLToJava"
fork="true">
> <arg value="-impl" />
> <arg value="-d" />
> <arg value="${src_component}" />
> <arg value="${wsdl_component}/NewWSDLFile.wsdl" />
> <classpath>
> <path refid="cxf.classpath" />
> </classpath>
> </java>
> </target>
>
> <BR>
> <BR>
>
> <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.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="auth"
> implementor="org.example.newwsdlfile.NewWSDLFileImpl"
> address="/TestService" />
>
>
> </beans>
>
> <BR>
>
>
> Regards
> Lalit Kumar
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Could-not-instantiate-bean-SpringBus-2-4-1-
> tp4539354p4539354.html Sent from the cxf-dev mailing list archive at
> Nabble.com.
--
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com