To give more info on this problem:
All of the tests in TestSampleServlet.class run except
testRequestDispatcher(). This is where my error occurs.
I have test.jsp in my test/web directory, and to verify that it is being
found, I can bring up "Hello !" on my browser with
http://localhost:8080/test/test.jsp. I also threw test.jsp in a few other
folders just in case.
My TestSampleServletConfig also fails. In the assertion, my
servlet.getConfigData() returns with null instead of "value1 used for
testing." Is this a problem with my test.webapp file? I try to set an
initialization parameter with
<init-param>
<param-name>param1</param-name>
<param-value>value1 used for testing</param-value>
</init-param>
inside of my <ser vlet> </servlet> tags, but I don't think this is working.
This is supposed to work when using a web.xml... is there a different
syntax for a .webapp under the WebSphere Testing Environment?
Thanks in advance,
Erik
Erik Howell
CAP Gemini Ernst & Young US, LLC
[EMAIL PROTECTED]
312-879-3351
|------------------------+------------------------+------------------------|
| | [EMAIL PROTECTED]| |
| | com | To: |
| | | [EMAIL PROTECTED]|
| | 07/31/2001 10:06 AM | pache.org |
| | Please respond to | cc: |
| | cactus-user | Subject: |
| | | Cactus in VAJ3.5 and |
| | | WTE |
|------------------------+------------------------+------------------------|
Hi Cacti,
I'm new to Cactus as of today... and this list appears quite helpful, but I
can't find an answer to my problem.
I have followed the instructions for configuring VAJ with Cactus. I then
proceeded to import the SampleServlet classes and tests into my VisualAge
workspace. These are the same classes found on the Cactus homepage. I
open the WebSphere Testing Environment, add everything to the classpath
(literally, everything... I always manage to leave something out, so I
usually choose "Select All"), and then start the Servlet Engine.
If I try and run TestSampleServlet, I get the error:
java.io.FileNotFoundException: http://localhost:8080/test/ServletRedirector
in the JUnit graphical interface.
Cactus.properties is in the correct directory (per the homepage's
instructions) and added to the classpath. I added to
default.servlet_engine exactly as shown online. I copied and pasted the
xml for test.webapp from the Cactus website and placed it under
default_host/test/servlets. I copied redirector.jsp to
default_host/test/web.
I'm experiencing mass confusion. Any ideas? What further information
could I provide to help you in answering this question?
Thanks much,
Erik
Erik Howell
CAP Gemini Ernst & Young US, LLC
[EMAIL PROTECTED]
312-879-3351