Authentication problem - request.getRemoteUser() returns null

2006-07-04 Thread Oliver Enders
Hy, I have the following constelation: Windows XP Apache 2.0.58 Tomcat 4.1 Mod_jk 1.2.15 I secured one directory using htpasswd. Calling the URL, the prompt to enter password and username pops up, and after I entered it correctly, the authentication ist succesfull. (also the apache log file

Re: Busy in jkmanager

2006-07-04 Thread Rainer Jung
Busy=number of parallel requests being processed for a worker at that point of time. If worker.yourloadbalanceworker.method=B, this loadbalancer will send a request always to its balanced worker with the lowest busy count. A bug in mod_jk 1.2.15 leads to the wrong display of very high busy

V Load Balancer Value

2006-07-04 Thread andreamodesto . rossi01
Dear All  Please explain what this V Load Balancer Value number is in jkmanager and its significance to the load balancer.   Thanks in advance. Andrea --- This mail sent through IMP: http://webmail.ateneopv.it/ CILEA MAILFARM -

RE: Odd problem with Java Web service deployment

2006-07-04 Thread Remacle, F \(Francois\)
Hi Frank, Thanks for your reply, In fact it is finding these listeners (or the error message is misleading me), it is the javax.servlet.AttributeContextListener that its not finding which is odd since the others app finds it... -Original Message- From: Franck Borel [mailto:[EMAIL

RE: what happens with the content.xml file

2006-07-04 Thread tom ot
Hi everyone, I'm still not happy with the answer's I got...is there noone who can tell me how to get a different war-file name and url-path. Pid said that someone more knowledgeable should be able to help...but there were no answers yet. so please help me to get the following done: WAR-FILE:

Re: V Load Balancer Value

2006-07-04 Thread Rainer Jung
The V value is an internal counter, on which the decision concerning the load balancing is based. In 1.2.15 it is normal, that you see negative values. For 1.2.16 this behaviour has been changed, so you should see only positive V values and the worker with the lowest one gets the next request. We

AW: Executing Valve before Basic Authentication takes place

2006-07-04 Thread Böhringer Jochen
Hi Mark, thanks for your hint. I configured the the BasicAuthentication valve an my own one in the following order in the server.xml document: Host name=localhost autoDeploy=false deployOnStartup=false deployXML=false Valve

Re: Busy in jkmanager

2006-07-04 Thread Mohan2005
Thank you very much for that answer. When you say 'Requests' does that mean the number of objects rendered through that particular tomcat node ? And how does the load balancing mechanism use the 'Busy' factor ? Thanks Mohan -- View this message in context:

Re: AW: Executing Valve before Basic Authentication takes place

2006-07-04 Thread David Delbecq
As it states, the authenticator valve must be attached to the context, not the host. Just put your valve at host level and it should be called before the authentification valve which is automatically added to the context.xml at deployement. Also, take a look at single sign-on valve which doe

AW: Executing Valve before Basic Authentication takes place

2006-07-04 Thread Böhringer Jochen
Hi, additional Info: I moved the two valves in a DefaultContext tag at the end of the host definition. DefaultContext Valve className=de.tccproducts.valves.PenFrameworkAuthenticationValve / Valve className=org.apache.catalina.authenticator.BasicAuthenticator / /DefaultContext

Re: AW: Executing Valve before Basic Authentication takes place

2006-07-04 Thread David Delbecq
From tomcat docs: You can nest one or more Context elements inside this Host element, each representing a different web application associated with this virtual host. In addition, you can nest a single DefaultContext element that defines default values for *subsequently* deployed web

Re: JDBC Realm for several webapp

2006-07-04 Thread Stanislav Komlenac
I want to have 2 web applications on my web server. Idea si to makde JDBC Realm unique for each web application. problem is that i dont understand what should i have in this {context}.xml files and what should i have in server.xml :-( a nd where should i put this {context}.xml file? Where

Re: JDBC Realm for several webapp

2006-07-04 Thread Stanislav Komlenac
Quoting Kim Brianne Go [EMAIL PROTECTED]: Hi... you might want to look at SecurityFilters. This make it possible for each webapp to be given unique realm security, basically the concept is a webapp containing its own security configuration so that you can deploy your webapp without additional

Re: Busy in jkmanager

2006-07-04 Thread Rainer Jung
Request = HTTP Request in progress Load balancing only uses Busy counter when the method attribute of the lb worker is set to B in workers.properties. In this case the lb worker always routes a request to the worker with smallest Busy counter at the times the request has been received. If the

Re: Busy in jkmanager

2006-07-04 Thread Mohan Wickramasinghe
Thank you very much for your clarifications. Much appreciated. Request = HTTP Request in progress Load balancing only uses Busy counter when the method attribute of the lb worker is set to B in workers.properties. In this case the lb worker always routes a request to the worker with smallest

Re: JDBC Realm for several webapp

2006-07-04 Thread Hassan Schroeder
On 7/4/06, Stanislav Komlenac [EMAIL PROTECTED] wrote: Where are you defining your contexts now?? nowhere! i dont have any contexts define in my applications, as far as i know :-( An application *is* a Context. It sounds like reading the servlet spec would make this a lot less painful:-)

XML Fileupload 8k with mod_jk

2006-07-04 Thread Thilko Richter
Hi together, I would like to send a xml file from a remote client to the web application. I have an apache and tomcat which are linked over mod_jk. My problem is, that I only get 8K of data in my servlets although the file is bigger. If I send the file directly to a http connector the file has

Is it possible to configure Tomcat in a way that it uses different CPUs for different parallel requests?

2006-07-04 Thread KHZ (SAW)
Hi world. Are there Tomcat settings for achieving such a behaviour? Regards, Karl-Heinz.

Re: Executing Valve before Basic Authentication takes place

2006-07-04 Thread Böhringer Jochen
Again, put your valve in host, not context if you want it to be called before authentification Sorry I misunderstood your hint. Now I have this configuration (with Valve and Host element on the same level): [...] Valve className=de.tccproducts.valves.PenFrameworkAuthenticationValve /

RE: XML Fileupload 8k with mod_jk

2006-07-04 Thread Holst, Martina
Hi Thilko, Which version of Tomcat 5.5 are you using? There is an InputBuffer bug in older versions that has been fixed in Tomcat 5.5.16, see http://issues.apache.org/bugzilla/show_bug.cgi?id=38346. Regards, Martina -Original Message- From: Thilko Richter [mailto:[EMAIL PROTECTED]

Re: Is it possible to configure Tomcat in a way that it uses different CPUs for different parallel requests?

2006-07-04 Thread Leon Rosenberg
I think its the default behaviour. Or do you mean specially defined requests? Leon On 7/4/06, KHZ (SAW) [EMAIL PROTECTED] wrote: Hi world. Are there Tomcat settings for achieving such a behaviour? Regards, Karl-Heinz.

AW: XML Fileupload 8k with mod_jk

2006-07-04 Thread Thilko Richter
Hi Martina, Thanks for the quick answer! I use Tomcat 5.5.15. In my servlet I use request.getInputStream() and write the received data into a byte array. With request.getContentLength() I see that I get less data that I have sent to the server. Ok, I will try to update my server to a newer

Re: Serving CSS files from a certain URL

2006-07-04 Thread Alec Swan
The problem is that my JSP uses relative paths to reference CSS files. These paths work fine in the static mode, i.e. when I open JSP file directly in the browser without deploying it on Tomcat. However, when I deploy the JSP all relative links stop working. Here is an example. Suppose I have

JSTL tags not processed

2006-07-04 Thread Richard Doust
I would appreciate it if anyone can give me a lead on how to resolve my problem. I am trying to switch from Jetty 5.1.4 to Tomcat 5.5.17 as the servlet container within JBoss. No changes to code or configuration files, the JSP pages do not produce the expected output. The JSTL tags are not

Tomcat compiles JSP on every request! Why?

2006-07-04 Thread Sergei P. Volin
Hi! I've never seen it before - Tomcat compiles a couple of my JSPs on every request! Why? How can it be? Thanks, Sergei - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: what happens with the content.xml file

2006-07-04 Thread Mark Thomas
tom ot wrote: Hi everyone, I'm still not happy with the answer's I got...is there noone who can tell me how to get a different war-file name and url-path. Pid said that someone more knowledgeable should be able to help...but there were no answers yet. so please help me to get the following

Re: Executing Valve before Basic Authentication takes place

2006-07-04 Thread Mark Thomas
Böhringer Jochen wrote: So I think the request object I modify does not reflect its changes to the CoyoteRequest the BasicAuthenticator reads the values from. Is there a solution to modify the CoyoteRequest? Sounds like you are heading in the right direction. You can access the headers via

webMathematica\Tomcat

2006-07-04 Thread Frank Murray
Hello, This is a newbie question. I am trying to set up a servlet container using Apache Tomcat. One of the primary steps is setting up the JAVA_HOME environment variable. Unfortunately, when I use: setenv JAVA_HOME /System/Library/Frameworks/JavaVM.Framework/Home I get the error msg

Re: webMathematica\Tomcat

2006-07-04 Thread Avi Deitcher
Frank, See http://www.mcsr.olemiss.edu/unixhelp/environment/env3d.html It has been too many years since I did bash, but if I remember correctly, basically, just to JAVA_HOME=/System/etc; export JAVA_HOME However, why not wrap it up in a sh or ksh script to make your life easier? Frank

Re: AW: XML Fileupload 8k with mod_jk

2006-07-04 Thread Rainer Jung
Hi Thilko, please report your findings also in the case, when the problem does not appear with 5.5.15. Rainer Thilko Richter schrieb: Hi Martina, Thanks for the quick answer! I use Tomcat 5.5.15. In my servlet I use request.getInputStream() and write the received data into a byte

Re: Authentication problem - request.getRemoteUser() returns null

2006-07-04 Thread David Smith
The connector receiving requests from httpd needs the attribute tomcatAuthentication set to false in server.xml. Otherwise tomcat will ignore the REMOTE-USER header provided by httpd. -- David Oliver Enders wrote: Hy, I have the following constelation: Windows XP Apache 2.0.58 Tomcat 4.1

getSession() creates new session every time when using IE6

2006-07-04 Thread Galam
Hi all, I am having problem getting my application to work with IE6. In IE6, everytime when I refresh the page, it creates a new session with different session ID. Firefox doesn't have this problem. Here is my sample test page: !DOCTYPE html PUBLIC -//W3C//DTD XHTML

Re: Executing Valve before Basic Authentication takes place

2006-07-04 Thread Bill Barker
Mark is correct: request.addHeader has been deprecated in 5.5.x+, and doesn't actually do anything at all. See Mark's response for the correct way to add your own request header. Alternatively, if the set the userPrincipal on the Request in your Valve, then Tomcat won't bother to try and

Re: getSession() creates new session every time when using IE6

2006-07-04 Thread Len Popp
It works correctly for me, with IE6 and Tomcat 5.5.17. On the first request, isNew = true. On subsequent requests, isNew = false and the session ID is the same. Perhaps your IE is set to ignore all cookies, or to ignore cookies from certain hosts. -- Len On 7/4/06, Galam [EMAIL PROTECTED]

Re: getSession() creates new session every time when using IE6

2006-07-04 Thread Galam
Hi Len, Thanks for trying the test page. I figured out the problem now. It was because the URL I used to visit the web pages. Previously, I used the machine's hostname in the URL. Now, I change it to use localhost and it is fine. i.e. http://serverone:8080/app01/hello.jsp (bad, getSession()

Re: Busy in jkmanager

2006-07-04 Thread Mohan2005
Hello again, According to the workers.properties document (http://tomcat.apache.org/connectors-doc/config/workers.html), Definition of 'method' says the following... Specifies what method load balancer is using for electing best worker. If method is set to R[equest] balancer will use number of

Re: Is it possible to configure Tomcat in a way that it uses different CPUs for different parallel requests?

2006-07-04 Thread Alex Turner
This is the default behaviour. Alex On 7/4/06, KHZ (SAW) [EMAIL PROTECTED] wrote: Hi world. Are there Tomcat settings for achieving such a behaviour? Regards, Karl-Heinz.