You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Malisetti, Ramanjaneyulu" <Ra...@ca.com> on 2011/09/20 10:58:56 UTC
org.apache.ws.commons.schema.XmlSchema.getElements()Ljava/util/Map;
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
RE:
org.apache.ws.commons.schema.XmlSchema.getElements()Ljava/util/Map;
Posted by "Malisetti, Ramanjaneyulu" <Ra...@ca.com>.
Thank you. In fact I have xmlschema-core-2.0.jar in classpath. Probably there may be another jar with different version coming from somewhere. I need to figure out.
Regards
Raman
-----Original Message-----
From: Freeman Fang [mailto:freeman.fang@gmail.com]
Sent: Tuesday, September 20, 2011 2:46 PM
To: users@cxf.apache.org
Subject: Re: org.apache.ws.commons.schema.XmlSchema.getElements()Ljava/util/Map;
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:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Re: org.apache.ws.commons.schema.XmlSchema.getElements()Ljava/util/Map;
Posted by Freeman Fang <fr...@gmail.com>.
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:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com