Struts2 Filter not getting initialised in WAS 8.0

Struts2 Filter not getting initialised in WAS 8.0

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...

View Answers









Related Tutorials/Questions & Answers:
Struts2 Filter not getting initialised in WAS 8.0
Struts2 Filter not getting initialised in WAS 8.0  Hi All, Am facing... 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
Getting Started with MySQL 8.0
MySQL 8 Tutorial - Getting Started with MySQL 8.0 relational database MySQL 8... to run today's business workload. In this Getting Started with MySQL 8.0... for Getting Started with MySQL 8.0 tutorial Prior understanding of Relational
Advertisements
Getting Started with MySQL 8.0
MySQL 8 Tutorial - Getting Started with MySQL 8.0 relational database MySQL 8... to run today's business workload. In this Getting Started with MySQL 8.0... for Getting Started with MySQL 8.0 tutorial Prior understanding of Relational
problem in getting mail exchange records(MX) using DNS (glassfish(struts2))
problem in getting mail exchange records(MX) using DNS (glassfish(struts2))  Hi, dummy.jsp <%@page import="javax.naming.Context"%> <%@page import="java.util.Hashtable"%> <%@page import
Struts2
Struts2  java.lang.NullPointerException...) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:434) Hey I am getting Null Pointer exception while submitting the update form in struts2 I am using tomcat6.0 ... its
struts2
struts2  sir.... i am doing one struts2 application and i have to make pagination in struts2....how can i do
struts2
struts2  dear deepak sir plz give the struts 2 examples using applicationresources.properties file
struts2
struts2  hi all i am going to run struts2.x program i got this error when server started java.lang.RuntimeException...: Struts2 Tutorials
Struts2
Struts2  i want select multiple items from select list in struts2.when i did like that the two selected values must saved into databse in two diffirent rows.pls provide any one code for this i am new to Struts2
struts2
struts2   Sir when i have run my struts 2 web application,every time i get error " request resources is not available",,,what is this,,,plz help me
struts2
struts2  how to read properties file in jsp of struts2   Hi, You can use the Properties class of Java in your action class.ADS_TO_REPLACE_1 Properties pro = new Properties(); FileInputStream in = new FileInputStream(f
Struts2
Struts2  Hi I am using struts 2,In struts2 architecture ,I couldn't understand the purpose of ActionMapper and ActionProxy.My Question is,when the request comes into the picture,the filterdispatcher consult the ActionMapper
Struts2
Struts2  Hi, I need a solution for displaying success message in same page in struts2. how to redirect same page in struts2.Please help me.   hi friend, To know how redirect action can be done in struts 2 you can go
STRUTS2
STRUTS2  sir but my question is using ApplicationResources.properties in STRUTS 2.i cant get the values into my application.but in the exmple given at roseindia,u cant use the properties file.i use actionclass-validation.xml
filter
filter  What is filter? Can filter be used as request or response
struts2 filters
struts2 filters  hi i created a filter,if the session is null then it should to go error page that ur not authorized to access, nw my question is how to use means how to call filter to do the task pls help me
struts2 - Struts
Struts2 and Ajax Example  how to use struts2 and ajax
struts2 - Struts
struts2  how to pre populate the fields using struts2 from the database
Struts2 and Hibernate
Struts2 and Hibernate  how to fetch database value from one page to another page in struts2 and hibernate
security filter
security filter  i have included WebFilter.java in my application. i am getting this error . error 500:filter[WebFilter]: filter unavailable. whats the reason for this error
query on struts2 - Struts
query on struts2  I am using struts2 for my application.i have a form that contains 'select' tag, for this i am getting values form DB. The problem is after i am submitting the form it is giving the following error
Struts2 tag
Struts2 tag  function of hidden tag?   Hi Friend, <s:hidden> tag create a hidden value field.It means it stores the value but cannot be visible. For more information, visit the following link: Struts2 Tutorial
struts2 - Framework
struts2   RoseIndia i m using this code for a bean in struts2.but geting error SEVERE: Could not instantiate bean how to resolve this.thnx
struts2 - Framework
struts2  Hello, I am sathish.. I got problem in stuts2 ? Do tomcat5.5 support struts2 ? Now , currently my application running on tomcat 6... and mainly i want support with tiles(struts 2)...now which struts2 jars i have to use
Struts2 and Hibernate
Struts2 and Hibernate  Sir/ madam, Can we use iterator tag in struts for fetch the database value and shown on form. if yes then how
New to struts2
New to struts2   Please let me know the link where to start for struts 2 beginners   Struts 2 Tutorials
struts2 - Framework
struts2  Hello, I am sathish i got one problem with struts2 framework...i want to create a jsp page in struts2 i need two buttons in tha jsp ..but these buttons are not dispaly in same row.....once if i create two buttons
Struts2 - Struts
Struts2  Hi, I am using doubleselect tag in struts2.roseindia is giving example of it with hardcoded values,i want to use it with dynamic values. Please give a example of it. Thanks
themes in struts2
themes in struts2  i want to create themes in strut2 can any one tell the step by step procedure of how to create it.with example links thanks in advance
Help in Struts2
Help in Struts2  Hi, in struts 2 how to get the values from db and show in jsp page using display tag or iterator tag thanks in advance
struts2 - Framework
struts2  thnx ranikanta i downloaded example from below link http://www.roseindia.net/struts/struts2/struts-2-hello-world-files.shtml i m... The Result Thanks Rajanikant 9986734636 ring only when you not getting
Struts2 blank application - Struts
Struts2 blank application  Hi I am new to struts2 and i am trying to run the strutsblank application by following the following Link; http...://localhost:8080/struts2tutorial/ i am getting the below error
struts2 Autocompleter
struts2 Autocompleter  hi. I am working Auto Completer Example in rose india.net http://www.roseindia.net/struts/struts2/struts2uitags/autocompleter... struts2 2.1.8.1 Thanks venu
Struts2 Internationalization
Struts2 Internationalization  Hi How to use i18n functionality for indian languages in struts2 ? I am able to use french and english but none of the Indian languages. Pls help. Regards Vaishnavi   Please visit
Struts2 and Hibernate
Struts2 and Hibernate   I have a simple application in Struts2 and Hibernate which have simple form for entering contact information and after submitting the page it saved to the database. This was a tutorial i was trying from
Struts2 and Hibernate
Struts2 and Hibernate   I have a simple application in Struts2 and Hibernate which have simple form for entering contact information and after submitting the page it saved to the database. This was a tutorial i was trying from
struts2 select tag multiple
struts2 select tag multiple  struts2 select tag multiple
struts2 filterdispatcher is deprecated please use the new filters
;struts2</filter-name> <filter-class>... in the web.xml file: <filter> <filter-name>struts2</filter...struts2 filterdispatcher is deprecated please use the new filters  Hi
struts2 tiles.xml
struts2 tiles.xml  Hi, I want to use .properties file data in tiles.xml file of struts2(2.1.8) application to display title. sample code I have used: In tiles.xml: <definition name="disastersettingsview_users" extends
Struts2 and Hibernate
Struts2 and Hibernate  Hello Sir, I am trying to fetch database value from one page to another page. Means i am submiting the form value... using struts2 and hibernate3.0. I need ur help try to short out this asap
iterating hashmap values in struts2
iterating hashmap values in struts2  hi, i am not getting how to display this map values in jsp page using struts2 public class ViewOperation2 { public Map<String,Object> viewCustDetails(){ Map<String
struts2 - Struts
struts2  hello, am trying to create a struts 2 application that allows you to upload and download files from your server, it has been challenging for me, can some one help  Hi Friend, Please visit the following
struts.xml in struts2
struts.xml in struts2  What is the struts.xml file ? Who it is loads?   Hi Samar, The struts.xml is a XML file. Which is used to struts configuration. It divides the application in to modules. Struts use
struts2 - Framework
struts2  i m beginner for struts2.i tried helloworld program from roseindia tutorial.But HelloWorld.jsp file didnt showing the current date and time. when i execute the program it showing this only Current date and time
struts2 - Framework
struts2  i m beginner for struts2.i tried helloworld program from roseindia tutorial.But HelloWorld.jsp file didnt showing the current date and time. when i execute the program it showing this only Current date and time
tags in struts2
tags in struts2  Hello I am using simple tags in struts2. Like this <%@ page language="java" contentType="text/html; charset=ISO-8859-1.../struts/struts2/struts2-login.shtml More Struts2 Tutorials
struts2 datetime picker
struts2 datetime picker  i created a field with sx:datetimepicker with the name fromdate. and i wrote getters and setters for fromdate with datatype string. when im reading data im getting date+time but i want only date can u
Struts2 - Struts
Struts2  S:select tag is being used in my jsp, to create a drop down list. The drop down works very well in Mozilla, but in IE7 it behaves very weird, meaning that the drop down wen clicked it just jumps out from the first row
dwr with struts2 - Struts
dwr with struts2  CAn u help me how to use dwr with struts2
Steps to log4j configuration in Struts2
Steps to log4j configuration in Struts2  Hi... any tel me each step for configure log4j in struts2 application

Ads