I have the following code for an access filter. If I log in with the
role of admin everything works as expected. If I try to log in with
the role of user I immediately get a permissions error that denies access.
I've added ${sessionScope.USER} to the jsp pages as well as adding
entries for
I have an access control filter that is supposed to grant all access to
users wirh the role of 'admin' and limited access to those with the role
of 'user. Specifically a 'user' can only manipulate the data that
belongs to them. It uses 'contextPath.startsWith' and the users 'id'
(int) from
getContextPath is the path name of the webapp.
For example, if my webapp is registered at /more. Then my contextPath is /more.
If I request /more/cowbell.jsp. The contextPath is /more and the servletPath
is /cowbell.jsp.
-Tim
Jack Lauman wrote:
I have an access control filter that is supposed
Can you append the two together to get the desired result?
Jack
Tim Funk wrote:
getContextPath is the path name of the webapp.
For example, if my webapp is registered at /more. Then my contextPath
is /more.
If I request /more/cowbell.jsp. The contextPath is /more and the
servletPath is
You probably want to ignore context path. Its servletPath you really care about.
-Tim
Jack Lauman wrote:
Can you append the two together to get the desired result?
Jack
Tim Funk wrote:
getContextPath is the path name of the webapp.
For example, if my webapp is registered at /more. Then my
Tim:
Thanks for your help. It's fixed.
Jack
Tim Funk wrote:
You probably want to ignore context path. Its servletPath you really
care about.
-Tim
Jack Lauman wrote:
Can you append the two together to get the desired result?
Jack
Tim Funk wrote:
getContextPath is the path name of the webapp.
For
Hi,
ok it's fixed i made another realm with a new mbean-descriptor bases on
the JNDIRealm file
from version 4.1.31 and that do the trick till an update of tomcat.
However, for those runnin 4.1.30,the main difference between file is:
* @version $Revision: 1.19 $ $Date: 2004/08/26 21:37:21 $
---
Hi,
I'm using the Debian package of tomcat (4.1.30) with ldap auth with the
following config:
myapplication.xml
--
Context path=/myapplication docBase=/path/2/build
Realm className=org.apache.catalina.realm.JNDIRealm debug=99
connectionURL=ldap://localhost:389;
My web.xml fragment:
filter-nameSet Character Encoding/filter-name
filter-classfilters.SetCharacterEncodingFilter/filter-class
init-param
param-nameencoding/param-name
param-valueISO-8859-2/param-value
/init-param
/filter
filter-mapping
filter-nameSet Character Encoding/filter-name
List
Subject: filter problem
My web.xml fragment:
filter-nameSet Character Encoding/filter-name
filter-classfilters.SetCharacterEncodingFilter/filter-class
init-param
param-nameencoding/param-name
param-valueISO-8859-2/param-value
/init-param
/filter
filter-mapping
filter-nameSet Character
I posted this thread back in June-03 as I was having problems making the ISAPI
redirector work under IIS 6 on Windows 2003. Now thanks entirely to Andrew Duey of
TerraScan Inc., I now have this working.
If you are using IIS V6, which ships with Windows Server 2003, you must allow the Web
Excellent. Thank you for posting this, many IIS users have posted to
the list trying to get the redirector to work with IIS 6.
John
Nick Tatham wrote:
I posted this thread back in June-03 as I was having problems making the ISAPI redirector work under IIS 6 on Windows 2003. Now thanks
I have a Tomcat 3 application and have been running this successfully on
several NT and 2000 machines under IIS using the isapi_redirect.dll filter
(from Tomcat 3.3).
I'm now trying to make it work under IIS 6 on Windows server 2003. Debug to
the logfile shows it processing the HttpFilterProc OK
? Has anyone tried the ISAPI from
Tomcat 5.0?
- Kjell Eriksen
-Original Message-
From: Nick Tatham [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 9:14 AM
To: Tomcat Users List
Subject: Win2003 IIS6 ISAPI filter problem
I have a Tomcat 3 application and have been running
filter problem
I have been experiencing a similar problem with the ISAPI from 4.1.18.
The application works fine when I hit Tomcat's HTTP listener, but going
through IIS I receive the error with ACCESS DENIED. I have tried
everything
imaginable with the permissions.
Is there a new ISAPI filter
Subject: Re: Win2003 IIS6 ISAPI filter problem
I'm using the latest isapi_redirector.dll (notice the 'or' at the end) with
no problems. But I'm running 4.1.24.
- Original Message -
From: Eriksen, Kjell [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, June 27, 2003 9
On win2003 ?
-Original Message-
From: Tom Cole [mailto:[EMAIL PROTECTED]
Sent: 27. júní 2003 13:23
To: Tomcat Users List
Subject: Re: Win2003 IIS6 ISAPI filter problem
I'm using the latest isapi_redirector.dll (notice the 'or' at
the end) with no problems. But I'm running
To answer my own question, I have now found the -or version:
isapi_redirector.dll in
/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/win32
I have upgraded to this version and still get the same problem on Win2003.
I did earlier have access problems but fixed those in IIS6 by going to
On IIS 6?
Is there light in this darkness? Is it possible get Tomcat to work with
IIS 6 (win 2003)?
-- Original Message --
Reply-To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Win2003 IIS6 ISAPI filter problem
Date: Fri, 27 Jun 2003 13:39:55 -
From: Reynir Hübner [EMAIL PROTECTED
it a priority.
John
On Fri, 27 Jun 2003 16:04:40 +0200, [EMAIL PROTECTED] wrote:
On IIS 6?
Is there light in this darkness? Is it possible get Tomcat to work with
IIS 6 (win 2003)?
-- Original Message --
Reply-To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Win2003 IIS6 ISAPI filter problem
I am Developing Web application using tomcat. I want to Comopress my all jsp
pages in web application, for that i have make some java filter classes and
make changes in web.xml. but I am facing two problems
1. in jsp i have to put header content encoding is gzip, without that brower
display zip
see them. ;-) Other browsers, no problem at
all.
-Original Message-
From: Varley, Roger [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 11. Februar 2003 13:50
To: 'Tomcat Users List'
Subject: RE: compression filter problem
I am Developing Web application using tomcat. I want
Hi
I am Developing Web application using tomcat. I
want to Comopress my all jsp pages in web application, for that i have make some
java filter classes and make changes in web.xml. but I am facing two
problems1. in jsp i have to put header content encoding is gzip, without
that brower
Hi
I am Developing Web application using tomcat. I
want to Comopress my all jsp pages in web application, for that i have make some
java filter classes and make changes in web.xml. but I am facing two
problems1. in jsp i have to put header content encoding is gzip, without
that brower
All I found was your web.xml file. You'll need to re-attach your jsp and
java files.
Note that I posted stuff about this and still haven't found a simple solution.
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg82477.html
Jacob Hookum figured out a way to do it using the same
did you look at CompressionFilter.java that is part of the examples
distributed with Tomcat?
Charlie
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 8:22 PM
To: Tomcat Users List
Subject: GZIP filter problem
I'm trying to use
with Tomcat?
Charlie
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 8:22 PM
To: Tomcat Users List
Subject: GZIP filter problem
I'm trying to use a GZIP servlet filter under Tomcat-4.1.18.
I am basing this filter on
an existing
: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 9:19 AM
To: Tomcat Users List
Subject: RE: GZIP filter problem
Hi Charlie,
I looked at it a little bit, but, to be honest, that one is less
straightforward (kind of messy, actually) and I'm not even
sure
be skipping some functionality in the HttpServletResponse since it
has your headers.
Charlie
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 2:55 PM
To: Tomcat Users List
Subject: RE: GZIP filter problem
Hi Charlie,
Thanks
PROTECTED]]
Sent: Tuesday, January 07, 2003 2:55 PM
To: Tomcat Users List
Subject: RE: GZIP filter problem
Hi Charlie,
Thanks for the tip. Actually, that seems to make no
difference. I finally
decided to test it with a plain HTML page. It successfully
GZIP'ed an html
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 9:19 AM
To: Tomcat Users List
Subject: RE: GZIP filter problem
Hi Charlie,
I looked at it a little bit, but, to be honest, that one is less
straightforward (kind of messy, actually
I'm trying to use a GZIP servlet filter under Tomcat-4.1.18. I am basing this filter
on
an existing example at Orion (
http://www.orionserver.com/tutorials/filters/5.html )
It GZIPs fine and, in my debugging, I can decompress the data back to
what it was originally (more on that below). The
I wrote a filter. Put it in a jar file and added to classpath. This is the
result:
java.lang.ClassCastException: net.indaco.klyx.auth.tomcat.KlyxFilter
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
Config.java:250)
at
:
enze.it Thema: Tomcat 4 - Filter problem
I have triple checked all of my settings and whenever I try to start IIS I
get the error below. Here's the strangest thing. I downloaded the source and
added some DebugBreak() calls and recompiled it and put it into the
designated filter location. When I do this I still get the problem and the
Hi
I tried to install the isapi+AF8-redirec dll on my windows 2000 IIS as explained in
the document : 'Tomcat IIS HowTo'
my problem is that the that the green arrow up (indicating that the dll is in the air)
doesn't appear after restarting the iis as result the redirect doesn't work.( a red
36 matches
Mail list logo