Re: mod_jk session stickiness on failover

2010-05-19 Thread Mark Thomas
On 19/05/2010 01:18, Steve Yates wrote: G'day John, the strategy I would employ in your particular case would be to utilise the JvmRouteBinderValve. Now the JvmRouteBinderValve was designed to be used within a clustered environment I cannot see why it cannot be configured stand-alone to simply

Re: JAAS getRemoteUser security custom

2010-05-19 Thread Neville Peter
Hi, I'm still not satisfied with the options so far and I'm sure I do not fully understand it: Although the valve works in that I can set the principal on the catalina request, realm.authenticate(username,credentials) within the valve is not actually passing anything to my JAAS login module

Re: Jmxproxy issue

2010-05-19 Thread Anurag Kapur
From what I know, you do not get detailed memory information on the jmx proxy servlet without the JMX agent enabled. You can enable it by adding the following JVM argument. -Dcom.sun.management.jmxremote I have tested this on Tomcat 5.5.27 with Java 1.5.0_14. With the above JVM argument added to

C3p0 datasource

2010-05-19 Thread Woude, Alexander van der
Hello guys, I have some trouble in getting c3p0 ComboPooledDataSource working in Tomcat 6.0.26. I have the following config in my server.xml: GlobalNamingResources !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource

Tomcat 6.0.20 unable to create new native thread

2010-05-19 Thread tomcat
Hi all, we have a problem with our tomcat 6.0.20 which throws occasionally the following exception: java.lang.OutOfMemoryError: unable to create new native thread Information about the system: - Win2003 Server Standard Edition 32 bit - 2GB RAM - Apache 2.2.13 with open SSL and mod_jk 1.2.28

Re: C3p0 datasource

2010-05-19 Thread Pid
On 19/05/2010 13:03, Woude, Alexander van der wrote: Hello guys, I have some trouble in getting c3p0 ComboPooledDataSource working in Tomcat 6.0.26. I have the following config in my server.xml: GlobalNamingResources !-- Editable user database that can also be used by

Re: Tomcat 6.0.20 unable to create new native thread

2010-05-19 Thread Peter Crowther
On 19 May 2010 13:26, tom...@habmalnefrage.de wrote: java.lang.OutOfMemoryError: unable to create new native thread OK, so one possibility is that the Windows thread table is full.   - maxThreads for HTTP: 450   - maxThreads for jk: 3000 That's a huge number of threads for one process.  

RE: Tomcat 6.0.20 unable to create new native thread

2010-05-19 Thread Caldarale, Charles R
From: tom...@habmalnefrage.de [mailto:tom...@habmalnefrage.de] Subject: Tomcat 6.0.20 unable to create new native thread Configuration-Details: - Tomcat 1 (with the problem) - MaxPermSize=256m - JvmMs 128 - JvmMx 768 - maxThreads for HTTP: 450 - maxThreads for jk: 3000

RE: C3p0 datasource

2010-05-19 Thread Woude, Alexander van der
Pid, changing the factory give me the following: FAIL - Encountered exception javax.naming.NamingException: No set method found for property: maxIdle Van: Pid [...@pidster.com] Verzonden: woensdag 19 mei 2010 14:39 Aan: Tomcat Users List Onderwerp: Re:

RE: C3p0 datasource

2010-05-19 Thread Caldarale, Charles R
From: Woude, Alexander van der [mailto:alexander.vander.wo...@capgemini.com] Subject: C3p0 datasource I have some trouble in getting c3p0 ComboPooledDataSource working in Tomcat 6.0.26. What version of c3p0? What JVM? What platform? Are you running with a security manager? the error

Re: C3p0 datasource

2010-05-19 Thread Pid
On 19/05/2010 13:52, Woude, Alexander van der wrote: Pid, changing the factory give me the following: FAIL - Encountered exception javax.naming.NamingException: No set method found for property: maxIdle I'd take out the maxIdle=30 attribute, then. p

Prevent JSP Session

2010-05-19 Thread Brett Birschbach
I am currently running Tomcat 6.0.24 on a Windows Vista machine. The web app I am developing will be deployed to a cloud, where server affinity will be thrown to the wind. Thus, instead of relying on tomcat to manage my session, I am instead managing the session via manual cookies and a

CORBA and Tomcat

2010-05-19 Thread privat
Hello, Does somebody know something about this: java.lang.SecurityException: ORBSingleton: access denied com.sun.corba.se.impl.orb.ORBSingleton.string_to_object(ORBSingleton.java:348) I tried to connect to a CORBA-NameServer by using a Servlet on Tomcat. I also grant all premissions

RE: CORBA and Tomcat

2010-05-19 Thread Caldarale, Charles R
From: pri...@samea.de [mailto:pri...@samea.de] Subject: CORBA and Tomcat Does somebody know something about this: java.lang.SecurityException: ORBSingleton: access denied com.sun.corba.se.impl.orb.ORBSingleton.string_to_object (ORBSingleton.java:348) Tomcat version? JVM

Re: CORBA and Tomcat

2010-05-19 Thread privat
Hello; here are the requested informations: Server Informationen Tomcat Version JVM Version JVM Hersteller OS Name OS Version OS Architektur Apache Tomcat/5.5 1.5.0_14-b03 Sun Microsystems Inc. Linux 2.6.18-6-686 i386 type Exception report message description The server

Tomcat Jconsole

2010-05-19 Thread Ozgur Ozdemircili
Hi, Im trying to connect to my tomcat server using Jconsole. I do get Connection Failed I have the following parameters in my tomcat startup.sh export CATALINA_OPTS=-XX:MaxPermSize=512m -Xms512m -Xmx2048m -server set CATALINA_OPTS=-Dcom.sun.management.jmxremote \

RE: Tomcat Jconsole

2010-05-19 Thread Caldarale, Charles R
From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com] Subject: Tomcat Jconsole Im trying to connect to my tomcat server using Jconsole. I do get Connection Failed What version of Tomcat? What JVM? I have the following parameters in my tomcat startup.sh You shouldn't be modifying

Problem with IIS 7.0 plugin isapi_redirect on Windows 2008 64 bit

2010-05-19 Thread Ganesan, Chandru
Hi I'm trying to configure the IIS 7.0 with latest isapi_redirect.dll (Ver 1.2.30) on Windows 2008 Server (64 bit). When I try to login to the Apache Tomcat 5.5 Servlet container, it fails with the error: 404 - File or directory not found. The resource you are looking for might have been

clustering errors in 6.0.26 with multiple contexts

2010-05-19 Thread Ronald Klop
Hello, Since I'm running 6.0.26 I have clustering errors on startup of some contexts. I only see this on servers with multiple clustered contexts. I don't know if that is related. In 6.0.24 everything worked ok for months. Today I caught the stack below on startup after which I get a 60 second

Re: Tomcat 6.0.20 unable to create new native thread

2010-05-19 Thread André Warnier
tom...@habmalnefrage.de wrote: cute domain name ;-) - all connections shown by netstat -an (not filtered): 4595 - connections in state close_wait: 3152 Due to problems with one of our webapps which sometimes does not close the threads completely (they stuck in close_wait-state) we

Re: Tomcat Jconsole

2010-05-19 Thread Ozgur Ozdemircili
Hi, Again: -Rhel 5.3 x64 -java version 1.6.0_16 Java(TM) SE Runtime Environment (build 1.6.0_16-b01) Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode) -Apache tomcat 6.0.26 -Dual core Intel(R) Xeon(R) CPU E3110 @ 3.00GHz and 4 GB memory each. The startup.sh configuration is

Re: Tomcat Jconsole

2010-05-19 Thread Hassan Schroeder
On Wed, May 19, 2010 at 6:38 AM, Ozgur Ozdemircili ozgur.ozdemirc...@gmail.com wrote: I have the following parameters in my tomcat startup.sh ripple:/tmp$ cat testenv #!/bin/bash export CATALINA_OPTS=-XX:MaxPermSize=512m -Xms512m -Xmx2048m -server set

RE: Tomcat Jconsole

2010-05-19 Thread Caldarale, Charles R
From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com] Subject: Re: Tomcat Jconsole -Dual core Intel(R) Xeon(R) CPU E3110 @ 3.00GHz and 4 GB memory each. What does each mean? Is the system running with 4 GB of memory or something more? The startup.sh configuration is not broken.

Re: Question on workers.properties file

2010-05-19 Thread savoym
Ranier - Thanks for the reply. I have some questions on your response. The INT value that your get_server_value method returns how do I determine from that what the userid is and more importantly, what calls this method and populates the values for this method to run? Sorry for the ignorance.

Re: Tomcat Jconsole

2010-05-19 Thread Ozgur Ozdemircili
Hi, The solution that Hassan sent worked. Thanks a lot. Özgür Özdemircili http://www.acikkod.org Code so clean you could eat off it On Wed, May 19, 2010 at 5:28 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com]

Re: CORBA and Tomcat

2010-05-19 Thread privat
Hello; if I put this: ORB.init(args, null); instad of this ORB.init(); I get this: org.omg.CORBA.OBJECT_NOT_EXIST: vmcid: 0x5854 minor code: 1 completed: No sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

Tomat monitoring

2010-05-19 Thread Ozgur Ozdemircili
Hi, I am looking for tomcat monitorization solutions.I am looking to choose between Jconsole and Javameleody Does anyone use one of those on their prod environment? Any problems with either? Can you please share your experiences on the subject? Thanks! Özgür Özdemircili

HELP with my first webapp thats live!

2010-05-19 Thread Yucca Nel
I am waiting on a book I ordered a while ago related = to JSF but they take about a month to get here from Amazon. During = development my application contained no bugs during user case testing.I = am now seeing issues related to a graphic table banner that uses a few = commandlink jsf tags that

Re: mod_jk session stickiness on failover

2010-05-19 Thread JohnRiley
Right on target. I noticed that it was the emptySessionPath=true that messed things up for me. When I removed it I got back to the wanted behavior. However, the emptySessionPath is needed since we are using mod_rewrite to change the url:s of the backend application. Otherwise we get a JSessionID

Re: Tomat monitoring

2010-05-19 Thread ziggy25
I use tomcat probe Try it its quite good --Original Message-- From: Ozgur Ozdemircili To: Tomcat Users List ReplyTo: Tomcat Users List Subject: Tomat monitoring Sent: May 19, 2010 17:40 Hi, I am looking for tomcat monitorization solutions.I am looking to choose between Jconsole and

Re: mod_jk session stickiness on failover

2010-05-19 Thread JohnRiley
Ok, even if I execute a jsp-page in tomcat root and get a cookie with path=/ I get this problem so it has nothing to to with sharing sessions between applications or cookie not reaching it correctly. Things just seems to stop working properly when I add emptySessionPath=true. Any idéas? /John

Re: Question on workers.properties file

2010-05-19 Thread Rainer Jung
On 19.05.2010 17:37, savoym wrote: Ranier - Thanks for the reply. I have some questions on your response. The INT value that your get_server_value method returns how do I determine from that what the userid is and more importantly, what calls this method and populates the values for this

Re: mod_jk session stickiness on failover

2010-05-19 Thread Rainer Jung
On 19.05.2010 20:12, JohnRiley wrote: Ok, even if I execute a jsp-page in tomcat root and get a cookie with path=/ I get this problem so it has nothing to to with sharing sessions between applications or cookie not reaching it correctly. Things just seems to stop working properly when I add

Re: Question on workers.properties file

2010-05-19 Thread savoym
Ranier, Thank you for the clarification. As far as your instruction, let me ask the following if you don't mind: What source are you referring to? Do you have a URL for this source? Also, I've been trying to pickup this AUTH_USER from the HttpServletRequest. Is that not where I can pick it

Re: HELP with my first webapp thats live!

2010-05-19 Thread André Warnier
Yucca Nel wrote: I am waiting on a book I ordered a while ago related = to JSF but they take about a month to get here from Amazon. Try this : http://www.lmgtfy.com/?q=jsf+tutorial - To unsubscribe, e-mail:

Re: Question on workers.properties file

2010-05-19 Thread André Warnier
savoym wrote: I just got IIS to forward my request to Tomcat using the Apache Tomcat-Connectors doc. I am trying to authenticate the user login/id that executes the request to my web app to be able to grab the user login and use in my java app. Can you explain a little bit more in detail,

Re: Prevent JSP Session

2010-05-19 Thread Bill Au
I an actually facing the same situation. Is it possible to disable JSP sessions once and for all with a configuration setting? Adding the page directive to disable session to each JSP should work but I am afraid that our developers will not always remember to do so. Bill On Wed, May 19, 2010

Re: mod_jk session stickiness on failover

2010-05-19 Thread Mark Thomas
On 19/05/2010 18:48, JohnRiley wrote: Right on target. I noticed that it was the emptySessionPath=true that messed things up for me. When I removed it I got back to the wanted behavior. However, the emptySessionPath is needed since we are using mod_rewrite to change the url:s of the backend

Re: Question on workers.properties file

2010-05-19 Thread savoym
Yes. The users are already being authenticated by IIS before IIS forwards the request to Tomcat. And yes, I am wanting to retrieve in my java app this userid from what I thought would be through the HttpServletRequest class. However, that is not working. I tried to retrieve it using this

clearThreadLocalMap

2010-05-19 Thread Leo Donahue - PLANDEVX
These show up in my Catalina logs, not very often - maybe half a dozen per day. Does this mean I didn't clean up my variables correctly in my webapp? May 18, 2010 7:51:01 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap SEVERE: A web application created a ThreadLocal with

Re: clearThreadLocalMap

2010-05-19 Thread Mark Thomas
On 19/05/2010 23:46, Leo Donahue - PLANDEVX wrote: These show up in my Catalina logs, not very often - maybe half a dozen per day. Does this mean I didn't clean up my variables correctly in my webapp? Looks like a false positive. It is fixed in 6.0.26. Mark May 18, 2010 7:51:01 PM

Re: too man open files?

2010-05-19 Thread Licht Jiang
Thanks for your help. I found out that actually those 3 xml files: ._Push.xml, ._host-manager.xml and ._manager.xml should not be there. There were there may be because an unexpected termination of tomcat. I deleted them and actually removed Push.xml as well and everything goes back to normal. On

Keeping tomcat up-to-date on linux

2010-05-19 Thread Dale Ogilvie
Hi, The current release is 6.0.26, March 2010. RHEL5.x is running with Tomcat 5.5. Fedora 12 is on 6.0.20, June 2009 vintage. Ubuntu 10.04 is on 6.0.24 from Jan 2010. Ideally, the equivalent of a yum update would track tomcat releases so that soon after a tomcat release the tomcat6 package

Re: Keeping tomcat up-to-date on linux

2010-05-19 Thread Hassan Schroeder
On Wed, May 19, 2010 at 7:03 PM, Dale Ogilvie dale.ogil...@trimble.co.nz wrote: What do people do to keep their tomcat patched up? I watch this list for announcements of new releases and install them :-) Of course, reading the release notes lets me decide how urgently that needs to happen

RE: Keeping tomcat up-to-date on linux

2010-05-19 Thread Dale Ogilvie
Hassan Schroeder wrote: I watch this list for announcements of new releases and install them :-) I'm hoping for something a bit more distro managed. Presumably your method means you have to maintain your own init.d scripts and use the tar xzvf method of installation, outside of your distro

Re: Keeping tomcat up-to-date on linux

2010-05-19 Thread Hassan Schroeder
On Wed, May 19, 2010 at 7:39 PM, Dale Ogilvie dale.ogil...@trimble.co.nz wrote: I'm hoping for something a bit more distro managed. Presumably your method means you have to maintain your own init.d scripts and use the tar xzvf method of installation, outside of your distro package management

RE: Keeping tomcat up-to-date on linux

2010-05-19 Thread Dale Ogilvie
Yes, the release gap is an issue for me as well. Hence this email trail :-) Parallelism is achieved for us for other software by package updating the test/dev server and testing that prior to performing the same updates on prod. There is no need for us to have two versions of tomcat running on

Re: Keeping tomcat up-to-date on linux

2010-05-19 Thread Hassan Schroeder
On Wed, May 19, 2010 at 8:55 PM, Dale Ogilvie dale.ogil...@trimble.co.nz wrote: I'm pleased to hear that the upgrade process is trivial with your setup. If you're going to have special practices, they might as well be simple. Since I don't use package management for anything important, it's

Re: Keeping tomcat up-to-date on linux

2010-05-19 Thread Thad Humphries
Exactly right, Hassan. I think it is extremely unwise to leave any critical portion of one's system--personal, development, or production--at the hands of the distro. I've used Linux for over a decade, and install Apache, Java, Tomcat, etc. by hand. ALWAYS. Oft times I build Apache myself. On