Re: Best practice to upgrade (redeploy) .war files

2010-09-02 Thread Rainer Frey
On Monday 30 August 2010 12:55:19 Rainer Frey wrote: > Hi, It's not normally my style, but is there really no feedback on this topic? Does anyone use explicit hot deployment with Tomcat Manager in production? How do you actually upgrade deployed applications? And if you use cold deployment onl

RE: Tomcat Web App - Strange Issue - Need 2 restarts for SSO mode to work

2010-09-02 Thread AVSUNIL
Tomcat ver 5.0.19 JVM 1.5 Linux platform No exceptions in logs Single SIgn On mode works through a load balancer Normal mode URL hits the individual server directly In below mail, the jsp name was put incorrectly. It is always invoking myapp.jsp >From the web.xml I infer that if listings or 404

Re: Tomcat dies after starting

2010-09-02 Thread jan gestre
On Thu, Sep 2, 2010 at 10:52 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jan, > > On 9/2/2010 2:42 AM, jan gestre wrote: >> I'm the only user of this dedicated machine, it's not yet in >> production that's why I'm quite sure :). Even the init scripts logs >

[email] Dynamic attachments in mailer taglib 2 using JavaBean

2010-09-02 Thread Ferindo Middleton
I've written a javabean that connects to a database, downloads a file, and one of the getter methods returns the complete file path to the file. The problem I have is: when the JSP runs and gets to the part where it gets the file path to pass to the taglib, I get an error message that is typical o

Re: Host Manager.

2010-09-02 Thread Wesley Acheson
Looked at that before not really convinced reworking that is easier than adding in an xml line or two via an xml writer. Willing to be convinced though. Wes On 9/3/10, Pid wrote: > On 02/09/2010 21:06, Caldarale, Charles R wrote: >>> From: Wesley Acheson [mailto:wesley.ache...@gmail.com] >>> Su

Re: Host Manager.

2010-09-02 Thread Pid
On 02/09/2010 21:06, Caldarale, Charles R wrote: >> From: Wesley Acheson [mailto:wesley.ache...@gmail.com] >> Subject: Host Manager. > >> Is there is no documentation for the host-manager? > > Very little that I've found. You can learn a bit about it by looking at its > WEB-INF/web.xml file. >

Re: Phantom Sessions

2010-09-02 Thread Paul Szynol
Hey, Pid, A few a day. Seems fairly random, which would support the bot theory. But the sessions don't show up in batches, which is the behavior I typically see from bots. Paul On 9/2/10 7:27 PM, Pid wrote: On 02/09/2010 23:20, Paul Szynol wrote: Hi, Chris, Thanks for your response.

Re: Phantom Sessions

2010-09-02 Thread Pid
On 02/09/2010 23:20, Paul Szynol wrote: > > Hi, Chris, > > Thanks for your response. I do get those requests, but it seems they > always generate standard user agent information, which I then store in > the associated session object. These session objects don't have any > user agent information

Re: Phantom Sessions

2010-09-02 Thread Paul Szynol
Hi, Chris, Thanks for your response. I do get those requests, but it seems they always generate standard user agent information, which I then store in the associated session object. These session objects don't have any user agent information--that's why I am wondering if they're generated

Re: Host Manager.

2010-09-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, On 9/2/2010 5:40 PM, Jeffrey Janner wrote: > I'd be happy if it just wrote out a new file based on the settings at > the time I said save -- damn the comments. > At least then, it's a pretty straight-forward bit of save code. > But, if you're

Re: Phantom Sessions

2010-09-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 9/2/2010 5:10 PM, Paul Szynol wrote: > I don't have the minor version information, but it's Tomcat 6. Each > session object is added to a ConcurrentHashMap when SessionListener's > sessionCreated() is invoked. You likely have a default page

Re: java.net.BindException: Address already in use

2010-09-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 9/2/2010 2:41 PM, Paul Bourget wrote: > I am not clear on the question as I inserted the log file in the early > emails. I meant: what does your system /perform/ on boot... not what are the effects. For example: what startup script launches

Re: Question on SSI

2010-09-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wesley, On 9/2/2010 3:30 PM, Wesley Acheson wrote: > On Thu, Sep 2, 2010 at 9:22 PM, Wesley Acheson > wrote: > Far too much. :) You're very kind to explain everything in detail. > Anyway I'm also interested in the ; mime types if anyone has any be

RE: Host Manager.

2010-09-02 Thread Caldarale, Charles R
> From: Wesley Acheson [mailto:wesley.ache...@gmail.com] > Subject: Re: Host Manager. > Honestly I thought there was more than one going from this > http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html The files should be created automatically - but only when needed. > I've just c

RE: Host Manager.

2010-09-02 Thread Jeffrey Janner
I'd be happy if it just wrote out a new file based on the settings at the time I said save -- damn the comments. At least then, it's a pretty straight-forward bit of save code. But, if you're one of those who has to save the commentary that's already there, then have fun. Jeff > -Original Mess

Re: pick load

2010-09-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexandre, On 9/2/2010 1:49 PM, Alexandre Chapellon wrote: > Yes to me too, but what's weired is that thoose errors enver appears > under normal load... this really drives me crazy! I would bet that there's an exception being caught and re-thrown wit

Re: Host Manager.

2010-09-02 Thread Wesley Acheson
On Thu, Sep 2, 2010 at 10:06 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Wesley Acheson [mailto:wesley.ache...@gmail.com] > > > How many people would be interested in it persisting its > > settings, by editing the appropriate files. > > I would be interested. Note t

Re: Phantom Sessions

2010-09-02 Thread Paul Szynol
I don't have the minor version information, but it's Tomcat 6. Each session object is added to a ConcurrentHashMap when SessionListener's sessionCreated() is invoked. Best, Paul On 9/2/10 5:01 PM, Caldarale, Charles R wrote: From: Paul Szynol [mailto:paul.szy...@gmail.com] On Behalf Of P

RE: Phantom Sessions

2010-09-02 Thread Caldarale, Charles R
> From: Paul Szynol [mailto:paul.szy...@gmail.com] On Behalf Of Paul Szynol > Subject: Phantom Sessions > I've recently noticed "phantom" session objects on one of > my Tomcat webapps. Tomcat version? What are you using to observe these sessions? - Chuck THIS COMMUNICATION MAY CONTAIN CONFI

Phantom Sessions

2010-09-02 Thread Paul Szynol
I've recently noticed "phantom" session objects on one of my Tomcat webapps. These sessions have no IP addresses and their sole URI request is always for "/". I am not sure if this is a sign of a problem, or how to trace it--has anyone else encountered something similar? Best wishes, Paul

Re: Host Manager.

2010-09-02 Thread Wesley Acheson
On Thu, Sep 2, 2010 at 10:42 PM, Jordan Michaels wrote: > I'd be interested as well. I've actually been meaning to get to this myself > and submit a patch to make the changes persist, but my schedule has been too > hectic for any extra-curricular work recently. If you don't (and I'm hoping > you w

Re: Host Manager.

2010-09-02 Thread Jordan Michaels
I'd be interested as well. I've actually been meaning to get to this myself and submit a patch to make the changes persist, but my schedule has been too hectic for any extra-curricular work recently. If you don't (and I'm hoping you will)... I will get to it eventually. ;) -Jordan On 09/02/20

Re: FileUploadBase$IOFileUploadException

2010-09-02 Thread Paul Szynol
Hey, André, Thanks for your note. After his second email, I understood better Konstantin's point (there are subsequent exchanges, after the one you're quoting), and I agree with you and him that the exception seems related to a file system permission issue. - when it starts doing this (wri

RE: Host Manager.

2010-09-02 Thread Caldarale, Charles R
> From: Wesley Acheson [mailto:wesley.ache...@gmail.com] > Subject: Host Manager. > Is there is no documentation for the host-manager? Very little that I've found. You can learn a bit about it by looking at its WEB-INF/web.xml file. > If I remember correctly from this list it doesn't persist

Re: FileUploadBase$IOFileUploadException

2010-09-02 Thread André Warnier
Paul Szynol wrote: Chris, I agree. "Exceeds threshold size" or something along those lines would be a lot more helpful. Paul I believe that you missed Konstantin's message, and that consequently you may have a false sense of security and a false sense of having found the correct solution an

Host Manager.

2010-09-02 Thread Wesley Acheson
Few Questions Is there is no documentation for the host-manager? If I remember correctly from this list it doesn't persist its settings is that correct? How many people would be interested in it persisting its settings, by editing the appropriate files. Final question. Is that in theory possib

Re: Question on SSI

2010-09-02 Thread Wesley Acheson
On Thu, Sep 2, 2010 at 9:22 PM, Wesley Acheson wrote: Far too much. Anyway I'm also interested in the ; mime types if anyone has any better reference. Also what does tomcat do if serving a static file with an unlisted extension?

Re: Question on SSI

2010-09-02 Thread Wesley Acheson
On Thu, Sep 2, 2010 at 6:45 AM, Marc Chamberlin wrote: > > Perhaps this does say it, Wesley, but I am going to argue that, like a lot of > documentation, too much is assumed about the readers level of background > understanding. Maybe if you could come up with some concrete suggestions then I t

RE: java.net.BindException: Address already in use

2010-09-02 Thread Paul Bourget
I am not clear on the question as I inserted the log file in the early emails. Paul Paul Bourget Isabella Products -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, August 31, 2010 3:21 PM To: Tomcat Users List Subject: Re: java.net.Bin

Re: [OT] FileUploadBase$IOFileUploadException

2010-09-02 Thread Paul Szynol
Hey, Chris, Thanks for your note. java.io.tmpdir has the same value as the temp dir set up in catalina.sh, which is a subdirectory of Tomcat, and which Tomcat is permitted to access (r and w). Your point about writing to disk twice is well taken. As far as I can tell, fileupload doesn't g

Re: pick load

2010-09-02 Thread Alexandre Chapellon
Le jeudi 02 septembre 2010 à 11:22 -0400, Christopher Schultz a écrit : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Alexandre, > > On 9/2/2010 12:08 AM, Alexandre Chapellon wrote: > > Forget about it this doesn't seems to be related to the jk connector. > > Right: the jk connector can

Re: URL rewrite

2010-09-02 Thread Felix Schumacher
Am Donnerstag, den 02.09.2010, 09:49 -0700 schrieb Mohit Anchlia: > On Thu, Sep 2, 2010 at 9:35 AM, michel wrote: > > > > - Original Message - From: "Mohit Anchlia" > > To: "Tomcat Users List" > > Sent: Thursday, September 02, 2010 12:25 PM > > Subject: Re: URL rewrite > > > > > >> On We

Re: unusual mod_jk 1.2.30 log messages

2010-09-02 Thread Brett Delle Grazie
On Thu, 2010-09-02 at 12:39 +0100, Brett Delle Grazie wrote: > Hi, > > We're having some strange errors being reported in the 1.2.30 version of > mod_jk. We think they might be related to the performance issues we're > experiencing under load. > > OS: RHEL 5.5 (fully patched) > Apache HTTPD: 2.2

Re: Question on SSI

2010-09-02 Thread Marc Chamberlin
On 9/1/2010 7:01 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marc, On 9/1/2010 6:52 PM, Marc Chamberlin wrote: On 9/1/2010 1:49 PM, Christopher Schultz wrote: You will have to use filter mapping in order to post-process your .jsp and other dynamic pages: a

RE: URL rewrite

2010-09-02 Thread Maximilian Stocker
This sounds bad... :( There are options like: - you could set up apache in front of tomcat and url rewrite there - you could use filters - you could have an app that actually uses any servlets.. But maybe you want to consider a forum or discussion list about servlet/jsp development? __

Re: [OT] clear text keystore password in server.xml

2010-09-02 Thread Pid
On 02/09/2010 17:31, Christopher Schultz wrote: > Pid, > > On 9/2/2010 11:51 AM, Pid wrote: >>> On 9/2/2010 11:28 AM, Christopher Schultz wrote: 1. Use a password entered on the console during start-up (the "Apache httpd strategy") > >> java.io.Console makes this easy in Java 6, but

RE: URL rewrite

2010-09-02 Thread Maximilian Stocker
Mohit, Have you really not heard of servlet mapping before? Are you sure you are using Tomcat and not just Apache webserver? Max Stocker|Director of Technology|TalentOyster|O) 416.342.1145 x 297 www.TalentOyster.com TalentOyster.com: talent for the New Mainstream

Re: URL rewrite

2010-09-02 Thread Mohit Anchlia
On Thu, Sep 2, 2010 at 9:35 AM, michel wrote: > > - Original Message - From: "Mohit Anchlia" > To: "Tomcat Users List" > Sent: Thursday, September 02, 2010 12:25 PM > Subject: Re: URL rewrite > > >> On Wed, Sep 1, 2010 at 6:21 PM, Hassan Schroeder >> wrote: Is there a way to c

RE: clear text keystore password in server.xml

2010-09-02 Thread George Sexton
> -Original Message- > From: David kerber [mailto:dcker...@verizon.net] > Sent: Thursday, September 02, 2010 9:37 AM > To: Tomcat Users List > Subject: Re: clear text keystore password in server.xml > > On 9/2/2010 11:28 AM, Christopher Schultz wrote: > > -BEGIN PGP SIGNED MESSAGE-

Re: URL rewrite

2010-09-02 Thread michel
- Original Message - From: "Mohit Anchlia" To: "Tomcat Users List" Sent: Thursday, September 02, 2010 12:25 PM Subject: Re: URL rewrite On Wed, Sep 1, 2010 at 6:21 PM, Hassan Schroeder wrote: Is there a way to change the URL for eg: http://abc.com/a to http://abc.com/b/a http:

Re: [OT] clear text keystore password in server.xml

2010-09-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 9/2/2010 11:51 AM, Pid wrote: >> On 9/2/2010 11:28 AM, Christopher Schultz wrote: >>> 1. Use a password entered on the console during start-up (the "Apache >>> httpd strategy") > > java.io.Console makes this easy in Java 6, but... Right:

Re: URL rewrite

2010-09-02 Thread Mohit Anchlia
On Wed, Sep 1, 2010 at 7:04 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mohit, > > On 9/1/2010 9:10 PM, Mohit Anchlia wrote: >> Tomcat 6: >> >> Is there a way to change the URL for eg: >> >> http://abc.com/a >> >> to >> >> http://abc.com/b/a > > Sure: > > C

Re: unusual mod_jk 1.2.30 log messages

2010-09-02 Thread Rainer Jung
On 02.09.2010 13:39, Brett Delle Grazie wrote: Hi, We're having some strange errors being reported in the 1.2.30 version of mod_jk. We think they might be related to the performance issues we're experiencing under load. OS: RHEL 5.5 (fully patched) Apache HTTPD: 2.2.3 (from OS vendor) mod_jk:

Re: URL rewrite

2010-09-02 Thread Mohit Anchlia
On Wed, Sep 1, 2010 at 6:21 PM, Hassan Schroeder wrote: >> Is there a way to change the URL for eg: >> >> http://abc.com/a >> to >> http://abc.com/b/a > > http://lmgtfy.com/?q=tomcat+url+rewrite > Is URL rewrite module inbuilt or is there something that need to get loaded > -- > Hassan Schroeder -

Re: clear text keystore password in server.xml

2010-09-02 Thread Pid
On 02/09/2010 16:37, David kerber wrote: > On 9/2/2010 11:28 AM, Christopher Schultz wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Luca, >> >> On 8/30/2010 2:42 AM, Luca Gervasi wrote: >>> I'm working to secure this, but...it's not too easy (and i'm surely not >>> a skilled progr

RE: Tomcat dies after starting

2010-09-02 Thread Caldarale, Charles R
> From: jan gestre [mailto:ipcopper...@gmail.com] > Subject: Re: Tomcat dies after starting > I'm the only user of this dedicated machine, it's not yet in > production that's why I'm quite sure :). Even the init scripts logs > tells that Tomcat is started only to find out that it's not actually >

RE: Slow "network" with additional Connector (Port) in tomcat

2010-09-02 Thread Caldarale, Charles R
> From: Yoav Naveh [mailto:yoavna...@gmail.com] > Subject: Re: Slow "network" with additional Connector (Port) in tomcat > Some more information: > Tomcat is using OpenJdk6, on Ubuntu 8.04 You still haven't told us the Tomcat version you're using. > I have attached my server.xml file. There ar

Re: clear text keystore password in server.xml

2010-09-02 Thread David kerber
On 9/2/2010 11:28 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Luca, On 8/30/2010 2:42 AM, Luca Gervasi wrote: I'm working to secure this, but...it's not too easy (and i'm surely not a skilled programmer...). But I hope this topic will be kept up! There is vi

Re: A little trouble with SSL

2010-09-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrea, On 8/29/2010 10:39 PM, Andrea Freire wrote: > There are the configuration files. Your attachments were stripped by the list. Please paste them inline and try again. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comm

Re: clear text keystore password in server.xml

2010-09-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Luca, On 8/30/2010 2:42 AM, Luca Gervasi wrote: > I'm working to secure this, but...it's not too easy (and i'm surely not > a skilled programmer...). > > But I hope this topic will be kept up! There is virtually nothing you can do about this. The onl

Re: pick load

2010-09-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexandre, On 9/2/2010 12:08 AM, Alexandre Chapellon wrote: > Forget about it this doesn't seems to be related to the jk connector. Right: the jk connector can be tweaked separately. You appear to have other problems. > I have the same problems when

RE: Tomcat Web App - Strange Issue - Need 2 restarts for SSO mode to work

2010-09-02 Thread Caldarale, Charles R
> From: Sunil A V [mailto:sunil...@infosys.com] > Subject: Tomcat Web App - Strange Issue - Need 2 restarts for SSO mode to work Tomcat version? JVM level? Platform? Anything of interest in the Tomcat logs? > The web application is available through 2 modes of links - > one is regular without

Re: Slow "network" with additional Connector (Port) in tomcat

2010-09-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yoav, On 9/2/2010 2:22 AM, Yoav Naveh wrote: > Tomcat is using OpenJdk6, on Ubuntu 8.04 I have attached my > server.xml file. The only thing that comes to mind is that I set a > relatively low accept-count for the other port. I think we tested > witho

Re: Tomcat dies after starting

2010-09-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jan, On 9/2/2010 2:42 AM, jan gestre wrote: > I'm the only user of this dedicated machine, it's not yet in > production that's why I'm quite sure :). Even the init scripts logs > tells that Tomcat is started only to find out that it's not actually > r

Re: [OT] FileUploadBase$IOFileUploadException

2010-09-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 9/1/2010 11:27 PM, Paul Szynol wrote: > I checked the temp directory in catalina.sh and also by adding this line > to the the ContextListener class: > > System.out.println("Temp dir: " > + (event.getServletContext() >

Tomcat Web App - Strange Issue - Need 2 restarts for SSO mode to work

2010-09-02 Thread Sunil A V
Hi, We have a web application deployed on Tomcat server and is working pretty fine, except in one mode. The web application is available through 2 modes of links - one is regular without load balacer and other is Single Sign On based through load balancer. The normal mode works fine with one st

RE: What is default value of CATALINA_OPTS at apache-tomcat-6.0.29?

2010-09-02 Thread Caldarale, Charles R
> From: takanobu watanabe [mailto:rreedd...@gmail.com] > Subject: Re: What is default value of CATALINA_OPTS at apache-tomcat-6.0.29? > But when jconsole try to connect remote target host, JVM down. > # Java VM: OpenJDK Core VM (1.6.0_0-b11 interpreted mode linux-arm) That is a very, very old r

unusual mod_jk 1.2.30 log messages

2010-09-02 Thread Brett Delle Grazie
Hi, We're having some strange errors being reported in the 1.2.30 version of mod_jk. We think they might be related to the performance issues we're experiencing under load. OS: RHEL 5.5 (fully patched) Apache HTTPD: 2.2.3 (from OS vendor) mod_jk: 1.2.30 (downloaded from Tomcat site and compiled

Deploy and initialize webapps before listening sockets are created?

2010-09-02 Thread Ossi
Hi! Is it possible to configure Tomcat first to deploy all the webapps and create listening socket after that? The problem is following: after Tomcat prints this line: 2010-09-01 09:07:46,454 INFO [main] (org.apache.coyote.ajp.AjpAprProtocol) Initializing Coyote AJP/1.3 on ajp-foo-1%2F192.168.0.

Re: What is default value of CATALINA_OPTS at apache-tomcat-6.0.29?

2010-09-02 Thread Rainer Jung
On 02.09.2010 07:12, takanobu watanabe wrote: Hello Rainer, Thanks detailed explain. and now I use jconsole to measuring. But when jconsole try to connect remote target host, JVM down. Probably it is not tomcat issue,I think. Yeah, looks like a JVM issue. If you file a bug there, provide the

Re: Tomcat 7.0 API reference mismatch

2010-09-02 Thread Mark Thomas
On 02/09/2010 03:37, Christopher Schultz wrote: > Tomcat Folks, > > I was looking at the Tomcat 7.0 documentation this evening and I see > that the links to the various Sun/Oracle API documentation are out of > date: they reference the servlet 2.5 APIs and the JSP 2.1 APIs. Those should be fixed

Re: META - Thread Hijacking

2010-09-02 Thread Pid
On 02/09/2010 01:47, Len Popp wrote: > On Wed, Sep 1, 2010 at 19:08, Konstantin Kolinko > wrote: >> Have you ever searched the list archives? > > Good idea... > http://tomcat.markmail.org/search/?q=hijack#query:hijack%20list%3Aorg.apache.tomcat.users+page:1+state:facets > More than 700 messages!