Bundle deployment in JBoss ON fails because ant file is not found in bundle
Issue
- Bundle deployment in JBoss ON fails because ant file is not found in bundle;
- Ant file not found in bundle;
- When I deploy the file I get the following error:
[appserver-postinstall] /opt/jon/rhq-agent/data/tmp/bundle-versions/10031/ant-bundle-recipe5373560467855173706.xml:64: The following error occurred while executing this line: java.io.FileNotFoundException: /opt/jon/rhq-agent/data/tmp/bundle-versions/10031/postinstall.xml (No such file or directory)
Environment
- Red Hat JBoss Operations Network (JON) 3.2.x
- Bundle zip file contains three files:
- deploy.xml
- postinstall.xml
- jboss-eap-6.2.0.zip
- The deploy.xml file is using postinstall.xml file in the postinstallTarget like:
<?xml version="1.0"?>
<project name="jboss-as-bundle-deploy" default="main" xmlns:rhq="antlib:org.rhq.bundle">
<rhq:bundle name="JB62"
version="2.2"
description="a bundle to drop down a default install of Jboss EAP 6.2.0 - Install symlinks">
<rhq:deployment-unit name="appserver"
compliance="full"
preinstallTarget="appserver-preinstall"
postinstallTarget="appserver-postinstall"
manageRootDir="false">
<rhq:archive name="jboss-eap-6.2.0.zip" exploded="true"/>
</rhq:deployment-unit>
</rhq:bundle>
<target name="main"/>
<target name="appserver-preinstall">
<echo>Installing My Application to ${rhq.deploy.dir}...</echo>
<rhq:audit status="SUCCESS" action="My App Pre Install" info="my app installing to ${rhq.deploy.dir}" />
</target>
<target name="appserver-postinstall">
<ant antfile="postinstall.xml" target="jb26-post-install" />
</target>
</project>
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
