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 179784 - Deploy action should support relative ../ path in catalog.xml
Summary: Deploy action should support relative ../ path in catalog.xml
Status: RESOLVED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: Composite Application (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Jun Qian
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-22 05:11 UTC by Vladimir Yaroslavskiy
Modified: 2010-01-27 15:35 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 Vladimir Yaroslavskiy 2010-01-22 05:11:41 UTC
Deploy action should support relative ../ path in catalog.xml

See attached projects, in the BPEL project catalog.xml has reference to the schema from "src" folder:

<system systemId="refSynchronous" uri="src/Synchronous.xsd"/>

This entry is resolved by BPEL project successfully: validation and build is ok.
Build action adds the reference to this schema (see #179702), but doesn't copy the file to META-INF folder (see #166953), entry in META-INF catalog.xml is added correctly:

<system systemId="refSynchronous" uri="../Synchronous.xsd"/>

When the CompApp project is deployed, this entry is not resolved:

[undeploy-service-assembly]
    Undeploying a service assembly...
        host=localhost
        port=4848
        name=SynchronousApplication
[deploy-service-assembly]
    Deploying a service assembly...
        host=localhost
        port=4848
        file=C:\Documents and Settings\v1v\My Documents\NetBeansProjects\Synchronous\SynchronousApplication/dist/SynchronousApplication.zip
ERROR: Successful execution of Deploy: C:\Documents and Settings\v1v\My Documents\NetBeansProjects\Synchronous\SynchronousApplication/dist/SynchronousApplication.zip
WARNING: (JBIMA0404) Deployment of service assembly SynchronousApplication succeeded partially; some service units failed to deploy.
    * Component: sun-http-binding
      ERROR: (SOAPBC_DEPLOY_2) HTTPBC-E00201: Deployment failed. javax.wsdl.WSDLException: WSDLException (at /definitions/types/xsd:schema): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at ''refSynchronous'', relative to ''file:/D:/Work/soft/app/domains/domain1/jbi/service-assemblies/SynchronousApplication/SynchronousApplication-sun-http-binding/sun-http-binding/Synchronous/Synchronous.wsdl''.: java.io.FileNotFoundException: This file was not found: file:/D:/Work/soft/app/domains/domain1/jbi/service-assemblies/SynchronousApplication/SynchronousApplication-sun-http-binding/sun-http-binding/Synchronous/refSynchronous
Cleaning up...
[undeploy-service-assembly]
    Undeploying a service assembly...
        host=localhost
        port=4848
        name=SynchronousApplication
C:\Documents and Settings\v1v\My Documents\NetBeansProjects\Synchronous\SynchronousApplication\nbproject\build-impl.xml:192: Deployment failure.
BUILD FAILED (total time: 2 seconds)
Comment 1 Jun Qian 2010-01-25 18:29:51 UTC
See the Test Projects attached in bug #179702.

Fixed the merged catalog for binding component service units in gfesbv23 branch (b1cd8dc2d739).
Comment 2 Jun Qian 2010-01-27 15:35:31 UTC
Fixed regression caused by the previous fix in gfesbv23 (b15a1ff74f8d).