my guess is sitemesh and ActionContextCleanUp

Matt Raible-3 wrote:
> 
> I experienced this issue yesterday and never figured out a solution. For
> some reason, everything works fine in AppFuse. The only thing I can think
> of
> that I changed was moving the struts.properties into struts.xml.
> 
> Matt
> 
> 
> On 2/9/07, Tim Azzopardi <[EMAIL PROTECTED]> wrote:
>>
>>
>> I modified my appfuse1.9.4 app  to use struts2.0.1 and it was working
>> fine.
>> I've upgraded to 2.0.5 (which involves some changes to struts.xml) I have
>> compared my web.xml and struts.xml configuration with appfuse2 m3 (over
>> and
>> over) and can't see any significant differences.
>>
>> *Every* page in my application works, but I get a stack trace on *every*
>> page as show below. Its caused by the struts tags in messages.jsp.  If I
>> replace all the content of messages.jsp with "hello", then the stack
>> trace
>> is no more.
>> I don't understand because the struts tags on the main application pages
>> are
>> working fine.
>>
>> (Obviously if I need a real error page things go badly wrong, but
>> otherwise
>> my application works)
>>
>>
>>   java.lang.NullPointerException
>>         at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java
>> :58)
>>   ...
>>   org.apache.jasper.JasperException: Exception in JSP:
>> /common/messages.jsp:2 (which is the first struts tag)
>>
>>   1: <%@ page language="java" isErrorPage="true" %>
>>   2: <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
>>   3: <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"; prefix="fmt" %>
>>   4: <%@ taglib uri="/struts-tags" prefix="s" %>
>>   5:
>>
>>   Stacktrace:
>>         at
>> org.apache.jasper.servlet.JspServletWrapper.handleJspException(
>> JspServletWrapper.java:512)
>>
>>
>>
>>
>>
>> messages.jsp is included by error.jsp - if I inline messages.jsp into
>> error.jsp then I get the same problem:
>>
>>     org.apache.jasper.JasperException: Exception in JSP: /error.jsp:21
>>     18:             <div id="main">
>>     19:                 <h1><fmt:message key="errorPage.heading"/></h1>
>>     20:
>>     21: <s:if test="hasActionErrors()">
>>
>>
>> Any guesses as what could be going wrong?
>> --
>> View this message in context:
>> http://www.nabble.com/struts-tags-in-messages.jsp-causing-stack-trace-after-upgrade-to-struts2.0.5-tf3201778s2369.html#a8890309
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/struts-tags-in-messages.jsp-causing-stack-trace-after-upgrade-to-struts2.0.5-tf3201778s2369.html#a8893683
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to