[ https://issues.apache.org/activemq/browse/SM-721?page=all ]

Grant McDonald resolved SM-721.
-------------------------------

    Fix Version/s: incubation
       Resolution: Fixed

svn ci 
tooling\jbi-maven-plugin\src\main\java\org\apache\servicemix\maven\plugin\jbi\AbstractDescr
iptorWriter.java -m "issue: SM-721, description: added return of updated 
counter to namespace map construction"
Sending        
tooling\jbi-maven-plugin\src\main\java\org\apache\servicemix\maven\plugin\jbi\AbstractDescriptorWriter.java
Transmitting file data .
Committed revision 472489.

The problem was simply the use of a primitive counter variable which was passed 
to a function which updated it but did not pass it back (local variable stack 
and all that).

> maven plugin creates incorrect jbi.xml if multiple name spaces are used
> -----------------------------------------------------------------------
>
>                 Key: SM-721
>                 URL: https://issues.apache.org/activemq/browse/SM-721
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 3.0
>            Reporter: James Bradt
>         Assigned To: Grant McDonald
>            Priority: Minor
>             Fix For: incubation
>
>         Attachments: SM-721.patch
>
>
> the xbean.xml file below is processed via the jbi maven plugin
> --------------------------------------------------------------------------------------------------------------
> <?xml version="1.0"?>
> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0";
>       xmlns:demo="urn:servicemix:soap-binding"
>       xmlns:test="urn:servicemix:status-test"
>       xmlns:km="urn:iconnect:km">
>       <classpath>
>               <location>.</location>
>       </classpath>
>       <jsr181:endpoint pojoClass="soap.SimpleServiceImpl"
>               annotations="jsr181" service="demo:simple-JSR-service"
>               endpoint="simple-JSR-service-endpoint" />
>       <jsr181:endpoint service="km:SM-JSR181-service"
>               annotations="jsr181" endpoint="SM-JSR181-service-endpoint">
>               <jsr181:pojo>
>                       <bean
>                               class="com.company.product.SMServiceHttpImpl">
>                       </bean>
>               </jsr181:pojo>
>       </jsr181:endpoint>
> </beans>
> --------------------------------------------------------------------------------------------------------------
> and the resulting jbi.xml is 
> --------------------------------------------------------------------------------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <jbi xmlns="http://java.sun.com/xml/ns/jbi"; version="1.0">
>   <services xmlns:ns1="urn:servicemix:soap-binding" 
> xmlns:ns1="urn:iconnect:km">
>     <provides interface-name="ns1:simple-JSR-servicePortType" 
> service-name="ns1:simple-JSR-service" 
> endpoint-name="simple-JSR-service-endpoint"/>
>     <provides interface-name="ns1:SM-JSR181-servicePortType" 
> service-name="ns1:SM-JSR181-service" 
> endpoint-name="SM-JSR181-service-endpoint"/>
>   </services>
> </jbi>
> --------------------------------------------------------------------------------------------------------------
> The problem is that the namespace 'ns1' is defined twice

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to