• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about setting up Cactus for JSP Testing  RSS feed

Samarth Kumar
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am using Cactus to unit test servlets and jsps. My configuration of Cactus is as follows:


cactus.contextURL = http://localhost:9081/contextRoot

no other entries in this file. I am using the default ServletRedirector and ServletTestRunner.

I am now trying to test custom tags that extend JspTestCase. Accordingly, I added the entries for the JspRedirector to the web.xml file. The entries are as follows:



The jspRedirector.jsp is located in the WEB-INF directory of the web application.

On trying to run the test by invoking the following url, I get the error message below:

Error 500: Missing service name parameter [Cactus_Service] in HTTP request. Received query string is [null].

The url used is:


Any pointers on what I am doing incorrectly.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!