Return-Path: list-help: list-unsubscribe: List-Post: List-Id: Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 93965 invoked by uid 99); 4 Sep 2006 21:33:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Sep 2006 14:33:21 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [69.31.1.213] (HELO fuse17.mailanyone.net) (69.31.1.213) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Sep 2006 14:33:19 -0700 Received: from mailanyone.net by fuse17.mailanyone.net with asmtp (MailAnyone extSMTP pmoermans) id 1GKM3s-0003EH-GN for cactus-user@jakarta.apache.org; Mon, 04 Sep 2006 16:32:56 -0500 Received: from 195.162.204.3 (FuseMail web AccountID 114142) by webmail.fusemail.com with HTTP; Mon, 4 Sep 2006 16:32:57 -0500 (CDT) Message-ID: <1157405577.v2.fusewebmail-114142@f> Date: Mon, 4 Sep 2006 16:32:57 -0500 (CDT) Subject: RE: VB: ClassNotFoundException for test classes From: "Pierre Moermans" To: "Cactus Users List" Reply-To: pierre@moermans.name User-Agent: FuseMail W MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org Hi Magnus, I found out today it was my classpath on the client side that was incorrect! Indeed, I declared the classpath like this: ... and it must be like ... With the fileset instead of direset, I could see the test classes in the classpath, but they were not taken into account. That changed, everything went fine. Many thanks for the precious time you spent on my problem! It helped me out quite a lot to know the problem had to be on the client. Pierre M. ----- Original Message ----- Subject: RE: VB: ClassNotFoundException for test classes Date: Mon, September 4, 2006 18:39 From: "Magnus Grimsell" > Hi Pierre, > > I changed the testclass to extend ServletTestCase and set it up on my computer and > everything worked fine. So the cactified war is OK. > > How are you running your tests. Is it via Ant? > > > - Magnus > > -----Ursprungligt meddelande----- > Fr�n: Pierre Moermans [mailto:pierre@moermans.name] > Skickat: den 2 september 2006 20:58 > Till: Magnus Grimsell > �mne: Re: VB: ClassNotFoundException for test classes > > > Of course it does ... stupid mistake of mine, sorry. I actually modified > the code before sending it to you because my employer doesn't want > anything from the company to appear on Internet. > > I made the extention as required, but id didn't change anything to the > classpath problem. > > > Thanks, > > Pierre M. > > > > ----- Original Message ----- > Subject: VB: ClassNotFoundException for test classes > Date: Fri, September 1, 2006 22:32 > From: "Magnus Grimsell" > > > > > > > -----Ursprungligt meddelande----- > > Fr�n: Magnus Grimsell [mailto:magnus.grimsell@idainfront.se] > > Skickat: fr 2006-09-01 22:27 > > Till: Cactus Users List > > �mne: RE: ClassNotFoundException for test classes > > > > Your test class should extend a Cactus test case class like for example > > ServletTestCase. > > > > Hope that helps. > > > > - Magnus > > > > > > -----Ursprungligt meddelande----- > > Fr�n: Magnus Grimsell [mailto:magnus.grimsell@idainfront.se] > > Skickat: fr 2006-09-01 16:48 > > Till: Cactus Users List; pierre@moermans.name > > �mne: SV: SV: SV: ClassNotFoundException for test classes > > > > Strange. Looks good to me. > > If you can send me the complete war and source code I can have a look at > it later. > > > > Right now I'm off to weekend beer :) > > > > - Magnus > > > > -----Ursprungligt meddelande----- > > Fr�n: Pierre Moermans [mailto:pierre@moermans.name] > > Skickat: den 1 september 2006 16:41 > > Till: Cactus Users List > > �mne: Re: SV: SV: ClassNotFoundException for test classes > > > > > > > > As I tried the easiest project, There is only one class (without package) > > TopicAuthentication, and its corresponding test class > > TestTopicAuthentication > > > > ************ Output of the test run **************** > > > > TestTopicAuthentication > > > > java.lang.ClassNotFoundException: TestTopicAuthentication at > > java.net.URLClassLoader$1.run(URLClassLoader.java:199) at > > java.security.AccessController.doPrivileged(Native Method) at > > java.net.URLClassLoader.findClass(URLClassLoader.java:187) at > > java.lang.ClassLoader.loadClass(ClassLoader.java:289) at > > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at > > java.lang.ClassLoader.loadClass(ClassLoader.java:235) at > > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at > > java.lang.Class.forName0(Native Method) at > > java.lang.Class.forName(Class.java:141) > > > > > > *********** Listing of the cactified WAR *********** > > > > > > META-INF/ > > META-INF/MANIFEST.MF > > WEB-INF/ > > WEB-INF/classes/ > > WEB-INF/classes/TestTopicAuthentication.class > > WEB-INF/lib/ > > WEB-INF/tld/ > > WEB-INF/classes/TopicAuthentication.class > > WEB-INF/weblogic.xml > > WEB-INF/web.xml > > WEB-INF/lib/aspectjrt-1.2.1.jar > > WEB-INF/lib/cactus-1.7.jar > > WEB-INF/lib/commons-logging-1.0.3.jar > > WEB-INF/lib/commons-httpclient-2.0.2.jar > > WEB-INF/lib/junit.jar > > jspRedirector.jsp > > > > **************************************************** > > > > many thanks, > > > > Pierre M. > > > > ----- Original Message ----- > > Subject: SV: SV: ClassNotFoundException for test classes > > Date: Fri, September 1, 2006 16:25 > > From: "Magnus Grimsell" > > > > > Could you supply the logs from your test run and a listing of the > > cactified war? > > > > > > - Magnus > > > > > > -----Ursprungligt meddelande----- > > > Fr�n: Pierre Moermans [mailto:pierre@moermans.name] > > > Skickat: den 1 september 2006 16:19 > > > Till: Cactus Users List > > > �mne: Re: SV: ClassNotFoundException for test classes > > > > > > > > > Thanks Magnus ! > > > > > > Alas ... neither junit, nor cactus is in my Weblogic classpath. > > > If I remove the two corresponding jars from the cactified war, I get a > > > (logical) > > > java.lang.ClassNotFoundException: > > > org.apache.cactus.server.ServletTestRedirector. > > > > > > Thanks anyway ! > > > > > > Pierre M. > > > > > > ----- Original Message ----- > > > Subject: SV: ClassNotFoundException for test classes > > > Date: Fri, September 1, 2006 14:31 > > > From: "Magnus Grimsell" > > > > > > > Make sure that cactus or junit jars isn't available at system or > > > ear-classloader. > > > > > > > > - Magnus > > > > > > > > -----Ursprungligt meddelande----- > > > > Fr�n: Pierre Moermans [mailto:pierre@moermans.name] > > > > Skickat: den 1 september 2006 14:28 > > > > Till: cactus-user@jakarta.apache.org > > > > �mne: ClassNotFoundException for test classes > > > > > > > > > > > > Hello, > > > > > > > > I try to run cactus tests on Weblogic 8.1 and I get a > > > > ClassNotFoundException telling the test class cannot be found. > > > > > > > > I've seen many threads about this and it always appears that the test > > > > classes where missing either in the WEB-INF/classes of the cactified > war, > > > > or in the classpath on the client side. > > > > > > > > I ckecked that (by echoing the classpath in my ant build-script and > > > > viewing the content of the war file on the server) and the classes are > > > > present on both sides ! > > > > > > > > > > > > Any hint would be greatly appreciated. > > > > > > > > Many thanks, > > > > > > > > > > > > Pierre M. > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > > > > For additional commands, e-mail: cactus-user-help@jakarta.apache.org > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > > > > For additional commands, e-mail: cactus-user-help@jakarta.apache.org > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > > > For additional commands, e-mail: cactus-user-help@jakarta.apache.org > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: cactus-user-help@jakarta.apache.org > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: cactus-user-help@jakarta.apache.org > > > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: cactus-user-help@jakarta.apache.org > > > >