Servlet Exception Error
Hi all, I am new to the group and new to Struts, working on my first application. I am using Struts 1.0, and tomcat 4.1.27. I get the following error: org.apache.jasper.JasperException: org/apache/struts/action/ActionForm With root cause javax.servlet.ServletException: org/apache/struts/action/ActionForm I get this error consistently, if I run the struts-example.war it work just fine, but mine has this problem. I have been pulling my hair out trying to solve this. Can anybody point me in the right direction? Any help would be greatly appreciated. Thank you, -John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
catching servlet exception
hey, I configured multiple exception handlers with struts and everything is working fine on actions and jsps. But my servlet exceptions still seem to be handled by the container and not by any of my exception handlers (which has a base one handles Exception). What can I do? thx yan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:errors/ throwing null servlet exception
Partially answering my own question - Changing back to use ActionError (and ignoring the deprecation messages that Eclipse spits out), I can get my messages to work. Obviously the problem is that I am mixing ActionErrors and ActionMessage. What is the preferred method? It looks like ActionError has already been deprecated; does this mean we should be using ActionMessages/ActionMessage for returning errors? TIA! Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 10:51 AM To: '[EMAIL PROTECTED]' Subject: html:errors/ throwing null servlet exception Using the nightly build from 8/14, I'm now getting a null servlet exception on an html:errors/ statement. I've also had to change from using ActionError to ActionMessage since it appears that ActionError has been deprecated in 1.2.1. I've tried changing everything over to use ActionMessages, ActionMessage, and html:messages/, but still am getting the null servlet exception. Has anyone else come across this? Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:errors/ throwing null servlet exception
--- Jerry Jalenak [EMAIL PROTECTED] wrote: Partially answering my own question - Changing back to use ActionError (and ignoring the deprecation messages that Eclipse spits out), I can get my messages to work. Obviously the problem is that I am mixing ActionErrors and ActionMessage. What is the preferred method? It looks like ActionError has already been deprecated; does this mean we should be using ActionMessages/ActionMessage for returning errors? ActionErrors is a simple subclass of ActionMessages that doesn't really do anything. The same goes for ActionError vs. ActionMessage. I made some changes this weekend to allow html:errors to use ActionMessage and ActionError objects. So, you shouldn't be using ActionError anymore but you still have to use ActionErrors because it's returned from the forms' validate() method. Just add ActionMessage objects to ActionErrors. I realize this is confusing but we need to get rid of these duplicate classes. David TIA! Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 10:51 AM To: '[EMAIL PROTECTED]' Subject: html:errors/ throwing null servlet exception Using the nightly build from 8/14, I'm now getting a null servlet exception on an html:errors/ statement. I've also had to change from using ActionError to ActionMessage since it appears that ActionError has been deprecated in 1.2.1. I've tried changing everything over to use ActionMessages, ActionMessage, and html:messages/, but still am getting the null servlet exception. Has anyone else come across this? Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:errors/ throwing null servlet exception
David, That's basically what I thought. However, when I change this errors.add(ActionErrors.GLOBAL_ERROR, new ActionError((String) ee.getErrorKey())); to this errors.add(ActionErrors.GLOBAL_ERROR, new ActionMessage((String) ee.getErrorKey())); my JSP blows up on the html:errors/ statement (gives me a 'null' servlet exception.) Since you've been working on making all this play nice, do I just need to pull down a more recent nightly (I'm using 8/14 currently...) Thanks! Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 11:28 AM To: Struts Users Mailing List Subject: RE: html:errors/ throwing null servlet exception --- Jerry Jalenak [EMAIL PROTECTED] wrote: Partially answering my own question - Changing back to use ActionError (and ignoring the deprecation messages that Eclipse spits out), I can get my messages to work. Obviously the problem is that I am mixing ActionErrors and ActionMessage. What is the preferred method? It looks like ActionError has already been deprecated; does this mean we should be using ActionMessages/ActionMessage for returning errors? ActionErrors is a simple subclass of ActionMessages that doesn't really do anything. The same goes for ActionError vs. ActionMessage. I made some changes this weekend to allow html:errors to use ActionMessage and ActionError objects. So, you shouldn't be using ActionError anymore but you still have to use ActionErrors because it's returned from the forms' validate() method. Just add ActionMessage objects to ActionErrors. I realize this is confusing but we need to get rid of these duplicate classes. David TIA! Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 10:51 AM To: '[EMAIL PROTECTED]' Subject: html:errors/ throwing null servlet exception Using the nightly build from 8/14, I'm now getting a null servlet exception on an html:errors/ statement. I've also had to change from using ActionError to ActionMessage since it appears that ActionError has been deprecated in 1.2.1. I've tried changing everything over to use ActionMessages, ActionMessage, and html:messages/, but still am getting the null servlet exception. Has anyone else come across this? Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient
RE: html:errors/ throwing null servlet exception
--- Jerry Jalenak [EMAIL PROTECTED] wrote: David, That's basically what I thought. However, when I change this errors.add(ActionErrors.GLOBAL_ERROR, new ActionError((String) ee.getErrorKey())); to this errors.add(ActionErrors.GLOBAL_ERROR, new ActionMessage((String) ee.getErrorKey())); my JSP blows up on the html:errors/ statement (gives me a 'null' servlet exception.) Since you've been working on making all this play nice, do I just need to pull down a more recent nightly (I'm using 8/14 currently...) Try the latest nightly. The html:errors tag was casting to ActionError when pulling objects out of the message queue. I changed that to cast to ActionMessage which allows both ActionError and ActionMessage to be used. That may be what's causing your problem. David Thanks! Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 11:28 AM To: Struts Users Mailing List Subject: RE: html:errors/ throwing null servlet exception --- Jerry Jalenak [EMAIL PROTECTED] wrote: Partially answering my own question - Changing back to use ActionError (and ignoring the deprecation messages that Eclipse spits out), I can get my messages to work. Obviously the problem is that I am mixing ActionErrors and ActionMessage. What is the preferred method? It looks like ActionError has already been deprecated; does this mean we should be using ActionMessages/ActionMessage for returning errors? ActionErrors is a simple subclass of ActionMessages that doesn't really do anything. The same goes for ActionError vs. ActionMessage. I made some changes this weekend to allow html:errors to use ActionMessage and ActionError objects. So, you shouldn't be using ActionError anymore but you still have to use ActionErrors because it's returned from the forms' validate() method. Just add ActionMessage objects to ActionErrors. I realize this is confusing but we need to get rid of these duplicate classes. David TIA! Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 10:51 AM To: '[EMAIL PROTECTED]' Subject: html:errors/ throwing null servlet exception Using the nightly build from 8/14, I'm now getting a null servlet exception on an html:errors/ statement. I've also had to change from using ActionError to ActionMessage since it appears that ActionError has been deprecated in 1.2.1. I've tried changing everything over to use ActionMessages, ActionMessage, and html:messages/, but still am getting the null servlet exception. Has anyone else come across this? Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo
RE: html:errors/ throwing null servlet exception
David, Thanks for the help. I pulled the 8/18 nightly, recompiled against it, and tested. Looks like everything is working as it should. Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 1:24 PM To: 'Struts Users Mailing List' Subject: RE: html:errors/ throwing null servlet exception --- Jerry Jalenak [EMAIL PROTECTED] wrote: David, That's basically what I thought. However, when I change this errors.add(ActionErrors.GLOBAL_ERROR, new ActionError((String) ee.getErrorKey())); to this errors.add(ActionErrors.GLOBAL_ERROR, new ActionMessage((String) ee.getErrorKey())); my JSP blows up on the html:errors/ statement (gives me a 'null' servlet exception.) Since you've been working on making all this play nice, do I just need to pull down a more recent nightly (I'm using 8/14 currently...) Try the latest nightly. The html:errors tag was casting to ActionError when pulling objects out of the message queue. I changed that to cast to ActionMessage which allows both ActionError and ActionMessage to be used. That may be what's causing your problem. David Thanks! Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 11:28 AM To: Struts Users Mailing List Subject: RE: html:errors/ throwing null servlet exception --- Jerry Jalenak [EMAIL PROTECTED] wrote: Partially answering my own question - Changing back to use ActionError (and ignoring the deprecation messages that Eclipse spits out), I can get my messages to work. Obviously the problem is that I am mixing ActionErrors and ActionMessage. What is the preferred method? It looks like ActionError has already been deprecated; does this mean we should be using ActionMessages/ActionMessage for returning errors? ActionErrors is a simple subclass of ActionMessages that doesn't really do anything. The same goes for ActionError vs. ActionMessage. I made some changes this weekend to allow html:errors to use ActionMessage and ActionError objects. So, you shouldn't be using ActionError anymore but you still have to use ActionErrors because it's returned from the forms' validate() method. Just add ActionMessage objects to ActionErrors. I realize this is confusing but we need to get rid of these duplicate classes. David TIA! Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 10:51 AM To: '[EMAIL PROTECTED]' Subject: html:errors/ throwing null servlet exception Using the nightly build from 8/14, I'm now getting a null servlet exception on an html:errors/ statement. I've also had to change from using ActionError to ActionMessage since it appears that ActionError has been deprecated in 1.2.1. I've tried changing everything over to use ActionMessages, ActionMessage, and html:messages/, but still am getting the null servlet exception. Has anyone else come across this? Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person
Validator Servlet Exception
I have a working development environment with: JBuilder 6 Enterprise Tomcat 4.0.1 Struts nightly Torque nightly I have now added the Struts Validator, and at startup under JBuilder 6, I get: javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.struts.action.ValidatorServlet or a class it depends on. I've modified the web.xml according to the docs, and copied the regular expression, commons-validator.jar and struts-validator.jar in /WEB-INF/lib. I've also copied them to the /jakarta-tomcat-4.0.1/lib directory just in case. I know that this is something obvious, but I can't seem to find it. Any hints or suggestions? Thanks. --- Robert D. Morse [EMAIL PROTECTED] PGP Key: D9C4AA6A PGP Finger Print: ED56 DEEA 95CF AC99 C2B0 77D4 7D92 ACCA D9C4 AA6A -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Servlet Exception
I am trying to verify an installation with the struts-blank app. I am getting a 500 Servlet Exception at the taglib descriptor: The message is: /struts-blank/index.jsp:2: org.apache.struts.taglib.bean.CookieTei I'm using Resin2.0.1. I've seen this before but I don't know how I got it to go away. Any help would be appreciated. Thanks, Brian McClung Belo Interactive 214-977-4083
500 Servlet Exception
Hi, I get a 500 servlet exception when trying to access struts-example. I am using Resin 2.0.1. What could be wrong? On Resin 1.2.3, it does work but not on 2.0.1. What should I do? Thanks! java.lang.NoSuchMethodError at com.caucho.jsp.Taglib.fillTag(Taglib.java:406) at com.caucho.jsp.Taglib.fillTagLibraryInfo(Taglib.java:336) at com.caucho.jsp.Taglib.init(Taglib.java:164) at com.caucho.jsp.JspParser.parseTaglibDirective(JspParser.java:975) at com.caucho.jsp.JspParser.parseDirective(JspParser.java:685) at com.caucho.jsp.JspParser.parseScriptlet(JspParser.java:554) at com.caucho.jsp.JspParser.parseNode(JspParser.java:309) at com.caucho.jsp.JspParser.parseJsp(JspParser.java:289) at com.caucho.jsp.JspParser.parse(JspParser.java:187) at com.caucho.jsp.JspParser.parse(JspParser.java:135) at com.caucho.jsp.JspManager.createPage(JspManager.java:122) at com.caucho.jsp.PageManager.getPage(PageManager.java:332) at com.caucho.jsp.PageManager.getPage(PageManager.java:195) at com.caucho.jsp.QServlet.getPage(QServlet.java:215) at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:126) at com.caucho.server.http.Invocation.service(Invocation.java:272) at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:128) at com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.java:209) at com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.java:96) at com.caucho.server.http.FileServlet.service(FileServlet.java:288) at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:82) at com.caucho.server.http.Invocation.service(Invocation.java:272) at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:128) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:216) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158) at com.caucho.server.TcpConnection.run(TcpConnection.java:140) at java.lang.Thread.run(Thread.java:484)
RE: Newbie Question: Servlet Exception - This is being answered by Dudley - giving something back to the user group for all the help i got - thanx all u guys
You need to make sure the html:form action=/logon tag in you jsp page, is declared in your struts config file ..here is an example of my struts confignotice the action path=/logon tag.You need one of these for every different html:form action= tag in you jsp page. ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd; struts-config !-- == Form Bean Definitions === -- form-beans form-bean name=loginForm type=com.didata.itax.payment.web.actionform.LoginActionForm/ form-bean name=eFilerForm type=com.didata.itax.payment.web.actionform.EFilerActionForm/ form-bean name=taxPayerForm type=com.didata.itax.payment.web.actionform.TaxPayerActionForm/ /form-beans !-- == Global Forward Definitions == -- global-forwards forward name=logonForm path=/logon.jsp/ forward name=mainMenu path=/mainMenu.jsp/ forward name=index path=/index.jsp/ forward name=eFilerpath=/EFilerMenu.jsp/ /global-forwards !-- == Action Mapping Definitions == -- action-mappings actionpath=/logon type=com.didata.itax.payment.web.action.LoginAction name=loginForm scope=request input=/logon.jsp forward name=failure path=/index.html/ forward name=success path=/login.jsp/ /action actionpath=/eFilerAdd type=com.didata.itax.payment.web.action.EFilerAction name=eFilerForm scope=request input=/EFilerInput.jsp forward name=failure path=/EFilerInput.jsp/ forward name=success path=/EFilerDone.jsp/ /action action path=/eFilerEdit type=com.didata.itax.payment.web.action.EFilerAction name=eFilerForm scope=request forward name=failure path=/EFilerMenu.jsp/ forward name=success path=/EFilerInput.jsp/ /action action path=/eFilerUpdateState type=com.didata.itax.payment.web.action.EFilerAction name=eFilerForm scope=request forward name=failure path=/EFilerList.jsp/ forward name=success path=/EFilerDoneList.jsp/ /action action path=/eFilerDelete type=com.didata.itax.payment.web.action.EFilerAction name=eFilerForm scope=request forward name=failure path=/EFilerMenu.jsp/ forward name=success path=/EFilerList.jsp/ /action actionpath=/eFiler type=com.didata.itax.payment.web.action.EFilerAction name=eFilerForm scope=request input=/EFilerMenu.jsp forward name=failure path=/index.jsp/ forward name=success path=/EFilerList.jsp/ /action /action-mappings /struts-config -Original Message- From: Kevin Newman [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 10, 2001 7:07 AM To: Struts-User (E-mail) Subject: Newbie Question: Servlet Exception Hi All, I've just loaded struts and am having a little problem. I started by placing the *.war files in webapps directory. After copying xalan xerces jar files into the lib directory almost all of the example apps worked. My next step was to setup the struts-blank then modify it to get a feel for how strut works. When I try to add logon to the blank app I get the message below. What does this mean? Do I need to post more info? Platform: Windows 2000 Servlet Engine: Tomcat 4.0 b3 Struts: 1.0-b1 Thanks, Kevin Newman A Servlet Exception Has Occurred Exception Report: javax.servlet.ServletException: Cannot retrieve mapping for specified form action path /logon at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:441) at org.apache.jsp.logon_jsp._jspService(logon_jsp.java:299) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:200) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:357) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:431) Some deleted . Root Cause: javax.servlet.jsp.JspTagException: Cannot retrieve mapping for specified form action path /logon at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:487
RE: Newbie Question: Servlet Exception - This is being answered by Dudley - giving something back to the user group for all the help i got - thanx all u guys
Thanks, that was just what I needed. Now, on to the next step - connecting to a database. kln -Original Message- From: Dudley Butt@i-Commerce [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 10, 2001 2:41 AM To: '[EMAIL PROTECTED]' Subject: RE: Newbie Question: Servlet Exception - This is being answered by Dudley - giving something back to the user group for all the help i got - thanx all u guys You need to make sure the html:form action=/logon tag in you jsp page, is declared in your struts config file ..here is an example of my struts confignotice the action path=/logon tag.You need one of these for every different html:form action= tag in you jsp page. ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd; struts-config !-- == Form Bean Definitions === -- form-beans form-bean name=loginForm type=com.didata.itax.payment.web.actionform.LoginActionForm/ form-bean name=eFilerForm type=com.didata.itax.payment.web.actionform.EFilerActionForm/ form-bean name=taxPayerForm type=com.didata.itax.payment.web.actionform.TaxPayerActionForm/ /form-beans !-- == Global Forward Definitions == -- global-forwards forward name=logonForm path=/logon.jsp/ forward name=mainMenu path=/mainMenu.jsp/ forward name=index path=/index.jsp/ forward name=eFilerpath=/EFilerMenu.jsp/ /global-forwards !-- == Action Mapping Definitions == -- action-mappings actionpath=/logon type=com.didata.itax.payment.web.action.LoginAction name=loginForm scope=request input=/logon.jsp forward name=failure path=/index.html/ forward name=success path=/login.jsp/ /action actionpath=/eFilerAdd type=com.didata.itax.payment.web.action.EFilerAction name=eFilerForm scope=request input=/EFilerInput.jsp forward name=failure path=/EFilerInput.jsp/ forward name=success path=/EFilerDone.jsp/ /action action path=/eFilerEdit type=com.didata.itax.payment.web.action.EFilerAction name=eFilerForm scope=request forward name=failure path=/EFilerMenu.jsp/ forward name=success path=/EFilerInput.jsp/ /action action path=/eFilerUpdateState type=com.didata.itax.payment.web.action.EFilerAction name=eFilerForm scope=request forward name=failure path=/EFilerList.jsp/ forward name=success path=/EFilerDoneList.jsp/ /action action path=/eFilerDelete type=com.didata.itax.payment.web.action.EFilerAction name=eFilerForm scope=request forward name=failure path=/EFilerMenu.jsp/ forward name=success path=/EFilerList.jsp/ /action actionpath=/eFiler type=com.didata.itax.payment.web.action.EFilerAction name=eFilerForm scope=request input=/EFilerMenu.jsp forward name=failure path=/index.jsp/ forward name=success path=/EFilerList.jsp/ /action /action-mappings /struts-config -Original Message- From: Kevin Newman [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 10, 2001 7:07 AM To: Struts-User (E-mail) Subject: Newbie Question: Servlet Exception Hi All, I've just loaded struts and am having a little problem. I started by placing the *.war files in webapps directory. After copying xalan xerces jar files into the lib directory almost all of the example apps worked. My next step was to setup the struts-blank then modify it to get a feel for how strut works. When I try to add logon to the blank app I get the message below. What does this mean? Do I need to post more info? Platform: Windows 2000 Servlet Engine: Tomcat 4.0 b3 Struts: 1.0-b1 Thanks, Kevin Newman A Servlet Exception Has Occurred Exception Report: javax.servlet.ServletException: Cannot retrieve mapping for specified form action path /logon at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:441) at org.apache.jsp.logon_jsp._jspService(logon_jsp.java:299) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:200) at org.apache.jasper.servlet.JspServlet.serviceJspFile
Newbie Question: Servlet Exception
Hi All, I've just loaded struts and am having a little problem. I started by placing the *.war files in webapps directory. After copying xalan xerces jar files into the lib directory almost all of the example apps worked. My next step was to setup the struts-blank then modify it to get a feel for how strut works. When I try to add logon to the blank app I get the message below. What does this mean? Do I need to post more info? Platform: Windows 2000 Servlet Engine: Tomcat 4.0 b3 Struts: 1.0-b1 Thanks, Kevin Newman A Servlet Exception Has Occurred Exception Report: javax.servlet.ServletException: Cannot retrieve mapping for specified form action path /logon at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:441) at org.apache.jsp.logon_jsp._jspService(logon_jsp.java:299) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:200) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:357) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:431) Some deleted . Root Cause: javax.servlet.jsp.JspTagException: Cannot retrieve mapping for specified form action path /logon at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:487) at org.apache.jsp.logon_jsp._jspService(logon_jsp.java:128) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:200) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:357) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:431) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:191) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:255) Some deleted .