Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 71044 invoked from network); 22 Jun 2009 16:36:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jun 2009 16:36:04 -0000 Received: (qmail 89169 invoked by uid 500); 22 Jun 2009 16:36:12 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 89124 invoked by uid 500); 22 Jun 2009 16:36:12 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 89114 invoked by uid 99); 22 Jun 2009 16:36:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2009 16:36:12 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.216.197] (HELO mail-px0-f197.google.com) (209.85.216.197) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2009 16:36:02 +0000 Received: by pxi35 with SMTP id 35so1529136pxi.23 for ; Mon, 22 Jun 2009 09:35:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.185.12 with SMTP id i12mr5275516waf.16.1245688542123; Mon, 22 Jun 2009 09:35:42 -0700 (PDT) In-Reply-To: <24150745.post@talk.nabble.com> References: <24150745.post@talk.nabble.com> Date: Mon, 22 Jun 2009 12:35:42 -0400 Message-ID: Subject: Re: struts 2 -- The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. From: Wes Wannemacher To: Struts Users Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Are you accessing a JSP page with struts tags in it by going directly to the JSP ? For instance, you should be hitting a URL similar to the following (based on the config you sent) - http://yourserver:8080/contextRoot/pcFlow.action Then, depending on what the return value of com.myco.regui.struts.accounts.AccountsAction.execute(), you will see one of the JSPs you mapped as results. Also, is there any reason why you are changing the interceptor stack? You don't have validation and workflow, which seems a bit odd... -Wes On Mon, Jun 22, 2009 at 12:27 PM, laredotornado wr= ote: > > Hi, > > I'm trying to migrate my app from struts 1 to struts 2. =A0On a particula= r JSP > page, I get this error > > The page generated an error: Exception: > The Struts dispatcher cannot be found. This is usually caused by using > Struts tags without the associated filter. Struts tags are only usable wh= en > the request has passed through its servlet filter, which initializes the > Struts dispatcher needed for this tag. - [unknown location] > > I can't find anything in my server error log files. =A0Below is my web.xm= l and > struts.xml files. =A0Any ideas how I can troubleshoot this? =A0Thanks, - = Dave > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DBegin web.xml =3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=3D"http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" > version=3D"2.4"> > > =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0TransactionFilter > > com.myco.regui.servlets.filters.TransactionFilter > =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0TransactionFilter > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/* > =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0struts-filter > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0org.apache.struts2.dispatc= her.ng.filter.StrutsPrepareAndExecuteFilter > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0stuts-filter > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/* > =A0 =A0 =A0 =A0 > > > =A0 =A0 =A0 =A065 > > > > =A0 =A0 =A0 =A0index.html > > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DEnd web.xml =3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DBegin struts.xml =3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > =A0 =A0"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" > =A0 =A0"http://struts.apache.org/dtds/struts-2.0.dtd"> > > > > =A0 =A0 > =A0 =A0 > > =A0 =A0 > > =A0 =A0 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 class=3D"com.myco.regui.struts.accounts.AccountsInterceptor"> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 name=3D"AccountsInterceptorStack"> > > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 class=3D"com.myco.regui.struts.accounts.AccountsAction"> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0jsp/pcredirect.js= p > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0jsp/pcAccountLook= upError.jsp > =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 class=3D"com.myco.regui.struts.accounts.AccountsAction"> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0jsp/hhredirect.js= p > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0jsp/hhError.jsp > =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 class=3D"com.myco.regui.struts.logout.LogoutAction"> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0jsp/pcAccountLookup.jsp > =A0 =A0 =A0 =A0 > =A0 =A0 > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DEnd struts.xml=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > -- > View this message in context: http://www.nabble.com/struts-2----The-Strut= s-dispatcher-cannot-be-found.-This-is-usually-caused-by-using-Struts-tags-w= ithout-the-associated-filter.-tp24150745p24150745.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --=20 Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org