Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 790871

Summary: ant contrib tasks fail
Product: [JBoss] JBoss Operations Network Reporter: Shaun Appleton <sappleto>
Component: CLIAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED WONTFIX QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: unspecified    
Version: JON 3.0.0CC: hrupp, mazz, myarboro, sappleto
Target Milestone: ---   
Target Release: JON 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 800068 (view as bug list) Environment:
Last Closed: 2013-09-20 14:56:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 800068    

Description Shaun Appleton 2012-02-15 15:42:24 UTC
Description of problem:


Version-Release number of selected component (if applicable):
JON-3.0.0.GA-patch-2

How reproducible:
very

Steps to Reproduce:
Try to use some tasks like <assert> and <for>
deploy the deploy.xml trough JON I get the following error message:

[preinstall] /data/opt/jon/rhq-agent/data/tmp/bundle-versions/10041/ant-bundle-recipe5951772158125813392.xml:42: Problem: failed to create task or type for Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any / declarations have taken place. at org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownElement.java:487) at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:419) at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:163) at org.apache.tools.ant.Task.perform(Task.java:347) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.rhq.bundle.ant.type.DeploymentUnitType.install(DeploymentUnitType.java:131) at org.rhq.bundle.ant.task.BundleTask.execute(BundleTask.java:148) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:179) at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:80) at org.rhq.bundle.ant.AntLauncher.executeBundleDeployFile(AntLauncher.java:111) at org.rhq.plugins.ant.AntBundlePluginComponent.executeDeploymentPhase(AntBundlePluginComponent.java:304) at org.rhq.plugins.ant.AntBundlePluginComponent.deployBundle(AntBundlePluginComponent.java:137) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:552) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) 
  
Actual results:


Expected results:
<assert> and <for> work without throwing an exception

Additional info:

https://docs.redhat.com/docs/en-US/JBoss_Operations_Network/3.0/html-single/Deploying_Applications_and_Content/index.htm l#bundle-refs
points to ant contrib
so suggests these tags are valid and will work

Comment 1 Mike Foley 2012-03-05 17:03:05 UTC
triage (crouch, loleary, foley). jon 3.1 timeframe.  

add BZ:  document which version of Ant we support.

Comment 2 Mike Foley 2012-03-05 17:04:31 UTC
BZ for the new doc issue:  https://bugzilla.redhat.com/show_bug.cgi?id=800068

Comment 3 John Mazzitelli 2012-03-05 18:09:54 UTC
need replication code - can someone attach a sample deploy.xml or better an actual sample bundle distribution file that demonstrates the behavior?

Comment 4 John Mazzitelli 2012-03-05 18:22:35 UTC
(In reply to comment #1)
> triage (crouch, loleary, foley). jon 3.1 timeframe.  
> 
> add BZ:  document which version of Ant we support.

also need to doc which version of ant-contrib we support (today its 1.0b3, which does appear to be the latest version - http://sourceforge.net/projects/ant-contrib/ )

Comment 6 Charles Crouch 2012-08-03 02:22:55 UTC
(In reply to comment #3)
> need replication code - can someone attach a sample deploy.xml or better an
> actual sample bundle distribution file that demonstrates the behavior?

Shaun can you help?

Comment 7 Shaun Appleton 2012-08-06 09:09:11 UTC
(In reply to comment #6)
> (In reply to comment #3)
> > need replication code - can someone attach a sample deploy.xml or better an
> > actual sample bundle distribution file that demonstrates the behavior?
> 
> Shaun can you help?

I've asked the consultant for an example.

Comment 8 Charles Crouch 2012-08-29 16:13:35 UTC
As per 8/20 triage pushing to JON312

Comment 9 Heiko W. Rupp 2013-08-12 09:38:05 UTC
Any news?

Comment 10 Shaun Appleton 2013-08-12 09:52:31 UTC
Hi Heiko - no. 

I asked the consultant for this in May 2012 and didn't not get anything.
The consultant has since left Red Hat so we probably won't get anything now.

Shaun