my web.xml for prototype webapp is the following....... can you please tell me where is the incorrect mapping...
<?xml version="1.0" encoding="UTF-8"?> <!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-class> </filter> <filter-mapping> <filter-name>FilterRedirector</filter-name> <url-pattern>/FilterRedirector</url-pattern> </filter-mapping> <servlet> <servlet-name>JspRedirector</servlet-name> <jsp-file>/jspRedirector.jsp</jsp-file> </servlet> <servlet> <servlet-name>ServletRedirector</servlet-name> <servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class > </servlet> <servlet-mapping> <servlet-name>JspRedirector</servlet-name> <url-pattern>/JspRedirector</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>ServletRedirector</servlet-name> <url-pattern>/ServletRedirector</url-pattern> </servlet-mapping> </web-app> -----Original Message----- From: Vincent Massol [mailto:[EMAIL PROTECTED] Sent: Sunday, March 30, 2003 7:50 PM To: 'Cactus Users List' Subject: RE: Testing EJB - Newbie: please help It means you have not mapped correctly the ServletRedirector servlet in the web.xml for the "prototype" webapp. -Vincent > -----Original Message----- > From: Chandragupt [mailto:[EMAIL PROTECTED] > Sent: 30 March 2003 16:01 > To: 'Cactus Users List' > Subject: RE: Testing EJB - Newbie: please help > > when i run my cactus test it gives the following error any clue whats > happening?? > > > > java.io.FileNotFoundException: > http://localhost:7001/prototype/ServletRedirector?Cactus_TestMethod=test Se > tT > emporaryPassword&Cactus_TestClass=net.fgt.test.TestLoginControllerv1_0Te st > Cl > ientCactus&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST at > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnec ti > on > .java:573) at > sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnec ti > on > .java:836) at > java.net.URLConnection.getHeaderFieldInt(URLConnection.java:449) at > java.net.URLConnection.getContentLength(URLConnection.java:361) at > org.apache.cactus.client.HttpClientHelper.dispatch22_connect(HttpClientH el > pe > r.java;org/apache/cactus/util/log/LogAspect.java(1k):176) at > org.apache.cactus.client.HttpClientHelper.around22_connect(HttpClientHel pe > r. > java;org/apache/cactus/util/log/LogAspect.java(1k):1221) at > org.apache.cactus.client.HttpClientHelper.connect(HttpClientHelper.java; or > g/ > apache/cactus/util/log/LogAspect.java(1k):125) at > org.apache.cactus.client.AbstractHttpClient.callRunTest(AbstractHttpClie nt > .j > ava;org/apache/cactus/util/log/LogAspect.java(1k):188) at > org.apache.cactus.client.AbstractHttpClient.dispatch1_doTest(AbstractHtt pC > li > ent.java;org/apache/cactus/util/log/LogAspect.java(1k):120) at > org.apache.cactus.client.AbstractHttpClient.around1_doTest(AbstractHttpC li > en > t.java;org/apache/cactus/util/log/LogAspect.java(1k):1221) at > org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.ja va > ;o > rg/apache/cactus/util/log/LogAspect.java(1k):115) at > org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCase.java: 45 > 7) > at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:133) at > org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:400) > ...(Click for full stack trace)... > > -----Original Message----- > From: Vincent Massol [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 30, 2003 2:33 AM > To: 'Cactus Users List' > Subject: RE: Testing EJB - Newbie: please help > > > Hi Chandragupt, > > You can check http://jakarta.apache.org/cactus/writing/howto_ejb.html > If there is anything you don't understand there, feel free to ask > questions. > > Thanks > -Vincent > > > -----Original Message----- > > From: Chandragupt [mailto:[EMAIL PROTECTED] > > Sent: 28 March 2003 13:30 > > To: 'Cactus Users List' > > Subject: RE: Testing EJB - Newbie: please help > > > > yeah I am also facing similar kind of problem.. I am using JBuilder 8 > for > > running cactus test cases on the application that I have imported into > it. > > But I havent found any tutorial that lists out on how to write cactus > test > > cases for application consiting of EJBs. > > > > Any help would be greatly appreciated > > > > Chandragupt > > > > -----Original Message----- > > From: Beate Jehn [mailto:[EMAIL PROTECTED] > > Sent: Friday, March 28, 2003 4:43 PM > > To: [EMAIL PROTECTED] > > Subject: Testing EJB - Newbie: please help > > > > > > Hello, > > > > I have to test our EJBs that we use in our project. Now I've tried to > run > > Cactus, but all the How-To's are really confusing. The EJB How-To > isn't > > really helpfull. I tried this after the getting started 20 minutes > > tutorial, > > but always got error messages. > > > > Is there a real Tutorial or guideline available for testing EJBs? Does > > anyone has written down all the steps in order to run a simple test? > > > > I'm using the J2EE RI Server and it's deploytool. > > > > Thanks a lot > > > > Beate > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
