Chris,

The best testURL to use (with Cactus 1.3 onward) is :

http://localhost:yourport/yourwebapp/ServletRedirector?Cactus_Service=RU
N_TEST

as this is always a valid URL with Cactus (no need to enable directory
browsing).

(see the FAQ : http://jakarta.apache.org/cactus/faq.html#faq5)

Cheers,
-Vincent

> -----Original Message-----
> From: Chris Chang [mailto:[EMAIL PROTECTED]]
> Sent: 03 May 2002 21:01
> To: 'Cactus Users List'
> Cc: 'Vincent Massol'
> Subject: RE: Problem getting the samples (Cactus 1.3) to run in Orion
> 1.5.4
> 
> Hi Vincent,
> 
> Thanks for your reply, it works now and u r right 8) the problem is
within
> the global-web-application.xml or orion, we need to add the following
> (i.e.
> the directory-browsing) :
> 
> <orion-web-app
>       jsp-cache-directory="./persistence"
>       servlet-webdir="/servlet"
>       development="false"
>       persistence-path="./persistence/state.ser"
>       directory-browsing="allow"
>       ^^^^^^^^^^^^^^^^^^^^^^^^^^
> >
> 
> without that, u will get
> [runservertests] ... got error : Server returned HTTP response code:
403
> for
> URL: http://localhost/test/
> where 403 is "403 Forbidden Directory browsing not allowed"
> 
> while the testing of server is up
> 
> or we have to setup welcome file in web.xml
> 
> Thanks again!
> 
> Chris
> 
> -----Original Message-----
> From: Vincent Massol [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 03, 2002 1:18 PM
> To: 'Cactus Users List'
> Cc: [EMAIL PROTECTED]
> Subject: RE: Problem getting the samples (Cactus 1.3) to run in Orion
> 1.5.4
> 
> 
> Hi Chris,
> 
> > -----Original Message-----
> > From: Chris Chang [mailto:[EMAIL PROTECTED]]
> > Sent: 02 May 2002 18:06
> > To: '[EMAIL PROTECTED]'
> > Subject: Problem getting the samples (Cactus 1.3) to run in Orion
> 1.5.4
> >
> > Hi Folks,
> >
> > <!-- same scenario as previous posting from Chuck -->
> >
> > I'm trying to get the samples to work in Orion 1.5.4 but I can't get
> the
> > tests to run.  Everything builds (compile, directory creation, war
> file,
> > etc..) ok
> > but the process stops in the "start_orion_15" target.  I get the
> message
> > from Orion saying "Orion/1.5.4 initialized" and then that's it.  The
> tests
> > don't run (which is what I think is supposed to happen next).
> >
> > Orion is definitely started because I can pull up the test.jsp page
> via a
> > browser.
> >
> > Is there any ideas where to look or what I can do to further debug?
> >
> 
> yes, run Ant in debug mode : "ant -debug xxx". The runservertests will
> print some information on why it cannot call the URL.
> 
> > <!-- same scenario as previous posting from Chuck -->
> >
> > P.S.
> > Based on the previous posting's suggestion, I already performed the
> > followings, still no luck 8(
> > 1. verified the testURL="http://localhost:${test.port}/test"; is
> correct
> > (i.e. http://localhost:80/test)
> > 2. copy all the jar files [Cactus-home]/lib to [Ant-home]/lib (e.g.
> > junit.jar, etc.)
> >
> 
> I still believe the URL is not valid for some reason.
> 
> > Misc.
> > For the sample to work, I have to use Ant 1.5 (Beta1) as task "Fail"
> does
> > not support "unless" in 1.4.1
> >
> 
> Yes, that is right. That's an error that was introduced. You can
either
> remove the the line that fails (the <fail> line) or do as you've done
an
> use Ant 1.5. I'll put that in the Migration guide on the web site and
in
> the FAQ.
> 
> > Any ideas?
> >
> > Thanks in advance
> >
> > Chris
> >
> 
> -Vincent



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to