Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Filter Servlet

843841May 29 2003 — edited Jun 2 2003
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 30 2003
Added on May 29 2003
3 comments
91 views