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 114779 - Import of webservice in to bpel works incorrectly
Summary: Import of webservice in to bpel works incorrectly
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Project (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Nikita Krjukov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-05 15:27 UTC by Victoria Zhukovskaya
Modified: 2008-04-02 08:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victoria Zhukovskaya 2007-09-05 15:27:08 UTC
beta1


1. Create WebApplication, Create Webservice then create operation
2. Create For example Synchronouse project
3. Deploy WebApplication
4. Drug and drop on bpel diagram created Webservice, press Ok
5. Run validation

see
XML validation started.
D:/Documents and Settings/vz153235.OLYMP/My
Documents/NetBeansProjects/SynchronousSample2/SynchronousSample2/src/SynchronousSample.bpel:48,4
Error: If a namespace attribute is specified on an <import> then the imported definitions must be in that namespace.

D:/Documents and Settings/vz153235.OLYMP/My
Documents/NetBeansProjects/SynchronousSample2/SynchronousSample2/src/SynchronousSample.bpel:48,4
Warning: The imported file is invalid or is not reachable.

1 Error(s),  1 Warning(s).
XML validation finished




See imports in source of bpel:
...
    <import namespace="http://gg/" location="Partners/NewWebService/NewWebServiceService.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/"/>
    <import namespace="http://gg/" location="NewWebServiceService_xsd_1.xsd" importType="http://www.w3.org/2001/XMLSchema"/>
...

There is not full path for  NewWebServiceService_xsd_1.xsd
There should be path like for Partners/NewWebService/NewWebServiceService.wsdl

Workaround is: change source bpel file 
"Partners/NewWebService/NewWebServiceService_xsd_1.xsd"

But this isuue bloks tutorial "Creating a Loan Processing Composite Application" in section  Creating the BPEL Process
http://blogs.sun.com/barkodar/resource/nbfcs/ep-loanprocessing.html
Comment 1 Andrei Chistiakov 2007-09-05 17:02:50 UTC
Escalating to P1 as it affects BPEL tutotial for Beta 1.
Comment 2 Alexey Yarmolenko 2007-09-05 17:28:44 UTC
Regression from fixing http://www.netbeans.org/issues/show_bug.cgi?id=107908

I order to solve XML catalog issues on server side reported in IZ107908, i added recursive imports for schemas. This is
not required by BPEL spec but was supposed to be harmless for design-time and i agreed for such fix as soon as it may
help to work-around a problem in runtime. Current bug is a result of inaccurate handling of file locations in this fix.

Also, in fact fix for IZ107908 does not worked and bug was re-opened. 

The safest solution for current issue is to roll back the fix for IZ107908 and investigate the root cause for it later.
Comment 3 Alexey Yarmolenko 2007-09-05 17:55:42 UTC
Fix is committed to trunk
File [changed]: ImportRegistrationHelper.java
Url:
http://enterprise.netbeans.org/source/browse/enterprise/bpel/editors/src/org/netbeans/modules/bpel/properties/ImportRegistrationHelper.java?r1=1.5&r2=1.6
Delta lines:  +3 -1
-------------------
--- ImportRegistrationHelper.java	22 Aug 2007 13:33:38 -0000	1.5
+++ ImportRegistrationHelper.java	5 Sep 2007 16:53:36 -0000	1.6
Comment 4 Alexey Yarmolenko 2007-09-06 12:48:58 UTC
fix committed to beta1 branch
Comment 5 Victoria Zhukovskaya 2007-09-07 15:08:15 UTC
beta1  200709070000