cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicola Waters (JIRA)" <>
Subject [jira] Commented: (CXF-1954) string2string - Map Types- into wrong namespace
Date Mon, 29 Dec 2008 11:16:45 GMT


Nicola Waters commented on CXF-1954:

Thank you- turned it was actually re-use of the aegis binding that was causing the problem.
I have now put scope='prototype' on 'aegisBean' and 'string2string' has moved into the correct
namespace, namely that of the service it's being used by.

Other than that everything else configured the same, one 'jaxws-and-aegis-service-factory'
bean ref'd by the services. It already had scope='prototype' on it, so I assume it was behaving
properly all along when ref'd by each service, but the aegis wasn't.

spring-resources_fixed.txt attached to illustrate the difference

I notice that points out that  JaxWsServiceFactoryBean
isn't re-useable...  might be worth adding a similar note to


> string2string - Map Types-  into wrong namespace
> ------------------------------------------------
>                 Key: CXF-1954
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.1.3
>            Reporter: Nicola Waters
>         Attachments: IHolderService.txt, ITemplateService.txt, spring-resources.txt,
spring-resources_fixed.txt, template_wsdl.txt
> CXF 2.1.3, being deployed in Tomcat. Multiple services inside the application, java2wsdl,
configured with Spring.
> A service containing a method with one parameter as a java.util.Map, results in a wsdl
error- the Type for the map, namely  'string2string', ends up in the wrong namespace. Instead
of going into the service's namespace, the Type is bound to the namespace of whatever the
first service deployed into the application was.
> i.e. if you have say, 2 services deployed, wired in Spring in this order:
> com.test.Service1  (namespace:
> com.test.Service2 (namespaceL
> and Service2 contains
>  constructContents(String siteId, String templateName, Map<String, String> contentsMap)
throws TemplateException;
> the resulting wsdl for Service2, will have its   
> complexType name="string2stringMap"
> attached to the namespace ''
> Relevant sections of Spring config, java and resulting wsdl attached.
> At the moment 'Map' is the only type I've found that causes this problem.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message