Ted,
Thank you for leading me in the right direction. I deleted jars on the
path until I figured out which ones I needed. Then, I checked the version of
each jar and discovered that I had the wrong version of the neethi jar. I
downloaded the correct version and the exception cleared up. I'm off to figure
out the next exception.
Thanks again,
CXF Newbie
-----Original Message-----
From: Ted [mailto:[email protected]]
Sent: Monday, July 16, 2012 6:22 PM
To: [email protected]
Subject: Re: ExtensionException error
I find that I get "IncompatibleClassChangeError" 's when I forget to do a clean
before a build, or if I have conflicting versions of jars in my lib folder.
On Tue, Jul 17, 2012 at 8:22 AM, April Easton <[email protected]>wrote:
> Good day,
> I'm working on creating my first CXF web service and I'm stuck on
> an error message. I've looked on the Internet, but can seem to find
> something helpful. I'm using CXF 2.6.1 with Spring 3.1.1 on JDK
> 1.6_07 and deploying my initial web application on Tomcat 6.0.32. I
> have the spring 3.1.1.RELEASE jars and the cxf 2.6.1 jars on the
> classpath. What does the following error message mean?
>
>
> I'm getting the following error found in the Tomcat localhost logs Jul
> 16, 2012 3:45:22 PM org.apache.catalina.core.StandardContext
> listenerStart
> SEVERE: Exception sending context initialized event to listener
> instance of class
> org.springframework.web.context.ContextLoaderListener
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'processImage': Initialization of bean failed;
> nested exception is org.apache.cxf.bus.extension.ExtensionException
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBea
> n(AbstractBeanFactory.java:291)
> ...
> Caused by: java.lang.IncompatibleClassChangeError: Implementing class
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141
> )
>
>
> The cxf-servlet.xml file is located at /WEB-INF.
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:jaxws="http://cxf.apache.org/jaxws"
> xmlns:soap="http://cxf.apache.org/bindings/soap"
> 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">
>
> <jaxws:endpoint
> id="processImage"
> implementor="com.mycompany.test.service.TestDetailsImpl"
> address="/test">
> </jaxws:endpoint>
> </beans>
>
>
> Thanks,
> CXF Newbie
>
>
>
--
Ted.