Could you please register this issue at [1] with title "Support for
cross context request processing" then we will keep it in monitor and
you can track resolution there, thanks for your report!
On 12/16/2017 2:24 AM, Prasanth Pasala wrote:
> Do you see any side effects of this?
I'm not sure.
Added the below two lines to my filter (before the struts2 filter) in context2
app. That seems to do the trick. Thought it might create a problem as I am
setting a new ActionMapping in the request,
but seems to work fine. Do you see any side effects of this?
It seems like removeAttribute or setAttribute is not getting rid of the
attribute from request. See below. If I set the value to a random string then I
get a String can't be cast to ActionMapping
exception.
Enumeration attrs = request.getAttributeNames();
Thanks for the prompt response. Tried removing the attribute from the request,
but still getting the class cast exception. Is it possible it is being set
after I have called the forward?
request.removeAttribute("struts.actionMapping"); // FORWARD THE REQUEST
ServletContext sContext
On 12/15/2017 9:47 PM, Prasanth wrote:
> Is this issue just with Struts2, as it works with Struts1.
No it's not a Struts issue. You don't see this in Struts1 because maybe
it doesn't use any object bounded to dispatched request. But Struts2
wants to
ActionMapping mapping =
Yes, dispatching request to another struts application. I am using Wildfly
which does use different class loaders. Is this issue just with Struts2, as it
works with Struts1.
Thanks,
Prasanth
--
... do you try to dispatch
We have the struts jars in the individual wars. I was actually thinking of
putting it in server lib to see if that would solve the problem.
Thanks,
Prasanth
*
From: *
*Subject: *re: java.lang.ClassCastException:
org.apache.struts2.dispatcher.mapper.ActionMapping
*Date: *2017-12-15
Yes, dispatching request to another struts application. I am using Wildfly
which does use different class loaders. Is this issue just with Struts2, as it
works with Struts1.
Thanks,
Prasanth
--
... do you try to dispatch
On 12/15/2017 11:45 AM, Yasser Zamani wrote:
>
>
> On 12/15/2017 2:16 AM, Prasanth Pasala wrote:
>> ServletContext sContext = context.getContext("/context2");
>> RequestDispatcher rd = sContext.getRequestDispatcher(resource);
>> rd.forward(request, response);
>>
>> Thanks,
>> Prasanth
>>
>>
> > ServletContext sContext = context.getContext("/context2");
> > RequestDispatcher rd = sContext.getRequestDispatcher(resource);
> > rd.forward(request, response);
> >
> > Thanks,
> > Prasanth
> >
> > Exception: java.lang.RuntimeException: java.lang.RuntimeException:
>
On 12/15/2017 2:16 AM, Prasanth Pasala wrote:
> ServletContext sContext = context.getContext("/context2");
> RequestDispatcher rd = sContext.getRequestDispatcher(resource);
> rd.forward(request, response);
>
> Thanks,
> Prasanth
>
> Exception: java.lang.RuntimeException:
11 matches
Mail list logo