struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wes Wannemacher" <w...@wantii.com>
Subject Re: Re: The Struts dispatcher cannot be found
Date Fri, 24 Oct 2008 13:56:47 GMT
You know, I wondered the same thing when it happened to me... I'm
guessing to make it worse, the behavior probably changes if you change
containers. Another thing to consider is that if your
"exceptionLogger" result is to be available in any action in your app,
global-results are only configured at the package level.

-Wes

On Fri, Oct 24, 2008 at 9:46 AM, stanlick <stanlick@gmail.com> wrote:
>
> Hey Wes --
>
> Good catch bro!  I do have oops.jsp configured in my web.xml, however, I
> don't see how an exception could bubble up to the container with this
> configuration in my struts.xml
>
>                <global-exception-mappings>
>                        <exception-mapping exception="java.lang.Throwable"
>                                result="exceptionLogger" />
>                </global-exception-mappings>
>
>
> Scott
>
>
> Wes Wannemacher wrote:
>>
>> Scott, are you sure that you don't have error pages pointing to oops.jsp
>> in your web.xml file?
>>
>> http://e-docs.bea.com/wls/docs81/webapp/web_xml.html#1017571
>>
>> On my first S2 project, I had pointed my errors to an oops.jsp out of
>> habit. I was trying to use S2 tags in the error page and ran into the
>> same situation that you are describing.
>>
>> -Wes
>>
>> On Thu, 2008-10-23 at 13:01 -0700, newton.dave@yahoo.com wrote:
>>> The first thing I'd do is turn up logging to 11 on s2, xwork, tiles, and
>>> ognl.
>>>
>>> Not sure why the exception page would be hit w/ *no* exception but I
>>> could imagine that there could be an exception after the page/response
>>> has been written to... Is the 'right' page rendered *completely*?
>>>
>>> Dave
>>>
>>> stanlick wrote:
>>> > When I dig deeper into this, I see the problem is with a oops.jsp I
>>> have
>>> > configured in my struts.xml as
>>> >            <global-results>
>>> >                    <result name="exceptionLogger" type="dispatcher">/oops.jsp</result>
>>> >            </global-results>
>>> > Now here is the strange part -- my request for homePage.action is
>>> working
>>> > fine and there are no errors!  I can remove all references to this
>>> oop.jsp
>>> > yet the following messages continues to dump to stdout.
>>> > "The Struts dispatcher cannot be found.  This is usually caused by
>>> using
>>> > Struts tags without the associated filter..."
>>> > If I remove the HTML inside oops.jsp everything works fine!  What is
>>> > interacting with oops.jsp even when there are no exceptions?
>>> > --
>>> > View this message in context:
>>> http://www.nabble.com/The-Struts-dispatcher-cannot-be-found-tp20118536p20138049.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
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/The-Struts-dispatcher-cannot-be-found-tp20118536p20150469.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
>
>



-- 
Wesley Wannemacher
President, Head Engineer/Consultant
WanTii, Inc.
http://www.wantii.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message