Can you show us what you type in to your browser? --- Stefan <[EMAIL PROTECTED]> wrote:
> Hi, > > I first posted this question with the wrong subject > heading ... sorry about > the duplicates. > > My question: > > Using Tomcat 5.0.28 standalone on windows XP with > JVM 1.4, I get this error > even though I have mapped my servlet in the web.xml > file of the web app: > > > HTTP Status 404 - /loginResponse.do > > ---------------------------------------------------------------------------- > ---- > > type Status report > > message /loginResponse.do > > description The requested resource > (/loginResponse.do) is not available. > > > ---------------------------------------------------------------------------- > ---- > > Apache Tomcat/5.0.28 > > > I've placed my webapp folder in Tomcats' webapps > directory and all the jsp > pages run fine as do my POJO's for business logic, > any ideas why the servlet > code could be causing problems? > > The servlet mappings: > > > code: > ---------------------------------------------------------------------------- > -- > > <servlet> > <servlet-name>loginResponse</servlet-name> > <servlet-class>com._ABC.authenticateAdmin</servlet-class> > <init-param> > <param-name>adminPassword</param-name> > <param-value>xxx</param-value> > </init-param> </servlet> <servlet-mapping> > <servlet-name>loginResponse</servlet-name> > <url-pattern>/loginResponse.do</url-pattern> > </servlet-mapping> > ---------------------------------------------------------------------------- > -- > > > > It's my first time using Tomcat, been a Resin user > for years ... any ideas? > > Thanks, > > Stef > > > > ----- Original Message ----- > From: "Mark Thomas" <[EMAIL PROTECTED]> > To: "'Tomcat Users List'" > <[EMAIL PROTECTED]> > Sent: Sunday, November 21, 2004 12:10 PM > Subject: RE: CGI Again...Servlet.service() for > servlet cgi threw exception > > > > I'll look into this but I need a bit more info: > > > > 1. What servlet mapping did you specify in > web.xml? > > 2. What URL are you requesting? > > > > Mark > > > > > -----Original Message----- > > > From: Sergey Kamshilin > [mailto:[EMAIL PROTECTED] > > > Sent: Saturday, November 20, 2004 12:00 AM > > > To: [EMAIL PROTECTED] > > > Subject: CGI Again...Servlet.service() for > servlet cgi threw exception > > > > > > Sorry guys, I gave up digging into it and > haven't seen such > > > problems in > > > archives... > > > > > > Tomcat 4.1.31 on Solaris. > > > > > > I enabled cgi scripting: > > > changes in web.xml: > > > ------ > > > <servlet> > > > <servlet-name>cgi</servlet-name> > > > > > > > <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class> > > > <init-param> > > > <param-name>debug</param-name> > > > <param-value>6</param-value> > > > </init-param> > > > <init-param> > > > <param-name>cgiPathPrefix</param-name> > > > > <param-value>/WEB-INF/cgi-bin/</param-value> > > > </init-param> > > > <load-on-startup>5</load-on-startup> > > > </servlet> > > > ------ > > > renamed servlets-cgi.jar.... > > > > > > The script is > > > > /usr/jakarta-tomcat/webapps/ROOT/WEB-INF/cgi-bin/index.pl > > > (Everything is OK, Right?) > > > ------------ > > > when I try to access it I got the error: > > > 2004-11-19 15:53:15 cgi: findCGI: > path=/index.cgi, > > > > /usr/jakarta-tomcat-4.1.31/webapps/ROOT//WEB-INF/cgi-bin/ > > > 2004-11-19 15:53:15 cgi: findCGI: > > > > currentLoc=/usr/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/cgi-bin > > > 2004-11-19 15:53:15 cgi: findCGI: > > > > currentLoc=/usr/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/cgi-bin > > > 2004-11-19 15:53:15 cgi: findCGI: FOUND cgi at > > > > /usr/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/cgi-bin/index.cgi > > > 2004-11-19 15:53:15 StandardWrapperValve[cgi]: > > > Servlet.service() for servlet > > > cgi threw exception > > > java.lang.StringIndexOutOfBoundsException: > String index out > > > of range: -2 > > > at > java.lang.String.substring(String.java:1444) > > > at > java.lang.String.substring(String.java:1411) > > > at > > > > org.apache.catalina.servlets.CGIServlet$CGIEnvironment.findCGI > > > (CGIServlet.ja > > > va:935) > > > ------------ > > > Why the servlet makes exception???? What else I > need to check? > > > > > > Thank you! > > > > > > /Sergeyk > > > > > > (Lab Documentation - > > > "\\Lizard\rad\DraftDocs\msv\ctn\1290 Lab network > description") > > > Phone: 604 918-6360 > > > Cell: 604 351-8966 > > > > > > > > > > --------------------------------------------------------------------- > > > 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] > > __________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
