
Hi All,
Am facing a problem in the Struts2 initialisation part. My application is developed in Tomcat 5.5 and deployed in WAS 8.0 When its being launched, am getting the error "Struts2 filter could not be initialised"
The filter properties are set in WAS 8.0 server settings. The required struts 2 jar files are also in the WEB-INF/lib directory. My web.xml is like this:
<display-name>Struts2 Application</display-name>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>Login.jsp</welcome-file>
</welcome-file-list>
My struts.xml is as below:
<package name="default" extends="struts-default" namespace="/">
<action name="loginaction"
class="net.viralpatel.struts2.LoginAction">
<result name="success">login.jsp</result>
</action>
</package>
Action class is in the src folder...
Any help is appreciated...