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 142167 - Incorrect JBI descriptor generated for Xslt SU
Summary: Incorrect JBI descriptor generated for Xslt SU
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: XSLT (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vitaly Bychkov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-30 00:02 UTC by kevan1138
Modified: 2008-10-23 23:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
xslt project to reproduce (14.60 KB, application/octet-stream)
2008-07-30 00:03 UTC, kevan1138
Details
ejb project (34.41 KB, text/plain)
2008-10-11 17:08 UTC, rpoon
Details
Java Application project (31.39 KB, text/plain)
2008-10-11 17:09 UTC, rpoon
Details
Built XSLT project (27.67 KB, application/x-compressed)
2008-10-23 23:34 UTC, rpoon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kevan1138 2008-07-30 00:02:46 UTC
The attached project should create 1 provides and 2 consumes entries in the service unit descriptor (jbi.xml).  Only 1
consumes is created.

There should be a <consumes> for every Invoke activity.
Comment 1 kevan1138 2008-07-30 00:03:35 UTC
Created attachment 66005 [details]
xslt project to reproduce
Comment 2 kevan1138 2008-07-30 00:05:38 UTC
Reproducible with Product Version: NetBeans IDE 6.1 (Build 200805300101)
Downloaded latest Sierra DEV build from Hudson on 07/29.
Comment 3 Vitaly Bychkov 2008-08-05 12:06:06 UTC
Fixed in soa-dev.
Changeset: 7f5b5fb0379e.
Comment 4 rpoon 2008-10-11 17:08:46 UTC
Created attachment 71610 [details]
ejb project
Comment 5 rpoon 2008-10-11 17:09:25 UTC
Created attachment 71612 [details]
Java Application project
Comment 6 rpoon 2008-10-19 02:27:10 UTC
Please disregard the attached 'ejb_project' and 'JavaApplication' projects.  These two projects were attached to this 
ticket by mistake.  They were meant to be attached to another ticket.
Comment 7 rpoon 2008-10-19 02:32:42 UTC
Used build:  \\thumper\50builds\gfesb\v2\nightly\20081015-1408

The attached 'EmployeeXslt.zip' seems to have several compilation errors.  The 'Transformmap.xml' failed to validate 
with several errors.

Unable to verify ticket and will leave the ticket open for now.
Comment 8 kevan1138 2008-10-19 17:02:12 UTC
The transformmap IS valid, it is the design-time validation that is incorrect.  Right-click on EmployeeXslt project,
choose Properties. In category General, check the box: "Allow build and deploy with errors".

Once project is built, please confirm that the jbi.xml for the project has the entries as described in original comment:
1 provides and *2* consumes entries.

Comment 9 rpoon 2008-10-23 23:30:27 UTC
Verified with build:  \\thumper\50builds\gfesb\v2\nightly\20081021-0703

After turning on the flag "Allow build and deploy with errors", and completed build on the provided project, I was able 
to see the missing entries for 'consumer'.

Following is the source code from the resulting jbi.xml:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<jbi version="1.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://java.sun.com/xml/ns/jbi"
        xsi:schemaLocation="http://java.sun.com/xml/ns/jbi jbi.xsd"
        xmlns:ns0="http://www.sun.com/jbi/descriptor/service-unit"
        xmlns:ns1="http://sun.com/processDescriptor/employeeXslt"
        xmlns:ns2="http://j2ee.netbeans.org/wsdl/CandidateEvaluation">
    <services binding-component="false">
        <provides interface-name="ns2:CandidateEvaluationPortType" service-name="ns1:xsltse" endpoint-
name="EvaluatorService">
            <ns0:display-name>CandidateEvaluationPortType</ns0:display-name>
            <ns0:process-name>CandidateEvaluationPortType</ns0:process-name>
            <ns0:file-path>EvalCandidate.xsl;null;InterviewCandidate.xsl;null;null;null</ns0:file-path>
        </provides>
        <consumes interface-name="ns2:CandidateEvaluationPortType" service-name="ns1:xsltse" endpoint-name="Invoke1">
            <ns0:display-name></ns0:display-name>
            <ns0:process-name></ns0:process-name>
            <ns0:file-path></ns0:file-path>
        </consumes>
        <consumes interface-name="ns2:CandidateEvaluationPortType" service-name="ns1:xsltse" endpoint-name="Invoke2">
            <ns0:display-name></ns0:display-name>
            <ns0:process-name></ns0:process-name>
            <ns0:file-path></ns0:file-path>
        </consumes>
    </services>
 </jbi>

(see attached built project)
Comment 10 rpoon 2008-10-23 23:34:11 UTC
Created attachment 72566 [details]
Built XSLT project