RE: [COMMERCIAL] Re: [COMMERCIAL] Re: Need Help: - jk doesn't work after upgrade to1.2.40 from 1.2.23

2016-03-19 Thread ZHAO Eric
Andre, Martin, Finally I got the problem fixed after further debugging and code reading, I need to add "JkMountCopy All" in mod_jk.conf, no need any other change on the old release configuration. Thanks for your help. Best Regards, Eric. -Original Message- From: ZHAO Eric Sent:

Re: Multipart form submission does not work over SSL HTTP2 on Tomcat 9

2016-03-19 Thread Mark Olsson
On Sat, Mar 19, 2016 at 2:21 PM, Ajay Verma wrote: > Hello, > I'm trying to get multipart forms working in Tomcat 9 over HTTP2 (with TLS > enabled). > > The SSL Connector configuration in server.xml (Tomcat 9) is given > below

Re: porting jsvc startup script from init.d to systemd tomcat.service, resolved

2016-03-19 Thread Daniel Savard
André, I was just trying to understand why this was a so hard requirement to run on port 80. The provided answers didn't help to understand why this was hardly needed. I was just questioning and sometimes, we, yes I include myself, look at a problem with a narrow view how to solve it and it may

Multipart form submission does not work over SSL HTTP2 on Tomcat 9

2016-03-19 Thread Ajay Verma
Hello, I'm trying to get multipart forms working in Tomcat 9 over HTTP2 (with TLS enabled). The SSL Connector configuration in server.xml (Tomcat 9) is given below Multipart form submission does not work (the form variable values are not retrieved on server in the servlet) with

Re: porting jsvc startup script from init.d to systemd tomcat.service, resolved

2016-03-19 Thread tomcat
On 19.03.2016 22:06, Lyallex wrote: ... I have it working now, I'd be glad to advise if required Yes, please describe your solution. With the increasing footprint of systemd, I am sure that this information will be helpful to other tomcat users, when they search the list archives. It

Re: porting jsvc startup script from init.d to systemd tomcat.service, resolved

2016-03-19 Thread Lyallex
On 19 March 2016 at 21:02, André Warnier (tomcat) wrote: > Daniel, > > first of all, stop top-posting (this applies to both of you). This is not > the style of posting desired on this list. > See http://tomcat.apache.org/lists.html#tomcat-users, #6. > > Secondly, > the original

Accessing Tomcat internal components in a web-application

2016-03-19 Thread Chiranga Alwis
Hi, I have posted the following question in stackoverflow forum. http://stackoverflow.com/questions/36106968/accessing-tomcat-internal-components-in-a-web-application A well explained solution is highly appreciated.

Re: porting jsvc startup script from init.d to systemd tomcat.service, resolved

2016-03-19 Thread tomcat
Daniel, first of all, stop top-posting (this applies to both of you). This is not the style of posting desired on this list. See http://tomcat.apache.org/lists.html#tomcat-users, #6. Secondly, the original poster (lyallex) wants to run Tomcat under Linux, without a front-end, as a webserver,

Re: porting jsvc startup script from init.d to systemd tomcat.service, resolved

2016-03-19 Thread Daniel Savard
I still don't see how the number of concurrent sessions is related to the port number. The default ports for Tomcat are 8080 and 8443. For huge websites, usually you have a load balancer as a front-end anyway. You then get the capability to distribute the workload on more than one instance of

Re: porting jsvc startup script from init.d to systemd tomcat.service, resolved

2016-03-19 Thread Lyallex
On 19 March 2016 at 19:19, Daniel Savard wrote: > I see what you were trying to achieve, however I don't see much > interest in that. Really, I've been running a successful commercial web site for the last 4 years using Tomcat as a standalone web server and

Re: porting jsvc startup script from init.d to systemd tomcat.service, resolved

2016-03-19 Thread Daniel Savard
I see what you were trying to achieve, however I don't see much interest in that. 1) Obviously, if you were expecting systemd to solve that problem, you were wrong and it is a sane behavior of systemd to not allow that neither. 2) Your solution to your problem is lying on jsvc alone. 3) I believe

Re: systemd tomcat script for Linux EL7

2016-03-19 Thread Lyallex
Do you have the answer to my question? CentOS Linux release 7.2.1511 I think it actually boils down to 'how do you start start Tomcat as a daemon (using jsvc) on a privileged port (<1024) switching to a no login user (tomcat) on a system that uses a systemd init process. The rant you refer to

Re: porting jsvc startup script from init.d to systemd tomcat.service, resolved

2016-03-19 Thread Lyallex
It's the simplest way to find out which port you have Tomcat listening on *NIX based systems don't allow non root uses bind to ports < 1024 jsvc http://commons.apache.org/proper/commons-daemon/jsvc.html solves this problem, nobody seems to have grasped that this is what I was asking about. I

Re: porting jsvc startup script from init.d to systemd tomcat.service, resolved

2016-03-19 Thread Daniel Savard
Why? What is the point? The server.xml has nothing to do with integration with systemd. - Daniel Savard 2016-03-19 1:40 GMT-04:00 Lyallex : > Would you mind posting your server.xml, here is the relevant bit from mine. > > > >

Re: contextDestroyed() method not called

2016-03-19 Thread Daniel Savard
Hi Chuck, I'm running it on Window 2012 Server as well as Linux RHEL. And no, I am not sending a terminate signal with kill -9. That's why I said I am stopping the application or the instance (both cases depict the same behavior) rather than saying I am terminating it. Regards,

"Distinct and non-overlapping" context roots

2016-03-19 Thread Paul Benedict
This question is not about Tomcat per se, but it does affect it. It's really about the EE specification in regards to any servlet container. I'd like to get professional opinions on this part of the specification. I am quoting from EE 5.0 (see link below), section 8.3.1, paragraph 3c: The

[ANN] Apache Tomcat 9.0.0.M4 available

2016-03-19 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat 9.0.0.M4. Apache Tomcat 9 is an open source software implementation of the Java Servlet, JavaServer Pages, Java Unified Expression Language, Java WebSocket and JASPIC technologies. Apache Tomcat 9.0.0.M4 is a milestone

Re: Question about your recent security (CVE-2015-5345) fix in 7.0.68 build

2016-03-19 Thread Harish Krishnan
Thanks a lot for the clear explanation, Mark. I have all my questions answered, appreciate your help & you guys are Great! My apologies for the previous follow-up emails, I am still a novice in tomcat & failed in understanding the exact fix quicker. regards Harish Krishnan On Wed, Mar 16, 2016

Re: systemd tomcat script for Linux EL7

2016-03-19 Thread Me Self
Hi I use this Systemd unit file (from https://sorenpoulsen.com/install-tomcat-8-on-ubuntu) on ubuntu, but it's probably fairly generic as the unit file just calls tomcats start and stop scripts directly. [Unit] Description=Apache Tomcat After=syslog.target network.target [Service] Type=forking

RE: contextDestroyed() method not called

2016-03-19 Thread Caldarale, Charles R
> From: Daniel Savard [mailto:daniel.sav...@gmail.com] > Subject: Re: contextDestroyed() method not called Read the mailing list rules: don't top post. http://tomcat.apache.org/lists.html#tomcat-users > I'm running it on Window 2012 Server as well as Linux RHEL. Ok, good to know. > And no, I

Re: systemd tomcat script for Linux EL7

2016-03-19 Thread jieryn
Meh. It's short and sweet and working systemd unit file. [Unit] Description=Apache Tomcat Web Application Container [Service] User=tomcat Group=tomcat ExecStart=/usr/share/tomcat/bin/catalina.sh run [Install] WantedBy=multi-user.target On Wed, Mar 16, 2016 at 8:57 PM, Christopher Schultz

RE: contextDestroyed() method not called

2016-03-19 Thread Caldarale, Charles R
> From: Daniel Savard [mailto:daniel.sav...@gmail.com] > Subject: contextDestroyed() method not called > I noticed a problem with one of my web applications which requires > some cleanup when shutdown. It seems this cleanup isn't happening even > if everything has been put in the

Re: systemd tomcat script for Linux EL7

2016-03-19 Thread Lyallex
Apologies for dredging this up but I'm having some problems with this. Any ideas much appreciated. Ii have been forced to move from a version of centOS the used the old /etc/rc.d/init.d way of doing things to a new version of CentOS that uses systemd. The hosts can't or won't help because I'm

Re: systemd tomcat script for Linux EL7

2016-03-19 Thread jieryn
ExecStartPre=/usr/sbin/setcap 'cap_net_bind_service=+ep' /usr/share/tomcat/bin/catalina.sh I see a lot of advice for start/stop instead of run within systemd unit files, both here and in the wild. The gem in the rant I linked is about start vs run. Sorry if you didn't see it. On Thu, Mar 17,

Re: contextDestroyed() method not called

2016-03-19 Thread Daniel Savard
>From the manager clicking on the Stop button for the application. For the instance, on Windows just stop the Tomcat service, on Linux, just run the catalina.sh stop script. - Daniel Savard 2016-03-17 8:47 GMT-04:00 Caldarale, Charles R : >> From:

Re: systemd tomcat script for Linux EL7

2016-03-19 Thread Lyallex
But that doesn't work for ports < 1024 On 17 March 2016 at 01:47, jieryn wrote: > Meh. It's short and sweet and working systemd unit file. > > [Unit] > Description=Apache Tomcat Web Application Container > [Service] > User=tomcat > Group=tomcat >

RE: Tomcat 8 Hung State

2016-03-19 Thread Caldarale, Charles R
> From: Theo Sweeny [mailto:theo.swe...@avios.com] > Subject: Tomcat 8 Hung State > yesterday Tomcat 8 went into a hung state, because an external API went > offline. > Eventually the external service was restored but Tomcat was unable to > recovery from it. > When a new connection is sent

Re: systemd tomcat script for Linux EL7

2016-03-19 Thread jieryn
http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/systemd-house-of-horror/tomcat.html On Wed, Mar 16, 2016 at 1:01 PM, Lyallex wrote: > Apologies for dredging this up but I'm having some problems with this. > Any ideas much appreciated. > > Ii have been forced to move

Re: Tomcat 8 Hung State

2016-03-19 Thread Mark Thomas
On 17 March 2016 16:13:28 GMT+00:00, Theo Sweeny wrote: >Hello - yesterday Tomcat 8 went into a hung state, because an external >API went offline. > > >Eventually the external service was restored but Tomcat was unable to >recovery from it. > > >When a new connection is

Re: Tomcat 8 Hung State

2016-03-19 Thread Theo Sweeny
Hi Mark, From: Mark Thomas Sent: 17 March 2016 17:36 To: Tomcat Users List Subject: Re: Tomcat 8 Hung State On 17 March 2016 16:13:28 GMT+00:00, Theo Sweeny wrote: >Hello - yesterday Tomcat 8 went into a hung

Re: Apache+SSL+Tomcat+WebSocket

2016-03-19 Thread Mark Eggers
On 3/17/2016 3:30 PM, Edwin Quijada wrote: > Hi! I am trying to install apache+SSL+Tomcat with my app that use > websocket. I read that websocket doesnt connect with tomcat and > apache like proxy. > > I need information where I can connect this now I have installed > Apache with SSL and Tomcat

Tomcat 8 Hung State

2016-03-19 Thread Theo Sweeny
Hello - yesterday Tomcat 8 went into a hung state, because an external API went offline. Eventually the external service was restored but Tomcat was unable to recovery from it. When a new connection is sent to Tomcat the connection hangs as no additional thread can be allocated to the new

porting jsvc startup script from init.d to systemd tomcat.service, resolved

2016-03-19 Thread Lyallex
I thought you might be interested in the resolution to this. It turns out that we needed to reproduce the environment in tomcat.service For some reason ExecStart=/etc/rc.d/init.d/tomcat7 doesn't work (file shown at the end of this message) Instead, in /etc/systemd/system/tomcat.service we

Apache+SSL+Tomcat+WebSocket

2016-03-19 Thread Edwin Quijada
Hi! I am trying to install apache+SSL+Tomcat with my app that use websocket. I read that websocket doesnt connect with tomcat and apache like proxy. I need information where I can connect this now I have installed Apache with SSL and Tomcat not connected yet. The scenario is this BROWSE