Hi,

This is caused by xmlschema lib version mismatch.
In cxf 2.4.2, need use xmlschema-core-2.0.jar

Freeman
On 2011-9-20, at 下午4:58, Malisetti, Ramanjaneyulu wrote:

Hi,
I am clueless why I encounter this issue. We are upgrading CXF from 2.3 to 2.4.2. Did anyone encounter this exception?

I appreciate your help.

Caused by: java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchema.getElements()Ljava/util/Map; at org .apache .cxf .service .factory .ReflectionServiceFactoryBean .fillInSchemaCrossreferences(ReflectionServiceFactoryBean.java:289) at org .apache .cxf .service .factory .ReflectionServiceFactoryBean .create(ReflectionServiceFactoryBean.java:262) at org .apache .cxf .jaxws .support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java: 202) at org .apache .cxf .frontend .AbstractWSDLBasedEndpointFactory .createEndpoint(AbstractWSDLBasedEndpointFactory.java:101) at org .apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java: 157) at org .apache .cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java: 202) at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:433) at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:322) at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java: 239) at org .apache .cxf .jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java: 144)
     at javax.xml.ws.Endpoint.publish(Endpoint.java:170)

Regards
Raman

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com









Reply via email to