You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by kljxm <kl...@163.com> on 2010/09/16 08:18:47 UTC

Question about JettyTestSetup.setConfigFile

Hi

I utilize cactus to test a servlet. Testing is executed with the help of jetty extension. Because my servlet has correlated with other jsp in forward (ie. request.getRequestDispatcher("Geoworkflow/wpsCapabilitiesList.jsp").forward(request, response);), I had to set context message while in jetty server starup.

I use  JettyTestSetup.setConfigFile(new File ("/web.xml");) to set Jetty's config file as web.xml which is actually in Tomcat (The file path is valid). However, there comes the error message:  org.xml.sax.SAXParseException: Document root element "web-app", must match DOCTYPE root "null".

What does the error message mean?  How can I fix this problem? Thanks!

                                                                                                                                                     KOP