Send code 401 instead of 403

2002-10-25 Thread Johann Uhrmann
Hi, when using basic authentication with tomcat, tomcat sends a 401 response code if the user is accessing the page for the first time. This makes the browser show a login window and retry the request with the username/password provided by the user. However, if there is already a username and

Re: Tomcat and 401 custom page how?

2002-10-25 Thread Johann Uhrmann
On Thu, 2002-10-24 at 16:24, Kristján Bjarni Guðmundsson wrote: I use custom error pages for various error codes (404. etc), all of them work except 401 error. If I go to a protected page the browser just displays the 401 page without prompting me to log in. What am I doing wrong? Short

DTD for server.xml

2002-10-27 Thread Johann Uhrmann
Hi, after searching for quite a while now and having some trouble with the server.xml file. I would like to ask where I can get a DTD for the server.xml. Is there something like the well documented specification for the web.xml file (can be found in the servlet specification)? Thank You, Hans

mod_jk and local workers

2002-11-04 Thread Johann Uhrmann
Hi, I am trying to set up JK 1.2 with Apache 1.3 and Tomcat 4.1.12. All seems to work fine, but I am a bit confused about the local worker configuration option: According to the documentation at http://www/tomcat-docs/jk2/jk/workershowto.html (section Advanced lb Worker properties) an incomming

How to reference a form login page?

2002-11-08 Thread Johann Uhrmann
Hi, I have a external site which is hosted on a server seperate from my tomcat server. That server should provide a login form that can be used to log in into an application on the tomcat web server. However, I could not figure out how to log in from an external host. The following code

Does Tomcat provide a API for user login?

2002-11-09 Thread Johann Uhrmann
Hi, is it possible to call a method within a JSP or servlet and pass a user name and password in order to validate those credentials and log in the user? It would be great if I there were an API supporting that as I have a login scenario that does not seem to be supported by Tomcat (login form

DefaultContext vs Context

2002-10-07 Thread Johann Uhrmann
Hi, is there a known problem / bug with defining resources in the DefaultContext? The following resource definition works in a Context-environment but won't be inherited from the DefaultContext to contexts automatically created by tomcat for war-files (and for the ant-target deploy):

Re: Using external login pages for web applications

2002-10-11 Thread Johann Uhrmann
On Fri, 2002-10-11 at 14:58, Padhu Vinirs wrote: Correct me if I understood this wrong: Login Form html ( external web site ) ---Servlet/JSP ( Your web site ) Right, that's the configuration I want to use. If you setup https access in your web site, then the external form can

Passing User/Pass via API

2002-10-13 Thread Johann Uhrmann
Hi, is there an API function available to pass user name and password from a servlet/JSP to tomcat? I found nothing about it and I guess it would be useful to allow servlets to pass this kind of information to the servlet container. Thank You, Hans -- To unsubscribe, e-mail:

Using filters to authenticate users...

2002-10-14 Thread Johann Uhrmann
Hi, what do You think about the following idea? Is it possible at all: I am looking for a way to build web applications that can be used by logging in from a user/password HTML-form. To do this, I would like to use the standard API which would save me reimplementing the JDBC-Realm and

How to maintain session attributes in a frameset?

2003-02-05 Thread Johann Uhrmann
Uhrmann -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: www.xpecto.com - To unsubscribe, e-mail: [EMAIL PROTECTED

Restoring (recycling?) sessions

2003-03-04 Thread Johann Uhrmann
Hello, I have the following scenario: - The user can see a static page with a login form. - The form action points to a web application. In order to allow the user to log on, I have to use a request filter and check the parameter values (username/password). The typical Tomcat-Logins are no

Re: Restoring (recycling?) sessions

2003-03-05 Thread Johann Uhrmann
One additional question: Is request.getSession() the only method where a session is retrieved? I am asking this because I am planning to override the getSession method in a subclass of HttpServletRequest. However, I do not want a JSP-Page to bypass this method (e.g. by using the implicit

Virtual hosts with mod_jk2 to different JVM

2003-03-05 Thread Johann Uhrmann
Hi, is it possible to configure mod_jk2 to pass the requests to different installations of tomcat depending on the host name used in the request? Please note that this is not the virutal host feature from tomcat as Apache (or mod_jk2) has to decide where to pass the request to. Thank You, Hans

Re: nullpointer when precompile jsp with tag

2003-07-01 Thread Johann Uhrmann
been filed as bug? Regards, Hans -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http://www.xpecto.com - To unsubscribe

Re: nullpointer when precompile jsp with tag

2003-07-01 Thread Johann Uhrmann
Hi, I have a hint on that issue: The jasper compiler crashes if the TLD contains a variable-section. In my case, commenting out the following section from my TLD made jasper run without any errors: variable name-from-attributevar/name-from-attribute

jasper2 in ant and the classpath

2003-07-16 Thread Johann Uhrmann
, Hans -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http://www.xpecto.com - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Tomcat with log4j output

2003-07-16 Thread Johann Uhrmann
of Your logger. Do You deploy the log4j-lib with the web application or do You have it in common/lib? (Putting it in common/lib might solve Your problem) Kind regards, Hans -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700

Re: jasper2 in ant and the classpath

2003-07-17 Thread Johann Uhrmann
Johann Uhrmann wrote: [...] The taskdef tag and the jasper2 tag do not care about the path set in compile.classpath. Instead, the CLASSPATH variable from the shell is used. How do I make ant (or especially those two tags) recognize the path in compile.classpath? [...] Anybody? It seems

Incremental JSP offline compilation

2003-08-14 Thread Johann Uhrmann
Hello, is there a way to compile JavaServer Pages offline with ant? I am currently using the jspc ant task, but it has some significant disadvantages: - no support for incremental compilation - no support for the compilation of directory trees (afaik every single page has to be mentioned in

Load balancing and the /manager webapp

2004-04-14 Thread Johann Uhrmann
in a way that makes /manager1 access the context /manager of the backend? In Tomcat 4 it helped to rename the manager.xml file to manager1. This does not seem to work anymore in Tomcat 5. Kind regards, Hans -- Dipl.-Inf.(FH) Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon

Jasper2 ant task questions

2003-08-18 Thread Johann Uhrmann
. Is there a size limit for the classpath in ant/jasper2 or even jdk1.4.1? The class pathes are quite huge (approx. 4kByte). Does the order of the jar files matter? Can someone give me a hint how to run this without changing the CLASSPATH environment every time? Thank You very much, Johann Uhrmann P.S

javax.servlet.http.HttpSession.getId() returns null

2003-09-02 Thread Johann Uhrmann
Hello, I am writing a single-sign-on filter that uses cookies and a request-wrapper in order to fake a form-based login in case the user is already authenticated in another web application. The filter needs some internal structures to perform the single-sign-on process, e.g. a map that associates

Re: javax.servlet.http.HttpSession.getId() returns null

2003-09-02 Thread Johann Uhrmann
Tim Funk wrote: Before going farthar, have you looked at the Single Sign On valve? If you are using container managed security(such as form authentication), those contraints are executed before the filter chain is ever made. Unfortunately, I cannot use container managed security because I have

Re: javax.servlet.http.HttpSession.getId() returns null

2003-09-03 Thread Johann Uhrmann
Johann Uhrmann wrote: Hello, I am writing a single-sign-on filter that uses cookies and a request-wrapper in order to fake a form-based login in case the user is already authenticated in another web application. The filter needs some internal structures to perform the single-sign-on process, e.g

mod_jk2 and url-Mapping

2003-09-04 Thread Johann Uhrmann
Hello, how to map different URLs to different tomcat servers with mod_jk2? I need this for a migration scenario (upgrade from tomcat 4.1.12 to 4.1.24). ajp13 is used as connector. I tried to modify my load balancer configuration but jk2 seems to ignore the settings. Is there an example

JDBC via JNDI and the resource-env-ref tag

2003-09-09 Thread Johann Uhrmann
Hello, what are the semantics of the resource-env-ref tag in the deployment descriptor? Has every object (e.g. DataSources for DB access) to be declared in the deployment descriptor or is a Resource/ResourceLink in the server.xml sufficient? Does the application have to declare the use of a

How to enforce URL-rewriting?

2003-09-16 Thread Johann Uhrmann
Hello, is there a way to enforce URL rewriting in tag libraries? (e.g. the common tag library and the struts tags) As far as I know, setting cookies=false in the context should disable all cookies and therefore force URL rewriting to be used. Unfortunately, some browsers fool Tomcat (4.1.24) and

Missing jdbc context

2003-10-22 Thread Johann Uhrmann
someone give me a hint why that context is not available? Thank You, Johann Uhrmann -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http://www.xpecto.com

Re: error-page directive gives a wrong response code to apache

2003-10-22 Thread Johann Uhrmann
is considered correct. If You want Your JSP to return a response code different from 200 You have to include: % response.setStatus(response.SC_NOT_FOUND); % in Your 404-page. Regards, Johann Uhrmann -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00

Re: Missing jdbc context

2003-10-26 Thread Johann Uhrmann
Shapira, Yoav wrote: Howdy, Set debug=99 for your server, engine, host, so you can see why tomcat is running into errors processing server.xml. Unfortunately, that setting does not provide any more information about the problem. Regards, Hans -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D

Error messages for the jsp compiler

2003-11-10 Thread Johann Uhrmann
. Is that a known issue? Is there a setting for jasper2 to produce error messages in an offline-compile run that actually help to find the error? Kind regards, Johann Uhrmann -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10

Re: Error messages for the jsp compiler

2003-11-10 Thread Johann Uhrmann
are not compatible with tag pooling? Regards, Johann Uhrmann -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http://www.xpecto.com

Loadbalancing with mod_jk2

2003-12-17 Thread Johann Uhrmann
tomcat instances? How to tell that tomcat2 should not get new sessions for foobar? Thank You very much, Johann Uhrmann -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http

Re: Tomcat - Apache with JK2: mapping urls...

2004-10-18 Thread Johann Uhrmann
Andrzej Jan Taramina wrote: Douglas WF Acheson has said late last year: # Define the Manager proxy that comes with Tomcat [uri:/tomcat/manager/*] context=/manager info=Manager prefix mapping But, after frustrating attempts I cannot seem to get it correct. I have search the mail archives and a

jk2 is ignoring graceful flag

2004-01-21 Thread Johann Uhrmann
this to determine if the tomcat instance can be safely switched off without kicking out users. Thank You, Johann Uhrmann -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http