jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From senthil kumar <senthil_...@yahoo.com>
Subject Re: Junit 4.4 upgrade problem.
Date Fri, 23 May 2008 02:30:52 GMT
Hi Petar,

 Failed to checkout from SVN since my company had some filteres where it didn't allow me to
do the same. I am getting below errors - 
svn: REPORT request failed on '/repos/asf/!svn/vcc/default'
svn: REPORT of '/repos/asf/!svn/vcc/default': 400 Bad Request (http://svn.apache.org)

So I downloaded cactus-1.8.0-src.zip and modified those two classes and then build those classes
using mvn clean install. After the build I picked up following jar files cactus.core.framework.javaEE.13-14-1.8.0.jar
, cactus.core.framework.uberjar.javaEE.14-1.8.0.jar & cactus.integration.shared.api-1.8.0.jar
from userhome/.m2/repository/org/apache/cactus and placed into my lib directory of my server
and ran my tests. I am getting en error like below:

Error 500 while accessing /ServletTestRunner 
Reason:  
Wrapper cannot find servlet class org.apache.cactus.server.runner.ServletTestRunner or a class
it depends on
Trace 1:   org.apache.cactus.server.runner.ServletTestRunner

java.lang.ClassNotFoundException: org.apache.cactus.server.runner.ServletTestRunner
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083)
	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Thread.java:619)

Could you please let me know whether I picked up the right jar files or not? Apart from the
above three jar files what
else I need to run my tests. Does Cactus 1.8.0 require any other jar files? Previously I had
only cactus-1.7.1.jar file in
my lib directory.

Please give me your suggestions.

-Senthil.







----- Original Message ----
From: Petar Tahchiev <paranoiabla@gmail.com>
To: Cactus Users List <cactus-user@jakarta.apache.org>
Sent: Thursday, May 22, 2008 2:58:45 AM
Subject: Re: Junit 4.4 upgrade problem.

Hi Senthil,

what you can try to do is check out the trunk of cactus. Just type (you will
need Subversion installed):

svn co http://svn.apache.org/repos/asf/jakarta/cactus/trunk/ cactus

and then build it with:

mvn clean install

(you will need a Maven2 installed). This will produce all the artifacts that
you need.
Also you can paste the exception here.

Cheers, Petar.

2008/5/21, senthil kumar <senthil_cbe@yahoo.com>:
>
> Hi Petar,
>
> We developed a junit testing framework for our application using Cactus and
> Junit. With junit 3.8 it was working fine. Once after we upgraded to junit
> 4.4 we got a run time exception as I mentioned below. Now once after I get
> the changes I downloaded the cactus src zip and try to compile the source
> code in my local box using maven. But it looks like I am missing something
> while compiling. So I requested you to provide the cactus.jar file from the
> latest build which you have along with the below mentioned changes to take
> care of TestSuiteLoader API's.
>
> I am not sure how to checkout cactus jar file from SVN. Could you please
> provide me the location for the same. Sorry for the confusion.
>
>
> -Senthil.
>
>
>
>
>
> ----- Original Message ----
> From: Petar Tahchiev <paranoiabla@gmail.com>
> To: Cactus Users List <cactus-user@jakarta.apache.org>
>
> Sent: Wednesday, May 21, 2008 4:18:21 AM
> Subject: Re: Junit 4.4 upgrade problem.
>
> Hi Senthil,
>
> actually I have no idea what are you trying to do. Are you trying to
> execute
> Cactus test-cases with
> annotations or you just try to start your test-cases with junit 4.4. in the
> classpath.
> I have tried the latter one with cactus from the svn checkout and it works.
> Please provide some exception stack trace to see what's breaking.
>
> Thanks, Petar.
>
> 2008/5/21, senthil kumar <senthil_cbe@yahoo.com>:
> >
> > Hi Petar,
> >
> > I compiled with the below changes but still its not working. Not sure
> > whether I am compiling the same properly or not. Could you please provide
> me
> > the cactus.jar file with the below changes from your local setup. Thanks
> in
> > advance.
> >
> >
> > -Senthil.
> >
> >
> >
> >
> >
> >
> > ----- Original Message ----
> > From: Petar Tahchiev <paranoiabla@gmail.com>
> > To: Cactus Users List <cactus-user@jakarta.apache.org>
> >
> > Sent: Friday, May 16, 2008 8:47:06 PM
> > Subject: Re: Junit 4.4 upgrade problem.
> >
> > Hi Senthil,
> >
> > indeed this issue was solved, but after the 1.8.0 release. You can take a
> > look at the
> > svn repository to see how:
> >
> >
> >
> http://svn.apache.org/repos/asf/jakarta/cactus/trunk/framework/framework-13-14/src/main/java/org/apache/cactus/internal/server/runner/WebappTestRunner.java
> >
> > and
> >
> >
> >
> http://svn.apache.org/repos/asf/jakarta/cactus/trunk/framework/framework-13-14/src/main/java/org/apache/cactus/internal/server/runner/WebappTestSuiteLoader.java
> >
> > HTH, Petar.
> >
> >
> > 2008/5/16 senthil kumar <senthil_cbe@yahoo.com>:
> >
> > > Hi Petar,
> > >
> > > Looked at the cactus-1.8.0.src.zip files. Still
> > > WebappTestRunner.getLoader() is returning TestSuiteLoader object. And
> > also
> > > noticed still junit-3.8.2.jar is used in cactus1.8.0. If you have a
> > > cactus.jar file (modified one) in your local area could you please send
> > it
> > > to me. If not could you please let me know how can I modify the same.
> > >
> > > -Senthil.
> > >
> > >
> > >
> > >
> > >
> > >
> > > ----- Original Message ----
> > > From: senthil kumar <senthil_cbe@yahoo.com>
> > > To: Cactus Users List <cactus-user@jakarta.apache.org>
> > > Sent: Friday, May 16, 2008 8:13:28 AM
> > > Subject: Re: Junit 4.4 upgrade problem.
> > >
> > >
> > >
> > > Hi Petar,
> > >
> > > Thanks for your response. I think I am using 1.7.X version. If I
> remember
> > > correctly I tried with 1.8.0 also. I will try again with 1.8.0 and will
> > let
> > > you know the results.
> > >
> > > -Senthil.
> > >
> > >
> > >
> > >
> > > ----- Original Message ----
> > > From: Petar Tahchiev <paranoiabla@gmail.com>
> > > To: Cactus Users List <cactus-user@jakarta.apache.org>
> > > Sent: Friday, May 16, 2008 4:10:36 AM
> > > Subject: Re: Junit 4.4 upgrade problem.
> > >
> > > Hi Senthil,
> > >
> > > as far as I remember I have already fixed that in Cactus 1.8.0.
> > > Which version of Cactus are you using?
> > >
> > > Cheers, Petar.
> > >
> > > 2008/5/16 senthil kumar <senthil_cbe@yahoo.com>:
> > >
> > > >
> > > > Hi,
> > > >
> > > > We are having some problem with upgrading Junit 4.4 version. Since
> some
> > > of
> > > > the API's like (TestSuiteLoader.java) were removed in junit4.4 which
> > were
> > > > used by cactus, we wont be able to run our testcases we are getting
> > > runtime
> > > > exception.
> > > >
> > > > Details :
> > > >
> > > > WebappTestSuiteLoader from Cactus was implemented using
> TestSuiteLoader
> > > > interface from Junit3.8 but this API didn't exists in junit4.4.
> > > >
> > > > Could anyone have any ideas how to over come this problem.
> > > >
> > > > -senthil
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Regards, Petar!
> > > Karlovo, Bulgaria.
> > >
> > > EOOXML Objections
> > > http://www.grokdoc.net/index.php/EOOXML_objections
> > >
> > > Public PGP Key at:
> > >
> >
> https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611
> > > Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> > >
> > >
> >
> >
> > --
> > Regards, Petar!
> > Karlovo, Bulgaria.
> >
> > EOOXML Objections
> > http://www.grokdoc.net/index.php/EOOXML_objections
> >
> > Public PGP Key at:
> >
> https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611
> > Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >
> >
>
>
> --
> Regards, Petar!
> Karlovo, Bulgaria.
>
> EOOXML Objections
> http://www.grokdoc.net/index.php/EOOXML_objections
>
> Public PGP Key at:
> https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611
> Key Fingerprint: A369 A7EE 61BC 93A3 CDFF  55A5 1965 8550 C311 0611
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
>


-- 
Regards, Petar!
Karlovo, Bulgaria.

EOOXML Objections
http://www.grokdoc.net/index.php/EOOXML_objections

Public PGP Key at:
https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611
Key Fingerprint: A369 A7EE 61BC 93A3 CDFF  55A5 1965 8550 C311 0611


Mime
View raw message