jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magnus Grimsell" <magnus.grims...@idainfront.se>
Subject RE: VB: ClassNotFoundException for test classes
Date Mon, 04 Sep 2006 16:39:42 GMT
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" <magnus.grimsell@idainfront.se>

>
>
> -----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" <magnus.grimsell@idainfront.se>
>
> > 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" <magnus.grimsell@idainfront.se>
> >
> > > 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


Mime
View raw message