Default location for deploying a bundle with JON 3.1 to EAP 6 is incorrect

Solution Verified - Updated -

Issue

  • When deploying bundles via the JON GUI to a group of JBoss EAP standalone instamces and specify the deployment directory as "." the application ends up in the folder deployment on EAP 6 where it should be deployments.
  • This happens when using url-file as follows:
<?xml version="1.0"?>
<!-- the root project element also contains the project main and everything should match.  otherwise deployment versioning will not be reliably maintained -->
<project xmlns:rhq="antlib:org.rhq.bundle" name="The PmTestWeb application" default="main">
  <!-- the bundle has the project name and the project version as well as a short description-->
  <rhq:bundle name="PmTestWeb" version="1.2" description="PmTestWeb">
    <!-- this has the project name as well as any additional targets to run -->
    <rhq:deployment-unit name="PmTestWeb" preinstallTarget="preinstall" postinstallTarget="postinstall" manageRootDir="false">
      <rhq:url-file url="file:///mnt/repository_test/PmTestWeb.war" destinationFile="PmTestWeb.war"/>
    </rhq:deployment-unit>
  </rhq:bundle>

  <target name="main"/>
  <target name="preinstall">
    <echo>Deploying PmTestWeb to ${rhq.deploy.dir}...</echo>
    <property name="preinstallTargetExecuted" value="true"/>
  </target>
  <target name="postinstall">
    <echo>Done deploying PmTestWeb to ${rhq.deploy.dir}.</echo>
    <property name="postinstallTargetExecuted" value="true"/>

  </target>
</project>

Environment

  • JBoss Operations Network (JON) 3.1.0
  • JBoss Enterprise Application Platform (EAP) 6.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content