You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Nicola Waters (JIRA)" <ji...@apache.org> on 2008/12/22 15:54:44 UTC

[jira] Created: (CXF-1954) string2string - Map Types- into wrong namespace

string2string - Map Types-  into wrong namespace
------------------------------------------------

                 Key: CXF-1954
                 URL: https://issues.apache.org/jira/browse/CXF-1954
             Project: CXF
          Issue Type: Bug
          Components: Aegis Databinding
    Affects Versions: 2.1.3
            Reporter: Nicola Waters


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:   http://service1.test.com
com.test.Service2 (namespaceL http://service2.test.com)

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 'http://service1.test.com'

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.


[jira] Resolved: (CXF-1954) string2string - Map Types- into wrong namespace

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies resolved CXF-1954.
-----------------------------------

    Resolution: Invalid

I'm marking this invalid since there was no code change to resolve it. I have added a note to the page you suggested.

> string2string - Map Types-  into wrong namespace
> ------------------------------------------------
>
>                 Key: CXF-1954
>                 URL: https://issues.apache.org/jira/browse/CXF-1954
>             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:   http://service1.test.com
> com.test.Service2 (namespaceL http://service2.test.com)
> 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 'http://service1.test.com'
> 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.


[jira] Updated: (CXF-1954) string2string - Map Types- into wrong namespace

Posted by "Nicola Waters (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicola Waters updated CXF-1954:
-------------------------------

    Attachment: ITemplateService.txt

> string2string - Map Types-  into wrong namespace
> ------------------------------------------------
>
>                 Key: CXF-1954
>                 URL: https://issues.apache.org/jira/browse/CXF-1954
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.1.3
>            Reporter: Nicola Waters
>         Attachments: IHolderService.txt, ITemplateService.txt, spring-resources.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:   http://service1.test.com
> com.test.Service2 (namespaceL http://service2.test.com)
> 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 'http://service1.test.com'
> 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.


[jira] Commented: (CXF-1954) string2string - Map Types- into wrong namespace

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12658998#action_12658998 ] 

Benson Margulies commented on CXF-1954:
---------------------------------------

Aha. I think you need to avoid reuse of the service factory and the data binding. Add scope='prototype' to each of these and see if your problem goes away.

> string2string - Map Types-  into wrong namespace
> ------------------------------------------------
>
>                 Key: CXF-1954
>                 URL: https://issues.apache.org/jira/browse/CXF-1954
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.1.3
>            Reporter: Nicola Waters
>         Attachments: IHolderService.txt, ITemplateService.txt, spring-resources.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:   http://service1.test.com
> com.test.Service2 (namespaceL http://service2.test.com)
> 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 'http://service1.test.com'
> 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.


[jira] Updated: (CXF-1954) string2string - Map Types- into wrong namespace

Posted by "Nicola Waters (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicola Waters updated CXF-1954:
-------------------------------

    Attachment: spring-resources.txt

> string2string - Map Types-  into wrong namespace
> ------------------------------------------------
>
>                 Key: CXF-1954
>                 URL: https://issues.apache.org/jira/browse/CXF-1954
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.1.3
>            Reporter: Nicola Waters
>         Attachments: IHolderService.txt, ITemplateService.txt, spring-resources.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:   http://service1.test.com
> com.test.Service2 (namespaceL http://service2.test.com)
> 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 'http://service1.test.com'
> 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.


[jira] Commented: (CXF-1954) string2string - Map Types- into wrong namespace

Posted by "Nicola Waters (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12659534#action_12659534 ] 

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 http://cwiki.apache.org/CXF20DOC/http-binding.html points out that  JaxWsServiceFactoryBean isn't re-useable...  might be worth adding a similar note to http://cwiki.apache.org/CXF20DOC/aegis-21.html?

thanks!

> string2string - Map Types-  into wrong namespace
> ------------------------------------------------
>
>                 Key: CXF-1954
>                 URL: https://issues.apache.org/jira/browse/CXF-1954
>             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:   http://service1.test.com
> com.test.Service2 (namespaceL http://service2.test.com)
> 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 'http://service1.test.com'
> 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.


[jira] Updated: (CXF-1954) string2string - Map Types- into wrong namespace

Posted by "Nicola Waters (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicola Waters updated CXF-1954:
-------------------------------

    Attachment: spring-resources_fixed.txt

> string2string - Map Types-  into wrong namespace
> ------------------------------------------------
>
>                 Key: CXF-1954
>                 URL: https://issues.apache.org/jira/browse/CXF-1954
>             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:   http://service1.test.com
> com.test.Service2 (namespaceL http://service2.test.com)
> 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 'http://service1.test.com'
> 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.


[jira] Updated: (CXF-1954) string2string - Map Types- into wrong namespace

Posted by "Nicola Waters (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicola Waters updated CXF-1954:
-------------------------------

    Attachment: template_wsdl.txt

> string2string - Map Types-  into wrong namespace
> ------------------------------------------------
>
>                 Key: CXF-1954
>                 URL: https://issues.apache.org/jira/browse/CXF-1954
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.1.3
>            Reporter: Nicola Waters
>         Attachments: IHolderService.txt, ITemplateService.txt, spring-resources.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:   http://service1.test.com
> com.test.Service2 (namespaceL http://service2.test.com)
> 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 'http://service1.test.com'
> 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.


[jira] Updated: (CXF-1954) string2string - Map Types- into wrong namespace

Posted by "Nicola Waters (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicola Waters updated CXF-1954:
-------------------------------

    Attachment: IHolderService.txt

> string2string - Map Types-  into wrong namespace
> ------------------------------------------------
>
>                 Key: CXF-1954
>                 URL: https://issues.apache.org/jira/browse/CXF-1954
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.1.3
>            Reporter: Nicola Waters
>         Attachments: IHolderService.txt, ITemplateService.txt, spring-resources.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:   http://service1.test.com
> com.test.Service2 (namespaceL http://service2.test.com)
> 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 'http://service1.test.com'
> 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.