RE: tomcat memory leak problem

2009-02-06 Thread Hubert de Heer
As stated below profiling (Yourkit is a very good recommendation, you can try their early access version http://www.yourkit.com/eap/index.jsp) will give you more insight in your tomcat application. Sometimes changing your memory / garbage collect parameters can change the world for you. For

Re: sessions lost after redeploy

2009-02-06 Thread Pieter Temmerman
The sessions are saved inside $CATALINA_HOME/work/catalina/localhost/APPNAME/sessions.ser In case you deploy a new version of your application or make modifications, I suppose Tomcat sees this as a new application and removes your current APP work-dir, and thus it's sessions.ser file Correct me

Re: Subcontext, filter problem.

2009-02-06 Thread Yavuz Kavus
Caldarale, Charles R yazmış: i am currently using the third one. but it is a bit slow and i dont want to use a filter for such a task. There's nothing wrong with using a filter to catch references to the external directory. The speed of such a filter should be the same as if Tomcat

Re: [Tomcat] [daemon] java.lang.OutOfMemoryError unable to create new native thread

2009-02-06 Thread André Warnier
Bill Davidson wrote: I really would like to be able to run these kind of tools across a firewall. I can't believe there are no provisions for it. Seems there is now. Haven't tried it yet, but will soon, if I can upgrade that Tomcat. Previous messages in this thread give more clues.

Re: Realm Issue

2009-02-06 Thread André Warnier
Scott wrote: I figured it out. The style sheet just has to be in a directory that isn't locked down. It's a common occurrence with authentication via login pages : the initial access triggers a redirect to a login page, which itself contains items to be retrieved from a protected area, which

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread Mikolaj Rydzewski
André Warnier wrote: start) su - tomcatuser -c /var/lib/jvm/java $CONFIDENTIAL_SETTINGS -jar All of your 'confidential settings' will be visible to all users with one command: ps aux There're ways to restrict such listing to only your processes. But anyway, command line arguments

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread Gregor Schneider
How about md5sum? Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To unsubscribe,

Re: servlet use. TC6, FC10

2009-02-06 Thread Dave Pawson
One final item before I leave this thread please. 2009/2/5 Caldarale, Charles R chuck.caldar...@unisys.com: onf//marge/atom.xml No. First off, unless you have something specific to define for your webapp (e.g., a Resource or Realm, you don't need a Context element. If you do need a

Re: servlet use. TC6, FC10

2009-02-06 Thread Dave Pawson
2009/2/6 Peter Crowther peter.crowt...@melandra.com: From: Dave Pawson [mailto:dave.paw...@gmail.com] AFAIK I don't need any resource specification. Does this mean that I can dispense with the atom/META-INF directory totally? I.e. it is redundant for this usage of Tomcat? atom |-- META-INF

Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?

2009-02-06 Thread Dave Pawson
Thanks Andre. That paints a good picture! Only generality I'd like to add. The general purpose of my-app web.xml and 'all apps' web.xml. Is it TC 'configuration' (Chaz isn't going to like that, but I do like an overview, even if it's only 80%). I'm saying config, since it provides response mime

Re: Backup of TOMCAT required

2009-02-06 Thread David Smith
If copying whole product installs from old server to new server works, then great. I personally would have downloaded and installed fresh, then configured the new system to match the old system and copied only the app code. Just me. --David Randhir singh wrote: the java and tomcat version is

Re: servlet use. TC6, FC10

2009-02-06 Thread Gregor Schneider
On Fri, Feb 6, 2009 at 1:06 PM, Dave Pawson dave.paw...@gmail.com wrote: One final item before I leave this thread please. AFAIK I don't need any resource specification. Does this mean that I can dispense with the atom/META-INF directory totally? I.e. it is redundant for this usage of

RE: mod_jk

2009-02-06 Thread Gerhardus.Geldenhuis
1) As far as I know, no, mod_jk does not read workers.properties dynamically. 2) Yes and no, it will not send a request unless communication has been established with the worker, it may happen that the worker fails, or someone shut it down. Depending on how you configure the workers and

Re: Upgrade .. a Tomcat

2009-02-06 Thread David Smith
André Warnier wrote: Hi. Now I'm going to ask a question, sotto-voce, humbly, and don't get upset. There happens to be this Tomcat 5.5.20 you see, running under Linux Debian Etch. It wasn't me who installed it, it was the sysadmin, and he's a really difficult guy to relate to, and he has

Re: servlet use. TC6, FC10

2009-02-06 Thread Dave Pawson
2009/2/6 Gregor Schneider rc4...@googlemail.com: AFAIK I don't need any resource specification. Basically yes, however: In one of your previous posts you had the definition Context reloadable=true If you want this behaviour explicitely, you'll nee the context-definition. From the docs:

RE: Upgrade .. a Tomcat

2009-02-06 Thread Caldarale, Charles R
From: David Smith [mailto:d...@cornell.edu] Subject: Re: Upgrade .. a Tomcat I suppose you could just trade out the jars that changed In this case, he can't: the listener of interest is *not* in the jars - it's only in the Tomcat source download, and has to be compiled by whomever wants to

Re: And how about this mod_jk.log ?

2009-02-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: Because the first part of this test had to be done by a non-specialist customer on a workstation to which I did not have access, I ended up writing a simple Perl script based on the integral LWP module, to better trace

RE: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?

2009-02-06 Thread Caldarale, Charles R
From: Dave Pawson [mailto:dave.paw...@gmail.com] Subject: Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type? Unless the client specifies that one single mime type (and no other), I want to reject it Unless you have an extremely specialized client in mind,

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread Mikolaj Rydzewski
André Warnier wrote: In addition, it would avoid having to put some potentially sensible values in a web-xml file which has to be readable by the Tomcat user. Also some other, than web.xml, file with sensible values has to readable by Tomcat user ;-) -- Mikolaj Rydzewski m...@ceti.pl

RE: mod_jk

2009-02-06 Thread Hubert de Heer
Well... as far as I know there is an option to check if a backend is available (up to a certain level). Look in the documentation for ping_mode (mod_jk 1.2.27) http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html Hubert -Original Message- From:

Re: [OT] [Tomcat] [daemon] java.lang.OutOfMemoryError unable to create new native thread

2009-02-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: I have been put right about that by someone else already. Yeah, I'm about 2 days behind on all the drivel on the list. ;) Not everyone agrees with that solution by the way, because the JConsole may interfere with the

Re: Deleting web application specific log files

2009-02-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Asish, Please do not post your question more than once unless several days have gone by without a response. Ashish Sarna wrote: I am using tomcat6 to deploy my web applications. For logging the messages which come through

RE: [OT] [Tomcat] [daemon] java.lang.OutOfMemoryError unable to createnew native thread

2009-02-06 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: [OT] [Tomcat] [daemon] java.lang.OutOfMemoryError unable to createnew native thread Assuming Chuck has an iPhone, which has 128MB of RAM I do, but it's a 3G, with 16 GB of storage memory. It appears that the 128MB

Re: Subcontext, filter problem.

2009-02-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: Yavuz Kavus [mailto:yavuzka...@gmail.com] Subject: Re: Subcontext, filter problem. i am currently using the third one. but it is a bit slow and i dont want to use a filter for such a task. There's

Re: How to dispatch HTTP requests from a servlet to an external server?

2009-02-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Albrecht, albrecht andrzejewski wrote: The client request first hit my Servlet, then should be dispatched to a physically distant machine to be analyzed, then my Servlet should read the response of this second server, and finally send response to

Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?

2009-02-06 Thread Dave Pawson
2009/2/6 Caldarale, Charles R chuck.caldar...@unisys.com: From: Dave Pawson [mailto:dave.paw...@gmail.com] Subject: Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type? I'm coming down in favour of a valve, rather than a filter, to make it container specific,

Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?

2009-02-06 Thread Gregor Schneider
Well, I'n not Chuck, but to answer your question: On Fri, Feb 6, 2009 at 11:39 AM, Dave Pawson dave.paw...@gmail.com wrote: Is a filter the right TC tool for that Charles? Yes Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp:

RE: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?

2009-02-06 Thread Peter Crowther
From: Dave Pawson [mailto:dave.paw...@gmail.com] I'm coming down in favour of a valve, rather than a filter, to make it container specific, Which is a good reason not to use a valve. Unless you need access to Tomcat internals, use a filter. ? Unclear why Charles? To make it 'filter'

Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?

2009-02-06 Thread Robert Koberg
On Feb 6, 2009, at 10:20 AM, Dave Pawson wrote: 2009/2/6 Caldarale, Charles R chuck.caldar...@unisys.com: From: Dave Pawson [mailto:dave.paw...@gmail.com] Subject: Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type? I'm coming down in favour of a valve, rather

RE: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?

2009-02-06 Thread Caldarale, Charles R
From: Dave Pawson [mailto:dave.paw...@gmail.com] Subject: Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type? ? Unclear why Charles? 1) Filter specifications are documened. 2) Filters are not subject to change with every Tomcat release. To make it 'filter'

RE: Subcontext, filter problem.

2009-02-06 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Subcontext, filter problem. I would instead use a servlet, and map it to the appropriate URI prefix. Yes, that's what I told him to do - extend the DefaultServlet so it can target the external resources and still

Tomcat Domain for redirects

2009-02-06 Thread Christian Decker
Hi all, I'm not that good at configuring Tomcat so I thought I'd ask here. My problem is that I have a server that is running Tomcat 5.5 and an Apache server that runs on port 80 and uses mod_jk to redirect all incoming requests to the tomcat server. So far, so good. The problem is that I want

RE: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?

2009-02-06 Thread Caldarale, Charles R
From: Dave Pawson [mailto:dave.paw...@gmail.com] Subject: Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type? I'm coming down in favour of a valve, rather than a filter, to make it container specific, Which is a good reason not to use a valve. Unless you

Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?

2009-02-06 Thread Dave Pawson
2009/2/6 Caldarale, Charles R chuck.caldar...@unisys.com: From: Dave Pawson [mailto:dave.paw...@gmail.com] Subject: Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type? Unless the client specifies that one single mime type (and no other), I want to reject it

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread André Warnier
Bill Barker wrote: André Warnier a...@ice-sa.com wrote in message news:498ad66a.4080...@ice-sa.com... Mikolaj Rydzewski wrote: André Warnier wrote: if I have a webapp consistig of just a couple of classes and a WEB-INF/web.xml config file, but this web.xml file contains some parameters that

RE: servlet use. TC6, FC10

2009-02-06 Thread Peter Crowther
From: Dave Pawson [mailto:dave.paw...@gmail.com] AFAIK I don't need any resource specification. Does this mean that I can dispense with the atom/META-INF directory totally? I.e. it is redundant for this usage of Tomcat? atom |-- META-INF | |-- context.xml |-- WEB-INF . If you

Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?

2009-02-06 Thread Dave Pawson
2009/2/6 Robert Koberg r...@koberg.com: Which is a good reason not to use a valve. Unless you need access to Tomcat internals, use a filter. ? Unclear why Charles? To make it 'filter' all server traffic? AFAIK I don't need access to any internals. You seem to be making this much more

Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?

2009-02-06 Thread Dave Pawson
2009/2/5 Caldarale, Charles R chuck.caldar...@unisys.com: From: Dave Pawson [mailto:dave.paw...@gmail.com] Subject: Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type? Unless the client requests application/xml I want to refuse the request. I don't think you

Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?

2009-02-06 Thread Dave Pawson
2009/2/6 Caldarale, Charles R chuck.caldar...@unisys.com: From: Dave Pawson [mailto:dave.paw...@gmail.com] Subject: Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type? ? Unclear why Charles? 1) Filter specifications are documented. 2) Filters are not

Re: Upgrade .. a Tomcat

2009-02-06 Thread Gregor Schneider
Besides, it's Debian, and, if I'm not mistaken, it's a packaged installation. Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread André Warnier
Bill Barker wrote: This is totally Tomcat specific, so won't necessarily port if you decide to change containers (but without looking probably still works for GlassFish and JBoss). Tomcat does Ant style variable replacement when parsing web.xml (both the one in conf and the one in WEB-INF).

Re: [Tomcat] [daemon] java.lang.OutOfMemoryError unable to create new native thread

2009-02-06 Thread Rainer Jung
On 03.02.2009 16:31, Steve Cohen wrote: We have an application that runs under Tomcat under RHEL 5.0 and is launched by a jsvc daemon. It chugs along seemingly fine on several servers, yet yesterday crashed on one of them with the above exception seemingly without experiencing any kind of

RE: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?

2009-02-06 Thread Caldarale, Charles R
From: Dave Pawson [mailto:dave.paw...@gmail.com] Subject: Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type? 2.4 final or 2.5 maint release. which is TC 6 compliant to please? RTFM: http://tomcat.apache.org/ It's on the *first* page... - Chuck THIS

RE: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?

2009-02-06 Thread Caldarale, Charles R
From: Dave Pawson [mailto:dave.paw...@gmail.com] Subject: Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type? Is it TC 'configuration' I'm saying config, since it provides response mime types, params etc. Strictly speaking, it's not Tomcat configuration, but

Re: Problem with mod_jk and Tomcat Native Connectors on Solaris

2009-02-06 Thread Rainer Jung
On 02.02.2009 20:01, Jorge Medina wrote: I am having problems with the mod_jk module 1.2.26 and Tomcat Native connectors running in Solaris 10. The problem occurs in both processors x86 (64-bit) and sparc (64-bit). (The problem does not occur on RedHat EL5 64-bit). On the mod_jk

Re: Error in building mod_jk for Apache 2.2.x and Tomcat 4.x

2009-02-06 Thread Rainer Jung
On 03.02.2009 13:29, Shweta Parakh -X (shparakh - Infosys at Cisco) wrote: I am trying to build mod_jk for Apache 2.2.11 and Tomcat 4.1.39 on Solaris platform 1. Downloaded mod_jk (version 1.2.27) source from http://tomcat.apache.org/download-connectors.cgi and is kept in

RE: Tomcat Domain for redirects

2009-02-06 Thread Caldarale, Charles R
From: Christian Decker [mailto:decker.christ...@gmail.com] Subject: Tomcat Domain for redirects I have a server that is running Tomcat 5.5 and an Apache server that runs on port 80 and uses mod_jk to redirect all incoming requests to the tomcat server. So let's start at the beginning. Why

Re: And how about this mod_jk.log ?

2009-02-06 Thread Rainer Jung
On 06.02.2009 14:46, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: Because the first part of this test had to be done by a non-specialist customer on a workstation to which I did not have access, I ended up writing a simple Perl script

RE: Problem with mod_jk and Tomcat Native Connectors on Solaris

2009-02-06 Thread Jorge Medina
Hallo Rainer! Danke für dein Hilfe. I will follow your recommendation on upgrading, and I will need to learn how to configure a more verbose log and interpret them. I found out the following: - My client code (a java Axis2 client) had a timeout (I found it was 30 sec, I was

Re: Limit connections to tomcat via mod_jk

2009-02-06 Thread Rainer Jung
On 04.02.2009 14:13, ben short wrote: Hi, We have Apache Httpd 2.4.4 in front of Tomcat 6.0.13 and are using mod_jk to talk between them. Apache Httpd is using prefork configured to allow 256 processes. Tomcat also has 256 threads available. When a user requests a page one call to the Tomcat

Re: mod_jk

2009-02-06 Thread Rainer Jung
On 06.02.2009 00:34, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, Mohit Anchlia wrote: 1. Does apache read worker.properties dynamically? So if I change worker.property would it be dynamically read by mod_jk. mod_jk will not reload the workers.properties

Deadlock situation detected/avoided with jk_log_lock

2009-02-06 Thread fredk2
Hi, I was doing some stress test (with apache ab, 100 users, 100K requests) to compare an Apache prefork and worker mpm. The test url is a simple hello servlet on Tomcat 6.0.x via mod_jk. On my Sparc Solaris 10 server with only the Apache set to worker mpm I see following error messages in

Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?

2009-02-06 Thread André Warnier
Dave Pawson wrote: Thanks Andre. That paints a good picture! Only generality I'd like to add. The general purpose of my-app web.xml and 'all apps' web.xml. Is it TC 'configuration' (Chaz isn't going to like that, but I do like an overview, even if it's only 80%). I'm saying config, since it

Re: Deadlock situation detected/avoided with jk_log_lock

2009-02-06 Thread Rainer Jung
On 06.02.2009 18:13, fredk2 wrote: I was doing some stress test (with apache ab, 100 users, 100K requests) to compare an Apache prefork and worker mpm. The test url is a simple hello servlet on Tomcat 6.0.x via mod_jk. On my Sparc Solaris 10 server with only the Apache set to worker mpm I see

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread André Warnier
Mikolaj Rydzewski wrote: André Warnier wrote: start) su - tomcatuser -c /var/lib/jvm/java $CONFIDENTIAL_SETTINGS -jar All of your 'confidential settings' will be visible to all users with one command: ps aux Ooops. chown root/root /bin/ps chmod 700 /bin/ps Damn! it sounded so

Re: mod_jk

2009-02-06 Thread André Warnier
gerhardus.geldenh...@gta-travel.com wrote: 1) As far as I know, no, mod_jk does not read workers.properties dynamically. 2) Yes and no, it will not send a request unless communication has been established with the worker, it may happen that the worker fails, or someone shut it down. Depending

Re: mod_jk

2009-02-06 Thread Rainer Jung
On 06.02.2009 18:23, André Warnier wrote: gerhardus.geldenh...@gta-travel.com wrote: 1) As far as I know, no, mod_jk does not read workers.properties dynamically. 2) Yes and no, it will not send a request unless communication has been established with the worker, it may happen that the worker

Re: And how about this mod_jk.log ?

2009-02-06 Thread André Warnier
Chris, I'd just like to point out that there are two existing tools that may have helped you our a lot: wget (often installed be default on many Linuxes these days) and httping (which is not, but freely available and has a simple make compile strategy). I thought about those, but did not use

Re: Upgrade .. a Tomcat

2009-02-06 Thread André Warnier
Gregor Schneider wrote: Besides, it's Debian, and, if I'm not mistaken, it's a packaged installation. I know that, but you're the first one to mention it, and it has been 3 days since the post. So my phrasing wasn't so bad. ;-)

Re: [OT] [Tomcat] [daemon] java.lang.OutOfMemoryError unable to create new native thread

2009-02-06 Thread André Warnier
Christopher Schultz wrote: [...] Assuming Chuck has an iPhone, which has 128MB of RAM, I'm not sure I'd want to run a JVM on that server in the first place. Something tells me we've been over this before so I won't beat a dead horse. Chuck assured us, on this forum, that his phone had waaay

Re: Tomcat Domain for redirects

2009-02-06 Thread André Warnier
Christian Decker wrote: [...] As this happens in many different places I assume that the tomcat server somehow believes that he is server1 instead of server1.example.com. I'm also going to start at the beginning, but in a different way. So why don't you force Tomcat to believe he /is/

Re: [OT] [Tomcat] [daemon] java.lang.OutOfMemoryError unable to createnew native thread

2009-02-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: [OT] [Tomcat] [daemon] java.lang.OutOfMemoryError unable to createnew native thread Assuming Chuck has an iPhone, which has 128MB of

Management app start

2009-02-06 Thread Hehl, Thomas
I have a client using our software and have set up for them a user for the management app. They brought up the management app and stopped the webapp, but cannot seem to get it started again. I had them e-mail the log, but no help. This is a remote client, so I'm stuck as to what to look at next.

Re: mod_jk

2009-02-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, Rainer Jung wrote: Worth filing an enhancement request, since Mladen put the Watchdog thread into 1.2.27, we can easily add more logic of that type. Maybe ajping? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32)

Re: Fun with the JVM crashing.

2009-02-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: Bill Davidson [mailto:bill...@gmail.com] Subject: Fun with the JVM crashing. I'm thinking that the JVM shouldn't be getting SIGSEGV's. You're right about that. However, it could also be an OS or

Re: sessions lost after redeploy

2009-02-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, J Robert Ray wrote: Hello, I have an app running in tomcat 6.0.18, using the default session manager. If I stop and start tomcat, or if I use the reload button in the manager, my sessions are preserved. Good. That suggests your session

RE: [OT] [Tomcat] [daemon] java.lang.OutOfMemoryError unable to createnew native thread

2009-02-06 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: [OT] [Tomcat] [daemon] java.lang.OutOfMemoryError unable to createnew native thread Are you talking about two 512 Mbit SRAM dice? No, what's been reported on various mailing lists. Do you have a reference I could

RE: Management app start

2009-02-06 Thread Caldarale, Charles R
From: Hehl, Thomas [mailto:thomas.h...@acs-inc.com] Subject: Management app start This is a remote client, so I'm stuck as to what to look at next. How about looking at the Tomcat version, JRE/JDK in use, OS, etc. - and then telling us what they are. Or consult a psychic. - Chuck THIS

RE: Management app start

2009-02-06 Thread Hehl, Thomas
Please forgive my foolishness as it is Friday afternoon and my brain must already be on weekend.:) Tomcat=6.0 Java=1.6 Redhat Linux 3.something. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Friday, February 06, 2009 1:49 PM To: Tomcat Users

Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?

2009-02-06 Thread André Warnier
Dave Pawson wrote: 2009/2/6 Caldarale, Charles R chuck.caldar...@unisys.com: From: Dave Pawson [mailto:dave.paw...@gmail.com] Subject: Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type? Unless the client specifies that one single mime type (and no other), I

Re: mod_jk

2009-02-06 Thread fredk2
Hi Rainer, your comment about the watchdog sounds interesting. When you load balance it would seem useful to get feedback from Tomcat itself about its load so that the module can adjust dynamically its load (lbfactor) based on the Tomcat's performance rather than a session/socket count. One can

Can Tomcat accomplish this?

2009-02-06 Thread Christopher Long
Hello: I was just wondering if Tomcat is able to do something similar to what I've described below. If not, does anyone have any recommendations on a Web Server that can? I'm attempting to find a web server that can basically act as a hub. Say if someone attempts to send a SOAP request to

Re: Deadlock situation detected/avoided with jk_log_lock

2009-02-06 Thread fredk2
Thanks Rainer, Do I understand you correctly that when Mr. Orton said to never use pthread nor posixsem mutex (http://marc.info/?l=apr-devm=108720968023158w=2) that is now obsolete news and that Solaris perfected pthread mutex support since. You mention that mod_jk uses pthread is that the same

Re: Should I use the -server switch?

2009-02-06 Thread Bill Davidson
Caldarale, Charles R wrote: Most of the 64-bit Sun JVMs come only in -server mode, no -client version. Run java -version (without the quotes) to see what the default mode is. Checking that... $ ./java -version java version 1.6.0_11 Java(TM) SE Runtime Environment (build 1.6.0_11-b03) Java

Re: Fun with the JVM crashing.

2009-02-06 Thread Bill Davidson
Caldarale, Charles R wrote: Only if that shows up repeatedly. It does. I'm thinking that the JVM shouldn't be getting SIGSEGV's. You're right about that. However, it could also be an OS or hardware problem. You might want to run some serious memory tests on the box, just to eliminate

RE: Fun with the JVM crashing.

2009-02-06 Thread Caldarale, Charles R
From: Bill Davidson [mailto:bill...@gmail.com] Subject: Re: Fun with the JVM crashing. However, it has happened on three different boxes, always with the same CompileTask mentioned. That pretty much eliminates hardware. BTW, it also happened with 6u10. Major changes went in between 6u7

Re: Fun with the JVM crashing.

2009-02-06 Thread Bill Davidson
Caldarale, Charles R wrote: Major changes went in between 6u7 and 6u10. Maybe I should try reverting to 6u7? I'm wondering if -Xint might help. Only if you want performance to go into the toilet - that's interpreter mode, also know as really, really, abominably slow. I was thinking it

Re: Fun with the JVM crashing.

2009-02-06 Thread Bill Davidson
Bill Davidson wrote: Caldarale, Charles R wrote: Major changes went in between 6u7 and 6u10. Maybe I should try reverting to 6u7? Dammit. Looking back through my old hs_err*.log files, it also happened with 6u7. - To

RE: Fun with the JVM crashing.

2009-02-06 Thread Caldarale, Charles R
From: Bill Davidson [mailto:bill...@gmail.com] Subject: Re: Fun with the JVM crashing. Maybe I should try reverting to 6u7? That would be my next step. I was thinking it might make the CompileTask issue go away. Well it does, because the JVM won't use the compilers in interpreter mode.

RE: Can Tomcat accomplish this?

2009-02-06 Thread Jorge Medina
Maybe an ESB ? (like Mule) -Original Message- From: Christopher Long [mailto:kord...@gmail.com] Sent: Friday, February 06, 2009 2:19 PM To: users@tomcat.apache.org Subject: Can Tomcat accomplish this? Hello: I was just wondering if Tomcat is able to do something similar to what I've

RE: Fun with the JVM crashing.

2009-02-06 Thread Caldarale, Charles R
From: Caldarale, Charles R Subject: RE: Fun with the JVM crashing. Maybe I should try reverting to 6u7? That would be my next step. You could install a 32-bit JVM; that would give you the option of running either -server or -client. If the 32-bit -server mode crashes, you can try

Re: Can Tomcat accomplish this?

2009-02-06 Thread Christopher Long
Unfortunately we're not looking for an ESB. We're looking specifically for a Web Server. Does anyone know if mod_jk will handle this type of thing? I'm attempting to find a web server that can basically act as a hub. Say if someone attempts to send a SOAP request to http://1.1.1.1/message1 it

Re: Fun with the JVM crashing.

2009-02-06 Thread Alan Chaney
Hi Bill My development workstation is a 64 bit Ubuntu 8.04. I've had numerous problems with SIGSEGV crashes when I run my applications under Eclipse 3.3, but the same machine also runs the same applications from the same version(s) of tomcat (6.0.14,6.0.16 and 6.0.18) I found that what seemed

Re: Can Tomcat accomplish this?

2009-02-06 Thread Ken Bowen
I may be missing something here, but it strikes me that this requirement has nothing to do with a web server in particular, and everything to do with the application code which you write to accomplish what you describe. On Feb 6, 2009, at 3:41 PM, Christopher Long wrote: Unfortunately we're

RE: Can Tomcat accomplish this?

2009-02-06 Thread Caldarale, Charles R
From: Christopher Long [mailto:kord...@gmail.com] Subject: Re: Can Tomcat accomplish this? Unfortunately we're not looking for an ESB. That's too bad, because that's certainly what your requirement statement sounds like. We're looking specifically for a Web Server. There's no web server

Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?

2009-02-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Pawson wrote: Only one aspect of security Rob. As needed I'll look at others later. Can you suggest alternatives to achieve what I want, rather than something else? Instead of using Accept header with a magic content-type, how about

Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?

2009-02-06 Thread Robert Koberg
On Feb 6, 2009, at 4:45 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Pawson wrote: Only one aspect of security Rob. As needed I'll look at others later. Can you suggest alternatives to achieve what I want, rather than something else? Instead of

Classloaders

2009-02-06 Thread Jorge Medina
In server.xml , a Server may contain multiple Service elements. Each Service can define multiple Connectors but a single Engine. Each Engine can define multiple Hosts. How does this relate to the classloaders -if at all- ? I couldn't find any reference about it on:

RE: Classloaders

2009-02-06 Thread Caldarale, Charles R
From: Jorge Medina [mailto:jmed...@e-dialog.com] Subject: Classloaders How does this relate to the classloaders -if at all- ? It doesn't. Would Tomcat create a classloader per each Host ? Engine ? or Service? Nope. If I define two Services, are they isolated by different classloaders?

Re: Can Tomcat accomplish this?

2009-02-06 Thread János Löbb
On Feb 6, 2009, at 3:55 PM, Caldarale, Charles R wrote: From: Christopher Long [mailto:kord...@gmail.com] Subject: Re: Can Tomcat accomplish this? Unfortunately we're not looking for an ESB. That's too bad, because that's certainly what your requirement statement sounds like. We're

Re: sessions lost after redeploy

2009-02-06 Thread J Robert Ray
On Fri, Feb 6, 2009 at 10:41 AM, Christopher Schultz ch...@christopherschultz.net wrote: But if I copy a new .war into webapps, or touch the existing .war, so that my app redeploys, my sessions are deleted. Are you sure that simply 'touch'ing the existing WAR causes your sessions to die? I

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread Mikolaj Rydzewski
André Warnier wrote: chown root/root /bin/ps chmod 700 /bin/ps User can build his own ps binary. Security by obscurity is not a good way to go. -- Mikolaj Rydzewski m...@ceti.pl - To unsubscribe, e-mail:

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread André Warnier
Mikolaj Rydzewski wrote: André Warnier wrote: chown root/root /bin/ps chmod 700 /bin/ps User can build his own ps binary. Security by obscurity is not a good way to go. I was just kidding. ;-) I'd still like to make it work though. It looks like such a nice way to solve the problem, apart

About logging

2009-02-06 Thread Mohit Anchlia
I have a problem that I haven't resolved yet around logging. I have log4j within my application, what I see is that every log line is written to my log file specified in log4j (as expected) but there is also one entry in catalina.out. I had asked this question in the thread

Re: mod_jk

2009-02-06 Thread Mohit Anchlia
Sorry I am little confused about couple of things: 1. Based on what I read it looks like workers.properties is not loaded dynamically. And JkMountFileReload doesn't work for worker.properties but it works for uriworkermap.properties. 2. Wouldn't setting prepost timeout ensure that a check is made

RE: [OT] [Tomcat] [daemon] java.lang.OutOfMemoryError unable to createnew native thread

2009-02-06 Thread Caldarale, Charles R
From: Caldarale, Charles R Subject: RE: [OT] [Tomcat] [daemon] java.lang.OutOfMemoryError unable to createnew native thread No, what's been reported on various mailing lists. Looks like the true RAM on the iPhone is indeed just 128 MB, embedded in the same chip carrier as the ARM processor;

Running Derby on Tomcat

2009-02-06 Thread michel
Hi, I've been trying to get Derby running on Tomcat with no luck. When I try to get a java server page to connect it keeps telling me that it can't find the derby client driver. I start Tomcat with this: #!/bin/sh JAVA_HOME=/lib/sun-jdk-1.5.0 JAVA_OPTS=-server

RE: Management app start

2009-02-06 Thread Caldarale, Charles R
From: Hehl, Thomas [mailto:thomas.h...@acs-inc.com] Subject: RE: Management app start Tomcat=6.0 Java=1.6 Redhat Linux 3.something. They brought up the management app and stopped the webapp, but cannot seem to get it started again. I had them e-mail the log, but no help. Do you know

RE: Running Derby on Tomcat

2009-02-06 Thread Caldarale, Charles R
From: michel [mailto:compu...@videotron.ca] Subject: Running Derby on Tomcat export CLASSPATH=$CLASSPATH:$DERBY_INSTALL/lib/derby.jar:$DERBY_INSTA LL/lib/derbyclient.jar:$DERBY_INSTALL/lib/derbytools.jar:. Don't ever, ever, ever set CLASSTPATH for use with Tomcat. Any jars needed by

Re: Running Derby on Tomcat

2009-02-06 Thread michel
Chuck, Thanks! I am using the default tomcat for my hosting and it has the classpath in the default startup. I am wondering if that isn't a reason for all the weird problems. Thanks again! - Original Message - From: Caldarale, Charles R chuck.caldar...@unisys.com To: Tomcat

  1   2   >