----- Original Message ----- From: "Nicholas Lesiecki" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "devel" <[EMAIL PROTECTED]> Sent: Friday, September 28, 2001 12:25 AM Subject: A day of discovery
> Hi, I just wanted to share something I discovered today with the Cactus > users. It applies to Resin specifically (but it may apply to other servlet > engines as well). That is: the cactus jar must be in the web-app's lib > directory--it cannot be part of resin's global lib folder. The reason is > that classes in the global lib directory cannot reference classes in the > web-app's lib directory. This means when Cactus tries to instantiate your > test class it will get a ClassNotFoundError. Putting the cactus jar on the > same level as your test classes will solve this problem. > > Just an FYI. I checked the docs to see if I could find a reference to this > issue, but I didn't see one immediately. Vincent has modified the docs quite > a bit recently, so I may have missed it. Well, that's something I had also discovered some time ago and which is why that I have recommended everywhere to put all the jars in WEB-INF/lib. There is also a description of what you discovered in the comment of the testwar target in conf/sample/build/share/build-share.xml. However, you're right, it should probably be better explained (that it is either all classes and jars outside the webapp but then you don't usually benefit from class reloading or everything inside teh webapp). Could you update the Getting Started Guide with that piece of information ? Thanks a lot -Vincent > > > Cheers, > > Nick > >
