Hi, > -----Original Message----- > From: Josh Lam [mailto:[EMAIL PROTECTED] > Sent: 12 January 2004 01:47 > To: Vincent Massol > Subject: RE: Eclipse Plugin Question > > Just want to make sure. The web.xml file I am using > is: > > <?xml version="1.0" encoding="ISO-8859-1"?> > > <!DOCTYPE web-app > PUBLIC "-//Sun Microsystems, Inc.//DTD Web > Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd"> > > <web-app> > > <filter> > <filter-name>FilterRedirector</filter-name> > > <filter-class>org.apache.cactus.server.FilterTestRedirector</filter-clas s> > </filter> > > <filter-mapping> > <filter-name>FilterRedirector</filter-name> > > <!-- Some servlet 2.3 containers need to map > the filter to a valid > resource (Orion 1.5.2 for example). > Others, like Tomcat, > are happy with just any mapping. > > For example, the following would work > with Tomcat : > > <url-pattern>/FilterRedirector</url-pattern> --> > > <url-pattern>/test/filterRedirector.jsp</url-pattern> > </filter-mapping> > > <servlet> > <servlet-name>ServletRedirector</servlet-name> > > <servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet- > class> > </servlet> > > <servlet> > <servlet-name>JspRedirector</servlet-name> > <jsp-file>/jspRedirector.jsp</jsp-file> > </servlet> > > <servlet-mapping> > <servlet-name>ServletRedirector</servlet-name> > <url-pattern>/ServletRedirector</url-pattern> > </servlet-mapping> > > <servlet-mapping> > <servlet-name>JspRedirector</servlet-name> > <url-pattern>/JspRedirector</url-pattern> > </servlet-mapping> > > </web-app>
That looks fine. There's maybe even too many things (are you using all redirectors?), but it won't hurt. > > I realized that it referenced some JSPs eg > FilterRedirector.jsp and ServletRedirector.jsp. Do I > need to put these JSP files somewhere? No. You only need to put whatever you need. If you're only testing servlets, you only need: <servlet> <servlet-name>ServletRedirector</servlet-name> <servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-c lass> </servlet> <servlet-mapping> <servlet-name>ServletRedirector</servlet-name> <url-pattern>/ServletRedirector</url-pattern> </servlet-mapping> Thanks -Vincent > > -- > Josh > > --- Vincent Massol <[EMAIL PROTECTED]> wrote: > > Hi Josh, > > > > > -----Original Message----- > > > From: Josh Lam [mailto:[EMAIL PROTECTED] > > > Sent: 11 January 2004 08:29 > > > To: [EMAIL PROTECTED] > > > Subject: Eclipse Plugin Question > > > > > > Hi, > > > > > > I have both the catus runner plugin and the web > > app > > > plugin installe in Eclipse 2.1. > > > > > > When I tried to run a Cactus test, I got: > > > > > > org.apache.cactus.util.ChainedRuntimeException: > > Failed > > > to get the test results at > > > [http://localhost:8080/test/ServletRedirector] > > > > > > I am pretty sure its something I did not configure > > > properly. > > > > > > Do I need to have Jetty started? > > > > No. It is started automatically by the plugin. > > > > > > > > Also, when I looked at my Cactus container > > preferences > > > in Eclipse, it had Jetty checked and it says that > > the > > > location of the jetty.xml file is > > src/webapp/jetty.xml > > > Question is, what is that path relative to? is it > > my > > > Jetty installation? > > > > Nope. It's the path relative to your Eclipse > > project. However it's > > optional and is used to customize Jetty. > > > > Have you checked the webapp plugin properties? > > > (http://jakarta.apache.org/cactus/integration/eclipse/webapp_plugin.html > > ). In there you'll find the path to your web.xml > > file. > > > > You need to have a web.xml file containing the > > Cactus redirector (in the > > current version of the plugin, it is not added > > automatically). > > > > Can you also check your eclipse workspace log file > > (it's located in > > ECLIPSE_HOME/workspace/.metadata/.log). > > > > Thanks > > -Vincent > > > > > > > > Thanks. > > > > > > -- > > > Josh > > > > > > __________________________________ > > > Do you Yahoo!? > > > Yahoo! Hotjobs: Enter the "Signing Bonus" > > Sweepstakes > > > http://hotjobs.sweepstakes.yahoo.com/signingbonus > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes > http://hotjobs.sweepstakes.yahoo.com/signingbonus --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
