Practice Struts2 today, the following error occurred while submitting the tag
Ype Exception
Message
Description the "server encountered an internal error" prevented it from fulfilling this request.
exception
Java.lang.NullPointerException
Org.apache.struts2.impl.StrutsActionProxy.getErrorMessage ( strutsactionproxy.java:69)
Com.opensymphony.xwork2.DefaultActionProxy.prepare (defaultactionproxy.java:185)
Org.apache.struts2.impl.StrutsActionProxy.prepare (strutsactionproxy.java:63)
Org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy (strutsactionproxyfactory.java:39)
Com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy (defaultactionproxyfactory.java:58)
Org.apache.struts2.dispatcher.Dispatcher.serviceAction (dispatcher.java:501)
Org.apache.struts2.dispatcher.FilterDispatcher.doFilter (filterdispatcher.java:432)
Note the "Full stack" trace of the root cause is available in the Apache tomcat/7.0.42 logs.
It turns out that when you create a struts profile, the name is written as Struts2.xml, and the struts.xml is placed in the SRC directory.