the way I have my web app set up is is just like yours using cactus 1.5-beta1 all the jars are under WEB-INF\lib the only think that I have under my server classpath is my test classes except I have my TestCases in the web Project but it can't fined my test classes I tried to put the test classes under WEB-INF/lib no luck all I get is [Servlet Error]-[Failed to load test suite [TestSampleServlet], Reason is [Class not found "TestSampleServlet"]]: javax.servlet.ServletException: Failed to load test suite [TestSampleServlet], Reason is [Class not found "TestSampleServlet"]
-----Original Message----- From: Neil Canham [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 12:17 PM To: [EMAIL PROTECTED] Subject: Cactus 1.5 rc1 and WebSphere Studio client-server classpath issues Anyone who can shed any light on the following gets my everlasting gratitude (I realise that there may not be many WebSphere Studio gurus here but maybe the problem looks familiar to someone?) Trying to setup WebSphere Studio v5 to do Cactus unit tests using Cactus-1.5-rc1 via the ServletRedirector. So far, Junit testing no problems, Cactus testing via the ServletTestRunner servlet no problems. But client-server... I have one main Web Project, say WEB1, containing my application under test. I have also created a separate Java Project, say JAVA1, to contain the TestCases. JAVA1 references WEB1 on its build path as well as the external jars for Cactus, Junit, AspectJ, Commons-logging and HttpClient. In WEB1 I have the necessary jars (Junit, AspectJ and Cactus - commons-logging is already available via WAS) in WEB-INF\lib. I have a cactus.properties file on the claasspath in both projects and have copied the TestCases from JAVA1 to WEB1 (to avoid a build cycle). All sounds fine? When the tests are run on the client with the server running, I get NoClassDefFound errors for org.apache.cactus.configuration.ServletConfiguration. Weird as that's in the Cactus jar. But I can get everything to work fine if I place the HttpClient jar on the server too. Sounds as if I'm launching the client in the server project environment, but I've checked and double checked that I'm running the TestSuite in JAVA1. Any thoughts appreciated. Neil C --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
