Hi Kunal,
----- Original Message -----
From: "Vaishnav, Kunal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 01, 2001 8:37 PM
Subject: Cactus help!
> Hello All,
>
> When I try to run the SampleServlet provided with the Cactus
source...it
> throws me back this error..
> ERROR:
>
testRequestDispatcher(com.jdedwards.oneworld.owportal.util.TestSampleServlet
> ) : line 545 :java.io.FileNotFoundException:
> http://localhost:82/jdetest/servlet/ServletRedirector
>
First, this can't be the SampleServlet provided by the Cactus source as the
Cactus package is org.apache.commons.cactus and not com.jdedwards.* ! :-)
If you run the Cactus sample as is (i.e. you cd to <cactus
root>/sample/build and type 'ant tests_all') you'll find that it works
(provided you have a valid build.properties).
What does it mean ? It means that your problem is 99% likely to be a
configuration problem and more specifically a classpath problem, like you
have not put junit.jar on the server classpath or something alike. Can you
check your classpaths ? I'm working on providing better diagnosis messages
and the version in CVS has already a patch for this.
>
> Now but the above URL is active, in the sense that when I click on that
it
> does give me some error..like missing parameter which is correct...To
> further illustrate..if I set a cookie on the Response object, I can
> retrieve
> it back in endXXX method. Also, the simple servlet given at the web page
> works perfectly. Where is the error?...I cant understand..I dont think it
> can be a settings error, since cookies can be passed...
>
> My Cactus.properties file is:
> # Configuration file for Cactus.
>
> # Each project using Cactus need to have such a file put in the CLASSPATH
> # (Meaning the directory containgin this file should be in the
> CLASSPATH,not
> # the file itself of course ... :) )
>
> # Defines the URLs that will be used by Cactus to call it's redirectors
> # (Servlet and JSP). You need to specify in these URLs the webapp context
> # that you use for your application. In the example below, the context is
> # "test".
>
> cactus.servletRedirectorURL =
> http://localhost:82/jdetest/servlet/ServletRedirector
>
> I am wondering whether I will need Ant..I dont have it installed as of
> yet..Is this why both TestServletSample and my code is failing?
>
>
> Please help!
>
-Vincent