I am trying to perform some Cactus / Integration testing.
I have implemented a simple test project to try and get everything working, everything is controlled using an Ant build script.
I use the 'cactifywar' ant task to generate the War file containing the tests to be executed within JBoss.
I then use the 'cactus' ant task to start JBoss / deploy my test application, run the tests and then shut down JBoss.
When I run ant from the command line I have no problems, the server is started and the tests are executed correctly.
When I try and run it within Eclipse I get the following Exception thrown :-
[cactus] Couldn't find tools.jar (needed for JSP compilation)
You must either set location or path on
I am assuming that this is because Eclipse is using it's own environment settings to run the script.
I have tried adding the tools.jar to the classpath within the cactus task and I have tried adding it to the main project classpath.
I have tried forking and not forking the cactus task.
I have tried using an 'env' element within the cactus task to set the JAVA_HOME environment variable.
All of these attempts have failed and I still keep getting the same Exception.
Has anyone else run into a problem like this running ant build files from within Eclipse?
Thanks in advance for any help.