cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Landslide <xiangm...@landslide.com>
Subject How to run the included Restful sample on Tomcat
Date Sat, 01 Mar 2008 23:03:26 GMT

I would like to run the included sample "restful_http_binding" on Tomcat
server, but got the following error. I would need some help to get this
sample working in a Web container. Thanks!

Mar 1, 2008 5:55:43 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'customerService': Invocation of init method failed; nested
exception is java.lang.RuntimeException: Schema for namespace
'http://demo.restful.server' already contains type 'getCustomer
Caused by: java.lang.RuntimeException: Schema for namespace
'http://demo.restful.server' already contains type 'getCustomer
	at org.apache.ws.commons.schema.XmlSchema.addType(XmlSchema.java:311)
	at
org.apache.cxf.common.xmlschema.SchemaCollection.addGlobalTypeToSchema(SchemaCollection.java:233)
	at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createWrappedMessageSchema(ReflectionServiceFactoryBean.java:1015)
	at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createWrappedSchema(ReflectionServiceFactoryBean.java:856)
	at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWrappedSchema(ReflectionServiceFactoryBean.java:752)
	at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:320)
	at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:365)
	at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:159)
	at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:89)
	at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:74)
	at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:108)
	at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:147)
	at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:299)
	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:230)
	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:181)
	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:352)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

-- 
View this message in context: http://www.nabble.com/How-to-run-the-included-Restful-sample-on-Tomcat-tp15782090p15782090.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message