cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Bimschas <bimsc...@itm.uni-luebeck.de>
Subject Exception using CXF DOSGi for JAX-WS based web services
Date Mon, 01 Feb 2010 22:38:11 GMT
Hi list,

I have a bundle that registers an OSGi service under the following interface (which was generated
using wsimport from the JAX-WS RI):

@WebService(name = "SessionManagement", targetNamespace = "http://testbed.wisebed.eu/")
@XmlSeeAlso({
    ObjectFactory.class
})
public interface SessionManagement {

    @WebMethod
    @WebResult(name = "getInstanceResponse", targetNamespace = "http://testbed.wisebed.eu/",
partName = "parameters")
    @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
    public String getInstance(
        @WebParam(name = "getInstance", targetNamespace = "http://testbed.wisebed.eu/", partName
= "parameters")
        GetInstance parameters)
        throws ExperimentNotRunningException_Exception, UnknownReservationIdException_Exception
    ;

    @WebMethod
    @RequestWrapper(localName = "free", targetNamespace = "http://testbed.wisebed.eu/", className
= "eu.wisebed.testbed.Free")
    @ResponseWrapper(localName = "freeResponse", targetNamespace = "http://testbed.wisebed.eu/",
className = "eu.wisebed.testbed.FreeResponse")
    public void free(
        @WebParam(name = "reservationId", targetNamespace = "")
        String reservationId)
        throws ExperimentNotRunningException_Exception, UnknownReservationIdException_Exception
    ;

}

When I start the bundle I get the following exception:

WARN org.apache.cxf.dosgi.dsw.hooks.ServiceHookUtils - WARNING : Problem creating a remote
endpoint for eu.wisebed.testbed.SessionManagement from CXF PublishHook, reason is  Schema
for namespace 'http://testbed.wisebed.eu/' already contains type 'getInstance'
org.apache.ws.commons.schema.XmlSchemaException:  Schema for namespace 'http://testbed.wisebed.eu/'
already contains type 'getInstance'
	at org.apache.ws.commons.schema.XmlSchema.addType(XmlSchema.java:558)
	at org.apache.cxf.common.xmlschema.SchemaCollection.addGlobalTypeToSchema(SchemaCollection.java:461)
	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createWrappedMessageSchema(ReflectionServiceFactoryBean.java:1188)
	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createWrappedSchema(ReflectionServiceFactoryBean.java:1020)
	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWrappedSchema(ReflectionServiceFactoryBean.java:913)
	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:402)
	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:461)
	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:212)
	at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)
	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:117)
	at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.createServer(PojoConfigurationTypeHandler.java:133)
	at org.apache.cxf.dosgi.dsw.hooks.ServiceHookUtils.createServer(ServiceHookUtils.java:86)
	at org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.createServer(CxfPublishHook.java:106)
	at org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.publishEndpoint(CxfPublishHook.java:80)
	at org.apache.cxf.dosgi.dsw.Activator$1.run(Activator.java:164)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:637)

Can somebody help me on that?

Thanks,
Daniel
Mime
View raw message