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 97492 - BPEL Project is generating incorrect jbi.xml provides entries
Summary: BPEL Project is generating incorrect jbi.xml provides entries
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Project (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Alexander Zgursky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-08 18:03 UTC by pvarghese
Modified: 2007-09-04 13:56 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The BPEL project file zip that was used to produce the issue (8.51 KB, application/octet-stream)
2007-03-08 18:06 UTC, pvarghese
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pvarghese 2007-03-08 18:03:34 UTC
Consider two BPEL files in a bpel project that have the same provisioning
endpoints as shown below

    name="samesync1"
    targetNamespace="http://enterprise.netbeans.org/bpel/samesync1"
    xmlns:ns1="http://j2ee.netbeans.org/wsdl/sync1">
    <partnerLinks>
        <bpws:partnerLink name="PartnerLink1" partnerLinkType="ns1:sync1Partner"
myRole="sync1PortTypeRole"/>
    </partnerLinks>

    name="sync1"
    targetNamespace="http://enterprise.netbeans.org/bpel/sync1"
    xmlns:ns1="http://j2ee.netbeans.org/wsdl/sync1">
    <partnerLinks>
        <bpws:partnerLink name="PartnerLink1" partnerLinkType="ns1:sync1Partner"
myRole="sync1PortTypeRole"/>
    </partnerLinks>


building the bpel project results in the jbi.xml having only one 'provides'
entry as show below.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<jbi xmlns="http://java.sun.com/xml/ns/jbi"
     xmlns:ns0="http://enterprise.netbeans.org/bpel/samesync1"
     xmlns:ns1="http://j2ee.netbeans.org/wsdl/sync1"
     xmlns:ns2="http://enterprise.netbeans.org/bpel/sync1" version="1.0">
  <services binding-component="false">
     <provides endpoint-name="sync1PortTypeRole_myRole"
               interface-name="ns1:sync1PortType"
               service-name="ns0:PartnerLink1"/>
  </services>
</jbi>

This is a bug in our bpel project code generator.  The bpel project should
create a jbi.xml with two provides entries as listed below.  The service-names
are different if you fully qualify them. 

<provides endpoint-name="sync1PortTypeRole_myRole"
interface-name="ns1:sync1PortType"
service-name="{http://enterprise.netbeans.org/bpel/samesync1}:PartnerLink1"/>

<provides endpoint-name="sync1PortTypeRole_myRole"
interface-name="ns1:sync1PortType"
service-name="{http://enterprise.netbeans.org/bpel/sync1}:PartnerLink1"/>
Comment 1 pvarghese 2007-03-08 18:06:22 UTC
Created attachment 39315 [details]
The BPEL project file zip that was used to produce the issue
Comment 2 Alexander Zgursky 2007-07-15 21:44:54 UTC
Could not find the schema for jbi.xml. Assuming that the attribute "service-name" is accepting qualified name, the valid
jbi.xml should look like the following:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<jbi xmlns="http://java.sun.com/xml/ns/jbi"
     xmlns:ns0="http://enterprise.netbeans.org/bpel/samesync1"
     xmlns:ns1="http://j2ee.netbeans.org/wsdl/sync1"
     xmlns:ns2="http://enterprise.netbeans.org/bpel/sync1" version="1.0">
  <services binding-component="false">
     <provides endpoint-name="sync1PortTypeRole_myRole"
               interface-name="ns1:sync1PortType"
               service-name="ns0:PartnerLink1"/>
     <provides endpoint-name="sync1PortTypeRole_myRole"
               interface-name="ns1:sync1PortType"
               service-name="ns2:PartnerLink1"/>
  </services>
</jbi>

pvarghese, please, confirm.
Also, need to make sure that other jbi module projects (such as xslt project) follow the same rule (cc'ing Vitaly aka
'lativ' as he's in charge for xslt project).
Comment 3 Murali Pottlapelli 2007-07-16 18:45:41 UTC
zgursky, what you stated is accurate.
Comment 4 Alexander Zgursky 2007-07-19 18:23:59 UTC
Fixed in trunk:

Checking in Provider.java;
/cvs/enterprise/bpel/project/antsrc/org/netbeans/modules/bpel/project/anttasks/jbi/Provider.java,v  <--  Provider.java
new revision: 1.5; previous revision: 1.4
done
Checking in Consumer.java;
/cvs/enterprise/bpel/project/antsrc/org/netbeans/modules/bpel/project/anttasks/jbi/Consumer.java,v  <--  Consumer.java
new revision: 1.5; previous revision: 1.4
done
Comment 5 Andrei Chistiakov 2007-09-04 13:56:37 UTC
Verified in build 200709031200.