You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Binu Andrews <bi...@gmail.com> on 2008/03/11 13:11:25 UTC
Getting error while deploying on weblogic 9.2 but able to do in tomcat
Hi,
I am able to deploy my webserice in tomcat as well as JBoss.
But I am getting the following error when i deployed the same war in weblogic 9.2
<Mar 11, 2008 1:40:15 PM IST> <Warning> <HTTP> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: 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.
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:454)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:254)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
Truncated. see log file for complete stacktrace
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:99)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:60)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:45)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:739)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:727)
Truncated. see log file for complete stacktrace
java.lang.ClassCastException: interface org.xmlsoap.schemas.wsdl.http.AddressType
at java.lang.Class.asSubclass(Class.java:2948)
at org.apache.cxf.wsdl.JAXBExtensionHelper.addExtensions(JAXBExtensionHelper.java:64)
at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManagerImpl.java:224)
at org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:97)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Truncated. see log file for complete stacktrace
Please help me to resolve this issue
Regards
-Binu
RE: Getting error while deploying on weblogic 9.2 but able to do in tomcat
Posted by "Wolf, Chris (IT)" <Ch...@morganstanley.com>.
I was able to load my cxf app on WLS-9.2.2 and access the WSDL (havn't
tested services
yet)
I followed the instructions here:
http://cwiki.apache.org/CXF20DOC/appserverguide.html#AppServerGuide-Pack
warinanear%252Cdeploytheearwithweblogicapplication.xml
With a slightly modified weblogic-application.xml:
(the xml tag might be redundant)
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-application xmlns="http://www.bea.com/ns/weblogic/90">
<xml>
<parser-factory>
<saxparser-factory>
org.apache.xerces.jaxp.SAXParserFactoryImpl
</saxparser-factory>
<document-builder-factory>
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
</document-builder-factory>
<transformer-factory>
org.apache.xalan.processor.TransformerFactoryImpl
</transformer-factory>
</parser-factory>
</xml>
<application-param>
<param-name>webapp.encoding.default</param-name>
<param-value>UTF-8</param-value>
</application-param>
<prefer-application-packages>
<package-name>javax.jws.*</package-name>
<package-name>org.apache.xerces.*</package-name>
<package-name>org.apache.xalan.*</package-name>
</prefer-application-packages>
</weblogic-application>
Chris Wolf
Morgan Stanley | Technology
1633 Broadway, 26th Floor | New York, NY 10019
Phone: +1 212 537-2980
Chris.Wolf@morganstanley.com
-----Original Message-----
From: Binu Andrews [mailto:binuandrews@gmail.com]
Sent: Tuesday, March 11, 2008 8:11 AM
To: cxf-user@incubator.apache.org
Subject: Getting error while deploying on weblogic 9.2 but able to do in
tomcat
Hi,
I am able to deploy my webserice in tomcat as well as JBoss.
But I am getting the following error when i deployed the same war in
weblogic 9.2
<Mar 11, 2008 1:40:15 PM IST> <Warning> <HTTP> <BEA-101162> <User
defined listener org.springframework.web.context.ContextLoaderListener
failed: 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.
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.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:454)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(AbstractBeanFactory.java:254)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:144)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:251)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:163)
Truncated. see log file for complete stacktrace
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:99)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:60)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.in
stantiate(SimpleInstantiationStrategy.java:45)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.instantiateBean(AbstractAutowireCapableBeanFactory.java:739)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:727)
Truncated. see log file for complete stacktrace
java.lang.ClassCastException: interface
org.xmlsoap.schemas.wsdl.http.AddressType
at java.lang.Class.asSubclass(Class.java:2948)
at
org.apache.cxf.wsdl.JAXBExtensionHelper.addExtensions(JAXBExtensionHelpe
r.java:64)
at
org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLMana
gerImpl.java:224)
at
org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:97)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Truncated. see log file for complete stacktrace
Please help me to resolve this issue
Regards
-Binu
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.