• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SEVERE: Error filterStart what does Error means

 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
This is my Filter program,
import javax.servlet.*;
import java.io.*;
public class Filter2 implements Filter
{
private FilterConfig fg;
public void init(FilterConfig fg)
{
this.fg=fg;
System.out.println(" Second Filter initialization");
}

public void doFilter(ServletRequest req,ServletResponse res,FilterChain fc) throws ServletException,IOException
{
System.out.println(" Second Filters do filter");
fc.doFilter(req,res);
}
public void destroy()
{
System.out.println(" Second Filter destroy");
}

}
and it's DD description is
<filter>
<filter-name>Filter2</filter-name>
<filter-class>Filter2</filter-class>
</filter>
<filter-mapping>
<filter-name>Filter2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

when i try to deploy this i'm getting the filterStart error.without this my application is getting deployed.

can someone clarify this..
 
Senthil Kumar
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
gee,
i've figured this out to some extent.I've two filters in my application
and in the web.xml i've given the BASIC authentication(this is the gotcha here).when this is there(authentication) with Filter1 my application is deployed without any problem.At the same time when i include the Filter2 error is thrown "filterStart" during deployment.If i remove the security stuff it gets deployed.
Can anyone help me out.....
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic