This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 126155 - Service assembly editor generates incorrect namespace prefix for the service-name attribute for redelivery/on-failure config
Summary: Service assembly editor generates incorrect namespace prefix for the service-...
Status: CLOSED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: Composite Application (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jun Qian
URL:
Keywords:
: 126154 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-28 23:39 UTC by pvarghese
Modified: 2008-04-03 16:07 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
the project zip file (119.71 KB, application/x-compressed)
2008-01-28 23:42 UTC, pvarghese
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pvarghese 2008-01-28 23:39:26 UTC
Service assembly editor generates incorrect namespace prefix for the service-name attribute for redelivery/on-failure
config.

Defining the redelivery/on-failure error-endpoint configuration for the connection in the attached project generates the
configuration correctly in the '.casa' file as shown

<connection consumer="endpoint6" provider="endpoint7" state="unchanged">
<redelivery xmlns="http://www.sun.com/jbi/qos/redelivery" maxAttempts="2" waitTime="0">
        <on-failure>
          <error-endpoint endpoint-name="ErrorEndpointPTBindingPort" service-name="ns1:ErrorEndpointService"/>
        </on-failure>
    </redelivery>
</connection>

here the ns1 namespace prefix is correctly referenced as follows.

<casa xmlns="http://java.sun.com/xml/ns/casa" 
      xmlns:ns1="http://j2ee.netbeans.org/wsdl/simpleInterface"     
xmlns:ns2="http://enterprise.netbeans.org/bpel/smipleBPEL/redeliver" 
xmlns:xlink="http://www.w3.org/2000/xlink">

However the entry for the same configuration in the service assembly jbi.xml is incorrectly generated as shown 
<connection>
<consumer endpoint-name="redeliverPTRole_partnerRole" service-name="ns1:redeliverPL"/>
<provider endpoint-name="javaee_port1" service-name="ns2:redeliverService"/>
<redelivery xmlns="http://www.sun.com/jbi/qos/redelivery" maxAttempts="2" waitTime="0">
        <on-failure>
          <error-endpoint endpoint-name="ErrorEndpointPTBindingPort" service-name="ns1:ErrorEndpointService"/>
        </on-failure>
    </redelivery>
</connection>

Here in the jbi.xml the namespace prefix ns1 is not referenced to the wsdl file that defines the service definition.

<jbi xmlns="http://java.sun.com/xml/ns/jbi" 
xmlns:ns1="http://enterprise.netbeans.org/bpel/smipleBPEL/redeliver"
xmlns:ns2="http://j2ee.netbeans.org/wsdl/simpleInterface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/jbi ./jbi.xsd">
Comment 1 pvarghese 2008-01-28 23:42:13 UTC
Created attachment 55682 [details]
the project zip file
Comment 2 pvarghese 2008-01-28 23:45:04 UTC
*** Issue 126154 has been marked as a duplicate of this issue. ***
Comment 3 Jun Qian 2008-01-30 22:51:11 UTC
Fixed.
Comment 4 Jun Qian 2008-01-31 09:59:56 UTC
changeset: 84a96fe7ea9f
Comment 5 deepakhp 2008-03-30 07:19:53 UTC
Assigned to Senthil for verification.
Comment 6 senthilprabhu 2008-04-03 16:07:12 UTC
The namespaces are correct in jbi.xml
Verified in Milestone 8 build

This issue can be closed