You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Haroon Rafique <ha...@utoronto.ca> on 2011/05/11 17:31:24 UTC
version bump from struts 2.2.1 to 2.2.3 and JSP broke??
Hi there,
Just bumped my version from 2.2.1 to 2.2.3 (FWIW, by changing a property in my pom.xml from 2.2.1 to 2.2.3). I use freemarker for my view and all the freemarker related pages work fine. My deployment environment is glassfish 2.2.1 on Mac OS X 10.6.7 with java "1.6.0_24", maven 2.2.1.
For my welcome page, I have a single JSP (index.jsp):
<%
response.sendRedirect(request.getContextPath() + "/anon/viewLoginForm.action");
%>
Going to this JSP presents me with a completely blank page. Nothing in the logs.
I know that I could also use <action name="*"> as my last action in struts.xml to go to the viewLoginForm action (probably a better strategy any way), but I am baffled as to why the JSP would not work any more.
To simplify it further, I made the JSP contents:
<h1>Hello</h1>
and it does not work in 2.2.3 (blank page) and works in 2.2.1 (displays hello).
Did I miss something obvious? Where should I start looking? I was initially hesitant to send this message in case I'm having a duh moment but I have wasted enough time on it already, so perhaps a few more eyeballs will find something informative.
Thanks in advance,
--
Haroon Rafique <ha...@utoronto.ca>
Enterprise Apps & Solutions Integration, University of Toronto
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: version bump from struts 2.2.1 to 2.2.3 and JSP broke??
Posted by Haroon Rafique <ha...@utoronto.ca>.
On 2011-05-11, at 2:24 PM, Haroon Rafique wrote:
>
> On 2011-05-11, at 2:17 PM, Haroon Rafique wrote:
>
>>
>> web.xml
>> http://pastebin.ca/2056943
>>
>
>
> Commenting out all the filters and listeners lets me access index.jsp. Still investigating which one is the culprit.
>
Looks like I was using deprecated filters.
Replacing org.apache.struts2.dispatcher.ActionContextCleanUp with org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter
and
replacing org.apache.struts2.dispatcher.FilterDispatcher with org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter
in web.xml put me on the right track.
Bizarre that it manifested itself when bumping from struts 2.2.1 to 2.2.3 and not earlier.
Cheers,
--
Haroon Rafique <ha...@utoronto.ca>
Enterprise Apps & Solutions Integration, University of Toronto
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: version bump from struts 2.2.1 to 2.2.3 and JSP broke??
Posted by Haroon Rafique <ha...@utoronto.ca>.
On 2011-05-11, at 2:17 PM, Haroon Rafique wrote:
>
> web.xml
> http://pastebin.ca/2056943
>
Commenting out all the filters and listeners lets me access index.jsp. Still investigating which one is the culprit.
--
Haroon Rafique <ha...@utoronto.ca>
Enterprise Apps & Solutions Integration, University of Toronto
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: version bump from struts 2.2.1 to 2.2.3 and JSP broke??
Posted by Haroon Rafique <ha...@utoronto.ca>.
On 2011-05-11, at 1:20 PM, Maurizio Cucchiara wrote:
> So my guess is that there is something wrong in your configuration.
> Could you please post your (Don't attach them, rather use a pastebin
> service):
> 1. struts.xml
> 2. web.xml
>
> Have you checked if it works in tomact?
>
Hi Maurizio,
Our application is an in-house EAR application, so deploying on tomcat is not an option at the moment (without significant tweaking like ripping out the initialization code, etc).
struts.xml
http://pastebin.ca/2056941
web.xml
http://pastebin.ca/2056943
struts.properties
http://pastebin.ca/2056945
Cheers,
--
Haroon Rafique <ha...@utoronto.ca>
Enterprise Apps & Solutions Integration, University of Toronto
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: version bump from struts 2.2.1 to 2.2.3 and JSP broke??
Posted by Maurizio Cucchiara <ma...@gmail.com>.
So my guess is that there is something wrong in your configuration.
Could you please post your (Don't attach them, rather use a pastebin
service):
1. struts.xml
2. web.xml
Have you checked if it works in tomact?
On 11 May 2011 19:16, Haroon Rafique <ha...@utoronto.ca> wrote:
> struts2-showcase from both 2.2.1 and 2.2.3 work fine in glassfish 2.2.1.
>
> On 2011-05-11, at 12:19 PM, Maurizio Cucchiara wrote:
>
>> Have you checked if struts showcase works (there is a section
>> dedicated to freemarker)?
>>
>> On 11 May 2011 17:31, Haroon Rafique <ha...@utoronto.ca> wrote:
>>> Hi there,
>>>
>>> Just bumped my version from 2.2.1 to 2.2.3 (FWIW, by changing a property in my pom.xml from 2.2.1 to 2.2.3). I use freemarker for my view and all the freemarker related pages work fine. My deployment environment is glassfish 2.2.1 on Mac OS X 10.6.7 with java "1.6.0_24", maven 2.2.1.
>>>
>>> For my welcome page, I have a single JSP (index.jsp):
>>>
>>> <%
>>> response.sendRedirect(request.getContextPath() + "/anon/viewLoginForm.action");
>>> %>
>>>
>>> Going to this JSP presents me with a completely blank page. Nothing in the logs.
>>>
>>> I know that I could also use <action name="*"> as my last action in struts.xml to go to the viewLoginForm action (probably a better strategy any way), but I am baffled as to why the JSP would not work any more.
>>>
>>> To simplify it further, I made the JSP contents:
>>>
>>> <h1>Hello</h1>
>>>
>>> and it does not work in 2.2.3 (blank page) and works in 2.2.1 (displays hello).
>>>
>>> Did I miss something obvious? Where should I start looking? I was initially hesitant to send this message in case I'm having a duh moment but I have wasted enough time on it already, so perhaps a few more eyeballs will find something informative.
>>>
>>> Thanks in advance,
>>> --
>>> Haroon Rafique <ha...@utoronto.ca>
>>> Enterprise Apps & Solutions Integration, University of Toronto
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>
>>
>>
>> --
>> Maurizio Cucchiara
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
> --
> Haroon Rafique <ha...@utoronto.ca>
> Web Dude 416-946-5080
> Enterprise Apps & Solutions Integration, University of Toronto
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Maurizio Cucchiara
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: version bump from struts 2.2.1 to 2.2.3 and JSP broke??
Posted by Haroon Rafique <ha...@utoronto.ca>.
struts2-showcase from both 2.2.1 and 2.2.3 work fine in glassfish 2.2.1.
On 2011-05-11, at 12:19 PM, Maurizio Cucchiara wrote:
> Have you checked if struts showcase works (there is a section
> dedicated to freemarker)?
>
> On 11 May 2011 17:31, Haroon Rafique <ha...@utoronto.ca> wrote:
>> Hi there,
>>
>> Just bumped my version from 2.2.1 to 2.2.3 (FWIW, by changing a property in my pom.xml from 2.2.1 to 2.2.3). I use freemarker for my view and all the freemarker related pages work fine. My deployment environment is glassfish 2.2.1 on Mac OS X 10.6.7 with java "1.6.0_24", maven 2.2.1.
>>
>> For my welcome page, I have a single JSP (index.jsp):
>>
>> <%
>> response.sendRedirect(request.getContextPath() + "/anon/viewLoginForm.action");
>> %>
>>
>> Going to this JSP presents me with a completely blank page. Nothing in the logs.
>>
>> I know that I could also use <action name="*"> as my last action in struts.xml to go to the viewLoginForm action (probably a better strategy any way), but I am baffled as to why the JSP would not work any more.
>>
>> To simplify it further, I made the JSP contents:
>>
>> <h1>Hello</h1>
>>
>> and it does not work in 2.2.3 (blank page) and works in 2.2.1 (displays hello).
>>
>> Did I miss something obvious? Where should I start looking? I was initially hesitant to send this message in case I'm having a duh moment but I have wasted enough time on it already, so perhaps a few more eyeballs will find something informative.
>>
>> Thanks in advance,
>> --
>> Haroon Rafique <ha...@utoronto.ca>
>> Enterprise Apps & Solutions Integration, University of Toronto
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
>
> --
> Maurizio Cucchiara
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
--
Haroon Rafique <ha...@utoronto.ca>
Web Dude 416-946-5080
Enterprise Apps & Solutions Integration, University of Toronto
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: version bump from struts 2.2.1 to 2.2.3 and JSP broke??
Posted by Maurizio Cucchiara <ma...@gmail.com>.
Have you checked if struts showcase works (there is a section
dedicated to freemarker)?
On 11 May 2011 17:31, Haroon Rafique <ha...@utoronto.ca> wrote:
> Hi there,
>
> Just bumped my version from 2.2.1 to 2.2.3 (FWIW, by changing a property in my pom.xml from 2.2.1 to 2.2.3). I use freemarker for my view and all the freemarker related pages work fine. My deployment environment is glassfish 2.2.1 on Mac OS X 10.6.7 with java "1.6.0_24", maven 2.2.1.
>
> For my welcome page, I have a single JSP (index.jsp):
>
> <%
> response.sendRedirect(request.getContextPath() + "/anon/viewLoginForm.action");
> %>
>
> Going to this JSP presents me with a completely blank page. Nothing in the logs.
>
> I know that I could also use <action name="*"> as my last action in struts.xml to go to the viewLoginForm action (probably a better strategy any way), but I am baffled as to why the JSP would not work any more.
>
> To simplify it further, I made the JSP contents:
>
> <h1>Hello</h1>
>
> and it does not work in 2.2.3 (blank page) and works in 2.2.1 (displays hello).
>
> Did I miss something obvious? Where should I start looking? I was initially hesitant to send this message in case I'm having a duh moment but I have wasted enough time on it already, so perhaps a few more eyeballs will find something informative.
>
> Thanks in advance,
> --
> Haroon Rafique <ha...@utoronto.ca>
> Enterprise Apps & Solutions Integration, University of Toronto
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Maurizio Cucchiara
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org