Issue when deploying bundle containing relative paths in the destinationDir attribute of the rhq:file element in the deploy.xml on Windows

Solution Unverified - Updated -

Issue

  • We have two bundles that should be deployed in EAP 6 standalone deployments folder. Bundle1 should be deployed at:

$JBOSS_HOME\standalone\deployments\bundle1

and the second one - bundle2 should be deployed at:

$JBOSS_HOME\standalone\deployments\bundle2.

The first deployment - bundle1 - is properly deployed. However the second deployment will delete the first deployment. What are we doing wrong?

Environment

  • JBoss Operations Network (JON) 3.1.1
  • Windows Operating System;
  • The deploy.xml file of the second bundle contains relative path in the destinationDir attribute of the rhq:file element like in the following:
<?xml version="1.0"?>
<project name="ClusterWebApp-2" default="main" xmlns:rhq="antlib:org.rhq.bundle">
    <rhq:bundle name="ClusterWebApp-2" version="1.2" description="test ClusterWebApp2 bundle">
        <rhq:deployment-unit name="ClusterWebApp-2" manageRootDir="false">
            <rhq:file name="ClusterWebApp2.war" />
            <rhq:file name="test.properties" destinationDir="..\..\configuration\clwa2\"/>
        </rhq:deployment-unit>
    </rhq:bundle>
    <target name="main"/>
</project>

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.