Re: Setting JK_REMOTE_USER help

2010-06-17 Thread Pid
On 17/06/2010 02:41, Marc Boorshtein wrote: The problem with the Realm system is its designed with the assumption that tomcat is doing the authentication which is not a valid assumption in an environment where the authentication is seperated from authorization. The entire point of container

Re: disabling copy of context.xml to conf/Catalina/localhost

2010-06-17 Thread Pid
On 17/06/2010 00:49, Rajeev Verma wrote: Hi, I am facing a problem which can be solved if I can disable copy of context.xml to conf/Catalina/localhost. Is there some setting to do so? Thanks for the help. What are your exact Tomcat, JVM, OS versions? What is the problem? p

RE: Setting the Right Amount of Memory

2010-06-17 Thread Robinson, Eric
If your heap size is right on the edge of your minimum for a Tomcat instance, you may be doing more GC work than is really needed. However, if you're satisfied with the response time and CPU utilization, you should be ok. My thoughts exactly. Just wanted to check it with the community.

RE: Setting the Right Amount of Memory

2010-06-17 Thread Robinson, Eric
Just wondering, what tools do you use to manage all the instances? Also, what do you use to look for the OutOfMemory in logs? I am looking at Splunk too. Just shell scripts. We have scripts that... -- set up a new instance and customize it for a new customer -- stops,

Re: Tomcat unexpected shutdown on Solaris

2010-06-17 Thread Rainer Jung
On 17.06.2010 05:35, Caldarale, Charles R wrote: From: Marco Castillo [mailto:mabcasti...@vdkit.net] Subject: Tomcat unexpected shutdown on Solaris I have checked all the logs and there is no exception displayed, no error, nothing. I look for an error file from java, but there is no one. It

Re: Authentication of proxy over own module

2010-06-17 Thread Petr Hracek
Sorry I have posted to the wrong conference. Add the end of this mail youc can find where I have a problem? 2010/6/17 Pid p...@pidster.com On 16/06/2010 10:08, Petr Hracek wrote: Sorry my wrong explanation. I have ment the when the request is authorized/authenticated by my module how the

Re: Tomcat 5.0/6.0, jasper2, log4j and Ant

2010-06-17 Thread Pid
On 15/06/2010 15:59, Olivier DOREMIEUX wrote: Hello, How to propagate variables to the jasper2 task in ANT? I have log4.properties with a variable, with define the path where the log file are located. OK so far. My variable is visible inside of ant, but doesn't get propagated with

Re: Setting JK_REMOTE_USER help

2010-06-17 Thread Marc Boorshtein
I'm not looking to start a holy war here, but is there anything incorrect in what I said?  Tomcat is a servlet container, the servlet Yes. You made a sweeping statement about container managed security which implied that things should just work.  Someone has to make them work. As an app

Re: Setting JK_REMOTE_USER help

2010-06-17 Thread Pid
On 17/06/2010 12:34, Marc Boorshtein wrote: I'm not looking to start a holy war here, but is there anything incorrect in what I said? Tomcat is a servlet container, the servlet Yes. You made a sweeping statement about container managed security which implied that things should just work.

Help with Log Level in Tomcat 6 Logging

2010-06-17 Thread Jonathan Jackson
Hello, Im a newbie to Tomcat logging. Here is the logging.properties of my Catalina installation: --- handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler,

Re: Setting JK_REMOTE_USER help

2010-06-17 Thread André Warnier
Pid wrote: On 17/06/2010 12:34, Marc Boorshtein wrote: I'm not looking to start a holy war here, but is there anything incorrect in what I said? Tomcat is a servlet container, the servlet Yes. You made a sweeping statement about container managed security which implied that things should

Re: Help with Log Level in Tomcat 6 Logging

2010-06-17 Thread André Warnier
Jonathan Jackson wrote: ... Hi. If it may contribute to less confusion : for as long as I remember, and still in tomcat 6.0.26 e.g., the comment in front of this paragraph at the end of the logging.properties file # For example, set the com.xyz.foo logger to only log SEVERE # messages:

Re: Setting the Right Amount of Memory

2010-06-17 Thread Mark Thomas
On 17/06/2010 08:59, Robinson, Eric wrote: If your heap size is right on the edge of your minimum for a Tomcat instance, you may be doing more GC work than is really needed. However, if you're satisfied with the response time and CPU utilization, you should be ok. My thoughts exactly.

Re: HTTP connector to be aware of proxied SSL requests

2010-06-17 Thread Mark Thomas
On 17/06/2010 01:41, Matt Peterson wrote: I can't find any documentation on the order of events for the Connector, so I'm not sure what other decisions get made based on the request attributes, but assume there are others. This is *open* source... Is there another solution to handling

Re: Setting JK_REMOTE_USER help

2010-06-17 Thread Mark Thomas
On 17/06/2010 13:26, André Warnier wrote: I must say that, with my limited knowledge of the Tomcat internals taken into consideration, I tend to agree with Marc in this case, if he is right in claiming that the Tomcat Realm mixes authentication with authorization and does not allow to separate

NewBie! Need Help to configure FTP/Domain...

2010-06-17 Thread Alan Coyne
Hi All, I'm new to TomCat however I have managed to get JDK setup and Tomcat 6 running on Linux 64bit server. I've deployed an app via WAR file and all looks good. So all that remains for me to do is confirgure a domain name to use the server and be able to FTP to the installed app folder. I've

Re: POI/XML issues in server environment

2010-06-17 Thread David Fisher
Hi All, Over here from POI where I helped Jorge track things down in Tomcat. I suggested he come over here for help, but he seems to have started at the beginning and is getting the exact same initial questions that were asked on POI User. Here's what was determined. One of the webapps on his

Re: Help with Log Level in Tomcat 6 Logging

2010-06-17 Thread Konstantin Kolinko
2010/6/17 Jonathan Jackson jonathan.x.jack...@gmail.com: The problem I have is that in my daily rolling catalina-[data].out I only get SEVERE level messages. Given the above configuration, my understanding from reading this ( http://tomcat.apache.org/tomcat-6.0-doc/logging.html) is that FINE

Re: POI/XML issues in server environment

2010-06-17 Thread Pid
On 17/06/2010 14:33, David Fisher wrote: Hi All, Over here from POI where I helped Jorge track things down in Tomcat. I suggested he come over here for help, but he seems to have started at the beginning and is getting the exact same initial questions that were asked on POI User.

Re: Setting JK_REMOTE_USER help

2010-06-17 Thread Pid
On 17/06/2010 13:26, André Warnier wrote: Pid wrote: On 17/06/2010 12:34, Marc Boorshtein wrote: I'm not looking to start a holy war here, but is there anything incorrect in what I said? Tomcat is a servlet container, the servlet Yes. You made a sweeping statement about container managed

Re: Setting JK_REMOTE_USER help

2010-06-17 Thread Marc Boorshtein
On Thu, Jun 17, 2010 at 9:11 AM, Mark Thomas ma...@apache.org wrote: On 17/06/2010 13:26, André Warnier wrote: I must say that, with my limited knowledge of the Tomcat internals taken into consideration, I tend to agree with Marc in this case, if he is right in claiming that the Tomcat Realm

Re: POI/XML issues in server environment

2010-06-17 Thread Konstantin Kolinko
2010/6/16 Jorge Moya jom...@gmail.com: Hello guys. (...) Now, I've established a long conversation with the POI userlist and came to the conclusion I'm having some issues with some of the .jar files and classes. (...) Java version is 1.5.0_18-b02 Windows version is Windows Server 2003 SP2

Re: Setting JK_REMOTE_USER help

2010-06-17 Thread Marc Boorshtein
Hi. I must say that, with my limited knowledge of the Tomcat internals taken into consideration, I tend to agree with Marc in this case, if he is right in claiming that the Tomcat Realm mixes authentication with authorization and does not allow to separate the two. Well, he said he's

RE: Tomcat 6.0 documentation: is classloading description correct?

2010-06-17 Thread Peter_Ford
Caldarale, Charles R chuck.caldar...@unisys.com wrote on 06/16/2010 09:55:19 PM: From: peter_f...@blm.gov [mailto:peter_f...@blm.gov] Subject: Re: Tomcat 6.0 documentation: is classloading description correct? The docs say in one place that the order is one way (WebApp first, then

DefaultServlet and default character encoding

2010-06-17 Thread Felix Schumacher
Hi, I have a character encoding problem with the DefaultServlet. We use it to serve static html content, which is encoded in utf-8. The DefaultServlet doesn't set characterset in the response, so the browser looks for a meta-tag describing the encoding. Luckily these are set in our content and

Connector IIS7 Load balancing Issue (workers.properties)

2010-06-17 Thread Luis Esquivel
Hello, I have a situation where my IIS tomcat load balancing configuration between 2 nodes keeps switching in every single request from the same browser. The JSESSIONID changes every time I hit refresh on the browser because it switches between the 2 nodes each time. This was working at some

Re: Tomcat 6.0 documentation: is classloading description correct?

2010-06-17 Thread Konstantin Kolinko
2010/6/16 peter_f...@blm.gov: Looking at section 10 of the 6.0 user guide, which describes classloading, the text makes perfect sense and matches the way I understand things work. However the summary at the end of the section Class Loader Definitions looks wrong; it basically says that the

Tomcat 6 64 bits, Java 6 64 bits and -Djava.library.path

2010-06-17 Thread Katt
Hi all, I have some strange issues: Enviroment: Windows 2003 R2 64 bits with Tomcat6 6.0.24 and Java6 1.6.0_20 64bits. If I have some libraries that need to be loaded at startup so I've added in catalina.bat: JAVA_OPTS=%JAVA_OPTS% -Djava.library.path=C:\libs, start tomcat with startup.bat,

Re: NewBie! Need Help to configure FTP/Domain...

2010-06-17 Thread André Warnier
Alan Coyne wrote: Hi All, I'm new to TomCat however I have managed to get JDK setup and Tomcat 6 running on Linux 64bit server. I've deployed an app via WAR file and all looks good. So all that remains for me to do is confirgure a domain name to use the server and be able to FTP to the

Re: Setting JK_REMOTE_USER help

2010-06-17 Thread Pid
On 17/06/2010 15:08, Marc Boorshtein wrote: Hi. I must say that, with my limited knowledge of the Tomcat internals taken into consideration, I tend to agree with Marc in this case, if he is right in claiming that the Tomcat Realm mixes authentication with authorization and does not allow to

Re: DefaultServlet and default character encoding

2010-06-17 Thread Mark Thomas
On 17/06/2010 15:23, Felix Schumacher wrote: My Question now is, should I file a bug to enhance DefaultServlet? If so would it be legal to include the patch from that discussion? That is covered by section 5 of the ALv2, so yes it would be legal. Make sure you correctly attribute it. I'd add

Re: Setting JK_REMOTE_USER help

2010-06-17 Thread Marc Boorshtein
You're talking about having to change your app, but you've only described having to make modifications to a Tomcat internal support class. You seem to be saying that Tomcat has a compliancy issue - IMO the problem with leaving that unchallenged is that it breeds misunderstanding that would

Re: DefaultServlet and default character encoding

2010-06-17 Thread Konstantin Kolinko
2010/6/17 Felix Schumacher felix.schumac...@internetallee.de: For the moment I have written a filter, which sets a default encoding, as soon as Response.setContentType(String type) is called and type.startsWith(text/). That works for the moment, but I would prefer the solution described in

Re: Resource Annotation has no effect but JNDI Lookup works (JDBC Resource)

2010-06-17 Thread marble4u
@gurkan Chris: actually I don't want to use the resource directly in a servlet or JSP - due to architectural reasons - so is there a way to inject resources into plain java classes? @Pid: Thanks for the Information. I will check out the spec and hope that it is not too much to read ;-) And

Re: Connector IIS7 Load balancing Issue (workers.properties)

2010-06-17 Thread Electronjockey
check your windows NLB affinity setting for the cluster, should be set to single. Sounds like it's off. Luis Esquivel wrote: Hello, I have a situation where my IIS tomcat load balancing configuration between 2 nodes keeps switching in every single request from the same browser. The

Re: Tomcat 6.0 documentation: is classloading description correct?

2010-06-17 Thread Rainer Jung
On 17.06.2010 16:37, Konstantin Kolinko wrote: 2010/6/16peter_f...@blm.gov: Looking at section 10 of the 6.0 user guide, which describes classloading, the text makes perfect sense and matches the way I understand things work. However the summary at the end of the section Class Loader

Re: [SOLVED, workaround] Why my web application automatically switchs to https?

2010-06-17 Thread Luca Fagioli
Ok, it turned out to be either a bug (or a wrong configuration) of the environment I was working with (GIS + embedded Jetty). So, I ended up working around it. I write it down; hope it can be useful for someone else. The workaround is Jetty specific, but the same approach can be used with

Re: Connector IIS7 Load balancing Issue (workers.properties)

2010-06-17 Thread Rainer Jung
On 17.06.2010 16:33, Luis Esquivel wrote: Hello, I have a situation where my IIS tomcat load balancing configuration between 2 nodes keeps switching in every single request from the same browser. The JSESSIONID changes every time I hit refresh on the browser because it switches between the 2

Re: disabling copy of context.xml to conf/Catalina/localhost

2010-06-17 Thread Rajeev Verma
Thanks for the response pid. I am using Tomcat 6.0.26 with java 1.6 on Windows XP. I have two applications (application AU and AC) under same webapps. AC does not have a context.xml though AU has. There is a dependency between AU and AC and AC need to be started first at start up. When I deployed

RE: Setting the Right Amount of Memory

2010-06-17 Thread Robinson, Eric
Time to hit the vendor around the head with the cluebat. If the app is happy with less heap space then increasing it is only going to cause problems - mainly that GC when it happens will take longer and trigger longer pauses. You can mitigate this with GC config (later VMs may make the

Issues changing log4j levels for tomcat web apps

2010-06-17 Thread Jeffrey Nguyen (jeffrngu)
Hi Everyone, This question might be a little off topic, but I thought since it involved tomcat web apps, I figured someone might know the answer. I have Liferay EE 5.2.6 running on top of tomcat 6.0.26. Liferay has an admin GUI page to allows me to change log level settings for

Re: Resource Annotation has no effect but JNDI Lookup works (JDBC Resource)

2010-06-17 Thread Gurkan Erdogdu
Then you have to use InitialContext # lookup(java:/comp/env/_Resource_Id_In_your_web_Xml). As we said, if you want to inject dependencies to your classes, those classes must be known by the container. --Gurkan From: marble4u marco.blev...@energy4u.org To:

Re: Tomcat 6.0 documentation: is classloading description correct?

2010-06-17 Thread Peter_Ford
Ok, the problem is my misunderstanding of the process here. I thought WebAppClassLoader always checked WEB-INF/lib before delegating; I see that it actually delegates to the System loader first, then checks WEB-INF/lib, and finally delegates to its own parent. So my comment earlier about they

Re: Issues changing log4j levels for tomcat web apps

2010-06-17 Thread Rainer Jung
On 17.06.2010 19:44, Jeffrey Nguyen (jeffrngu) wrote: This question might be a little off topic, but I thought since it involved tomcat web apps, I figured someone might know the answer. I have Liferay EE 5.2.6 running on top of tomcat 6.0.26. Liferay has an admin GUI page to allows me to

Re: HTTP connector to be aware of proxied SSL requests

2010-06-17 Thread Cyrille Le Clerc
Hello Matt, I think the RemoteIpValve does what you need : it looks at http headers filled in the request by preceding network components (layer 7 load balancer, ssl accelerator, etc) such as 'x-forwarded-for' to get the real ip address and 'x-forwarded-proto' to get the http/https protocol. A

RE: HTTP connector to be aware of proxied SSL requests

2010-06-17 Thread Matthew Peterson
This is *open* source... Thx Capt. Obvious - very helpful ;-) OK, so I now understand why it was chosen to perform the redirection in the Connector rather than in a Valve; to remove unnecessary processing keeping the redirect response as efficient as possible. I might lodge an enhancement

RE: HTTP connector to be aware of proxied SSL requests

2010-06-17 Thread Matthew Peterson
Hi Cyrille, We have the RemoteIpValve implemented already, thanks. The behaviour we are seeing is occurring in the Connector, before the request even reaches the valves. In this case, the request never reaches the valves as the redirect is done within the connector. Cheers, Matt.

Application stops responding, jk worker in error state

2010-06-17 Thread Neil Aggarwal
Hello: I have Tomcat 6.0.26 running behind Apache and am using the JK Connector to communicate between them. My application stops responding on occasion. I added the jk status page to the web server and checked it when the application becomes non-responsive. The tomcat worker has this info: