You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Vincent Massol <vm...@octo.com> on 2002/02/09 14:20:52 UTC

RE: Enhydra: Unit testing with POs?

Hi Ryuji,

Thanks for your help. Here are my findings :

1/ It seems that no one from Lutris is working anymore on Enhydra 3
(last release is January 2001).

2/ The Cactus runservertests Ant task verifies if already running by
trying to access a URL (in the context to test). It seems that Enhydra
reports an error if the URL is called before it has finished loading,
which is why I'm getting :

     [java]      [java] 2002.02.09 13:12:26: Multiserver,ERROR:
Exception while handeling request "/
test" for servlet CactusTest.: null
     [java]      [java] 2002.02.09 13:12:26: Multiserver,ERROR+
java.lang.NullPointerException
     [java]      [java] 2002.02.09 13:12:26: Multiserver,ERROR+
at org.apache.tomcat.core.Co
ntext.handleRequest(Context.java:732)
     [java]      [java] 2002.02.09 13:12:26: Multiserver,ERROR+
at org.enhydra.servlet.servl
etManager.ServletManager.service(ServletManager.java:1096)
     [java]      [java] 2002.02.09 13:12:26: Multiserver,ERROR+
at org.enhydra.servlet.conne
ctionMethods.http.HttpHandler.doARequest(HttpHandler.java:241)
     [java]      [java] 2002.02.09 13:12:26: Multiserver,ERROR+
at org.enhydra.servlet.conne
ctionMethods.http.HttpHandler.processRequests(HttpHandler.java:258)
     [java]      [java] 2002.02.09 13:12:26: Multiserver,ERROR+
at org.enhydra.servlet.conne
ctionMethods.http.HttpHandler.run(HttpHandler.java:96)
     [java]      [java] 2002.02.09 13:12:26: Multiserver,ERROR+
at java.lang.Thread.run(Thre
ad.java:484)
     [java]      [java] 2002.02.09 13:12:26: CactusTest,INFO:
Configuring web service using "file:E:
/Dev/jakarta-cactus/target/servlet22/dist/sample/target/test/enhydra31/w
ebapps/test/WEB-INF/web.xml"

3/ The last problem is that for some reason the classloader used by
Enhydra cannot find a properties file located in a jar file ... Thus no
logs are generated.

Apart from this, everything works fine.

Thanks for your feedback.
-Vincent

> -----Original Message-----
> From: Ryuji Hattori [mailto:hattori@hitachizosen.co.jp]
> Sent: 30 January 2002 08:22
> To: enhydra@enhydra.org
> Cc: vmassol@octo.com
> Subject: Re: Enhydra: Unit testing with POs?
> 
> 
> Hello, Vincent.
> 
> It's reply mail for a long ago.
> 
> In message "Re: Enhydra:  Unit testing with POs?"
>     on 01/10/22, "Vincent Massol" <vm...@octo.com> writes:
> >			:
> >:
> > I have also tried to provide automated scripts as part of Cactus to
> > automatically start enhydra, run the cactus unit tests and stop the
> server.
> > I'm almost there but I still have unanswered issues. I have posted
some
> > question on this list a while ago but never got an answer so I
stopped
> > working on the subject ... If you can help that would be nice ... :)
> 
> Now I'm trying to apply cactus to enhydra and had a same trouble too.
> But the target "start_enhydra_31" works well, so I hacked source
around
> runservertests task. In StartServerHelper.java, the runservertests
task
> starts multiserver and checks connectivity to server. but I found that
> Exception is thrown because connectivity check is started although
> initialization of multiserver is not finished. In my enviroment
> I set 7 sec for waiting time to check connectivity to server after
> multiserver starts.(default 1 sec) and server starts normally.
> 
> > Thanks
> > -Vincent
> >
> > ----- Original Message -----
> > From: "Stefan Armbruster" <sa...@web.de>
> > To: <en...@enhydra.org>
> > Sent: Monday, October 22, 2001 8:41 PM
> > Subject: Re: Enhydra: Unit testing with POs?
> >
> >
> > > Hi Bob,
> > > a few days ago, I looked at the same question. A short search in
the
> web
> > took
> > > me to two projects:
> > > http://www.dallaway.com/jsptest/
> > > http://jakarta.apache.org/cactus/
> > > After looking at the docs, it looks like Cactus is the more
promising
> one.
> > > ... but I've never worked with any of them, so make your own mind.
> > > BTW: Let me know, if you succeed.
> > > Stefan
> > >
> > > Am Montag, 22. Oktober 2001 21:01 schrieben Sie:
> > > > Anyone have a link or advise on how to perform unit testing on
> Enhydra3
> > > > POs?
> > > >
> > > > I can't seem to get my brain around it. Normally I set away for
a
> couple
> > of
> > > > hours and come back to it, but nothing has dawned on me as of
yet.
> 
> Best Regards.
> 
> --
> ------smile brings (^o^) happiness --------
> hattori@hitachizosen.co.jp
> HitachiZosen Co.ltd. Technical Research Center.
> 




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>