Re: Using JMX to get ONLY running applications

2016-07-13 Thread Amit Pande
Thanks a lot, Mark for the pointers. And I apologies if the questions here raise a doubt about lack of homework. Personally I do try to use Google and/or read and understand documentation as much as I can. Sometimes however I feel (may be wrongly again), documentation is not enough. E.g.

Asynchronous callback from application deployed in tomcat

2016-07-13 Thread Mohanavelu Subramanian
Hi All, Good morning. Our application is deployed on tomcat. We have apache load balancer and tomcat container running on separate virtual machines. We got a requirement to implement asynchronous callback for long running tasks from client. So, with this feature client would send soap request

Re: Disable SSLv3 & TLSv1.0 in Tomcat 7

2016-07-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Varun, On 7/8/16 2:16 AM, varun gulati wrote: > Hello Team, Since past few days i have been struggling with > disabling TLSv1.0 in my Tomcat configuration. Here is the content > of my server.xml file. I was able to disable SSLv3, and things were >

Re: A complex issue concerning the application lifecycle, MBeans and Spring

2016-07-13 Thread Guido Jäkel
well-known problems with the dangling threads. You may advance to the next paragraph and take a look at it later. 20160713-161415.617 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] [] [HostConfig] Undeploying context [] 20160713-161415.618 INFO [ContainerBackgroundProce

Re: Need help setting up SSL on Tomcat 8

2016-07-13 Thread Daniel Savard
2016-07-13 15:56 GMT-04:00 Sean Son : > Thank you for your answer guys. Is there anywhere in the Tomcat config > files that I would need to specify the DNS name? Like in Apache we would > specify the DNS name in a Virtualhost. > > No. - Daniel

Re: A complex issue concerning the application lifecycle, MBeans and Spring

2016-07-13 Thread Guido Jäkel
On 13.07.2016 22:41, Mark Thomas wrote: > I've been through the MBean descriptor for a web application and as far > as I can tell, reading of all of the attributes is passive. It might > return a few unexpected nulls or maybe thrown an exception but it > shouldn't trigger any additional

Re: Using JMX to get ONLY running applications

2016-07-13 Thread Mark Thomas
On 13/07/2016 12:14, Amit Pande wrote: > It seems the stateName attribute of MANAGER or WEBMODULE Mbean is NOT > getting set correctly if there are any servlet errors. > > In particular, when Spring dispatcher servlet is failed to load then the > applications state should be STOPPED. However,

Re: A complex issue concerning the application lifecycle, MBeans and Spring

2016-07-13 Thread Mark Thomas
On 13/07/2016 15:20, Jäkel, Guido wrote: > But if there is a certain request to some MBean while the App is > starting, there will be a request to the application (via > catalina-exec). And then, as a race condition, the initialization of > the Spring framework, esp. the bean wiring will fail with

Re: Why does the Rfc6265CookieProcessor handle the version 1 cookie?

2016-07-13 Thread Mark Thomas
On 13/07/2016 07:28, Kyohei Nakamura wrote: > Hi all, > > The documentation of the Cookie Processor says that the > Rfc6265CookieProcessor is based on the RFC6265. > The RFC6265 specification does not allow the Version attribute in the > Cookie header. > However the Rfc6265CookieProcessor handles

Re: Need help setting up SSL on Tomcat 8

2016-07-13 Thread Sean Son
Thank you for your answer guys. Is there anywhere in the Tomcat config files that I would need to specify the DNS name? Like in Apache we would specify the DNS name in a Virtualhost. On Wed, Jul 13, 2016 at 7:56 AM, Ognjen Blagojevic < ognjen.d.blagoje...@gmail.com> wrote: > Sean, > > On

[ANN] Apache Tomcat 8.5.4 available

2016-07-13 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat 8.5.4. This is the first stable release of the 8.5.x branch. Tomcat 8.x users should now use 8.5.x releases in preference to 8.0.x releases. Apache Tomcat 8 is an open source software implementation of the Java Servlet,

[ANN] Apache Tomcat 9.0.0.M9 available

2016-07-13 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat 9.0.0.M9. 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.M9 is a milestone

Re: Tomcat 8.0 : Custom server.xml path

2016-07-13 Thread Violeta Georgieva
Hi, 2016-07-12 12:03 GMT+03:00 Amit Pande : > > Any thoughts on this ? You may try using catalina.base https://github.com/apache/tomcat/blob/trunk/RUNNING.txt#L84 https://github.com/apache/tomcat/blob/trunk/RUNNING.txt#L230 Regards, Violeta > > On 11/07/16 1:15 pm,

Re: A complex issue concerning the application lifecycle, MBeans and Spring

2016-07-13 Thread tomcat
On 13.07.2016 16:33, Jäkel, Guido wrote: Dear André, thank you for quickly announcing your idea for an workaround. But you right see the limits, and the more important impact of disabling the connectors is that it will also disable the traffic to all the other running applications (and we

Re: [OT] mod-jk + ssl: requests are not forward to tomcat correctly

2016-07-13 Thread tomcat
On 13.07.2016 16:34, Anthony Biacco wrote: On Mon, Jul 11, 2016 at 5:39 PM, Wayne Li wrote: Probably the quickest : download these files, install them on your server, and change the above links. Like : create a sub-directory "/js" of your webapp, and install them

Re: mod-jk + ssl: requests are not forward to tomcat correctly

2016-07-13 Thread Anthony Biacco
On Mon, Jul 11, 2016 at 5:39 PM, Wayne Li wrote: > > Probably the quickest : download these files, install them on your > server, and change the above links. > Like : create a sub-directory "/js" of your webapp, and install them there. > Then change the above links to :

RE: A complex issue concerning the application lifecycle, MBeans and Spring

2016-07-13 Thread Jäkel , Guido
>> Dear André, >> >> thank you for quickly announcing your idea for an workaround. But you right >> see the limits, and the more important >impact of disabling the connectors is that it will also disable the traffic to >all the other running applications (and we have a >bunch of it on each of

Re: A complex issue concerning the application lifecycle, MBeans and Spring

2016-07-13 Thread tomcat
On 13.07.2016 15:51, Jäkel, Guido wrote: So it would appear that if the Connectors are disabled, the monitoring system is not able to reach Tomcat, and the problem does not occur then. So would it not be possible to create some little piece of software, which would temporarily "suspend" or

Re: Tomcat Embedded and Web Fragments

2016-07-13 Thread l.pe...@senat.fr
On 13/07/2016 15:57, Violeta Georgieva wrote: Hi, 2016-07-07 15:07 GMT+03:00 l.pe...@senat.fr : Hi. I am using Tomcat embedded, for integration tests. I do not find how to let it take in account web-fragments of included jars. Is there a specific config ? Does anyone have

Re: Tomcat Embedded and Web Fragments

2016-07-13 Thread Violeta Georgieva
Hi, 2016-07-07 15:07 GMT+03:00 l.pe...@senat.fr : > > Hi. > > I am using Tomcat embedded, for integration tests. > > I do not find how to let it take in account web-fragments of included jars. Is there a specific config ? Does anyone have a working example ? Take a look at the

RE: A complex issue concerning the application lifecycle, MBeans and Spring

2016-07-13 Thread Jäkel , Guido
>So it would appear that if the Connectors are disabled, the monitoring system >is not able >to reach Tomcat, and the problem does not occur then. > >So would it not be possible to create some little piece of software, which >would >temporarily "suspend" or "disable" the Connectors, while the

Re: A complex issue concerning the application lifecycle, MBeans and Spring

2016-07-13 Thread tomcat
On 13.07.2016 15:20, Jäkel, Guido wrote: Dear Developers, I have an elaborate issue migrating from Tomcat 6.0.41 to 8.0.36 (currently using java 8.0.66 on Gentoo Linux, but this is not of importance I think): It is related to the build-in manager application used as a jmxproxy. And to

A complex issue concerning the application lifecycle, MBeans and Spring

2016-07-13 Thread Jäkel , Guido
Dear Developers, I have an elaborate issue migrating from Tomcat 6.0.41 to 8.0.36 (currently using java 8.0.66 on Gentoo Linux, but this is not of importance I think): It is related to the build-in manager application used as a jmxproxy. And to initialization of the Spring framework during an

Re: Tomcat 8 classloading

2016-07-13 Thread saurabh tiwari
Thanks a lot Chris. Thanks, Saurabh Tiwari 9158483338 On Wed, Jul 13, 2016 at 1:49 PM, chris derham wrote: > > Hi There, > > > > We are about to upgrade from tomcat-7.0.65 to tomcat-8.0.XX. and this is > > regarding the loading of same JARs within the different

Re: Need help setting up SSL on Tomcat 8

2016-07-13 Thread Ognjen Blagojevic
Sean, On 12.7.2016 14:49, Sean Son wrote: Hello thank you for your response. I am currently only accessing the server using IP address only. We do not have a DNS record set up for the server as of yet. It will be something like webapp.example.com Once there is a DNS record in place, and you

Re: Tomcat 8 classloading

2016-07-13 Thread chris derham
> Hi There, > > We are about to upgrade from tomcat-7.0.65 to tomcat-8.0.XX. and this is > regarding the loading of same JARs within the different application. to > understand the scenario, consider below case > > Tomcat 8 --- > webapps > a.war--> lib--> spring.jar >

Tomcat 8 classloading

2016-07-13 Thread saurabh tiwari
Hi There, We are about to upgrade from tomcat-7.0.65 to tomcat-8.0.XX. and this is regarding the loading of same JARs within the different application. to understand the scenario, consider below case Tomcat 8 --- webapps a.war--> lib--> spring.jar b.war--> lib-->

Re: Using JMX to get ONLY running applications

2016-07-13 Thread Amit Pande
Can someone help here ? It seems the stateName attribute of MANAGER or WEBMODULE Mbean is NOT getting set correctly if there are any servlet errors. In particular, when Spring dispatcher servlet is failed to load then the applications state should be STOPPED. However, that does not seem to be

Re: Facing issue while configuring SSL

2016-07-13 Thread tomcat
On 13.07.2016 07:02, Devendra Sengar wrote: File is there and permission is also fine and having proper openssl.cnf. Any other view? Really "shooting in the dark" here, since I am neither a Windows nor an SSL specialist : The error message mentions "no such process". Assuming (and that may

Re: mod_jk errors

2016-07-13 Thread tomcat
On 12.07.2016 19:44, Wayne Li wrote: Hi, I have a servlet/jsp application running on tomcat 7.0.47. There are no static html files. Now I am try to use apache 2.4.7 (Ubuntu) as the front and forward eveything to tomcat. I installed mod_jk using Ubuntu's software center.. Things are working. But

Re: Using JMX to get ONLY running applications

2016-07-13 Thread Amit Pande
I managed to use jCOnsole and find Mbean names and attributes to get the stateName (STARTED/STOPPED) to see if a web app is available or NOT (j2eeType=WebModule). However, I see the stateName of a web module as STARTED even if there are errors in start-up. SEVERE [localhost-startStop-3]