Filter Servlet
843841May 29 2003 — edited Jun 2 2003Hi,
Iam trying to load a filter servlet on to weblogic 7.0 at the time of startup. I have defined the Filter servlet in web.xml file and the xml file and the servlet are in right path. But sill I get an error:
<Error> <HTTP> <101165> <Could not load user defined filter: com.om.util.AuthFilter
java.lang.InstantiationException: com.tm.util.AuthFilter
The web.xml file is as follows:
<filter>
<filter-name>AuthenticationFilter</filter-name>
<filter-class>com.tm.util.AuthFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>AuthenticationFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>AuthenticationFilter</filter-name>
<url-pattern>/protected/*</url-pattern>
</filter-mapping>
Can any one explain what I might be doing wrong, and what can I do to prevent this.
Thank you