Re: Application Deployment in Tomcat 7.X

2014-04-22 Thread Mark Thomas
On 23/04/2014 04:40, Nitin Kumar wrote: > Hi, > > We are using tomcat 7.X for our project. So far we deploy only one > application in tomcat. > > Now we are planning to deploy one more application with existing one. > > There is requirement that failure of deployment of new application should >

Application Deployment in Tomcat 7.X

2014-04-22 Thread Nitin Kumar
Hi, We are using tomcat 7.X for our project. So far we deploy only one application in tomcat. Now we are planning to deploy one more application with existing one. There is requirement that failure of deployment of new application should not affect existing application deployment and tomcat star

Re: Stateless application is very slow using LDAP authentication

2014-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Frédéric, On 4/22/14, 4:15 PM, Frédéric Poliquin wrote: >> When you say that you put a reverse proxy in front of Tomcat... >> do you mean that you pushed the authentication out to the proxy >> layer? > > Yes, I'm delegating everything to HTTPD usin

RE: Stateless application is very slow using LDAP authentication

2014-04-22 Thread Frédéric Poliquin
> When you say that you put a reverse proxy in front of Tomcat... do you mean > that you pushed the authentication out to the proxy layer? Yes, I'm delegating everything to HTTPD using an AJP connector. > This means that if the user changes their password or the group-membership > changes on th

Re: Stateless application is very slow using LDAP authentication

2014-04-22 Thread Mark Eggers
On 4/22/2014 12:16 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Frédéric, On 4/22/14, 12:38 PM, Frédéric Poliquin wrote: Passwords are protected using standard SSL. Eventually, the plan is to move towards OAuth 2.0 with a cookie/security token but until then I

Re: Stateless application is very slow using LDAP authentication

2014-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Frédéric, On 4/22/14, 12:38 PM, Frédéric Poliquin wrote: > Passwords are protected using standard SSL. Eventually, the plan > is to move towards OAuth 2.0 with a cookie/security token but until > then I needed a quick solution... > > For the other

Re: Stateless application is very slow using LDAP authentication

2014-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Frédéric, On 4/22/14, 11:33 AM, Frédéric Poliquin wrote: > << What if you disable authentication entirely as a test... do > things speed-up?>> Answer is YES << Do you have a problem only > under load or also when you are testing a single-user?>> Sin

Re: CORS issue with Tomcat and Android Webview

2014-04-22 Thread Jose María Zaragoza
-- Forwarded message -- From: Terence M. Bandoian Date: 2014-04-22 20:12 GMT+02:00 Subject: Re: CORS issue with Tomcat and Android Webview To: Tomcat Users List On 4/22/2014 11:03 AM, Ankit Singhal wrote: > > Also we tried to give the same call from Android App to some different

Re: CORS issue with Tomcat and Android Webview

2014-04-22 Thread Terence M. Bandoian
On 4/22/2014 11:03 AM, Ankit Singhal wrote: Also we tried to give the same call from Android App to some different Node server and things worked fine. So it seems some problem with Tomcat only. On Tue, Apr 22, 2014 at 9:22 PM, Ankit Singhal wrote: Hi All I am facing a strange problem with

Re: Stateless application is very slow using LDAP authentication

2014-04-22 Thread André Warnier
Leo Donahue wrote: On Tue, Apr 22, 2014 at 8:48 AM, André Warnier wrote: Frédéric Poliquin wrote: << What if you disable authentication entirely as a test... do things speed-up?>> Answer is YES << Do you have a problem only under load or also when you are testing a single-user?>> Single user

RE: Stateless application is very slow using LDAP authentication

2014-04-22 Thread Frédéric Poliquin
Passwords are protected using standard SSL. Eventually, the plan is to move towards OAuth 2.0 with a cookie/security token but until then I needed a quick solution... For the other question, Apache httpd has an authentication cache which prevents going to Active Directory every time which is no

Re: CORS issue with Tomcat and Android Webview

2014-04-22 Thread Ankit Singhal
Also we tried to give the same call from Android App to some different Node server and things worked fine. So it seems some problem with Tomcat only. On Tue, Apr 22, 2014 at 9:22 PM, Ankit Singhal wrote: > Hi All > > > > I am facing a strange problem with Tomcat 8 and CORS. I am developing a > H

Re: Stateless application is very slow using LDAP authentication

2014-04-22 Thread Leo Donahue
On Tue, Apr 22, 2014 at 8:48 AM, André Warnier wrote: > Frédéric Poliquin wrote: > >> << What if you disable authentication entirely as a test... do things >> speed-up?>> Answer is YES >> << Do you have a problem only under load or also when you are testing a >> single-user?>> Single user >> >> W

CORS issue with Tomcat and Android Webview

2014-04-22 Thread Ankit Singhal
Hi All I am facing a strange problem with Tomcat 8 and CORS. I am developing a Hybrid web app using ionicframework, AngularJS, Cordova as front end and Tomcat 8 and Spring 3 as back-end. For easy development I am testing the functionality in chrome , where things are working fine. I added COR

Re: Include of external entity to web.xml is stopped working on 7.0.52

2014-04-22 Thread Konstantin Kolinko
2014-04-22 19:42 GMT+04:00 Viktor Gamov : > Hello tomcat users, > Before I can submit formal bug to the issue tracker, I want to ask here. > I have web.xml and I include some text file in it using !ENTITY tag: > As I already answered about a week a go, you have to enable this feature in Context c

Re: Include of external entity to web.xml is stopped working on 7.0.52

2014-04-22 Thread Mark Thomas
On 22/04/2014 16:42, Viktor Gamov wrote: > It worked fine until version 7.0.52. With 7.0.52, I'm getting following > error during application deployment Read this: http://tomcat.apache.org/tomcat-7.0-doc/config/context.html Look for this: xmlBlockExternal The default changed in 7.0.52. Mark

Re: Stateless application is very slow using LDAP authentication

2014-04-22 Thread André Warnier
Frédéric Poliquin wrote: << What if you disable authentication entirely as a test... do things speed-up?>> Answer is YES << Do you have a problem only under load or also when you are testing a single-user?>> Single user What I did is to put Tomcat behind an Apache Server which solved my proble

Include of external entity to web.xml is stopped working on 7.0.52

2014-04-22 Thread Viktor Gamov
Hello tomcat users, Before I can submit formal bug to the issue tracker, I want to ask here. I have web.xml and I include some text file in it using !ENTITY tag: http://java.sun.com/dtd/web-app_2_3.dtd"; [ ** ]> MyServlet com.example.MyServlet application.classes &remoteClass

Re: [OT] catalina.out is 13G

2014-04-22 Thread André Warnier
Randhir Singh wrote: Thanks for your quick revert. Randir, I think that you are using the word "revert" wrongly, and it is creating some confusion. "revert" means essentially "return to the previous situation" (or location, or belief). The correct word here would be "response" or "reply".

RE: Stateless application is very slow using LDAP authentication

2014-04-22 Thread Frédéric Poliquin
<< What if you disable authentication entirely as a test... do things speed-up?>> Answer is YES << Do you have a problem only under load or also when you are testing a single-user?>> Single user What I did is to put Tomcat behind an Apache Server which solved my problem. Maybe it could be a goo

Re: mod_jk warning about "OPTIONS *" requests

2014-04-22 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 4/22/14, 5:09 AM, André Warnier wrote: Christopher, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, I'm running some load tests in a dev environment, and I'm seeing acess lo

Re: [OT] mod_jk warning about "OPTIONS *" requests

2014-04-22 Thread André Warnier
Christopher Schultz wrote: ... Just to "keep the church in the middle of the village", as they say in my part of the world : [OT] I'm not sure I can interpret the meaning of that. What does it mean? It is a Belgian/French expression, meaning roughly "to keep things in perspective" or "not

Re: How to monitor performance of tomcat

2014-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Randhir, No need to reply to me directly: I get all messages posted to the list. There is also no need to post multiple threads on the same topic. Stick to one thread and you'll get better replies. I'll answer this one here, but let's stick to one

Re: catalina.out is 13G

2014-04-22 Thread David kerber
On 4/22/2014 10:48 AM, Randhir Singh wrote: Thanks for your quick revert. Is it possible to rotate it without a log rotation program like rotatelogs or cronolog? Also, how to check if rotatelogs or cronolog is installed on the system or not. I can revert with any details on the configuration if

RE: How to monitor performance of tomcat

2014-04-22 Thread Randhir Singh
Thanks for your answer. The disk space is an issue as it is 99% right now. The mountpoint /opt is 40G and catalina.out is occupying 13G. We have log rotated files being made like catalina.2014-04-16.log, host-manager.2014-04-14.log, localhost.2014-04-14.log. I can reply to you immediately if you

RE: catalina.out is 13G

2014-04-22 Thread Randhir Singh
Thanks for your quick revert. Is it possible to rotate it without a log rotation program like rotatelogs or cronolog? Also, how to check if rotatelogs or cronolog is installed on the system or not. I can revert with any details on the configuration if you need it. Regards -Original Message--

Re: catalina.out is 13G

2014-04-22 Thread Ognjen Blagojevic
On 22.4.2014 16:22, Filip Hanik wrote: http://www.tomcatexpert.com/knowledge-base/rotating-catalinaout-log-files Also, there is a related issue in Bugzilla, to make things easier to configure: https://issues.apache.org/bugzilla/show_bug.cgi?id=53930 -Ognjen -

Re: catalina.out is 13G

2014-04-22 Thread Filip Hanik
check out /usr/bin/truncate truncate --size 0 /path/to/fil On Tue, Apr 22, 2014 at 8:28 AM, Randhir Singh wrote: > Thanks for your answer Leon. The space should be freed immediately on the > system, can the catalina.out be truncated on an running system? > > Regards > > -Original Message--

Re: How to specify log rotation in Tomcat 6

2014-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Randhir, On 4/22/14, 10:15 AM, Randhir Singh wrote: > I want to know how to specify log rotation in Tomcat 6. I tried > searching for information but I could not find anything > substantial. The mount point on which Tomcat is placed is 99% and I > w

Re: catalina.out is 13G

2014-04-22 Thread Frederik Nosi
On 04/22/2014 04:28 PM, Randhir Singh wrote: Thanks for your answer Leon. The space should be freed immediately on the system, can the catalina.out be truncated on an running system? On Uniux the classic trick is: : > catalina.out This command empties the file, you get free space on your fil

Re: How to monitor performance of tomcat

2014-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Randhir, On 4/22/14, 10:03 AM, Randhir Singh wrote: > I have come across a point which could be a reason, the > catalina.out file has become 13G which came to notice when we were > analysing space crunch on the mount point in which tomcat is > locat

Re: Stateless application is very slow using LDAP authentication

2014-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Frédéric, On 4/22/14, 9:29 AM, Frédéric Poliquin wrote: > Hi, > > I'm working on a stateless application which does not create an > http session. This application has a standard security constraint > requesting basic authentication on all resource

RE: catalina.out is 13G

2014-04-22 Thread Randhir Singh
Thanks for your answer Leon. The space should be freed immediately on the system, can the catalina.out be truncated on an running system? Regards -Original Message- From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] Sent: Tuesday, April 22, 2014 7:55 PM To: Tomcat Users List Subject:

Re: Best practice to programmatically get the disableURLRewriting context attribute value

2014-04-22 Thread lo lo
I will use a filter to remove and prevent the jsessionid in the URL. It's indeed really simpler! Thanks for your answer and your suggestions. Lo 2014-04-18 22:41 GMT+02:00 Christopher Schultz : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Lo, > > On 4/17/14, 10:44 AM, Sauvel Laure

Re: catalina.out is 13G

2014-04-22 Thread Leon Rosenberg
Hello Randhir, whatever revert means. However, if you remove the file the place will be occupied on most *'nix system until a process restart. You will probably have to restart your server to free this mount point's storage anyway. regards Leon On Tue, Apr 22, 2014 at 4:20 PM, Randhir Singh wro

Re: catalina.out is 13G

2014-04-22 Thread Filip Hanik
http://www.tomcatexpert.com/knowledge-base/rotating-catalinaout-log-files On Tue, Apr 22, 2014 at 8:20 AM, Randhir Singh wrote: > Hi, > > I have a immediate concern as the mount point on which Tomcat is placed is > 99% and on checking I found that catalina.out is 13GB. I wanted to > implement a

catalina.out is 13G

2014-04-22 Thread Randhir Singh
Hi, I have a immediate concern as the mount point on which Tomcat is placed is 99% and on checking I found that catalina.out is 13GB. I wanted to implement a solution for this but am not sure, can I take a backup of catalina.out and truncate catalina.out on the running application? Humbly request

Re: mod_jk warning about "OPTIONS *" requests

2014-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 4/22/14, 5:09 AM, André Warnier wrote: > Christopher, > > Christopher Schultz wrote: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 >> >> All, >> >> I'm running some load tests in a dev environment, and I'm seeing >> acess log messa

How to specify log rotation in Tomcat 6

2014-04-22 Thread Randhir Singh
Hi, I want to know how to specify log rotation in Tomcat 6. I tried searching for information but I could not find anything substantial. The mount point on which Tomcat is placed is 99% and I wanted to understand the log rotation. Humbly requesting a revert on this as it a immediate problem. Reg

Re: How to monitor performance of tomcat

2014-04-22 Thread Randhir Singh
Hi, I have come across a point which could be a reason, the catalina.out file has become 13G which came to notice when we were analysing space crunch on the mount point in which tomcat is located. Further to this, there is some log rotation which is happening. But, what should be the steps to che

RE: Stateless application is very slow using LDAP authentication

2014-04-22 Thread Frédéric Poliquin
The goal is to have a friendly cloud and cluster application. By removing all sessions, I can shut down any node at any time. It is mostly a JavaScript application relying on REST services. - To unsubscribe, e-mail: users-unsu

Re: Stateless application is very slow using LDAP authentication

2014-04-22 Thread André Warnier
Frédéric Poliquin wrote: Hi, I'm working on a stateless application which does not create an http session. This application has a standard security constraint requesting basic authentication on all resources. Tomcat is configured using a standard JNDIRealm to authenticate against Active Dire

Stateless application is very slow using LDAP authentication

2014-04-22 Thread Frédéric Poliquin
Hi, I'm working on a stateless application which does not create an http session. This application has a standard security constraint requesting basic authentication on all resources. Tomcat is configured using a standard JNDIRealm to authenticate against Active Directory. Authentication and a

Re: Should validationQuery commit ?

2014-04-22 Thread Mark H. Wood
On Tue, Apr 22, 2014 at 01:58:56PM +0200, Franck Routier wrote: [snip] > That said, I was hit by another (related) problem this week-end, with > Oracle. > The validation query was configured as 'select 1 from dual;'. Notice the > semi-column: this broke everything with intermittent ORA-12516 errors

Re: Configuring a JSR-356 Websocket

2014-04-22 Thread Konstantin Kolinko
2014-04-22 16:43 GMT+04:00 Thom Hehl : > > On 04/22/2014 07:50 AM, Konstantin Kolinko wrote: >> >> 2014-04-22 15:31 GMT+04:00 Thom Hehl : >>> >>> On 04/21/2014 04:30 PM, Daniel Mikusa wrote: On Apr 21, 2014, at 9:58 AM, Thom Hehl wrote: >> >> >> 1. What exactly version of Tomcat you

Re: Configuring a JSR-356 Websocket

2014-04-22 Thread Thom Hehl
On 04/22/2014 07:50 AM, Konstantin Kolinko wrote: 2014-04-22 15:31 GMT+04:00 Thom Hehl : On 04/21/2014 04:30 PM, Daniel Mikusa wrote: On Apr 21, 2014, at 9:58 AM, Thom Hehl wrote: Tomcat 8/Ubuntu 12.04 I have my tomcat deployed with the example echo application. I wrote a tester that hits

Re: Configuring a JSR-356 Websocket

2014-04-22 Thread Thom Hehl
On 04/22/2014 07:50 AM, Konstantin Kolinko wrote: 2014-04-22 15:31 GMT+04:00 Thom Hehl : On 04/21/2014 04:30 PM, Daniel Mikusa wrote: On Apr 21, 2014, at 9:58 AM, Thom Hehl wrote: Tomcat 8/Ubuntu 12.04 I have my tomcat deployed with the example echo application. I wrote a tester that hits

Re: Should validationQuery commit ?

2014-04-22 Thread Franck Routier
Hi Chris, Le 18/04/2014 20:44, Christopher Schultz a écrit : > > Every database I've ever used accepts "SELECT 1 FROM DUAL" because > Oracle did it first. You could try that. Well, Postgresql does not (although you can of course create table dual(id integer primary key); insert 1 into dual(id);)

Re: Configuring a JSR-356 Websocket

2014-04-22 Thread Konstantin Kolinko
2014-04-22 15:31 GMT+04:00 Thom Hehl : > > On 04/21/2014 04:30 PM, Daniel Mikusa wrote: >> >> On Apr 21, 2014, at 9:58 AM, Thom Hehl wrote: >> >>> Tomcat 8/Ubuntu 12.04 >>> >>> I have my tomcat deployed with the example echo application. I wrote a >>> tester that hits the URL provided and sends a

Re: java: src/network.c:441: Java_org_apache_tomcat_jni_Socket_send: Assertion failed

2014-04-22 Thread Dmitry Batiyevskiy
NIO connector works without any issues, there is some problem in apr Regards, Dmitry Batiyevskiy Ardas Group Inc. www.ardas.dp.ua 2014-03-05 16:13 GMT+02:00 Dmitry Batiyevskiy < dmitry.batiyevs...@ardas.dp.ua>: > Thanks > > Regards, > > Dmitry Batiyevskiy > > Ardas Group Inc. > > www.ardas.d

Re: Configuring a JSR-356 Websocket

2014-04-22 Thread Thom Hehl
On 04/22/2014 07:35 AM, Mark Thomas wrote: On 22/04/2014 12:31, Thom Hehl wrote: I appreciate the help, but I've been through the tutorials. I've been debugging the code for tomcat 8.05 and this looks like a defect. It finds my class in ContextConfig.checkHandlesTypes and then passes it to Int

Re: Configuring a JSR-356 Websocket

2014-04-22 Thread Mark Thomas
On 22/04/2014 12:31, Thom Hehl wrote: > I appreciate the help, but I've been through the tutorials. I've been > debugging the code for tomcat 8.05 and this looks like a defect. It > finds my class in ContextConfig.checkHandlesTypes and then passes it to > Introspection.loadClass(), but the class l

Re: Configuring a JSR-356 Websocket

2014-04-22 Thread Thom Hehl
On 04/21/2014 04:30 PM, Daniel Mikusa wrote: On Apr 21, 2014, at 9:58 AM, Thom Hehl wrote: Tomcat 8/Ubuntu 12.04 I have my tomcat deployed with the example echo application. I wrote a tester that hits the URL provided and sends a message and then receives the response back. I want to depl

Re: mod_jk warning about "OPTIONS *" requests

2014-04-22 Thread André Warnier
Christopher, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, I'm running some load tests in a dev environment, and I'm seeing acess log messages like these: ::1 - - [21/Apr/2014:14:15:03 +] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.9 (Amazon) OpenSSL/1.0.1