The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

eric_trepanier (2) [Avatar] Offline
#1
Hi Vincent,

When trying to run the cactus tests via Maven (on p.196) on Mac OS X 10.3 w/ JDK 1.4.2, I get the following error message:

[cactus] Couldn't find tools.jar (needed for JSP compilation)
You must either set location or path on <pathelement>
[...]
BUILD FAILED

I did a quick Google search and I came up with a couple of matches on the cactus mailing list archive, but nothing that seemed to resolve the issue. I know you are aware of this issue because I have seen some of your posts on the topic.

Do you have an update on this? It seems like Maven/Cactus is unable to find the tools.jar under Mac OS X (obviously, since there is none). What needs to be fixed to make this happen? Maybe I can take a look at it...

Regards,

Eric
vmassol (51) [Avatar] Offline
#2
Re: Maven/cactus error message (p.196) on Mac OS X
Hi Eric,

Sorry for the delay (the watch feature is broken and I was not checking the forum!). This is a known bug in Cactus that has been fixed some months ago (see http://jakarta.apache.org/cactus/changes.html#release_changes and search for "Mac").

You can grab a recent nightly build here: http://cvs.apache.org/builds/jakarta-cactus/nightly/2004-02-14/

Let me know if it doesn't work out.

Thanks
-Vincent
eric_trepanier (2) [Avatar] Offline
#3
Re: Maven/cactus error message (p.196) on Mac OS X
Hi Vincent,

Ok, so I downloaded the latest Cactus nightly build and I copied the cactus-1.6dev20040214.jar and cactus-ant-1.6dev20040214.jar files to my ~/.maven/repository/cactus/jars folder.

When I run maven cactus:test, I still get the same error message. I tried removing the older cactus jar files from my ~/.maven/repository/cactus/jars folder, but maven automatically downloads them again when I run it the next time.

How do I tell maven to use the newer cactus jars?

Regards,

Eric
vmassol (51) [Avatar] Offline
#4
Re: Maven/cactus error message (p.196) on Mac OS X
ah yes, sorry. I didn't notice you were using Maven. Actually you only need a recent Cactus maven plugin download. The plugin automatically downloads the dependent jars from ibiblio.org. The most recent Maven plugin build is from 15/01/04 but it should be ok. Please see http://jakarta.apache.org/cactus/integration/maven/ for details on how to install it (look at the news section).

Thanks