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
[EMAIL PROTECTED]

-----Original Message-----
From: Binu Andrews [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 11, 2008 8:11 AM
To: [email protected]
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.

Reply via email to