[
https://issues.apache.org/jira/browse/WW-4371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14059926#comment-14059926
]
Jim Anderson commented on WW-4371:
--
Hi Lukasz,
I got tomcat7 up and running today and ran the 'hello_world' tutorial
app successfully.
Upgrading was good advise. Thank you for taking the time to look at this
problem.
I look at the issue on line and did not see a way to make the issue as
resolved. I'm sorry
to give you one more thing to do, but can you mark the issue as resolved?
Regards,
Jim A.
> Struts 2 tutoria gives stacktrace with struts 2.3.16.3
> --
>
> Key: WW-4371
> URL: https://issues.apache.org/jira/browse/WW-4371
> Project: Struts 2
> Issue Type: Bug
> Components: Example Applications
>Affects Versions: 2.3.16.3
> Environment: Crunchbang Linux - Linux furillo 2.6.32-5-686 #1 SMP Wed
> Apr 9 19:23:16 UTC 2014 i686 GNU/Linux
> java 1.7.0_51
> tomcat6 6.0.35
> hardware: Toshiba Satellite 305D-S5974
>Reporter: Jim Anderson
>Priority: Minor
> Attachments: hello_world.war
>
>
> I looked for help on the struts mail list but was unable to find a solution.
> I am experienced with software, but a relative novice to web programming and
> totally new to Struts. I'm trying to learn struts 2 by running the tutorial
> examples.
> I was able to run the 'basic_struts' example with no problem.
> When I ran the 'hello_world' example, it ran successfully once, but any
> follow up runs have created a stack trace. I suspect the stacktrace is caused
> because my environment is somehow non-conforming. However,
> I doubt that a stacktrace is the error response that you would want Struts 2
> to provide.
> If you have questions, please send email to:
> jim_anderson at jjajava dot com
> Regards,
> Jim
> The stacktrace is long, but here it is:
> {noformat}
> Struts Problem Report
> Struts has detected an unhandled exception:
> Messages:
> org.apache.struts2.dispatcher.ServletDispatcherResult cannot be cast to
> com.opensymphony.xwork2.Result
> File: org/apache/struts2/factory/StrutsResultFactory.java
> Line number: 38
> Stacktraces
> org.apache.struts2.dispatcher.ServletDispatcherResult cannot be cast to
> com.opensymphony.xwork2.Result - action -
> file:/var/lib/tomcat6/webapps/hello_world/WEB-INF/classes/struts.xml:21:102
>
> com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:221)
>
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:365)
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:275)
>
> org.apache.struts2.interceptor.DeprecationInterceptor.intercept(DeprecationInterceptor.java:41)
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>
> org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)
>
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
>
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
>
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:254)
>
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:254)
>
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept