Re: Invalid characters in request header

2017-09-09 Thread Yuval Schwartz
to respond with 400. The solution is to fix the > client. > > On Sat, Sep 9, 2017 at 12:09 PM, Yuval Schwartz > wrote: > > > Hello Martynas, thanks. > > > > I'm not sure 404 is better than 400. > > > > Wouldn't it be preferable to validate the

Re: Invalid characters in request header

2017-09-09 Thread Yuval Schwartz
gt; > On Sat, Sep 9, 2017 at 9:46 AM, Yuval Schwartz > wrote: > > > Tomcat version:8.0.43 > > jdk1.8.0_05 > > > > Hello, > > > > I've asked a similar question in the past about illegal characters in the > > http request header (May 15,

Invalid characters in request header

2017-09-09 Thread Yuval Schwartz
Tomcat version:8.0.43 jdk1.8.0_05 Hello, I've asked a similar question in the past about illegal characters in the http request header (May 15, 2017). Certain users are able to send http requests to my server that contain the space character. This character is obviously not allowed. Tomcat recog

Encode uri

2017-05-15 Thread Yuval Schwartz
Tomcat version: 8.0.43 java: 1.8.0_05 Hello, On some web browsers, clients are able to enter uri's with unescaped illegal characters (eg: "|" or pipe). This causes an IllegalArgumentException to be thrown and a 400 response code. This behavior is reported here: https://bz.apache.org/bugzilla/show

Re: http to https redirect 301

2017-05-04 Thread Yuval Schwartz
09:23, Yuval Schwartz wrote: > >> Thanks, comments below. >> >> On Tue, May 2, 2017 at 10:43 AM, Mark Thomas wrote: >> >> On 02/05/2017 07:51, Yuval Schwartz wrote: >>> >>>> Thanks, remarks below. >>>> >>>> On Tue

Re: http to https redirect 301

2017-05-03 Thread Yuval Schwartz
Thanks, comments below. On Tue, May 2, 2017 at 10:43 AM, Mark Thomas wrote: > On 02/05/2017 07:51, Yuval Schwartz wrote: > > Thanks, remarks below. > > > > On Tue, May 2, 2017 at 12:12 AM, Mark Thomas wrote: > > > >> On 01/05/17 14:23, Yuval Schwartz

Re: http to https redirect 301

2017-05-01 Thread Yuval Schwartz
Thanks, remarks below. On Tue, May 2, 2017 at 12:12 AM, Mark Thomas wrote: > On 01/05/17 14:23, Yuval Schwartz wrote: > > Tomcat version: 8.0.22 > > jdk: 1.8.0_05 > > > > I have a webapp that uses a tomcat server behind a load balancer. > > > > I recen

http to https redirect 301

2017-05-01 Thread Yuval Schwartz
Tomcat version: 8.0.22 jdk: 1.8.0_05 I have a webapp that uses a tomcat server behind a load balancer. I recently added a the option to connect to my webapp via https. I would like to redirect all http requests to https. I achieved this by implementing the instruction outlined here: https://elas

Re: Should I increase connectionUploadTimeout value

2016-12-28 Thread Yuval Schwartz
Hello Andre, Thanks a lot. On Wed, Dec 28, 2016 at 12:51 PM, André Warnier (tomcat) wrote: > Hi. > > On 28.12.2016 10:14, Yuval Schwartz wrote: > >> Tomcat: 8.0.22 >> Java: jdk1.8.0_05 >> Server: Amazon Linux >> >> Hello, >> >>

Should I increase connectionUploadTimeout value

2016-12-28 Thread Yuval Schwartz
Tomcat: 8.0.22 Java: jdk1.8.0_05 Server: Amazon Linux Hello, I recently saw an IOFileUploadException on my server: org.apache.tomcat.util.http.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Timeout attempting to read dat a from the socket And

Re: Reading properties file in context.xml

2016-11-02 Thread Yuval Schwartz
. On Wed, Nov 2, 2016 at 4:22 PM, Antonio S. Cofiño wrote: > Yuval, > > Please take alook atthe second paragraph at Tomcat config doc's: > > https://tomcat.apache.org/tomcat-8.0-doc/config/ > > |You can put your properties on the > | > > |$CATALINA_BASE/conf/cat

Reading properties file in context.xml

2016-11-02 Thread Yuval Schwartz
Tomcat: 8.0.22 Java: jdk1.8.0_05 Hello, I would like to store credentials that go into the Resource element of my connection pool, in a properties file. (This is so I can untrack my properties file when committing to a repo). How would I go about accessing this properties file in my META-INF/con

Re: SQLExceptions after stopping Tomcat

2016-09-18 Thread Yuval Schwartz
Hello Chris, On Sat, Sep 17, 2016 at 7:40 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Yuval, > > On 9/16/16 2:33 PM, Yuval Schwartz wrote: > > Hey Chris, > > > > You have a line

Re: SQLExceptions after stopping Tomcat

2016-09-16 Thread Yuval Schwartz
? The reason this never raised a flag before is because I have another database accessing method that executes two queries in the same fashion and it never caused any issues. Thanks a lot. _ On Fri, Sep 16, 2016 at 7:18 PM, Yuval Schwartz wrote: > Thanks Chris, I'll have a look. > &g

Re: SQLExceptions after stopping Tomcat

2016-09-16 Thread Yuval Schwartz
Thanks Chris, I'll have a look. On Fri, Sep 16, 2016 at 6:41 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Yuval, > > On 9/16/16 3:32 AM, Yuval Schwartz wrote: > > A few more words/questio

Re: SQLExceptions after stopping Tomcat

2016-09-16 Thread Yuval Schwartz
an abandoned connection has been removed so that I can correct the bad code in my application. Thanks. On Thu, Sep 15, 2016 at 11:30 AM, Yuval Schwartz wrote: > Hello, > > I'd rather narrow down the problem a bit more before upgrading (to make > sure that that's the issue). >

Re: SQLExceptions after stopping Tomcat

2016-09-15 Thread Yuval Schwartz
ghts? Thanks a lot. _ On Mon, Sep 12, 2016 at 9:37 PM, Mark Thomas wrote: > On 12/09/2016 19:02, Yuval Schwartz wrote: > > Hey Mark, thanks a lot. > > > > On Mon, Sep 12, 2016 at 4:42 PM, Mark Thomas wrote: > > > >> On 12/09/2016 11:54, Yuval Schwartz wrote: &

Re: SQLExceptions after stopping Tomcat

2016-09-12 Thread Yuval Schwartz
Hey Mark, thanks a lot. On Mon, Sep 12, 2016 at 4:42 PM, Mark Thomas wrote: > On 12/09/2016 11:54, Yuval Schwartz wrote: > > Hello, > > > > Tomcat: 8.0.22 > > Java: jdk1.8.0_05 > > Server: Amazon Linux > > > > My web application looses access to

SQLExceptions after stopping Tomcat

2016-09-12 Thread Yuval Schwartz
Hello, Tomcat: 8.0.22 Java: jdk1.8.0_05 Server: Amazon Linux My web application looses access to the database after about 24hrs of running (probably dependent on amount of users, not time). No messages/exceptions are printed to the console or log files. When I stop tomcat, then I get a few "INF

Re: Restrict access to manager app by IP

2016-09-07 Thread Yuval Schwartz
t; >> To: Tomcat Users List > >> Subject: Re: Restrict access to manager app by IP > >> > > Yuval, > > > > On 9/2/16 9:29 AM, Yuval Schwartz wrote: > >>>> Thanks. I'll give it a shot and let you guys know how it goes. Any > >>&

Restricted Access to Tomcat Manager Caused Database Issues

2016-09-07 Thread Yuval Schwartz
Hello, Tomcat: 8.0.22 Java: jdk1.8.0_05 I recently restricted access to my Tomcat Manager App by: 1) Changing the name of the manager app. 2) Block access to the manager app by IP address. I did the following: A) Stopped Tomcat B) Simply renamed the manager app in $CATALINA_BASE/webapps by execu

Re: Restrict access to manager app by IP

2016-09-02 Thread Yuval Schwartz
Hello Peter, Thanks. I'll give it a shot and let you guys know how it goes. Any input on whether I should put this in my applications context.xml or in my [host] directory? Thank you. On Fri, Sep 2, 2016 at 4:24 PM, Kreuser, Peter wrote: > Hi Yuval, > > > > -Urs

Restrict access to manager app by IP

2016-09-02 Thread Yuval Schwartz
Tomcat: 8.0.22 JDK: 1.8.0_05 Hello, I am currently running a web application. I would like to restrict access to the manager app (it is currently being hit by spammers every so often who are unable to connect (get a message "...an attempt was made to authenticate the locked user")). I was think

Re: Linux Logging Rotate

2016-05-19 Thread Yuval Schwartz
me know if you have any suggestions for something simple. Thanks. On Friday, 20 May 2016, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > > On 5/18/16 7:41 AM, Yuval Schwartz wrote: > > Hello, > > > > I am currently running

Linux Logging Rotate

2016-05-18 Thread Yuval Schwartz
Hello, I am currently running a web application: Tomcat: 8.0.22 JDK: 1.8.0_05 Server: Amazon Linux AMI At the moment, I am simply using the default logging. catalina.out catalina.[date].log localhost.[date].log host-manager.[date].log localhost_access_log.[date].log manager.[date].log These log

Re: Mapping servlet to non English url pattern

2016-03-10 Thread Yuval Schwartz
Christopher, On Wed, Mar 9, 2016 at 5:38 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > Yuval, > > On 3/8/16 4:04 PM, Yuval Schwartz wrote: > > @WebServlet(name="SomeServlet", urlPatterns={"/help/why-no-work", > > "/iw/help/ל

Re: Mapping servlet to non English url pattern

2016-03-09 Thread Yuval Schwartz
On Wed, Mar 9, 2016 at 7:46 PM, Mark Eggers wrote: > Yuval, > > Notes are inline (I hope). This is quickly becoming a NetBeans question. > > On 3/9/2016 1:38 AM, Yuval Schwartz wrote: > > Thanks Mark, follow up questions below: > > > > On Wed, Mar 9, 2016 at

Re: Mapping servlet to non English url pattern

2016-03-09 Thread Yuval Schwartz
On Wed, Mar 9, 2016 at 5:38 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > Yuval, > > On 3/8/16 4:04 PM, Yuval Schwartz wrote: > > @WebServlet(name="SomeServlet", urlPatterns={"/help/why-no-work", > > "/iw/help/למה-לא-עובד&qu

Re: Mapping servlet to non English url pattern

2016-03-09 Thread Yuval Schwartz
Thanks Mark, follow up questions below: On Wed, Mar 9, 2016 at 1:26 AM, Mark Eggers wrote: > Yuval, > > On 3/8/2016 2:35 PM, Yuval Schwartz wrote: > > On Tue, Mar 8, 2016 at 10:53 PM, Mark Thomas wrote: > > > >> On 08/03/2016 20:20, Christopher Schultz wrote: >

Re: Mapping servlet to non English url pattern

2016-03-08 Thread Yuval Schwartz
h the Windows system that is not handling utf8 correctly? On Wed, Mar 9, 2016 at 12:35 AM, Yuval Schwartz wrote: > > > On Tue, Mar 8, 2016 at 10:53 PM, Mark Thomas wrote: > >> On 08/03/2016 20:20, Christopher Schultz wrote: >> > Yuval, >> > >> > On

Re: Mapping servlet to non English url pattern

2016-03-08 Thread Yuval Schwartz
On Tue, Mar 8, 2016 at 10:53 PM, Mark Thomas wrote: > On 08/03/2016 20:20, Christopher Schultz wrote: > > Yuval, > > > > On 3/8/16 12:38 PM, Yuval Schwartz wrote: > >> Hello Christopher, thanks, responses below. > > > >> On Tue, Mar 8, 2

Re: Mapping servlet to non English url pattern

2016-03-08 Thread Yuval Schwartz
On Tue, Mar 8, 2016 at 10:55 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Yuval, > > On 3/8/16 3:47 PM, Yuval Schwartz wrote: > > On Tue, Mar 8, 2016 at 10:20 PM, Christopher Schultz < > &

Re: Mapping servlet to non English url pattern

2016-03-08 Thread Yuval Schwartz
Thanks again, see below... On Tue, Mar 8, 2016 at 10:20 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Yuval, > > On 3/8/16 12:38 PM, Yuval Schwartz wrote: > > Hello Christopher, thanks, response

Re: Mapping servlet to non English url pattern

2016-03-08 Thread Yuval Schwartz
Hello Christopher, thanks, responses below. On Tue, Mar 8, 2016 at 6:23 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Yuval, > > On 3/8/16 3:14 AM, Yuval Schwartz wrote: > > Tomcat version: 8.0.2

Mapping servlet to non English url pattern

2016-03-08 Thread Yuval Schwartz
Tomcat version: 8.0.22 Jdk: 1.8.0_05 Server: Amazon Linux Hello, I want to map my servlet to a Hebrew url pattern. I tried placing the hebrew url pattern both in the "@webservlet" annotation (urlpatterns attribute) and in the the web.xml file. In both cases it doesn't work, it's as if there's no

Re: ELB Creating Multiple Sessions with Every Ping

2016-02-08 Thread Yuval Schwartz
On Mon, Feb 8, 2016 at 6:53 PM, Peter Rifel wrote: > Yuval, > > > > On 2/8/16, 6:57 AM, "Christopher Schultz" > wrote: > > >-BEGIN PGP SIGNED MESSAGE- > >Hash: SHA1 > > > >Yuval, > > > >On 2/7/16 2:27 AM, Yuval Schwartz

ELB Creating Multiple Sessions with Every Ping

2016-02-06 Thread Yuval Schwartz
tomcat version: 8.0.22 java: jdk1.8.0_05 server: amazon linux ami This might be outside the scope of this forum. I have an ELB (Elastic Load Balancer) distributing load between two instances that run tomcat. When I observe the tomcat manager app I see that at every health check interval (1 per 60

Re: Installing APR based Apache Tomcat Native Library

2016-02-06 Thread Yuval Schwartz
net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Yuval, > > On 2/4/16 3:14 AM, Yuval Schwartz wrote: > >> On Wed, Feb 3, 2016 at 11:15 PM, Christopher Schultz < > >> ch...@christopherschultz.net> wrote: > > > > ELB usually

Re: Installing APR based Apache Tomcat Native Library

2016-02-04 Thread Yuval Schwartz
Update below. On Thu, Feb 4, 2016 at 8:15 AM, Yuval Schwartz wrote: > Thanks, answers below. > > On Wed, Feb 3, 2016 at 11:15 PM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> &g

Re: Installing APR based Apache Tomcat Native Library

2016-02-03 Thread Yuval Schwartz
Thanks, answers below. On Wed, Feb 3, 2016 at 11:15 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Yuval, > > On 2/3/16 12:29 PM, Yuval Schwartz wrote: > > Thanks a lot. Comments below. > >

Re: Installing APR based Apache Tomcat Native Library

2016-02-03 Thread Yuval Schwartz
Thanks a lot. Comments below. On Wed, Feb 3, 2016 at 5:02 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Yuval, > > On 2/2/16 6:11 PM, Yuval Schwartz wrote: > > Thanks. Answers below >

Installing APR based Apache Tomcat Native Library

2016-02-02 Thread Yuval Schwartz
Thanks. Answers below On Tuesday, 2 February 2016, Christopher Schultz < ch...@christopherschultz.net > wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Yuval, > > On 2/2/16 9:28 AM, Yuval Schwartz wrote: > > On Tue, Feb 2, 2016 at 4:15 PM

Re: WebAppClassLoaderBase.clearReferencesThreads warning

2016-02-02 Thread Yuval Schwartz
Hello Terence, Can you explain what you mean when you say "who owns the thread"? On Tue, Feb 2, 2016 at 5:18 PM, Terence M. Bandoian wrote: > On 2/2/2016 2:49 AM, Yuval Schwartz wrote: > >> >> >> On Mon, Feb 1, 2016 at 7:36 PM, Terence M. Bandoian &

Re: Installing APR based Apache Tomcat Native Library

2016-02-02 Thread Yuval Schwartz
On Tue, Feb 2, 2016 at 4:15 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Yuval, > > On 2/2/16 6:21 AM, Yuval Schwartz wrote: > > Hello again Christoph, > > > > I think there is a pro

Re: Installing APR based Apache Tomcat Native Library

2016-02-02 Thread Yuval Schwartz
alled (yum remove apr-devel openssl-devel tomcat-native) then this warning goes away. Is there something that I forgot to configure when installing the APR library? Thank you _ On Thu, Jan 28, 2016 at 2:34 PM, Yuval Schwartz wrote: > Thank you Christoph, > > I installed a compiled version

Re: WebAppClassLoaderBase.clearReferencesThreads warning

2016-02-01 Thread Yuval Schwartz
? How else can I go about debugging this message? Thank you On Mon, Feb 1, 2016 at 5:59 PM, Terence M. Bandoian wrote: > On 2/1/2016 8:54 AM, Yuval Schwartz wrote: > >> Hello Mark, >> >> I think that the issue below was related to the way I was shutting down an >>

Re: WebAppClassLoaderBase.clearReferencesThreads warning

2016-02-01 Thread Yuval Schwartz
but I don't see any thread named http-apr-8080. Any ideas on how to trouble shoot this? Thanks. On Sun, Jan 31, 2016 at 8:18 PM, Yuval Schwartz wrote: > > > On Sunday, 31 January 2016, Mark Thomas wrote: > >> On 31/01/2016 08:06, Yuval Schwartz wrote: >> > Hellow

Re: WebAppClassLoaderBase.clearReferencesThreads warning

2016-01-31 Thread Yuval Schwartz
On Sunday, 31 January 2016, Mark Thomas wrote: > On 31/01/2016 08:06, Yuval Schwartz wrote: > > Hellow Mark, > > > > Thanks for the reply. > > Follow up questions below. > > > > On Fri, Jan 29, 2016 at 6:22 PM, Mark Thomas wrote: > > > >>

Re: WebAppClassLoaderBase.clearReferencesThreads warning

2016-01-31 Thread Yuval Schwartz
Hellow Mark, Thanks for the reply. Follow up questions below. On Fri, Jan 29, 2016 at 6:22 PM, Mark Thomas wrote: > On 29/01/2016 14:34, Yuval Schwartz wrote: > > Hello, > > > > tomcat version: 8.0.22 > > java: jdk1.8.0_05 > > server: Amazon Linux AMI &g

WebAppClassLoaderBase.clearReferencesThreads warning

2016-01-29 Thread Yuval Schwartz
Hello, tomcat version: 8.0.22 java: jdk1.8.0_05 server: Amazon Linux AMI I get the following warning message in my catalina log when I undeploy a web application: *WARNING [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThr

Re: Installing APR based Apache Tomcat Native Library

2016-01-28 Thread Yuval Schwartz
Thank you Christoph, I installed a compiled version from the distros on my production servers and I installed the binary version from http://tomcat.apache.org/download-native.cgi on my development server. A slight problem is that when I install from the distros I don't have control of the version

Installing APR based Apache Tomcat Native Library

2016-01-27 Thread Yuval Schwartz
Hello, tomcat version: 8.0.22 java: jdk1.8.0_05 server: Amazon Linux AMI When deploying my web application to my production environment (detailed above), I get a message: *The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on th

Re: Fwd:

2015-11-26 Thread Yuval Schwartz
On Tue, Nov 24, 2015 at 3:35 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > > Subject: Re: Fwd: > > > > First of all, I have a context.xml file in the WEB-INF folder of my > > > application (call it "myApplication

Re: Fwd:

2015-11-26 Thread Yuval Schwartz
Thanks a lot Christopher, my response is below. On Tue, Nov 24, 2015 at 2:26 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > Yuval, > > On 11/23/15 8:38 AM, Yuval Schwartz wrote: > > I am using tomcat 8.0.22.0 > > Language: Java > > development:

Re:

2015-11-23 Thread Yuval Schwartz
Update regarding my second question below...The first question is still valid as is and I am still interested in input. On Mon, Nov 23, 2015 at 3:38 PM, Yuval Schwartz wrote: > Hello, > > I am using tomcat 8.0.22.0 > Language: Java > development: Windows, NetBeans. > deploymen

Fwd:

2015-11-23 Thread Yuval Schwartz
Hello, I am using tomcat 8.0.22.0 Language: Java development: Windows, NetBeans. deployment: ec2 linux I am still having trouble understanding/working with "path" and "docBase" of context element. I have two questions: First of all, I have a context.xml file in the WEB-INF folder of my applicati

Re: Fwd:

2015-11-12 Thread Yuval Schwartz
On Wed, Nov 11, 2015 at 7:14 PM, Mark Eggers wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Yuval, > > On 11/11/2015 8:34 AM, Yuval Schwartz wrote: > > Hello Mark, > > > > Thanks for the reply. I am interested in finding where the >

Re: Fwd:

2015-11-11 Thread Yuval Schwartz
, it should be under c:\tomcat\webapps...but it is not. Thanks again. On Wed, Nov 11, 2015 at 6:13 PM, Mark Eggers wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Yuval, > > On 11/11/2015 7:06 AM, Yuval Schwartz wrote: > > Hello, > > > > I am using

Fwd:

2015-11-11 Thread Yuval Schwartz
Hello, I am using tomcat 8.0.22.0. My Catalina_Home is set to "C:\tomcat". IDE: Netbeans. Language: Java. For some reason, when I deploy a web application in Netbeans that has the name "applicationName" and context path: "/applicationName" I do not see the application in the c:\tomcat\webapps fol

Re: Fwd: Fwd:

2015-05-25 Thread Yuval Schwartz
Hello Chris, Answers below. Thanks again. On Mon, May 25, 2015 at 3:18 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Yuval, > > On 5/24/15 5:06 PM, Yuval Schwartz wrote: > > Firstly, I&#x

Re: Fwd: Fwd:

2015-05-24 Thread Yuval Schwartz
ative responsibilities). I have some more follow up questions and they are below. Thank you again for your time. On Sun, May 24, 2015 at 9:00 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Yuval, > > On 5/

Re: Fwd: Fwd:

2015-05-23 Thread Yuval Schwartz
oredCredential" when authenticating meaning they're not used when a method such as request.login() is performed). The way my code is now there is no purpose to specifying saltLength and iterations in the context.xml file. Thanks _ Yuval On Fri, May 22, 2015 at 8:1

Re: Fwd: Fwd:

2015-05-22 Thread Yuval Schwartz
ks On Thu, May 21, 2015 at 11:49 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Yuval, > > On 5/21/15 2:39 PM, Yuval Schwartz wrote: > > Hello, > > > > I have some follow-up qu

Fwd: Fwd:

2015-05-21 Thread Yuval Schwartz
Hello, I have some follow-up questions to Chris' response below (in blue). On Wed, May 20, 2015 at 5:53 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Yuval, > > On 5/20/15 9:34 AM, Yuval Schwa

Fwd:

2015-05-20 Thread Yuval Schwartz
Hello, I believe I am running tomcat 8.0 (although when I call the getServerInfo() method of the implicit ServletContext Object It tells me that I am running on 7.54) I configured my realm element in my context.xml file as follows (based on the howto guide: https://tomcat.apache.org/tomcat-8.0-do

Re: Apache/mod_jk serves random files from tomcat

2009-03-13 Thread Yuval Perlov
environment and the production environment is now live so I can't mess with it. Cheers! Yuval Perlov www.r-u-on.com On Mar 10, 2009, at 6:27 PM, Rainer Jung wrote: Hi Yuval, did you find out in the meantime, whether you were using the tcnative (aka APR) connector? Regards, Rainer

Re: Getting the tomcat server IP

2009-02-21 Thread Yuval Perlov
You are right, should have been: request.getLocalAddr() - my bad. Also, from the socket object you can always call socket.getLocalAddress() on an outgoing connection. This is useful if you want to make sure you are getting the IP for a particular network. Yuval On Feb 21, 2009, at 7:57 PM

Re: Getting the tomcat server IP

2009-02-20 Thread Yuval Perlov
going through a NAT this might not be your actual IP but the IP on your side of the NAT. Yuval Perov On Feb 20, 2009, at 2:21 AM, Natalie Forood wrote: Hello, Can you tell me how I can get the IP address of the interface that is running Tomcat? I can't use localhost, I need the IP o

Re: Apache/mod_jk serves random files from tomcat

2009-02-19 Thread Yuval Perlov
Just the swapping responses has me concerned. Thank you so much for the rest of your responses we will put them to good use once we give up on AJP completely. Yuval On Feb 18, 2009, at 8:45 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yuval, On 2/17/2009 1

Re: Apache/mod_jk serves random files from tomcat

2009-02-17 Thread Yuval Perlov
rection code use the full URL with the server name - turns out client redirect uses the server name from the request so it tries to hit the 8080 port (tomcat) instead of 80 (httpd). BTW - Am I the only one that is seriously worried that this kind of problem can even exist on a platform of th

Re: Apache/mod_jk serves random files from tomcat

2009-02-12 Thread Yuval Perlov
the static stuff came from tomcat as well. This naturally resulted in significantly more hits between apache and tomcat which made the problem appear much faster (hence my theory that some resource is being depleted over time). Yuval On Feb 11, 2009, at 3:44 PM, Christopher Schultz wrote

Re: Apache/mod_jk serves random files from tomcat

2009-02-10 Thread Yuval Perlov
just so we can switch to proxy_http but it takes a few day to test. Yuval On Feb 11, 2009, at 4:38 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yuval, On 2/10/2009 3:44 PM, Yuval Perlov wrote: We started restarting apache on a regular basis but if a user is i

Re: Apache/mod_jk serves random files from tomcat

2009-02-10 Thread Yuval Perlov
ughts? Regards, Yuval Perlov On Feb 5, 2009, at 11:27 PM, LukeK wrote: JohnHardin wrote: * Have others (that now seem to be "fixed") gotten things to work by updating to the latest mod_jk (1.2.27)? I suspect that it's related to 1.2.27 - I have been playing around with older v

Resource Mixup when using AJP proxy (strange one)

2009-01-19 Thread Yuval Perlov
/ipmaster ! ProxyPass /ptimg ! ProxyPass / ajp://localhost:8009/ If anyone has seen this or has some ideas how to troubleshoot and isolate, I'd be most grateful. Regards, Yuval Perlov www.r-u-on.com -

Resource Mixup when using AJP proxy (strange one)

2009-01-18 Thread Yuval Perlov
/ ProxyPass /ipmaster ! ProxyPass /ptimg ! ProxyPass / ajp://localhost:8009/ If anyone has seen this or has some ideas how to troubleshoot and isolate, I'd be most grateful. Regards, Yuval Perlov www.r-u-on.com --

Re: /* AJP with one exceptions

2008-12-22 Thread Yuval Perlov
That did the trick. Thanks a bunch! Yuval On Dec 22, 2008, at 4:51 PM, Rainer Jung wrote: On 22.12.2008 15:41, Yuval Perlov wrote: I tried this - thought I was missing something so I asked. For some reason this does not work on mac. If you use an older version of mod_jk than 1.2.27, you

Re: /* AJP with one exceptions

2008-12-22 Thread Yuval Perlov
I tried this - thought I was missing something so I asked. For some reason this does not work on mac. On Dec 22, 2008, at 3:37 PM, Rainer Jung wrote: On 22.12.2008 13:27, Yuval Perlov wrote: I am trying to configure httpd->tomcat ajp bridge that will catch all requests except for

/* AJP with one exceptions

2008-12-22 Thread Yuval Perlov
I am trying to configure httpd->tomcat ajp bridge that will catch all requests except for one directory to be served from httpd. Ideally I'd like to map /* to the AJP except for one /staticcontent directory to be served from apache. Has anyone done this? Thanks, Yuval Perlov www.r-

Re: File system resource for static content

2008-12-14 Thread Yuval Perlov
(see this table http://www.iangraham.org/books/html4ed/appb/mimetype.html) . For an exercise this isn't a must but some browsers will take issue with the server not reporting content-type correctly. Yuval Perlov www.r-u-on.com On Dec 14, 2008, at 9:29 PM, Robert Drescher wrote: Exactly. S

Re: File system resource for static content

2008-12-14 Thread Yuval Perlov
The problem with this approach is that when you upgrade the war file the files will be deleted. I believe It is better to save the files outside the web app and deliver them either with a symbolic link from within your war file or using a reader servlet. Yuval Perlov www.r-u-on.com On

Re: address bar shows ip instead of domain name

2008-07-28 Thread Yuval Perlov
Where ever you forward, that's what the address bar shows On Jul 28, 2008, at 7:45 PM, nilanthan wrote: Hi, I have a website hosted on netfirms. I have a domain,exmaple, mydomain.com and it forwards to an address http:/xx.xx.xxx.xx:8080/folder1/ welcome.action where xx is the ip of the se

Re: Programatically selecting SSL certificate

2008-05-21 Thread Yuval Perlov
You are right of course, silly me. Is there a least a way to programatically add connectors at run time? On May 21, 2008, at 1:31 PM, Peter Crowther wrote: From: Yuval Perlov [mailto:[EMAIL PROTECTED] Is anyone aware of a way to programatically decide which SSL certificate to use? I am

Programatically selecting SSL certificate

2008-05-21 Thread Yuval Perlov
Hello All, Is anyone aware of a way to programatically decide which SSL certificate to use? I am exploring the option of letting the user upload her own certificate. Of course I only want that user to use the newly uploaded certificate. Any ideas are welcome... Yuval Perlov www.r-u-on.com

Re: InvalidClassException between Tomcat and Eclipse

2008-05-16 Thread Yuval Perlov
It is also affected by the compiler version. It is most advisable to add serialVersionUID Yuval Perlov www.r-u-on.com On May 17, 2008, at 7:16 AM, Dola Woolfe wrote: Hi, I get java.io.InvalidClassException when I send a serialized class from an application launched by Eclipse to a JSP page

Re: Tomcat suddenly dies without a whisper

2008-05-16 Thread Yuval Perlov
Did you check the Java heap? What is the max heap defined. It would be good to add gc logging. Yuval Perlov www.r-u-on.com On May 16, 2008, at 6:38 AM, [EMAIL PROTECTED] wrote: Hi, We are running Tomcat 5.5 on a powerful VM Server. MS Sql Server is also on the VM. It is fronted by an

Re: Unable to display UK Pound Sign

2008-05-12 Thread Yuval Perlov
Use the £ to side step the issue. diff the old and the new page to see what changed (something must have, right?) On May 12, 2008, at 5:33 PM, Stephen Nelson-Smith wrote: Hello, On Mon, May 12, 2008 at 3:30 PM, Yuval Perlov <[EMAIL PROTECTED]> wrote: Probably the encoding has c

Re: Unable to display UK Pound Sign

2008-05-12 Thread Yuval Perlov
Probably the encoding has changed On May 12, 2008, at 5:15 PM, Stephen Nelson-Smith wrote: I've just upgraded from 4.1.37 to 6.0.16. My app works, but where my code usually displays a British Pound sign, I get an odd char - a ? in a diamond on Linux, an empty box on Windows. Here's the html t

Re: Tomcat problem on a multiple CPU system

2008-05-04 Thread Yuval Perlov
Perhaps you have some contention between the threads or intensive IO. Can you elaborate a little about the servlet job? Time it takes, kind of processing it does, etc. Yuval Perlov R-U-ON On May 4, 2008, at 11:21 PM, Gilbert, Antoine wrote: Hi I have a 2x quad core (8 cpu units

Re: how do I dynamically include files

2008-05-01 Thread Yuval Perlov
Actually, I just checked some of our code and this: ">jsp:include> works... I think the problem is that you are do mix a string and a runtime expression in a tag. These are not html tags - the variables are passed to a function - it's all or nothing. Try: <% String path = "directory/"+fi

Re: httpd SSL -> Tomcat VS. Tomcat SSL standalone?

2008-05-01 Thread Yuval Perlov
as not a GC problem). Hope this helps... Yuval Perlov R-U-ON PS It is windows. On Apr 30, 2008, at 4:37 PM, Larry Prikockis wrote: Yuval Perlov wrote: Out tomcat servers are handling around 30K SSL hits every 5 minutes with very little effort (10% cpu average on a dual core machine, go

Re: how do I dynamically include files

2008-05-01 Thread Yuval Perlov
<% getServletContext().getRequestDispatcher(fileName).include(req,resp); %> On May 1, 2008, at 10:35 PM, Jonathan Mast wrote: I know this not exactly a Tomcat issue, but thought someone could help. Here is what I'm trying to do: Dynamically include a file where the file name is dynamic. Neither

Re: httpd SSL -> Tomcat VS. Tomcat SSL standalone?

2008-04-28 Thread Yuval Perlov
andle the load and we had to roll back (quickly) to a tomcat only configuration. Hope this helps... Yuval Perlov www.r-u-on.com On Apr 28, 2008, at 6:27 PM, Larry Prikockis wrote: I know the latest edition of the O'Reilly Tomcat book by Brittain and Darwin strongly advocates

Re: getInputStream problem

2008-03-16 Thread Yuval Perlov
I am not sure this will encourage you but I've got the same setup and it works. Is that the whole jsp and nothing but? is there any servlet that does something before it? To isolate, you might want to use curl or some other tool to issue the post command. Yuval Perlov www.r-u-on.co

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

Re: sessionID moves to other PC

2008-02-28 Thread Yuval Perlov
ot;Cache-Control", "post-check=0, pre-check=0"); resp.setHeader("Pragma", "no-cache"); On Feb 28, 2008, at 11:25 AM, Sascha Monteiro wrote: Hi, When I see this behaviour I don't see the output on the server (thanks Yuval) It is just suddenly on my browser.. May

Re: sessionID moves to other PC

2008-02-26 Thread Yuval Perlov
Maybe the browser is getting an old page from the cache? Clear the browser cache and see if its better. Also, use a System.out.println() and make sure what you are seeing on the browser is what really happens on the server. Yuval Perlov www.r-u-on.com On Feb 26, 2008, at 10:22 AM, Sascha

Re: sessionID moves to other PC

2008-02-25 Thread Yuval Perlov
the session and print it to the page. If the strings differ, tomcat is doing fine and you should check where you mix the variables. Yuval Perlov http://www.r-u-on.com/ On Feb 26, 2008, at 5:58 AM, Sascha Monteiro wrote: Hi, I am struggeling with securing my pages where private data needs

Re: ssl.SessionId Cache keeps growing

2008-01-21 Thread Yuval Perlov
On Jan 21, 2008, at 11:50 PM, Caldarale, Charles R wrote: From: Yuval Perlov [mailto:[EMAIL PROTECTED] Subject: ssl.SessionId Cache keeps growing 1. Any one has ever met this problem? I haven't, but it's definitely an interesting one. 2. Is there anyway to access the ssl.Sessio

Re: ssl.SessionId Cache keeps growing

2008-01-21 Thread Yuval Perlov
u which user is actually sending the request. Yuval Perlov www.r-u-on.com On Jan 22, 2008, at 3:42 AM, Jonadan wrote: IMHO, there isn't much you can do about once you use sessions. The problem with session is that there is no natural way telling that session is ended and can be discarded! S

ssl.SessionId Cache keeps growing

2008-01-21 Thread Yuval Perlov
connector (or, as a last resort to all connectors). 4. Does anyone know of a mechanism to flush all SoftReference or limit their number? 5. Can you think of any other way to tackle this? 6. What were the guys in Sun thinking??? Thanks! Yu

  1   2   >