Great thanks, that helped me track it down.
On Fri, Mar 21, 2014 at 9:46 AM, Konstantin Kolinko <knst.koli...@gmail.com>wrote: > 2014-03-21 17:28 GMT+04:00 mrs.nospam <mrs.nos...@gmail.com>: > > I'm using Eclipse to remote debug a Tomcat 7.0.47 instance. I'm trying > to > > figure out why a request isn't going through the > > org.apache.cataline.filters.CorsFilter. It's a complex web app with a > lot > > of filters configured. Some requests hit the filter and I can debug them > > properly and others are not. > > > > My CorsFilter in tomcat/conf/web.xml is set to use > > > > <url-pattern>/*</url-pattern> > > > > I know they are hitting tomcat because I see them in the access_log: > > > > 157.166.175.129 - - [21/Mar/2014:09:20:16 -0400] "OPTIONS > > /bonita/API/bpm/humanTask?p=0&c=10&f=state=ready HTTP/1.1" 401 - > > > > Will someone point me in the right direction of where to put a breakpoint > > to track this down? > > 401 = Authentication required. > > That is usually sent by a valve performing authentication such as > BasicAuthenticator, DigestAuthenticator. See references to > HttpServletResponse.SC_UNAUTHORIZED > > You can always put a breakpoint in CoyoteAdapter.service(). > > You may put one at Response.sendError(), Response.setStatus(). > > Best regards, > Konstantin Kolinko > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org > For additional commands, e-mail: dev-h...@tomcat.apache.org > >