Hello,
  This quer is with regard to running a server-side unit test on
WebLogic v6.1 using Cactus. 

  I updated the web.xml file that comes with BEA WebLogic v6.1
present in
\wlserver6.1\config\examples\applications\examplesWebApp\WEB-INF as
follows.
I run Cactus v1.1 .

<!-- Servlet Redirector URL configuration -->
<servlet>
<servlet-name>ServletRedirector</servlet-name>
<servlet-class>org.apache.commons.cactus.server.ServletTestRedirector</servlet-class>
</servlet>
  
<!-- Servlet Redirector URL mapping -->
<servlet-mapping>
<servlet-name>ServletRedirector</servlet-name>
<url-pattern>/ServletRedirector/</url-pattern>
  </servlet-mapping>
  
<!-- JSP Redirector URL configuration -->
<servlet>
  <servlet-name>JspRedirector</servlet-name>
  <jsp-file>examplesWebApp/redirector.jsp</jsp-file>
</servlet>
  
<!-- JSP Redirector URL mapping -->
<servlet-mapping>
  <servlet-name>JspRedirector</servlet-name>
  <url-pattern>/JspRedirector/*</url-pattern>
</servlet-mapping>

Now I launch the WebLogic server under the context 'examplesWebApp' .
Also I have placed both junit.jar and the common-cactus.jar as part
of the classpath used by the JVM to launch the WebLogic server [ 
weblogic.Server class ] . 

   Now when I point my browser to
http://localhost:7001/examplesWebApp/ServletRedirector , I get a HTTP
404 NOT FOUND  msg as follows:

 <----
Error 404--Not Found 
>From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No
indication is given of whether the condition is temporary or
permanent.

If the server does not wish to make this information available to the
client, the status code 403 (Forbidden) can be used instead. The 410
(Gone) status code SHOULD be used if the server knows, through some
internally configurable mechanism, that an old resource is
permanently unavailable and has no forwarding address.
-->


Because of this I couldn't  run the TestRunner, since the
JspHttpClient::doTest needs a valid ServletRedirector .
Can anybody help me ?

=====
Thanks.
Rakesh Bhalla.

__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

Reply via email to