Actually, let me take a step back--I don't think
"org.xmlsoap.schemas.wsdl.http.AddressType" is in XMLBeans anymore (if
it ever was)--I thought it was there because of [1].  This might
actually be an obsolete class from the old Celtix[2]--one that is no
longer needed by CXF anyway.

CXF team, in the interest of being able to run CXF 2.1 on WebLogic 10.0
(or at least without this headache), can we remove references to the
"org.xmlsoap.schemas.wsdl.http" package--it is getting extremely scant
usage--in TExtensibilityElement, HTTPAddressPlugin, and
AbstractHTTPTransportFactory (and the test class
LocalTransportFactoryTest)--and it doesn't appear to be of much (if any)
use where it is being used.

Thanks,
Glen

[1]
http://javacio.us/subscribers/classes/org.xmlsoap.schemas.wsdl.http.AddressType
[2]
http://archive.xfire.codehaus.org/user/43172167.8080604%
40envoisolutions.com




2008-06-10 Glen Mazza wrote:
> Hello, 
> 
> I'm having a terrible time trying to load an CXF-based web service provider
> (in an EAR) to WebLogic 10.0.  This web service runs fine as a WAR on
> Tomcat.  Relevant portions of the stack trace are below.  WebLogic
> continually complains "ClassCastException: interface
> org.xmlsoap.schemas.wsdl.http.AddressType"--this interface is in XMLBeans. I
> guess the problem is that WebLogic is loading an older version of XMLBeans
> than the 2.3 required by CXF.  I'm guessing that because when I explicitly
> load an old version of XMLBeans (1.0) into Tomcat, I get a very similar
> error.
> 
> I've tried manually placing the XMLBeans-2.3.0 jar in the WAR's WEB-INF/lib
> folder, as well as a lib/ directory within the EAR (after updating the
> classpath in the WAR manifest to point to that directory).  No luck
> though--it is either not detecting the 2.3 JAR or I'm on the wrong track,
> and something else is the problem.
> 
> For the weblogic-application.xml, I've placed all the possible
> prefer-application-packages values I've seen others do:
> 
>       <prefer-application-packages>
>               <package-name>javax.jws.*</package-name>
>               <package-name>org.apache.xerces.*</package-name>
>               <package-name>org.apache.xalan.*</package-name>
>               <package-name>com.ctc.wstx.*</package-name>
>               <package-name>org.springframework.*</package-name>
>               <package-name>org.apache.xmlbeans.*</package-name>              
>       </prefer-application-packages>
> 
> Does anyone have a clue what the problem might be?
> 
> Thanks,
> Glen
> 
> 
> <<WLS Kernel>> <> <> <1213138566713> <BEA-149078> <Stack trace for message
> 149004
> weblogic.application.ModuleException: [HTTP:101216]Servlet: "WebServicePort"
> failed to preload on startup in Web application: "doubleit".
> java.lang.RuntimeException:
> 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: interface
> org.xmlsoap.schemas.wsdl.http.AddressType
>       at
> org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:96)
>       at
> org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:87)
>       at
> org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:65)
>       at
> org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:54)
>       at
> org.apache.cxf.transport.servlet.CXFServlet.loadSpringBus(CXFServlet.java:99)
>       at 
> org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:64)
>       at
> org.apache.cxf.transport.servlet.AbstractCXFServlet.init(AbstractCXFServlet.java:86)
>       at
> weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:282)
>       at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
>       at weblogic.security.service.SecurityManager.runAs(Unknown Source)
>       at
> weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:63)
>       at
> weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
> 
> 
> Caused by: 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: interface
> org.xmlsoap.schemas.wsdl.http.AddressType
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:451)
>       at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
>       at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
>       at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
>       at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
>       at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
>       at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
>       at
> org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:86)
>       at
> org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:93)
> 
> 
> Caused by: org.springframework.beans.BeanInstantiationException: Could not
> instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor
> threw exception; nested exception is java.lang.ClassCastException: interface
> org.xmlsoap.schemas.wsdl.http.AddressType
>       at 
> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
>       at
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:757)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:722)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386)
>       ... 56 more
> Caused by: java.lang.ClassCastException: interface
> org.xmlsoap.schemas.wsdl.http.AddressType
>       at java.lang.Class.asSubclass(Class.java:2979)
>       at
> org.apache.cxf.wsdl.JAXBExtensionHelper.addExtensions(JAXBExtensionHelper.java:64)
>       at
> org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManagerImpl.java:231)
>       at 
> org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:104)
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>       at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 

Reply via email to