Surprising auto-(un)deploy behavior

2009-03-31 Thread Rainer Frey (Inxmail GmbH)
Hi, I just noticed a surprising behavior change between Tomcat 5.0 and Tomcat 6.0.18 regarding auto-undeployment of war files. I use both versions in default configuration, which means autoDeploy and unpackWARs are both true. (I don't think this matters much, but I tried this with Mac OS X and

Re: mod_jk : recovery_options

2009-03-31 Thread Rainer Jung
On 30.03.2009 22:24, Jorge Medina wrote: I did not get any response to my questions, but from previous messages (posted by Rainer Jung) I believe that using the default values for retry and recovery_options may produce the unexpected result I was having. I changed the recovery_options on my

Re: SEVERE: Null component Catalina:type=DataSource

2009-03-31 Thread Yassine
hi Alexandr, listing the arrserv-rt.jar classes shows the following: http://rafb.net/p/FPcEW459.html which was a surprise to me ( i did not knew that appserv-rt.jar) is bundeling this much org.apache.catalina.* classes in theory this should not matter, since each application's classloader is

Re: Surprising auto-(un)deploy behavior

2009-03-31 Thread Mark Thomas
Rainer Frey (Inxmail GmbH) wrote: In Tomcat 6.0 deployment works the same, but when I delete the war file, the application is undeployed and the expanded directory is deleted. Is this change documented somewhere, Doesn't look like it and is there a way to get the old behavior with tomcat

Re: Surprising auto-(un)deploy behavior

2009-03-31 Thread Gregor
tc 6 will definately use the latest deployment-descriptor - tested here with tc 6 on debian. however,if you delete the war, the spp will be undeployed rgds gregor Am 31.03.2009 um 09:42 schrieb Mark Thomas ma...@apache.org: Rainer Frey (Inxmail GmbH) wrote: In Tomcat 6.0 deployment works

Re: Surprising auto-(un)deploy behavior

2009-03-31 Thread Rainer Frey (Inxmail GmbH)
On Tuesday 31 March 2009 09:42:58 Mark Thomas wrote: Rainer Frey (Inxmail GmbH) wrote: In Tomcat 6.0 deployment works the same, but when I delete the war file, the application is undeployed and the expanded directory is deleted. Is this change documented somewhere, Doesn't look like it

Re: Surprising auto-(un)deploy behavior

2009-03-31 Thread Gregor Schneider
On Tue, Mar 31, 2009 at 10:56 AM, Rainer Frey (Inxmail GmbH) rainer.f...@inxmail.de wrote: Then, is this intended behavior, or a bug? Rainer Making a long story short: It's expected behaviour. From the Tomcat 6 documentation (http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html):

Re: Hosting Recommendations.

2009-03-31 Thread Wesley Acheson
Thanks for all the links everyone I'll look at them all. Regards, Wesley Acheson On Tue, Mar 31, 2009 at 2:21 AM, Ben Stringer b...@burbong.com wrote: Hi Wesley, I've used Rimuhosting for a few years now. Their customer service is good, and they have Java devs on staff, so they know what

Re: SEVERE: Null component Catalina:type=DataSource

2009-03-31 Thread Alexandr Khlystov
I'm not the person added this jar to project, I'll answer this later. As I understand problem is in duplicated 'tomcat' classes, Maybe I'll try to just remove them. Anyway I'll report the result here. On Tue, Mar 31, 2009 at 2:31 PM, Yassine elas...@users.sourceforge.netwrote: hi Alexandr,

Re: WebApp configuration best practice?

2009-03-31 Thread Pid
Josh McDonald wrote: Hi guys, First, apologies if this is off-topic for the Tomcat list! If so, where should I ask it? My question is simple (I hope). What's the best practice when: 1) you're distributing a .war file 2) the app needs some simple configuration information Customise your

RE: WebApp configuration best practice?

2009-03-31 Thread Ilya Kazakevich
Use context, and IT would be able to configure your app outside of war file. http://tomcat.apache.org/tomcat-6.0-doc/config/context.html -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Tuesday, March 31, 2009 2:58 PM To: Tomcat Users List Subject: Re: WebApp

CPU usage with APR and connectionTimeout impact

2009-03-31 Thread yann grostete
Hello, In my project, we are using Tomcat 6.0.18, with APR 1.2.12 and tc native 1.1.14 on an Redhat OS (Linux kernel 2.6.18). There is a behavior that I can't explain: -with connectionTimeout=0, the process tomcat uses a huge percentage of CPU, even if there is no traffic. but we doesn't

Renegotiate SSL connection in servlet

2009-03-31 Thread André Cruz
Hello all. I'm coding a servlet that does SSL client cert authentication. The requests already arrive on a SSL connector but for this servlet in particular the SSL connection needs to be renegotiated to ask for a client certificate. Is there anyway to do this inside a servlet? With or

Re: Renegotiate SSL connection in servlet

2009-03-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 3/31/2009 9:28 AM, André Cruz wrote: I'm coding a servlet that does SSL client cert authentication. The requests already arrive on a SSL connector but for this servlet in particular the SSL connection needs to be renegotiated to ask for

Re: Renegotiate SSL connection in servlet

2009-03-31 Thread André Cruz
On Mar 31, 2009, at 14:44 , Christopher Schultz wrote: On 3/31/2009 9:28 AM, André Cruz wrote: I'm coding a servlet that does SSL client cert authentication. The requests already arrive on a SSL connector but for this servlet in particular the SSL connection needs to be renegotiated to ask for

Profiling tomcat applications with -Xrunhprof (Tomcat runs as a Windows Service)

2009-03-31 Thread Haase, Johannes | SCARUS
Hi folks! We have a web application that runs on tomcat 5.5. It`s an productive envrionment. Tomcat 5.5 is installed as a Service on a Windows Server 2003. I have started the tomcat with the java option -Xrunhprof:heap=sites,depth=10,file=C:\hprof.txt. These settings I have done by the

Re: Replicated context is failing...or not ?

2009-03-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, On 3/30/2009 5:18 PM, Filip Hanik - Dev Lists wrote: remove the 'docBase' attribute from context.xml +1 And remove the path, too, since Tomcat will use the name of the WAR (or directory) for the app's name. - -chris -BEGIN PGP

Re: [OT] Slow servlet response under WinXP Pro

2009-03-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, On 3/30/2009 2:51 PM, Gregor Schneider wrote: Well, maybe try a different scanner? Ever tried McAffee? My experience has been that McAffee's scanner is slow as a dog. I've been asked to fix computers that are running slow because they have

Re: Renegotiate SSL connection in servlet

2009-03-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 3/31/2009 9:51 AM, André Cruz wrote: On Mar 31, 2009, at 14:44 , Christopher Schultz wrote: Connector ... clientAuth=want / The problem with want is that, at least with IE, the browser always prompts the user for a certificate.

RE: Renegotiate SSL connection in servlet

2009-03-31 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Renegotiate SSL connection in servlet Your only other option for Tomcat is to configure another Connector which would require a different IP or port number, which makes it ... inconvenient at best. Using a

Re: Profiling tomcat applications with -Xrunhprof (Tomcat runs as a Windows Service)

2009-03-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johannes, On 3/31/2009 9:56 AM, Haase, Johannes | SCARUS wrote: -Xrunhprof:heap=sites,depth=10,file=C:\hprof.txt. [snip] However no further information except the general infos were written. I cannot force the tomcat to dump the trace file. Are

Re: [OT] Slow servlet response under WinXP Pro

2009-03-31 Thread Gregor Schneider
Chris, my experience with those scanners (slowest on top): - Symantec (Norton) - Kaspersky - McAffee However, those experiences are based on workstations only. I do know that at least some of those scanners do have different enterprise soltutions. However, I guess experiences may vary, so you

Re: Hosting Recommendations.

2009-03-31 Thread Gregor Schneider
Wesley, if Germany is an option, I'd have 2 recommendations for you: One lowcost (starting at @ €40-something) and one premium-hoster (starting @ around € 250 per box). Prices are per month, and it's We're using both of them for our company and we're highly satisfied. Drop me a line if you

RE: mod_jk : recovery_options

2009-03-31 Thread Jorge Medina
Danke schön Rainer! Yes, all my transaction requests use POST. We only allow GET to get a couple of static files. -Jorge -Original Message- From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: Tuesday, March 31, 2009 3:24 AM To: Tomcat Users List Subject: Re: mod_jk :

Re: Hosting Recommendations.

2009-03-31 Thread Partha Goswami
Hi What You Need , Shared Hosting, VPS , Dedicated Server ?? We provide Hosting Very Cheap. Let me know what you need.. Thanks On Tue, Mar 31, 2009 at 2:41 PM, Wesley Acheson wesley.ache...@gmail.comwrote: Thanks for all the links everyone I'll look at them all. Regards, Wesley Acheson

Re: Profiling tomcat applications with -Xrunhprof (Tomcat runs as a Windows Service)

2009-03-31 Thread Haase, Johannes | SCARUS
Christopher Schultz schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johannes, On 3/31/2009 9:56 AM, Haase, Johannes | SCARUS wrote: -Xrunhprof:heap=sites,depth=10,file=C:\hprof.txt. [snip] However no further information except the general infos were written. I cannot

Re: [OT] Slow servlet response under WinXP Pro

2009-03-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, On 3/31/2009 10:59 AM, Gregor Schneider wrote: For a quick solution /knowing/ that my actual scanner is the bottleneck, I definately would give some different scanners a try and see if that helps. Definitely. Instructing the virus scanner

RE: Profiling tomcat applications with -Xrunhprof (Tomcat runs asa Windows Service)

2009-03-31 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Profiling tomcat applications with -Xrunhprof (Tomcat runs asa Windows Service) Are you trying to get profiling data, or are you trying to get a thread dump? No, he's looking for heap profiling. I think you're

Cookie handling issue

2009-03-31 Thread mateo-jl
Hello, I've seen that there was a problem with the encoding base64 within the cookies (only at reading : request.getCookies) When the cookie contains '=' (equals), it seems that the decoding operation stops when it encounters this char. The prob. only happens since Tomcat 5.5.26 ans above. Is

Re: Profiling tomcat applications with -Xrunhprof (Tomcat runs asa Windows Service)

2009-03-31 Thread Gregor Schneider
On Tue, Mar 31, 2009 at 5:19 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Profiling tomcat applications with -Xrunhprof (Tomcat runs asa Windows Service) Are you trying to get profiling data, or are you

RE: Profiling tomcat applications with -Xrunhprof (Tomcat runs asa Windows Service)

2009-03-31 Thread Caldarale, Charles R
From: Caldarale, Charles R Subject: RE: Profiling tomcat applications with -Xrunhprof (Tomcat runs asa Windows Service) What might work is using JVisualVM instead and just looking at the information in the GUI. I did get JVisualVM to work with Tomcat running as a service, but I don't think

RE: A problem with tomcat 6.0.18

2009-03-31 Thread Caldarale, Charles R
From: Paulo Vitor [mailto:foxpv...@gmail.com] Subject: Re: A problem with tomcat 6.0.18 if I change the property end from Integer to Long, than works. That's a workaround, but not a proper fix. I'm still working on updating ELSupport.java to better handle arbitrary Number classes, but it's

redirection

2009-03-31 Thread Melanie Pfefer
Hello I have a tomcat server running on port 8080. users need to create a dns alias which is on port 80. redirection cannot be done on DNS level of course. do you have any idea how to achieve this in tomcat. For example: http://siroe redirects to http://machineX:8080 that is a tomcat

Re: redirection

2009-03-31 Thread Steve
Melanie Pfefer wrote: Hello I have a tomcat server running on port 8080. users need to create a dns alias which is on port 80. redirection cannot be done on DNS level of course. do you have any idea how to achieve this in tomcat. For example: http://siroe redirects to http://machineX:8080

Re: Slow servlet response under WinXP Pro

2009-03-31 Thread JOman
Tommy, Thanks for the response! I'll change the code to use the newer driver name. I started with a demo app that I wrote about six years ago. That is the reason for the older driver name. 1) Fragmentation of your partition, especially the partition where the DB resides. I'll check into

Re: Hosting Recommendations.

2009-03-31 Thread Wesley Acheson
Are your plans on your website http://www.globalwebitsolution.com/ ? On Tue, Mar 31, 2009 at 5:04 PM, Partha Goswami parthagoswam...@gmail.comwrote: Hi What You Need , Shared Hosting, VPS , Dedicated Server ?? We provide Hosting Very Cheap. Let me know what you need.. Thanks On Tue, Mar

Re: Hosting Recommendations.

2009-03-31 Thread Partha Goswami
well, we are updating website, The design has been changed, so, it need sometime, to plan few hrs more. I will email u, when, When It update, thanks for your waiting.. On Tue, Mar 31, 2009 at 10:59 PM, Wesley Acheson wesley.ache...@gmail.comwrote: Are your plans on your website

RE: redirection

2009-03-31 Thread Ilya Kazakevich
You need some front-end proxy. Apache web-server could do it. Squid could (AFAIK). Nginx could do it also. -Original Message- From: Melanie Pfefer [mailto:melanie_pfe...@yahoo.co.uk] Sent: Tuesday, March 31, 2009 8:59 PM To: users@tomcat.apache.org Subject: redirection Hello I have

Tomcat error: It is not available the ServletAction

2009-03-31 Thread bladu
Hi, I am deploying an application using Ant from MyEclipse IDE. When I deploy the application with the Ant, this say me that the application has successfully deployed. I go to webaapps directory and I see into that directory the applicacation deployed with its WAR. But when I try to excute the

RE: redirection

2009-03-31 Thread Caldarale, Charles R
From: Melanie Pfefer [mailto:melanie_pfe...@yahoo.co.uk] Subject: redirection I have a tomcat server running on port 8080. Why don't you just configure Tomcat to use port 80? That can either replace the existing Connector for 8080 or be an additional Connector. Look in the

RE: Slow servlet response under WinXP Pro

2009-03-31 Thread Martin Gainty
1)Put indexes on predicates where q= make sure column q has a unique index created to reference that column 2)I would'nt disable virus-scans..yes they slow down access but you want the peace of mind that comes with your system being 'virus-free' Back to you.. Martin

[Fwd: Re: Search on lucene.apache.org]

2009-03-31 Thread André Warnier
I would imagine that some people on this list has already seen this, but just in case they haven't, this is a crosspost/forward from the lucene list. As a regular user of the Tomcat list and website, I would love something like that applied to at least the Tomcat on-line documentation.

Re: Renegotiate SSL connection in servlet

2009-03-31 Thread Mark Thomas
Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Renegotiate SSL connection in servlet Your only other option for Tomcat is to configure another Connector which would require a different IP or port number, which makes it ...

Re: Cookie handling issue

2009-03-31 Thread Mark Thomas
mateo-jl wrote: Hello, I've seen that there was a problem with the encoding base64 within the cookies (only at reading : request.getCookies) When the cookie contains '=' (equals), it seems that the decoding operation stops when it encounters this char. The prob. only happens since

Re: Tomcat error: It is not available the ServletAction

2009-03-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bladu, On 3/31/2009 1:45 PM, bladu wrote: But when I try to execute the application, Tomcat gives me the following error: Message: It is not available the Servlet Action Description: The request resource (It doesn`t available the

Illegal access: this web application instance has been stopped already

2009-03-31 Thread Paulchwd
I am using NetBeans 6.5 with its embeded Tomcat server to write a JavaServer Faces application. I am getting this error: INFO: Illegal access: this web application instance has been stopped already. Could not load java.lang.Object. The eventual following stack trace is caused by an error

DataSource from Context files - doesn't work

2009-03-31 Thread Mighty Tornado
Hi I placed the following in context.xml in META-INF. But the result set is null, what's wrong with my set up?Can anybody please advise? ?xml version=1.0 encoding=UTF-8? Context Resource auth=Container description=DB Connection name=jdbc/vhousehold type=javax.sql.DataSource

Connection Pooling questions

2009-03-31 Thread allen.ir...@smartintegration.com.au
Hello, I searched on the mailing list back to 2007 and didn't see the answers I needed for these DataSource related questions (though I did see similar, not quite what I needed though). I'm using Tomcat 5.5, Java 1.5 on Windows XP and have used the excellent guide:

RE: Connection Pooling questions

2009-03-31 Thread Martin Gainty
the configuration you describe only defines parameters to be passed to the Connection Pool Library..which connection pool library are you using? are you using Thread starve algorithm? or explicit no-activity-on-connection algorithm? Most connection pools with close the connection only after

RE: Illegal access: this web application instance has been stoppedalready

2009-03-31 Thread Caldarale, Charles R
From: Paulchwd [mailto:paulc...@sympatico.ca] Subject: Illegal access: this web application instance has been stoppedalready INFO: Illegal access: this web application instance has been stopped already. Could not load java.lang.Object. Whatever you're doing is attempting multiple stops of

RE: Connection Pooling questions

2009-03-31 Thread Caldarale, Charles R
From: allen.ir...@smartintegration.com.au [mailto:allen.ir...@smartintegration.com.au] Subject: Connection Pooling questions I configure it using the suggested /META-INF/context.xml with: maxActive=30 maxIdle=10 Post your entire context.xml so we can see the rest of the Resource element.

RE: Connection Pooling questions

2009-03-31 Thread allen.ir...@smartintegration.com.au
Thanks for your reply Martin. Your response kind of lost me though. I used the howto guide at http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html which mentions the default Data Source (dbcp I believe). But mentioned nothing about the algorithms you said. Original Message:

RE: Connection Pooling questions

2009-03-31 Thread allen.ir...@smartintegration.com.au
Thank you very much for your reply. my response to your responses follow: Post your entire context.xml so we can see the rest of the Resource element. Your settings may conflict with what the database expects, resulting in orphaned connections. Here it is: Context Resource

RE: Connection Pooling questions

2009-03-31 Thread Caldarale, Charles R
From: allen.ir...@smartintegration.com.au [mailto:allen.ir...@smartintegration.com.au] Subject: RE: Connection Pooling questions Resource name=jdbc/AttunitySProcDS auth=Container type=javax.sql.DataSource driverClassName=com.attunity.jdbc.NvDriver

RE: Connection Pooling questions

2009-03-31 Thread allen.ir...@smartintegration.com.au
Sorry, I included an older context.xml than the one I've been testing with. That one has 30 for maxActive (everything else is the same). Thank you very much for your replies Chuck, I think you gave me plenty to think about and play with to resolve my problem. Thanks again! Original Message: