This problem has to do with mismatched classloaders. As you can see in the
traces, all required classes were loaded.


Willem2 wrote:
> 
> Hi
> 
> It looks like
> 
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl is not match with
> javax.xml.parsers.DocumentBuilderFactory in when WSDLManager is creating.
> 
> CXF uses xercesImpl-2.8.1.jar ,you may check it against your Web
> container's runtime's class path. Maybe drop this jar in your war's
> WEB-INF\lib directory will help you out :)
> 
> Willem.
> 
> adupre wrote:
>> Here's the error I get while loading Spring... anyone have any idea what
>> I am
>> doing wrong? Thx
>>
>> 2007-09-26 11:42:22.440::WARN:  Failed startup of context
>> [EMAIL PROTECTED]/pegasus,c:\projects\pegasus/web-app}
>> 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]: Inst
>> antiation of bean failed; nested exception is
>> org.springframework.beans.BeanInstantiationException: Could not
>> instantiate
>> bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constr
>> uctor threw exception; nested exception is java.lang.ClassCastException:
>> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to
>> javax.xml.parsers.DocumentBuilderFactor
>> y       at
>> groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:531)N(ScriptBytecodeAdapter.java:159)
>> Caused by: org.springframework.beans.BeanInstantiationException: Could
>> not
>> instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]:
>> Constructor
>> threw exception; nested excep
>> tion is java.lang.ClassCastException:
>> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to
>> javax.xml.parsers.DocumentBuilderFactory
>> Caused by: java.lang.ClassCastException:
>> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to
>> javax.xml.parsers.DocumentBuilderFactory
>>         at
>> javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:123)deAdapter.java:67)
>>         at
>> java.util.XMLUtils.getLoadingDoc(XMLUtils.java:75)odInvoke(MetaClassHelper.java:678)
>>         at java.util.XMLUtils.load(XMLUtils.java:57)ke0(Native
>> Method)89)oke(ReflectionMetaMethod.java:58)
>>   
> 
> 

-- 
View this message in context: 
http://www.nabble.com/CXF-and-grails...-tf4524774.html#a12988526
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to