In my struts2 web application for menus i am using struts menu plugin.I am using eclipse juno for my struts2 web application. When I write following plugin in my struts.xml it runs my project for some time but after some time it prevent my application to run.
My struts.xml as follows:
<struts>
<constant name="struts.enable.DynamicMethodInvocation"
value="false" />
<constant name="struts.devMode" value="false" />
<constant name="struts.custom.i18n.resources"
value="ApplicationResources" />
<package name="default" extends="jasperreports-default,struts-default" namespace="/">
<action name="login"
class="net.viralpatel.struts2.action.LoginAction">
<result name="success" >Welcome.jsp</result>
<result name="error">Login.jsp</result>
</action>
</package>
<plug-in className="net.sf.navigator.menu.MenuPlugIn">
<set-property property="menuConfig" value="/WEB-INF/menu-config.xml"/>
</plug-in>
</struts>
After that, if i cut that plugin code from my struts.xml and refresh my project and paste it again then it runs successfully for some time.After some time it again show error icon on my project. How can i resolved this problem?
There is no need to write
<plug-in>in struts.xml for struts2 web application.Refer following link :
http://struts.apache.org/2.0.11/docs/plugins.html