RE: Getting Tomcat server to discriminate between domains

2008-03-07 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Getting Tomcat server to discriminate between domains > > In other words, I want people accessing my web site through > my IP address (rather than through the domain name) to always > end up on a certain web page (application K) wh

RE: Reloading an application when threads are running

2008-03-07 Thread Caldarale, Charles R
> From: Eric Daniel [mailto:[EMAIL PROTECTED] > Subject: Reloading an application when threads are running > > This seems to mostly work, except that upon reload, all static class > members of old class instances are set to Null! This may be the same issued discussed earlier today in this mailin

Re: Reloading an application when threads are running

2008-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, Eric Daniel wrote: | In short: should I expect running threads to finish processing their | requests, when I reload an application? Yes. Check the servlet specification which, well, specifies this behavior. | Long story: we use tomcat as an a

Re: interrupting a multipart post request?

2008-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christian, Christian Kindler wrote: | I want to interrupt a multipart post request (e.g. if the content-length | exceeds a given limit). The problem is, that the client seems to | continue sending the data to the server and gets no response from the

Re: Tomcat Status Metrics: RRDTool Graph: Analysis

2008-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smithson wrote: | Do you know of a better way of getting heap numbers out of Java? | Right now I've got three metrics: jvm_mem_free; jvm_mem_max; | jvm_mem_total. Java has multiple heaps (okay, one heap segmented into several generation

RequestDispatcher, wrapper, and file upload

2008-03-07 Thread John O'Hanley
[Resending - attachments not accepted.] Hello, I have a nagging problem with a wrapper-filter for file upload requests. The core of the problem is that request.getRequestDispatcher(String aPath) is not behaving as expected. I am passing *query params* in 'aPath'. When I use a file upload wrap

RequestDispatcher, wrapper, and file upload

2008-03-07 Thread John O'Hanley
Hello, I have a nagging problem with a wrapper-filter for file upload requests. The core of the problem is that request.getRequestDispatcher(String aPath) is not behaving as expected. I am passing *query params* in 'aPath'. When I use a file upload wrapper on the request, these query params ar

Reloading an application when threads are running

2008-03-07 Thread Eric Daniel
This is sort of a general question, but I couldn't find any information on the subject. In short: should I expect running threads to finish processing their requests, when I reload an application? Long story: we use tomcat as an application server, and a request can take up to several minutes to

Getting Tomcat server to discriminate between domains

2008-03-07 Thread deioz
Hi, I have Apache Tomcat 5.5 installed on my box and serving requests from mydomainname.com I run several applications on this server, each with its own The URL http://mydomainname.com/A/ takes the user to application A The URL http://mydomainname.com/B/ takes the user to application B and

connection pool maxActive = 0 != unlimited in new version

2008-03-07 Thread william kinney
Hi, After some painful research and code digging, I found that in commons-pool versions > 1.2 (ie 1.3 and 1.4), the logic for maxActive changed for "unlimited". 0 no longer means unlimited as it did in 1.2 and previous versions. This looks to be contradictory to commons-pool and tomcat documentati

Re: tomcat 6.0.16 regression?

2008-03-07 Thread Mark Thomas
peter360 wrote: Hi, I am running tomcat-6.0.16 on centos5. I deployed the following simple servlet. When I tried to post more than 8192 chars to the server, I got Yep, it is a known issue. Discussions on the best way to fix it are ongoing. https://issues.apache.org/bugzilla/show_bug.cgi?id=

tomcat 6.0.16 regression?

2008-03-07 Thread peter360
Hi, I am running tomcat-6.0.16 on centos5. I deployed the following simple servlet. When I tried to post more than 8192 chars to the server, I got ava.lang.ArrayIndexOutOfBoundsException: 8192 org.apache.tomcat.util.buf.CharChunk.substract(CharChunk.java:388) org.apache.catalin

Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread David Kramer
Srinivasan Rangaswamy wrote: On Fri, Mar 7, 2008 at 11:53 AM, Steve Ochani <[EMAIL PROTECTED]> wrote: The other reason for this error could be that the Microsoft C runtime library is not installed. This has been mentioned on this list before, and here: http://blog.granilus.com/2007/12/tomca

Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread Srinivasan Rangaswamy
On Fri, Mar 7, 2008 at 11:53 AM, Steve Ochani <[EMAIL PROTECTED]> wrote: > > On 7 Mar 2008 at 13:54, David Kramer wrote: > > > > Caldarale, Charles R wrote: > > >> From: Mark Thomas [mailto:[EMAIL PROTECTED] > > >> Subject: Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon > > >> > > >> T

Re: Why is this java.lang.IllegalStateException occuring, and what can be done about it?

2008-03-07 Thread mgainty
what happens when you start TC and pass in the disable clear references parameter-Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFEREN CES=false?M-- Original Message - Wrom: IYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEP To: "Tomcat Users List" Sent: Friday, March 07, 2008 3:33 PM Subject:

Re: Why is this java.lang.IllegalStateException occuring, and what can be done about it?

2008-03-07 Thread Mark Thomas
TedByers wrote: I routinely find this exception occuring with Tomcat 6, with virtually every web app I develop. Since I tend to be paranoid about errors, I want to know more even though Tomcat's output says this exception has no functional impact. As far as I can see, none of the code I developed

Re: NIO connector source code

2008-03-07 Thread Mark Thomas
neil davudo wrote: Where? I downloaded the entire Tomcat source code. Can you point me to the directories? Did you even try searching for files with nio in the name? I really don't see why you expect me to do this for you. Mark -

Re: Class cast exception thrown from jsp servlet

2008-03-07 Thread Steve Ochani
On 7 Mar 2008 at 14:00, Bob Riaz wrote: > Hello all, > > I'm running a JSF application in Netbeans 6.0. > OS: Windows XP pro > DB: SQL Server 2000 > > I'm running into the following problem (the name of my jsp is > ResumeList.jsp). The same application is being run on our production > server >

RE: Getting the URL of a DataSource

2008-03-07 Thread Katilie, John
Phil, I switched over to using BasicDataSource instead of DataSource and I'm able to get everything I need. I've tested it against 10 different Data Bases and everything seems to work wonderfully. Thank you for your response and help. I hope some day I can also help you! Regards, jfk. -Ori

RE: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread Caldarale, Charles R
> From: David kerber [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon > > > where does ia64 fit in to this picture? > It doesn't. It was a dead-end architecture, and I don't believe it's > being produced any more. Certainly not in any significant quan

Class cast exception thrown from jsp servlet

2008-03-07 Thread Bob Riaz
Hello all, I'm running a JSF application in Netbeans 6.0. OS: Windows XP pro DB: SQL Server 2000 I'm running into the following problem (the name of my jsp is ResumeList.jsp). The same application is being run on our production server and it works! Any thoughts on this would be greatly appreciat

Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread Steve Ochani
On 7 Mar 2008 at 13:54, David Kramer wrote: > Caldarale, Charles R wrote: > >> From: Mark Thomas [mailto:[EMAIL PROTECTED] > >> Subject: Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon > >> > >> The 64bit binaries are here: > >> > https://svn.apache.org/repos/asf/tomcat/connectors/trunk/p

RE: Defining JDBC Data source

2008-03-07 Thread Kirchhoff, Florian
Sushil, As it turns out, this is really a Spring question... I encountered a similar problem (see http://preview.tinyurl.com/2gge34) all you need to do is, set the reference-ref property of JndiObjectFactoryBean to true: true

Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread David kerber
David Kramer wrote: Caldarale, Charles R wrote: From: Mark Thomas [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon The 64bit binaries are here: https://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/ I think you want the ia64 ones. No,

Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread Srinivasan Rangaswamy
this is the same error i'm getting, except i also did the registry hacking (which turned out not to be hard). - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread David Kramer
Caldarale, Charles R wrote: From: Mark Thomas [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon The 64bit binaries are here: https://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/ I think you want the ia64 ones. No, you definitely do not

RE: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread Caldarale, Charles R
> From: Mark Thomas [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon > > Just to complete the info, where does ia64 fit in to this picture? IA64 is a RISC-like 64-bit architecture, developed by Intel with considerable input from HP. It's completely dif

RE: 404 returned trying to find Perl script

2008-03-07 Thread Doug.Thomas
That worked. Thanks! -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 1:33 PM To: Tomcat Users List Subject: Re: 404 returned trying to find Perl script [EMAIL PROTECTED] wrote: > I have a form that sends its data to a Perl script under Tomcat 6

Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread David kerber
Mark Thomas wrote: Caldarale, Charles R wrote: From: Mark Thomas [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon The 64bit binaries are here: https://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/ I think you want the ia64 ones. No, y

Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread Srinivasan Rangaswamy
On Fri, Mar 7, 2008 at 8:31 AM, David Kramer <[EMAIL PROTECTED]> wrote: > I've been trying to find out how to run it as a service, and the only > solution I can find is relevant to AMD processors (yes, I tried it > anyway). The 32-bit versions of tomcat5.exe doesn't run under 64-bit > Windows.

Re: 404 returned trying to find Perl script

2008-03-07 Thread Mark Thomas
[EMAIL PROTECTED] wrote: I have a form that sends its data to a Perl script under Tomcat 6.0.16. I get an error message "The requested resource (/perlTest/WEB-INF/cgi-bin/form.pl) is not available." The form.pl file is, in fact, in that folder. I'm running Windows XP. Permissions have been set pr

Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread Mark Thomas
Caldarale, Charles R wrote: From: Mark Thomas [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon The 64bit binaries are here: https://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/ I think you want the ia64 ones. No, you definitely do not

404 returned trying to find Perl script

2008-03-07 Thread Doug.Thomas
I have a form that sends its data to a Perl script under Tomcat 6.0.16. I get an error message "The requested resource (/perlTest/WEB-INF/cgi-bin/form.pl) is not available." The form.pl file is, in fact, in that folder. I'm running Windows XP. Permissions have been set properly (using Cygwin chmod)

RE: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread Caldarale, Charles R
> From: Mark Thomas [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon > > The 64bit binaries are here: > https://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/ > > I think you want the ia64 ones. No, you definitely do not want the IA64 on

Re: pls unsubscribe my name from tomcat users group

2008-03-07 Thread tomcat
Please use a mail client that you can read email headers in. The unsubscribe address is in your email header from the listgroup. List-Unsubscribe: Cheers! At 12:19 PM 3/7/2008, you wrote: pls unsubscribe [EMAIL PROTECTED] from tomcat uers group ---

RES: Simultate Tomcat JNDI

2008-03-07 Thread Milanez, Marcus
Hi everyone, I came accross a solution for that. I've created my own helper class that provides the same JNDI hierarchy tomcat does to my datasources. Now I can test my DAOs using jUnit outside tomcat! Thank you all! Marcus Milanez -Mensagem original- De: Milanez, Marcus [mailto:[EMAI

Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread Mark Thomas
David Kramer wrote: I've been trying to find out how to run it as a service, and the only solution I can find is relevant to AMD processors (yes, I tried it anyway). The 32-bit versions of tomcat5.exe doesn't run under 64-bit Windows. The 64bit binaries are here: https://svn.apache.org/repos

Re: %t in access log valve?

2008-03-07 Thread Rainer Jung
Dan Keeley wrote: Hi all, Just a quick one; It's not clear from the docs. is %t in the accessLogValve the request datetime or the response datetime? It makes a difference to us! thanks, Dan End of response (logging time). Caution: for Apache httpd 2.x it's start of request. -

pls unsubscribe my name from tomcat users group

2008-03-07 Thread Sneha Manohar
pls unsubscribe [EMAIL PROTECTED] from tomcat uers group - Share files, take polls, and discuss your passions - all under one roof. Click here.

Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread Steve Ochani
On 7 Mar 2008 at 11:31, David Kramer wrote: > I've been trying to find out how to run it as a service, and the > only > solution I can find is relevant to AMD processors (yes, I tried it > anyway). The 32-bit versions of tomcat5.exe doesn't run under > 64-bit > Windows. > >From what I've rea

Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread David Kramer
I've been trying to find out how to run it as a service, and the only solution I can find is relevant to AMD processors (yes, I tried it anyway). The 32-bit versions of tomcat5.exe doesn't run under 64-bit Windows. Thanks in advance. The information transmitted is intended only for the perso

RE: Tomcat Status Metrics: RRDTool Graph: Analysis

2008-03-07 Thread David Smithson
Thanks, Chris. I'll do some load testing. I was thinking of using siege or apache bench. _Tomcat: The Definitive Guide_ is my guide. Do you know of a better way of getting heap numbers out of Java? Right now I've got three metrics: jvm_mem_free; jvm_mem_max; jvm_mem_total. Examining the gr

Re: sym link to serve documents within web application.

2008-03-07 Thread Yuval Perlov
You should probably create a servlet that serves external files... Yuval Perlov www.r-u-on.com On Mar 7, 2008, at 4:32 PM, Maffitt, David wrote: I agree that that is the most likely response and that there are good reasons why links are a bad idea. To counter that though, if that were stric

RES: Simultate Tomcat JNDI

2008-03-07 Thread Milanez, Marcus
Martin, Thanks for you reply. In fact I need to "simulate" tomcat's jndi mechanism. My class will be invoked by jUnit and not by tomcat. I'm trying to bind a datasource to a jndi name outside tomcat, but with exactaly the same names... Thank you! -Mensagem original- De: Martin Gainty

RE: sym link to serve documents within web application.

2008-03-07 Thread Maffitt, David
I agree that that is the most likely response and that there are good reasons why links are a bad idea. To counter that though, if that were strictly true, the allowLinking attribute should not be provided. Given that links are allowed, the principle of least astonishment dictates that tomcat sh

Simultate Tomcat JNDI

2008-03-07 Thread Milanez, Marcus
Hi everyone, I'm trying to simulate tomcat's jndi mechanism, in order to test my DAO objects with junit. Does anybody knows how to do that? It seems to me that I need to bind the name java:/comp/env to a Context object and then bind my jdbc name to this context. Is this the way tomcat put things t

%t in access log valve?

2008-03-07 Thread Dan Keeley
Hi all, Just a quick one; It's not clear from the docs. is %t in the accessLogValve the request datetime or the response datetime? It makes a difference to us! thanks, Dan - To start a new topic, e-mail: users@tomcat.apache.org

Re: %t in access log valve?

2008-03-07 Thread Mark Thomas
Dan Keeley wrote: Hi all, Just a quick one; It's not clear from the docs. is %t in the accessLogValve the request datetime or the response datetime? It makes a difference to us! thanks, Dan When starting a new thread (ie sending a message to the list about a new topic) please do not reply

Re: sym link to serve documents within web application.

2008-03-07 Thread Mark Thomas
Christopher Schultz wrote: David, Maffitt, David wrote: | We have a different problem with this. Tomcat will follow the link | and delete the contents of the linked-to directory when the app is | redeployed. We have to be sure that the link is deleted before | redeploying. Not a problem if one

Why is this java.lang.IllegalStateException occuring, and what can be done about it?

2008-03-07 Thread TedByers
I routinely find this exception occuring with Tomcat 6, with virtually every web app I develop. Since I tend to be paranoid about errors, I want to know more even though Tomcat's output says this exception has no functional impact. As far as I can see, none of the code I developed is involved in t

Re: mod_jk or mod_proxy_ajp - encryption benefits?‏

2008-03-07 Thread David Cassidy
James, You could put the stunnel into a while loop that makes it. perhaps you could send yourself an email each time it closed ? stunnel is probably the easiest to setup. I had written a secure version of mod_ajp for apache 1.3 (ie years ago) which did the whole ssl encryption of the traffic wi

%t in access log valve?

2008-03-07 Thread Dan Keeley
Hi all, Just a quick one; It's not clear from the docs. is %t in the accessLogValve the request datetime or the response datetime? It makes a difference to us! thanks, Dan - To start a new topic, e-mail: users@tomcat.apache.

interrupting a multipart post request?

2008-03-07 Thread Christian Kindler
Hello, I'm not sure if this is tomcat or general servlet issue. I hope you can help me anyway. I want to interrupt a multipart post request (e.g. if the content-length exceeds a given limit). The problem is, that the client seems to continue sending the data to the server and gets no respons