cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pasha Minallah <>
Subject Running Ant from Cocoon Action
Date Fri, 17 Mar 2006 03:13:10 GMT

I'm trying to run Ant 1.6.2 from a Cocoon 2.1.7 Action.  I've added ant.jar 
and ant-launcher.jar to WEB-INF/lib.

Using in a standalone test case outside 
of cocoon works fine.  It gives me a ClassCastException when I try to use the 
same code inside a cocoon action.  Nothing I have tried gets rid of this 
exception.  Adding the ant jar files to the CLASSPATH environmental variable 
doesn't help.  Defining the extra-classpath parameter in web.xml doesn't 

Using instead in a standalone test case outside of 
cocoon works also.  It actually works from the cocoon action BUT it kills 

Any hints?

I could try to use in a separate thread but that 
doesn't make sense because we need the logic to be synchronous.


- Pasha

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message