Re: loading images through a Servlet

2015-10-01 Thread Thad Humphries
The servlet that gets the image is the src for the image. The servlet should return the correct MIME type for the image (image/jpeg, image/png, etc). Update the src attribute and the image should update. That's how I do it. However I'm not writing straight JavaScript. You should put your question t

Re: Tomcat 8 reliability/performance on Windows 2008 R2 Server vs. RHEL/CentOS

2015-10-01 Thread Jason Britton
OP here. I really appreciate the objective well thought out responses, this community has never disappointed me. A more qualified list of respondents I will not find elsewhere. George I should have said Windows Server 2012 R2. A lot of our Windows servers are still 2008 R2 but any new ones that

loading images through a Servlet

2015-10-01 Thread Bill Ross
Please let me know if there is a better place to ask Servlet/javascript interface questions. I have a slide show web page that does the logical equivalent of: var img = new Image(); img.src = "/images/" + /servlet/getnextfile(params) img.[onload]: document["image"].src = img.src; re

Re: Parallel deployment URL issue

2015-10-01 Thread Aurélien Terrestris
Hello maybe the Java documentation is badly written, because it is saying ( http://docs.oracle.com/javase/7/docs/api/java/io/File.html#toURL%28%29 ) : "This method does not automatically escape characters that are illegal in URLs." # character is not illegal, but reserved (see gen-delims definiti

Re: Parallel deployment URL issue

2015-10-01 Thread Chris Gamache
I didn't know that you could do that for parallel deployment! A quick follow-up set of questions: Up until now I was counting on manager and tomcat's unpackWAR handling the nuts and bolts of the deploy process. Even though the warfile is named yourWar-2.war, if I allow tomcat to unpack the wa

Re: maxFileSize

2015-10-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jamie, On 10/1/15 4:47 PM, Jamie Jackson wrote: > Point taken, Christopher. I did just discover that I'm actually > running 7.0.59, which isn't as egregious as 7.0.20. (I had got the > version information from an unreliable source before, apparently

Re: Tomcat 8 reliability/performance on Windows 2008 R2 Server vs. RHEL/CentOS

2015-10-01 Thread Aurélien Terrestris
Howard, I didn't say this was not running well on Windows, but that it seems easier (less work) on Linux for the same result. If you're expecting "secured" Tomcats, you'll run your windows service with a service account. This means that you will have to set up properly the rights for this account

Re: maxFileSize

2015-10-01 Thread Jamie Jackson
Point taken, Christopher. I did just discover that I'm actually running 7.0.59, which isn't as egregious as 7.0.20. (I had got the version information from an unreliable source before, apparently.) On Thu, Oct 1, 2015 at 3:41 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -B

Re: Conditional logging

2015-10-01 Thread Aurélien Terrestris
Hello, I was just trying to answer to this question asked last year, since some of my customers are also asking the same now and then. I admit that sometimes there are really many health-check logs (1 or 2 monitoring tools + load-balancers checks,..). But, considering my customers ideas, they're

Re: maxFileSize

2015-10-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jamie, On 10/1/15 1:29 PM, Jamie Jackson wrote: > I'd meant to include that I'm running Tomcat 7.0.20 on Oracle Java > 7 (64-bit). Before you do anything else, you really need to upgrade Tomcat. That version of Tomcat is more than 4 years old and h

Re: Parallel deployment URL issue

2015-10-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 10/1/15 11:51 AM, Chris Gamache wrote: > Hi all, > > I'm stuck using axis2-1.5.4. > > Here's what I think is happening: > > Axis2 does this sort of container-in-a-container thing. It creates > its own classloader and pulls in all of its

Re: Tomcat 8 reliability/performance on Windows 2008 R2 Server vs. RHEL/CentOS

2015-10-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jason, On 9/30/15 4:23 PM, Jason Britton wrote: > Hello Good People - We currently have multiple Tomcat instances > deployed on RHEL in production with no issues but I am getting > asked why we shouldn't migrate everything to run on Windows 2008 R2

Re: Conditional logging

2015-10-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Aurélien, On 10/1/15 10:40 AM, Aurélien Terrestris wrote: > A late reply to this topic... Without the conditional test provided > by the Rewrite (native Tomcat 8 Rewrite or url-rewrite), it is > possible to use an Apache in front of the Tomcat which

Re: maxFileSize

2015-10-01 Thread Jamie Jackson
I'd meant to include that I'm running Tomcat 7.0.20 on Oracle Java 7 (64-bit). On Thu, Oct 1, 2015 at 1:22 PM, Jamie Jackson wrote: > Hi Folks, > > My question has a few facets: > > >1. How do you get the active maxFileSize value from Tomcat? (Is it >possible in, say, jConsole?) >2.

maxFileSize

2015-10-01 Thread Jamie Jackson
Hi Folks, My question has a few facets: 1. How do you get the active maxFileSize value from Tomcat? (Is it possible in, say, jConsole?) 2. Is the default value's ("-1" )

Re: Tomcat 8 reliability/performance on Windows 2008 R2 Server vs. RHEL/CentOS

2015-10-01 Thread Howard W. Smith, Jr.
On Thu, Oct 1, 2015 at 11:46 AM, Aurélien Terrestris wrote: > I recommend Linux for 2 reasons : > - easier to install and maintain a secured Tomcat (especially when > using different TOMCAT_HOME & TOMCAT_BASE, on Windows it's pretty > difficult to know how to secure all directories correctly) ;

Parallel deployment URL issue

2015-10-01 Thread Chris Gamache
Hi all, I'm stuck using axis2-1.5.4. Here's what I think is happening: Axis2 does this sort of container-in-a-container thing. It creates its own classloader and pulls in all of its jar libraries dynamically. The problem is that it uses a java.net.URL to target the files. This would be fine exce

Re: Tomcat 8 reliability/performance on Windows 2008 R2 Server vs. RHEL/CentOS

2015-10-01 Thread Aurélien Terrestris
I recommend Linux for 2 reasons : - easier to install and maintain a secured Tomcat (especially when using different TOMCAT_HOME & TOMCAT_BASE, on Windows it's pretty difficult to know how to secure all directories correctly) ; if you have to deal with file uploading, you don't want a system which

Re: Tomcat 8 reliability/performance on Windows 2008 R2 Server vs. RHEL/CentOS

2015-10-01 Thread Mark H. Wood
On Wed, Sep 30, 2015 at 01:23:14PM -0700, Jason Britton wrote: > Hello Good People - > We currently have multiple Tomcat instances deployed on RHEL in production > with no issues but I am getting asked why we shouldn't migrate everything > to run on Windows 2008 R2 Server instead. My stomach churn

Re: Class Loader Problems with Tomcat 8 + Ant Task

2015-10-01 Thread Amit Lonkar
Hi Chris Any ideas why the Ant Task might be failing in Tomcat 8? Yes the application works on a clean fresh tomcat 7 but not on tomcat 8. We have a Administrator application that is used for patching our scheduling software. The patch includes the war files and get deployed to all nodes using

RE: Conditional logging

2015-10-01 Thread Aurélien Terrestris
A late reply to this topic... Without the conditional test provided by the Rewrite (native Tomcat 8 Rewrite or url-rewrite), it is possible to use an Apache in front of the Tomcat which will have two ProxyPass, and two virtual hosts on the Tomcat itself (one servicing anything but the healtheck, th

Re: logjam attacks in tomcat 7

2015-10-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rahul, On 10/1/15 6:22 AM, Rahul Singh wrote: > Ok Thanks for your quick response. Could you please tell me the > size of cipher key mentioned below is it stronger than 1024? > ciphers="TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, > TLS_ECDHE_RSA_WITH_A

Re: Tomcat 8 reliability/performance on Windows 2008 R2 Server vs. RHEL/CentOS

2015-10-01 Thread David kerber
On 10/1/2015 9:57 AM, George Sexton wrote: ... but I am looking for more concrete information about why this could be problematic vs. running Tomcat on RHEL/CentOS. My gut says far more Tomcat deployments in production are done on top of Linux based OS's vs. Windows. Any thoughts on making an

Re: Tomcat 8 reliability/performance on Windows 2008 R2 Server vs. RHEL/CentOS

2015-10-01 Thread George Sexton
On 9/30/2015 2:23 PM, Jason Britton wrote: Hello Good People - We currently have multiple Tomcat instances deployed on RHEL in production with no issues but I am getting asked why we shouldn't migrate everything to run on Windows 2008 R2 Server instead. My stomach churns at the thought Aside

Re: Parallel Deployment: Can I request a specific webapp version?

2015-10-01 Thread Linus Brimstedt
Hi, Ok, so to conclude this is not possible at the moment. Thanks for the input and clarifications as well as the suggested ways to work :) br /Linus On 29 September 2015 at 00:16, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 >

RE: logjam attacks in tomcat 7

2015-10-01 Thread Rahul Singh
Ok Thanks for your quick response.Could you please tell me the size of cipher key mentioned below is it stronger than 1024?ciphers="TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_