This SOUNDS like it might somehow be getting some CXF stuff from multiple 
classloaders or similar.   Maybe some old jar left in a tomcat shared dir or 
something?   

The indicator is:
>     at java.lang.Class.asSubclass(Class.java:2979)
>     at
> org.apache.cxf.wsdl.JAXBExtensionHelper.addExtensions(JAXBExtensionHelper.j
>ava:73) at

There isn't a call to "asSubclass" anywhere near line 73 on the 2.2 branch.  
On 2.0.x branch, line 73 definitely contains a call to asSubclass.   Thus, it 
looks like it's picking up a 2.0.x jar someplace in the mix.

Dan



On Tue April 7 2009 2:59:19 pm Nick Heudecker wrote:
> I'm encountering the following exception at application startup following
> an attempt to upgrade from 2.0.8 to 2.2:
>
> 2009-04-07 11:49:58.221::WARN:  Nested in
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'org.apache.cxf.wsdl.WSDLManager' 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.wsdl11.WSDLManagerImpl]:
> Constructor threw exception; nested exception is
> java.lang.ClassCastException: class
> org.apache.cxf.ws.addressing.wsdl.UsingAddressing:
> java.lang.ClassCastException: class
> org.apache.cxf.ws.addressing.wsdl.UsingAddressing
>     at java.lang.Class.asSubclass(Class.java:2979)
>     at
> org.apache.cxf.wsdl.JAXBExtensionHelper.addExtensions(JAXBExtensionHelper.j
>ava:73) at
> org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManager
>Impl.java:238) at
> org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManager
>Impl.java:218) at
> org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:109)
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method) at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcce
>ssorImpl.java:39) at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstru
>ctorAccessorImpl.java:27) at
> java.lang.reflect.Constructor.newInstance(Constructor.java:494) at
> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
>     at
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.insta
>ntiate(SimpleInstantiationStrategy.java:61)
>
> Any idea what could be causing this and how to resolve it?  Thanks!

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to