RE: Getting error while deploying on

2008-03-11 Thread Wolf, Chris (IT)
When you tried to deploy to Weblogic, did you attempt to deploy as a
bare WAR, or wrapped in an EAR?  You need to deploy as an EAR.  
The descriptor setup is documented here:

http://cwiki.apache.org/CXF20DOC/appserverguide.html#AppServerGuide-WebL
ogic

However, when I tried it on WLS-9.2.2, I got the following error upon 
startup:

Mar 11, 2008 7:51:01 AM EDT Warning Deployer BEA-149078 Stack
trace for
 message 149004
weblogic.application.ModuleException: [HTTP:101216]Servlet: cxf failed
to prel
oad on startup in Web application: secadmin.
java.lang.RuntimeException:
org.springframework.beans.factory.BeanDefinitionStor
eException: Parser configuration exception parsing XML from class path
resource
[META-INF/cxf/cxf.xml]; nested exception is
javax.xml.parsers.ParserConfiguratio
nException: Unable to validate using XSD: Your JAXP provider
[org.apache.xerces.
[EMAIL PROTECTED] does not support XML Schema. Are
you run
ning on Java 1.4 or below with Apache Crimson? Upgrade to Apache Xerces
(or Java
 1.5) for full XSD support.
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 


Not sure why it thinks xerces can't handle schmema since the contained
WAR 
has xerces-2.9.0

   -Chris


-Original Message-
From: Binu Andrews [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 11, 2008 5:41 AM
To: cxf-user@incubator.apache.org
Subject: Getting error while deploying on 

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



RE: Getting error while deploying on weblogic 9.2 but able to do in tomcat

2008-03-11 Thread Wolf, Chris (IT)
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-namewebapp.encoding.default/param-name
param-valueUTF-8/param-value
/application-param
prefer-application-packages
package-namejavax.jws.*/package-name
package-nameorg.apache.xerces.*/package-name
package-nameorg.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: 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 

Re: Getting error while deploying on

2008-03-11 Thread Binu Andrews

I am getting the same problem eventhough i deploy it as an ear file.

java.lang.ClassCastException: interface 
org.xmlsoap.schemas.wsdl.http.AddressType


I followed the steps mentioned in

http://cwiki.apache.org/CXF20DOC/appserverguide.html#AppServerGuide-WebLogic



Regards
-Binu

- Original Message - 
From: Wolf, Chris (IT) [EMAIL PROTECTED]

To: cxf-user@incubator.apache.org
Sent: Tuesday, March 11, 2008 5:40 PM
Subject: RE: Getting error while deploying on


When you tried to deploy to Weblogic, did you attempt to deploy as a
bare WAR, or wrapped in an EAR?  You need to deploy as an EAR.
The descriptor setup is documented here:

http://cwiki.apache.org/CXF20DOC/appserverguide.html#AppServerGuide-WebL
ogic

However, when I tried it on WLS-9.2.2, I got the following error upon
startup:

Mar 11, 2008 7:51:01 AM EDT Warning Deployer BEA-149078 Stack
trace for
message 149004
weblogic.application.ModuleException: [HTTP:101216]Servlet: cxf failed
to prel
oad on startup in Web application: secadmin.
java.lang.RuntimeException:
org.springframework.beans.factory.BeanDefinitionStor
eException: Parser configuration exception parsing XML from class path
resource
[META-INF/cxf/cxf.xml]; nested exception is
javax.xml.parsers.ParserConfiguratio
nException: Unable to validate using XSD: Your JAXP provider
[org.apache.xerces.
[EMAIL PROTECTED] does not support XML Schema. Are
you run
ning on Java 1.4 or below with Apache Crimson? Upgrade to Apache Xerces
(or Java
1.5) for full XSD support.
   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


Not sure why it thinks xerces can't handle schmema since the contained
WAR
has xerces-2.9.0

  -Chris


-Original Message-
From: Binu Andrews [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2008 5:41 AM
To: cxf-user@incubator.apache.org
Subject: Getting error while deploying on

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

RE: Getting error while deploying on

2008-03-11 Thread Wolf, Chris (IT)
Maybe you can try adding :

package-nameorg.xmlsoap.*/package-name 

to the weblogic-application.xml I sent earlier.


   -Chris



-Original Message-
From: Binu Andrews [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 11, 2008 8:52 AM
To: cxf-user@incubator.apache.org; Wolf, Chris (IT)
Subject: Re: Getting error while deploying on 

I am getting the same problem eventhough i deploy it as an ear file.

java.lang.ClassCastException: interface
org.xmlsoap.schemas.wsdl.http.AddressType

I followed the steps mentioned in

http://cwiki.apache.org/CXF20DOC/appserverguide.html#AppServerGuide-WebL
ogic



Regards
-Binu

- Original Message -
From: Wolf, Chris (IT) [EMAIL PROTECTED]
To: cxf-user@incubator.apache.org
Sent: Tuesday, March 11, 2008 5:40 PM
Subject: RE: Getting error while deploying on


When you tried to deploy to Weblogic, did you attempt to deploy as a
bare WAR, or wrapped in an EAR?  You need to deploy as an EAR.
The descriptor setup is documented here:

http://cwiki.apache.org/CXF20DOC/appserverguide.html#AppServerGuide-WebL
ogic

However, when I tried it on WLS-9.2.2, I got the following error upon
startup:

Mar 11, 2008 7:51:01 AM EDT Warning Deployer BEA-149078 Stack
trace for
 message 149004
weblogic.application.ModuleException: [HTTP:101216]Servlet: cxf failed
to prel
oad on startup in Web application: secadmin.
java.lang.RuntimeException:
org.springframework.beans.factory.BeanDefinitionStor
eException: Parser configuration exception parsing XML from class path
resource
[META-INF/cxf/cxf.xml]; nested exception is
javax.xml.parsers.ParserConfiguratio
nException: Unable to validate using XSD: Your JAXP provider
[org.apache.xerces.
[EMAIL PROTECTED] does not support XML Schema. Are
you run
ning on Java 1.4 or below with Apache Crimson? Upgrade to Apache Xerces
(or Java
 1.5) for full XSD support.
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


Not sure why it thinks xerces can't handle schmema since the contained
WAR
has xerces-2.9.0

   -Chris


-Original Message-
From: Binu Andrews [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2008 5:41 AM
To: cxf-user@incubator.apache.org
Subject: Getting error while deploying on

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