Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SEVERE: Error filterStart what does Error means

 
Senthil Kumar
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • 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
  • 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.....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic