You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by James Crosson <ja...@gmail.com> on 2006/11/20 18:12:19 UTC

Issue accessing Filters

I am having a bear of a time with Tomcat Filters,

I've got the following in my web.xml:

	<filter>
	 <filter-name>Account Filter</filter-name>
	 <filter-class>com.ZZZ.view.filters.AccountFilter2</filter-class>
	</filter>
	
	<filter-mapping>
	  <filter-name>Account Filter</filter-name>
	  <url-pattern>/*</url-pattern>
	  <dispatcher>REQUEST</dispatcher>
	</filter-mapping>

AccountFilter2 is in /shared/classes/com/ZZZ/view/filters/AccountFilter2  
directory, and is a succesfully compiled java class.

When I try to start Tomcat, before ever sending a request I see

	Nov 20, 2006 12:07:07 PM org.apache.catalina.core.StandardContext start
	SEVERE: Error filterStart
	Nov 20, 2006 12:07:07 PM org.apache.catalina.core.StandardContext start
	SEVERE: Context [/manager] startup failed due to previous errors

But thereis nothing else to offer me any guidance of the error.

What I am trying to accomplish is send all requests first to the "Account  
Filter." Right now the filter does not do very much, as I am trying to  
first get this working.

Any help would be greatly appreciated,
James

-- 
http://www.JamesCrosson.net

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Issue accessing Filters

Posted by Mark Thomas <ma...@apache.org>.
James Crosson wrote:
>     <filter>
>      <filter-name>Account Filter</filter-name>
>      <filter-class>com.ZZZ.view.filters.AccountFilter2</filter-class>
>     </filter>

> AccountFilter2 is in /shared/classes/com/ZZZ/view/filters/AccountFilter2
> directory, and is a succesfully compiled java class.

If the class is com.ZZZ.view.filters.AccountFilter2 then the file
AccountFilter2.class should be in the
/shared/classes/com/ZZZ/view/filters/ directory


Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org