Re: using Servlet Filter to rewrite domain of JSESSIONID cookie?

2010-07-02 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nikita, On 7/1/2010 6:37 PM, Nikita Tovstoles wrote: I borrowed sub-domain from Google Analytics terminology. I have one server, running one tomcat instance with one virtual host. That host is running one app - a JS/html

Re: SSL and non SSL configuration on tomcat 6.0.26, confused

2010-07-02 Thread Pid
On 01/07/2010 20:11, John-Paul Ranaudo wrote: I wish I could provide more information. At least I have narrowed down the problem. I am having a meeting with the architects of both frameworks today so perhaps I'll get some details. Given some examples of URLs that fail, and bits of

Re: Tomcat 6.0.26 with Java 6 update 20 on Sun Solaris 5.8 Sparc - Web application unable to execute properly

2010-07-02 Thread Mikolaj Rydzewski
On 07/02/2010 01:23 AM, rahul wrote: 1. I tried building the war in Windows and worked fine. I transferred the war to UNIX, it mis-behaves as described earlier. 2. I tried building the war in UNIX, it mis-behaves as described earlier. I transferred the war to Windows and it worked fine.

JNI error under tomcat: java.lang.UnsatisfiedLinkError

2010-07-02 Thread dennis ch
Hi, I have a java class (eval.java) that invokes a native method in an so file (libmodel.so, using SWIG 1.3.29 to generate JNI code/wrapper and compiled the library). I can use System.loadLibrary() to load the libmodel.so without any error (-Djava.library.path=/usr/lib), and the native method

Re: [OT] Using httpd's mod_rewrite with mod_jk

2010-07-02 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 7/1/2010 4:54 AM, Rainer Jung wrote: Usually mod_rewrite is perfectly compatible with mod_jk. I must confess, that I'm not 100% sure about the case, where you try to rewrite a request that originally would

Re: SSL Not working on tomcat 5.5.29

2010-07-02 Thread Pid
On 02/07/2010 06:30, kareem_s_m wrote: Hi All, I am working on upgrading tomcat from 5.5.28 to 5.5.29 for one of the applications. I see that the website renders and works fine in 5.5.29 on port 8080 (non SSL) but with SSL (port 8443) the website doesnot run at all. When I try to see

Re: using Servlet Filter to rewrite domain of JSESSIONID cookie?

2010-07-02 Thread Pid
On 02/07/2010 08:31, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nikita, On 7/1/2010 6:37 PM, Nikita Tovstoles wrote: I borrowed sub-domain from Google Analytics terminology. I have one server, running one tomcat instance with one virtual

Re: Application vars -

2010-07-02 Thread André Warnier
Eric P wrote: So it makes sense to go into what disruption means. I'm not 100% sure about the following, it would be good if a tomcat heavyweight would confirm/refute what I say. When you initiate a webapp reload, Tomcat waits for requests that have already started processing to terminate. This

Re: SSL Not working on tomcat 5.5.29

2010-07-02 Thread André Warnier
kareem_s_m wrote: Hi All, I am working on upgrading tomcat from 5.5.28 to 5.5.29 for one of the applications. I see that the website renders and works fine in 5.5.29 on port 8080 (non SSL) but with SSL (port 8443) the website doesnot run at all. When I try to see what's going on in Fiddle, I

Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Murat Birben
Hi all, I have a very simple file upload mechanism in java. I just take the file and save it on the server. I'm testing this simple code with selenium and *when a timeout occurs in the selenium test *tomcat creates 0 byte files under tomcat_home/work/Catalina/localhost/uploadServlet/ directory as

Re: using Servlet Filter to rewrite domain of JSESSIONID cookie?

2010-07-02 Thread André Warnier
Pid wrote: On 02/07/2010 08:31, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nikita, On 7/1/2010 6:37 PM, Nikita Tovstoles wrote: I borrowed sub-domain from Google Analytics terminology. I have one server, running one tomcat instance with one

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Pid
On 02/07/2010 09:43, Murat Birben wrote: Hi all, I have a very simple file upload mechanism in java. I just take the file and save it on the server. I'm testing this simple code with selenium and *when a timeout occurs in the selenium test *tomcat creates 0 byte files under

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread André Warnier
Murat Birben wrote: Hi all, I have a very simple file upload mechanism in java. I just take the file and save it on the server. I'm testing this simple code with selenium and *when a timeout occurs in the selenium test *tomcat creates 0 byte files under

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Mark Thomas
On 02/07/2010 11:00, André Warnier wrote: - up to Tomcat 5.5, there was an application called DAV available with Tomcat. The WebDAV servlet is still there in Tomcat 7. We just removed the example app from 6 onwards. - see http://commons.apache.org/fileupload/ (this may even be included in

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread André Warnier
André Warnier wrote: ... The point is : allowing users to upload files to the server, and allowing them to specify a path on the server, is dangerous and difficult to do right. Better to use something that is already ready and debugged. Let me be more explicit, after having just a quick

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread André Warnier
Mark Thomas wrote: On 02/07/2010 11:00, André Warnier wrote: - up to Tomcat 5.5, there was an application called DAV available with Tomcat. The WebDAV servlet is still there in Tomcat 7. We just removed the example app from 6 onwards. Noted, thanks. But it seems hard to find. I do not see

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Murat Birben
Yes 0 byte files are causing the disk to run out of space @Andre Warnier I'm not actually saving files on the server. I just tried to simplify my problem and tried that simple code. Now i'll give a try to apache fileupload api, thanks for advice On Fri, Jul 2, 2010 at 11:52 AM, Pid

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Pid
On 02/07/2010 11:01, Murat Birben wrote: Yes 0 byte files are causing the disk to run out of space You understand my surprise? Are you sure the disk is running out of space, or is it that the number of files permitted in a directory has been exceeded? p @Andre Warnier I'm not actually

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Murat Birben
I'm getting There is no space left on disk message when i try to do some work on the server after this 0 byte files are created On Fri, Jul 2, 2010 at 1:13 PM, Pid p...@pidster.com wrote: On 02/07/2010 11:01, Murat Birben wrote: Yes 0 byte files are causing the disk to run out of space You

RE: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Ralph Carlson
you can also try the oreilly file upload api, I have used it in many projects without issue http://www.servlets.com/cos/ (download) http://java.itags.org/java-essentials/11012/ (an example) From:

RE: Implementing Connection Pooling

2010-07-02 Thread Caldarale, Charles R
From: Andrew Laughlin [mailto:andrew.laugh...@gmail.com] Subject: Re: Implementing Connection Pooling Because I won't have this info until run-time. Which means you can't configure the appropriate Resource elements. It appears Apache Commons has a GenericObjectPool class I can used to

embedded tomcat, work folder wipe out issue

2010-07-02 Thread Federico Fissore
hello all first mail to the list: please forward me to any RTFM you may think useful I've embedded tomcat so to have multiple webapps running with separate java processes (each embedded tomcat runs its own webapp, listening to a different tcp port), because of some memory issues we have.

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Murat Birben
I've tried apache.commons.fileupload api but the result doesn't change. I set the selenium waitForPageToLoad prop very small to produce the problem and when time exceeded test fails and thousands of 0 bytes are generated. I'll try the oreilly fileupload api too but it seems to me as the reason is

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Pid
On 02/07/2010 12:20, Murat Birben wrote: I'm getting There is no space left on disk message when i try to do some work on the server after this 0 byte files are created What is your OS and exact version? p On Fri, Jul 2, 2010 at 1:13 PM, Pid p...@pidster.com mailto:p...@pidster.com wrote:

Mod_jk: Uri * is invalid. Uri must start with /

2010-07-02 Thread Matteo Turra
I have Apache/2.2.14 (Unix) and mod_jk/1.2.28 with a Tomcat 6.0.20 farm in load balancing. In the mod_jk.log I get a line like this each second. [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (962): Uri * is invalid. Uri must start with / I checked all the JkMount directive in the virtual

Re: Mod_jk: Uri * is invalid. Uri must start with /

2010-07-02 Thread Pid
On 02/07/2010 13:50, Matteo Turra wrote: I have Apache/2.2.14 (Unix) and mod_jk/1.2.28 with a Tomcat 6.0.20 farm in load balancing. In the mod_jk.log I get a line like this each second. [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (962): Uri * is invalid. Uri must start with / I

Getting a servlet to work within static pages

2010-07-02 Thread David kerber
My system: Debian Lenny (5.x) on a low end machine in my basement (so I can do whatever I want/need to it) TC 6.0.24, installed in /home/davek/apache-tomcat-6.0.24 java version 1.5.0_17 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_17-b04) Java HotSpot(TM) Client VM (build

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Murat Birben
ubuntu 8.04 server On Fri, Jul 2, 2010 at 3:50 PM, Pid p...@pidster.com wrote: On 02/07/2010 12:20, Murat Birben wrote: I'm getting There is no space left on disk message when i try to do some work on the server after this 0 byte files are created What is your OS and exact version? p

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread André Warnier
Murat Birben wrote: I've tried apache.commons.fileupload api but the result doesn't change. I set the selenium waitForPageToLoad prop very small to produce the problem and when time exceeded test fails and thousands of 0 bytes are generated. I'll try the oreilly fileupload api too but it seems

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Murat Birben
Ok, here is the html form: form action=ResourceUploadServlet method=POST enctype=multipart/form-data input type=file name=Content / FileName :input type=text name=FileName / Path:input type=text

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Pid
On 02/07/2010 14:02, Murat Birben wrote: ubuntu 8.04 server What does the command 'df -k' report? Please paste the results. p On Fri, Jul 2, 2010 at 3:50 PM, Pid p...@pidster.com mailto:p...@pidster.com wrote: On 02/07/2010 12:20, Murat Birben wrote: I'm getting There is no

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread André Warnier
Murat Birben wrote: Ok, here is the html form: form action=ResourceUploadServlet method=POST enctype=multipart/form-data input type=file name=Content / FileName :input type=text name=FileName / Path

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Pid
On 02/07/2010 14:21, André Warnier wrote: Murat Birben wrote: Ok, here is the html form: form action=ResourceUploadServlet method=POST enctype=multipart/form-data input type=file name=Content / FileName :input type=text

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Pid
On 02/07/2010 13:47, Murat Birben wrote: I've tried apache.commons.fileupload api but the result doesn't change. I set the selenium waitForPageToLoad prop very small to produce the problem and when time exceeded test fails and thousands of 0 bytes are generated. I'll try the oreilly fileupload

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Murat Birben
It is a virtual machine on ESXi so df shows me the whole storage I think. Is there any other way to see the disk usage for virtual machines? On Fri, Jul 2, 2010 at 4:20 PM, Pid p...@pidster.com wrote: On 02/07/2010 14:02, Murat Birben wrote: ubuntu 8.04 server What does the command 'df -k'

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Murat Birben
Actually i'm not familiar with the interanls of enctype=multipart/form-data thing. I think, i should read about this right? By the way i'll change the form tag as you and Pid suggested. Thanks, On Fri, Jul 2, 2010 at 4:21 PM, André Warnier a...@ice-sa.com wrote: Murat Birben wrote: Ok, here

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread Pid
On 02/07/2010 14:33, Murat Birben wrote: It is a virtual machine on ESXi so df shows me the whole storage I Does it? I'm not sure it does. think. Is there any other way to see the disk usage for virtual machines? That's a question I can't answer I'm afraid. p On Fri, Jul 2, 2010 at 4:20

Re: Getting a servlet to work within static pages

2010-07-02 Thread David kerber
On 7/2/2010 9:23 AM, Pid wrote: On 02/07/2010 14:01, David kerber wrote: My system: Debian Lenny (5.x) on a low end machine in my basement (so I can do whatever I want/need to it) TC 6.0.24, installed in /home/davek/apache-tomcat-6.0.24 java version 1.5.0_17 Java(TM) 2 Runtime Environment,

Re: [OT] Using httpd's mod_rewrite with mod_jk

2010-07-02 Thread Rainer Jung
On 02.07.2010 02:37, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 7/1/2010 4:54 AM, Rainer Jung wrote: Usually mod_rewrite is perfectly compatible with mod_jk. I must confess, that I'm not 100% sure about the case, where you try to rewrite a request that

Re: Mod_jk: Uri * is invalid. Uri must start with /

2010-07-02 Thread Rainer Jung
On 02.07.2010 14:50, Matteo Turra wrote: I have Apache/2.2.14 (Unix) and mod_jk/1.2.28 with a Tomcat 6.0.20 farm in load balancing. In the mod_jk.log I get a line like this each second. [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (962): Uri * is invalid. Uri must start with / I checked

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread André Warnier
Murat Birben wrote: Actually i'm not familiar with the interanls of enctype=multipart/form-data thing. I think, i should read about this right? Right. Start here : http://www.w3.org/TR/html401/interact/forms.html 17.13 Form submission Then graduate to this if you really want to know the

Re: Tomcat 5.5 creates 0 byte files

2010-07-02 Thread André Warnier
Pid wrote: On 02/07/2010 14:33, Murat Birben wrote: It is a virtual machine on ESXi so df shows me the whole storage I Does it? I'm not sure it does. No, it does not. It shows only the disks allocated to this virtual machine. That's the point of virtual machines, you /can/ only access

Question on ClientAbortException

2010-07-02 Thread Leo Donahue - PLANDEVX
http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/connector/ClientAbortException.html What does this mean exactly? A user makes a request for a resource and closes the browser before they get the response? Jul 2, 2010 10:04:27 AM com.sun.faces.lifecycle.LifecycleImpl phase

Re: Question on ClientAbortException

2010-07-02 Thread Pid
On 02/07/2010 20:49, Leo Donahue - PLANDEVX wrote: http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/connector/ClientAbortException.html What does this mean exactly? A user makes a request for a resource and closes the browser before they get the response? Yup. p

Re: Implementing Connection Pooling

2010-07-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 7/2/2010 8:27 AM, Caldarale, Charles R wrote: From: Andrew Laughlin [mailto:andrew.laugh...@gmail.com] Subject: Re: Implementing Connection Pooling Because I won't have this info until run-time. Which means you can't configure the

RE: Question on ClientAbortException

2010-07-02 Thread Caldarale, Charles R
From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov] Subject: Question on ClientAbortException http://tomcat.apache.org/tomcat-6.0- doc/api/org/apache/catalina/connector/ClientAbortException.html What does this mean exactly? A user makes a request for a resource and closes

Re: Getting a servlet to work within static pages

2010-07-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 7/2/2010 10:04 AM, David kerber wrote: On 7/2/2010 9:23 AM, Pid wrote: Silly question, have you got the jars for that taglib in: ROOT/WEB-INF/lib? p Not silly at all. I was thinking they'd pick up what they need from the ginp

Re: embedded tomcat, work folder wipe out issue

2010-07-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Federico, On 7/2/2010 8:36 AM, Federico Fissore wrote: I've embedded tomcat so to have multiple webapps running with separate java processes (each embedded tomcat runs its own webapp, listening to a different tcp port), because of some memory

Re: JK connector and extra characters showing up

2010-07-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 6/30/2010 11:18 PM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: JK connector and extra characters showing up Those 4 extra characters are likely to be the chunk size. 31 66 66

Re: Application vars -

2010-07-02 Thread Shay Rojansky
Just my comments on the dispatching idea proposed below... If smooth processing with no freeze-time is important, I'm assuming there is also some sort of cluster/high-availability functionality. If this is the case, you are already running at least two Tomcats on different servers, and using some

Re: JNI error under tomcat: java.lang.UnsatisfiedLinkError

2010-07-02 Thread Shay Rojansky
Hi Dennis. So do you see the Load library successful message? Also, if I remember correctly, the code in eval.java is not a safe way to load a native library. It's a very good idea to place the System.loadLibrary in a static { } block, instead of in a method. The way your class is written, it's

Re: SSL SetAllPropertiesRule warning and error [SOLVED]

2010-07-02 Thread MohsenEbrahimi21
Thank you so much Renato. You are the best. I searched a lot and didn't find anything, but changing the protocol attribute works fine. Thank you so much again. -- View this message in context: http://old.nabble.com/SSL-SetAllPropertiesRule-warning-and-error-tp15432321p29062319.html Sent from