Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Struts Struts2 Filter not getting initialised in WAS 8.0
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Roopa
Struts2 Filter not getting initialised in WAS 8.0
0 Answer(s)      2 years and 2 months ago
Posted in : Struts


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


Advertisement
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
filter
filter  What is filter? Can filter be used as request or response
Advertisements
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
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
struts2
struts2  dear deepak sir plz give the struts 2 examples using applicationresources.properties file
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  hi all i am going to run struts2.x program i got this error when server started java.lang.RuntimeException...: Struts2 Tutorials
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  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  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  how to read properties file in jsp of struts2   Hi, You can use the Properties class of Java in your action class. Properties pro = new Properties(); FileInputStream in = new FileInputStream(f); pro.load
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/Controller
Filter/Controller  what is the difference b/w org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter... one is filer. I have confusion with these two. Is there any d/f b/w filter
JSF+Filter
JSF+Filter  What is the meaning of the tags: avoid-urls for filter configurations in web.xml.
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
ISAPI Filter Error (
ISAPI Filter Error (  MFC: For ISAPI Filter geting error from Web... filter which will authenticate and authorization the request. Its working fine but when we are doing load testing we are getting error from web service.Error
esign filter for wifi router
esign filter for wifi router  How can i make a filter for my wifi router to filter packets from specific ip or mac address
filter implementation in java
filter implementation in java   How to implement filters in java?   Java - filter implementation Tutorials Filter Files in Java Response Filter Servlet Example
struts2 - Struts
Struts2 and Ajax Example  how to use struts2 and ajax
Struts2 and Hibernate
Struts2 and Hibernate  how to fetch database value from one page to another page in struts2 and hibernate
struts2 - Struts
struts2  how to pre populate the fields using struts2 from the database
Java code for enabling filter to a checkbox and disabling filter to that checkbox after uncheked
Java code for enabling filter to a checkbox and disabling filter to that checkbox after uncheked  Can anybody say the Java code for enabling filter to a checkbox and disabling filter to that checkbox after uncheked
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 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 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 - 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
Servlet Filter
Servlet Filter In this tutorial you will learn about the Filter. A filter... are done by the Filter. Some of the main tasks are as follows : Restrict... and performs tasks accordingly. Filter can be used in such areas where
 

 

 

DMCA.com