Re: Problem in accessing link

2014-04-01 Thread Frederik Nosi


Nithun,

first, i think you have to reread this: http://tomcat.apache.org/lists.html


On 04/01/2014 10:00 PM, Bomma, Nithun wrote:

Thanks Chris!

I want to get public & private keys from WebSphere and import into Tomcat.


This is not related to the subject of your email.



We have WebSphere certificates (Signed by Verisign) until 2015 and we want to 
use the same in tomcat.

When I create a keystore (keytool -genkey -alias tomcat -keyalg RSA -keystore 
/opt/tomcat/SSL/tomcat.keystore), a keystore is getting created. But I'm unable 
to import the certificates into it.

Is there any document or documentation which might be helpful? Could you please 
let me know?


Tomcat version?

Anyhow:

http://lmgtfy.com/?q=using+https+with+tomcat&l=1




Thanks.

Thanks,
Nithun Bomma
WebSphere Administrator
Amtrak - Information Technology (Operations)
AIM: nithunbomma
EMAIL: nithun.bo...@amtrak.com
Desk: 215-349-2065; ATS: 728-2065; Cell: 215-704-4981

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Monday, March 31, 2014 5:18 PM
To: Tomcat Users List
Subject: Re: Problem in accessing link

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Randir,

On 3/31/14, 5:14 AM, Randhir Singh wrote:

Thanks for your answer. There are 2 applications hosted on this
Tomcat. 1 is working fine and the other only is giving problems which
we are accessing on port 10080.

Request inputs on this so that the resolution is found.

You need to request inputs on this from whoever Elite Core is. We cannot help 
you, here.


Good luck,
- -chris


-Original Message- From: Christopher Schultz
[mailto:ch...@christopherschultz.net] Sent: Saturday, March 29,
2014 6:22 PM To: Tomcat Users List Subject: Re: Problem in accessing
link

Randhir,

On 3/29/14, 8:38 AM, Randhir Singh wrote:

We are using tomcat in our production setup, the version of tomcat is
5.0.28.

It would be really good for you to investigate upgrading your version
of Tomcat. Not only has Tomcat 5.0 been retired, but Tomcat
5.5 has also been retired. Tomcat 8 is about to be released. There are
known and unknown unpatched security problems with the Tomcat 5
versions which will never be patched.


While accessing the link hosted on tomcat, the following error is
coming as below:
-
-



- --

-
-



- 

*HTTP Status 500 - * --
*type* Exception report
*message*
*description* *The server encountered an internal error () that
prevented it from fulfilling this request.*
*exception*
java.lang.NullPointerException



com.elitecore.reports.manager.server.GetCompanyInfoServlet.doAction(G
e



tCompanyInfoServlet.java:93)

This

is a problem with whatever "elitecore' is. You'll have to look there.


Request you to please advice on what steps should be taken so that
this problem is resolved.

This is not a problem with Tomcat: it's a problem with the web
application deployed on Tomcat. This is something you'll have to do
yourself or engage the original developer.

-chris

-



To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

For additional commands, e-mail: users-h...@tomcat.apache.org


-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTOdt4AAoJEBzwKT+lPKRYFJUP/2skKVpGkF09mj44ZJlR7731
WSKCe7C7fI6wZTD94hAVMMEqVKcyLvMBpeFih4S+zjUSvCs9Cw0kz9pjtvwA9mA9
8THXGKoNQuJs/xSRdEkJUSfQf2JAOXcklIKRL5EOH+bq/AT8n9ARHWX4rj72BKe5
UHYU50qsLIKQnjpxSJDz2cebQY9DuDe5MWn9TF16YL0ySfRT7wAmaXVeR4bgfuJr
lPlGydpsQ/1FXDOf/uU7gTjL6opVfK03RjNAKCuOdqN7HXdqNLQs2SHOA2V/jItc
uI+VXx6bj1+PuE9iNteBP5BJaDmlaBVVuBPEIRTplF3KBewSUaluDh6aOf8wnc9X
ThDDPrSWiwHLID2J+h0jCsxnfdAxEjgoTS25i2kTwDisVWlngafnlyoTBacZPOp4
hCcoKdRguU6mUYpyvu19NyZLPGmBofYGB69tNMXQOhlA12HxGUHMqXs9ndag1pgq
jhimFiMDYlQ+2FS+vtKAGQDBa8HVohgIdCYsI5r5R0sZHZwx09K5KR1nZw7RK8Vf
nE1ydf+4r2YkJKCRKlF+lQxpdmxASAdSrzlqIrWj6sszXf24g+mK5EzYuVT7twUi
Y6ycVI3fxo4ovm5AWcFlBcoDwl4wpzGWcVNc8D0hbmCS7gBELuWbwTnTsjT7Ockx
hYzYZQUInB0f9mqap9Pb
=itWA
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





Re: RES: Configuring limits of requests/sessions/threads in Tomcat

2014-04-01 Thread Howard W. Smith, Jr.
On Tue, Apr 1, 2014 at 9:30 PM, Frederik Nosi wrote:

> If so, just put an nginx or such in front of you'r Tomcat, you dont need
> an application server for that, it's just like using a tank to shoot a
> mosquito :P


Wow, LOL!


Re: RES: Configuring limits of requests/sessions/threads in Tomcat

2014-04-01 Thread Frederik Nosi

Hi Danilo,
On 04/02/2014 02:37 AM, Danilo Amaral de Oliveira wrote:

Hello Chritopher,

You make score. Exactly, I am waiting 500 users on the peak time. The archive 
is in a separated storage in our environment. So, I think that it is not a 
limiting factor. I will try some maxthreads configurations and stress 
situations to see if the server will could handle 500 users. If necessary I can 
increase the server memory and processing, we have robust cluster. Actually the 
server has 4 cores and 8gb of memory.


First, this video is a static file right? If so, just put an nginx or 
such in front of you'r Tomcat, you dont need an application server for 
that, it's just like using a tank to shoot a mosquito :P




At the same time, I am analyzing with security team if we could liberate a 
specific video in youtube in order to instead use JWPlayer the site use an 
embedded youtube video, so I take off the responsibility of tomcat to deliver 
the video and I can sleep in peace. hahha


Well, this clever, bandwidth for free.



Thank you all!



Grupo Energisa
Danilo A. Oliveira
Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI
e-mail: danilo.olive...@energisa.com.br | tel: (32) 3429-6342 | cel: (32) 
8452-9478

Esta mensagem contém informação confidencial. Se você a recebeu por engano, não 
divulgue ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e 
apague-a do computador.
Privileged and confidential. If this message has been received by mistake, do 
not disclose or copy its contents. Please notify sender and delete immediately.


-Mensagem original-
De: Christopher Schultz [mailto:ch...@christopherschultz.net]
Enviada em: terça-feira, 1 de abril de 2014 18:32
Para: Tomcat Users List
Assunto: Re: Configuring limits of requests/sessions/threads in Tomcat

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Danilo,

On 4/1/14, 2:03 PM, Danilo Amaral de Oliveira wrote:

Next week we will deploy a institutional video to all company (more
than 5k users) in a webpage in an application manges by the Tomcat
7.0.40. I have made a stress test through JMeter, simulating a lot of
simultaneous access, and when the simultaneous access reaches
100 users the application stop answering.

What is your expected peak load? If you only need to handle 500 simultaneous 
users, then you should be fine.


I would like to know if I can set a max number (80, for example) of
requests (maxsession or threads, I dunno) in order to configure the
tomcat to send a warning page advising the user that the server is
loaded and try again in few minutes if the limits reach the maximum
value.

You can change the size of Tomcat's request processing pool. That's either "maxConnections" on your 
 or, better yet, "maxThreads" in your .

If you set maxThreads="80", then the 100th request will wait in a queue. You 
may get request timeouts at this point, which will be equivalent to the 100-user 
situation you describe above.

What you really need is a CDN so your servers don't even handle the requests at 
all. Is there a place where you can upload your file that will be more scalable 
and/or faster? Something like Amazon S3 maybe?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTOzBFAAoJEBzwKT+lPKRYKjQP/0Ntz/ZT1ylSwMnFMCLFUDqC
4C0eFUXJvPXu3Rr9+EjoSPRbX7r3FN5JMrx4SmwBwfxZhsjiyXksUMNVvUlW0QeD
CUtDsy4oYu3MM8BZqa2zqHtzDXQu8Qp8Hg3a5N0PQGWUqZCR/f2FOgR1fV+Zco2S
Av7ioK67dC/u2elUoC/2oUJ1J4xXSLlVOFRKGNB1i/EmkpDLi07tyLs/L2Y9TmWQ
VfUv5RETqdIA682OshfHJ5ViR5NbZKZVFwTA3H8+oPn5NtPBJ3UgT5hv4GmVYpgz
m4S6O/8CRJz33q+tz9N35e8Fx5JnU8l4Nwn6AfOW0tgUX9JO6V0+x6W7bvCjSrlH
vbmJYJjPynoP8Y1smAxGrNg8jwjQklTP5qTIRr2FBm2DZ0chJQYMAmbETShrYZu8
n4na84JJ67gEMD2LV+ym5k7ma6gVmfCw3inT12kXtiwzC+d8vyxzdvToCT589cCJ
lRG5jhihpxPJTZtJ27db4ZxxgvG87ArQNhpvzEQCKnGa22/UkOaC56NZwzxbtfqb
64u7Ok+Jn6z8fJBMeq9lxILUVJTsbgfD3wx4WqNH+f1D2U+LsSPXrm8xmP5DS5hd
KQ4GZUNT4kEApRCCSfqlzbi+BC2dwo7mm7zmhaMIV5Otu43Wda4fUpK2z+ZAwE35
YJJvZvdzD8LkeMFiQz4G
=/hsP
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: mod_jk - Failover behaviour and load + patch

2014-04-01 Thread Frederik Nosi

Hi Christopher,

On 04/02/2014 12:21 AM, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Frederik,

On 3/26/14, 9:32 PM, Frederik Nosi wrote:

My scenario is Apache httpd + mod_jk + N Tomcat's in. The default
behaviour of load balanced workers in mod_jk in my testing is that
when a client requests a page (GET / POST / Whatever), the LB
worker tries the request to every ajp worker. This in contrast with
what i read here:


http://people.apache.org/~mturk/docs/article/ftwai.html


Expecially this part:


When having multiple nodes in a cluster you can improve your
application availability by implementing failover. The failover
means that if the particular elected node can not fulfill the
request the another node will be selected automatically. In case of
three nodes you are actually doubling your application
availability. The application response time will be slower during
failover, but none of your users will be rejected. Inside the
mod_jk configuration there is a special configuration parameter
called worker.retries that has default value of 3, but that needs
to be adjusted to the actual number of nodes in the cluster.

... worker.list=lbworker worker.lbworker.type=lb # Adjust to the
number of workers worker.retries=4
worker.lbworker.balance_workers=node1,node2,node3,node4 If you add
more then three workers to the load balancer adjust the retries
parameter to reflect that number. It will ensure that even in the
worse case scenario the request gets served if there is a single
operable node.

 From that it seems that the "retries" parameter in a load balancer
worker context should mean the number of real (AJP) workers to
try. (what i need indeed) but in my testing, that LB worker
parameter is the number of times that all the AJP workers that are
part of the LB worker get a round retry. In eg, having a LB worker
with 4 AJP workers, setting LB Worker's retries = 2, the behaviour
i see is that the AJP workers get called this way:

AJP1 -> timeout [...] AJP4 -> timeout

===> repeat again (retries == 2)

AJP1 -> timeout [...] AJP4 -> timeout

--> LB sends an error to the client.



Now from the online documentation the meaning of that parameter in
a load balancer worker context is'nt that clear, but from the link
i provided seems it was exactly what i needed, not the number of
retries to all AJP workers, but the number of single AJP workers to
try..

If that is not correct i can fill a bug report. If instead it's by
design, the attached patch adds a new parameter, "lb_retries", that
does what i need. Of course it's a bit rough, but works.

Any comments? Am I getting stuff wrong?

I'm bumping this because I can see Rainer has fixed a bunch of things
in mod_jk over the last few days. Perhaps he's getting ready to do a
release or something.


Thanks Christopher, BTW on this issue I'm not even sure it's a 
documentation bug, a bug in mod_jk or an unfullfilled expectation of 
mine :-)

Thing is, i had to use this cure.

I'm sure my patch is a bit faulty, the HTTP status codes returned are > 
500, but i'm not sure they are in line with the protocol (503 / 504). 
but for now it works for me though.


Noticed there were changes in mod_jk's git repo, i'm following it.

Thanks for your attention and have fun at ApacheCon!
- Fredi



- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTOzvQAAoJEBzwKT+lPKRY6uEQAISOkIa3VwSlhVEu/JPuhqDD
SHN7/hui6l/0oj2chPRr1YWs0XO8yuP8afgzlfuJhWQ5fNeVshDliYijYusKZPSx
666iVZ4NqVF8zTYo7Y6LE7gJJS8LrZUnD/nEF3ngCWGp5V6KzbQkB2haQBeFFRX2
bK2xcPFAC/hhT4QmkSkyCb8KaqyGtgIZDXToiQlA1oWRkleRip8yU+JwZEQXUz8v
MNhRtG5hUiX5z6wJh7OVTRu421mwmfZav4SUNxvjN71UnvoiRST4H3qrQGeD6fHh
2bKq4ot+olZ7T0Wo4fd6NqRzn/7fwRfp9U6OIrwe5umjaWzYd99o/iTm31hcFJFz
f6d1A0A5uqZaDT2+o8y01qSbdIWDYZFKRv7KZuX1/+6WXp6h7VHXhY9mA/R8RYf9
NpSi0bk5FprrTNJoJx9+q/LBGlFrwFZqJpYfL93FMUlkOP47z2U1Z6ihf+HC4vb9
zIS/NRBMgYWcKezbcc7E40XHYChE3SedO809AVAyaz7VASAQsfMDVrih0eu7f+w0
R5FY/32Ks/o0B8Udi3numTAovEE72YjIuuvMZQp9CTGBwNMFQUUsiGAdILSBSULl
XNgAJXDOEOyVPDMONaHXQPk4xgDH/iZAcNdgqhnV+lcmgnhwSKAV8hz9/wF/u/H8
qs1OVu0vib9AXJ6ZFFEh
=GEhg
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: How to deploy Java application into Tomcat in Linux

2014-04-01 Thread Martin Gainty


  


> From: randhir.si...@sterlite.com
> Date: Tue, 1 Apr 2014 10:43:28 +0530
> Subject: How to deploy Java application into Tomcat in Linux
> To: users@tomcat.apache.org
> 
> Hi,
> 
> 
> 
> As per my understanding, the steps to deploy a Java application on Tomcat
> (5.X/6.X) in Linux would be as follows:
> 
> 
> 
> 1) Install Tomcat on Linux
> 
> 2) Add a host entry in $TOMCAT_HOME/conf with the syntax like-
> 
> -
> 
>  appBase="/opt/setuponm/jakarta-tomcat-5.0.28/sterlite/reportstool" 
> unpackWARs="false" autoDeploy="false">

MG>Unfortunately that Host designation wont work.. try
  
MG> 
> reports.fion.co.in
> 
> 
> 
>  docBase="/opt/setuponm/jakarta-tomcat-5.0.28/sterlite/reportstool" debug="0"
> 
> reloadable="false" crossContext="false" />
> 
> 
> 
> 
> 
> 
> 
> 
> The above code would assign the host name to access the URL, gives the
> location of the web application pointed out by appBase & context path.
> 
> 
> 
> 3) Start Tomcat.
> 
> 
> 
> Please let me know if the steps above are correct and also please let me
> know in detail if the steps are not correct.
> 
> -- 
> 
> *STL Disclaimer:*
> The content of this message may be legally privileged and confidential and 
> are for the use of the intended recipient(s) only. It should not be read, 
> copied and used by anyone other than the intended recipient(s). If you have 
> received this message in error, please immediately notify the sender, 
> preserve its confidentiality and delete it. Before opening any attachments 
> please check them for viruses and defects. No employee or agent is 
> authorised to conclude any binding agreement on behalf of Sterlite 
> Technologies Limited with another party by email without express written 
> confirmation by authorised person. Visit us at www.sterlitetechnologies.com 
> Please consider environment before printing this email !
> 
> 
> 
> 
  

RES: Configuring limits of requests/sessions/threads in Tomcat

2014-04-01 Thread Danilo Amaral de Oliveira
Hello Chritopher,

You make score. Exactly, I am waiting 500 users on the peak time. The archive 
is in a separated storage in our environment. So, I think that it is not a 
limiting factor. I will try some maxthreads configurations and stress 
situations to see if the server will could handle 500 users. If necessary I can 
increase the server memory and processing, we have robust cluster. Actually the 
server has 4 cores and 8gb of memory.

At the same time, I am analyzing with security team if we could liberate a 
specific video in youtube in order to instead use JWPlayer the site use an 
embedded youtube video, so I take off the responsibility of tomcat to deliver 
the video and I can sleep in peace. hahha

Thank you all!



Grupo Energisa
Danilo A. Oliveira
Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI
e-mail: danilo.olive...@energisa.com.br | tel: (32) 3429-6342 | cel: (32) 
8452-9478

Esta mensagem contém informação confidencial. Se você a recebeu por engano, não 
divulgue ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e 
apague-a do computador.
Privileged and confidential. If this message has been received by mistake, do 
not disclose or copy its contents. Please notify sender and delete immediately.


-Mensagem original-
De: Christopher Schultz [mailto:ch...@christopherschultz.net]
Enviada em: terça-feira, 1 de abril de 2014 18:32
Para: Tomcat Users List
Assunto: Re: Configuring limits of requests/sessions/threads in Tomcat

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Danilo,

On 4/1/14, 2:03 PM, Danilo Amaral de Oliveira wrote:
> Next week we will deploy a institutional video to all company (more
> than 5k users) in a webpage in an application manges by the Tomcat
> 7.0.40. I have made a stress test through JMeter, simulating a lot of
> simultaneous access, and when the simultaneous access reaches
> 100 users the application stop answering.

What is your expected peak load? If you only need to handle 500 simultaneous 
users, then you should be fine.

> I would like to know if I can set a max number (80, for example) of
> requests (maxsession or threads, I dunno) in order to configure the
> tomcat to send a warning page advising the user that the server is
> loaded and try again in few minutes if the limits reach the maximum
> value.

You can change the size of Tomcat's request processing pool. That's either 
"maxConnections" on your  or, better yet, "maxThreads" in your 
.

If you set maxThreads="80", then the 100th request will wait in a queue. You 
may get request timeouts at this point, which will be equivalent to the 
100-user situation you describe above.

What you really need is a CDN so your servers don't even handle the requests at 
all. Is there a place where you can upload your file that will be more scalable 
and/or faster? Something like Amazon S3 maybe?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTOzBFAAoJEBzwKT+lPKRYKjQP/0Ntz/ZT1ylSwMnFMCLFUDqC
4C0eFUXJvPXu3Rr9+EjoSPRbX7r3FN5JMrx4SmwBwfxZhsjiyXksUMNVvUlW0QeD
CUtDsy4oYu3MM8BZqa2zqHtzDXQu8Qp8Hg3a5N0PQGWUqZCR/f2FOgR1fV+Zco2S
Av7ioK67dC/u2elUoC/2oUJ1J4xXSLlVOFRKGNB1i/EmkpDLi07tyLs/L2Y9TmWQ
VfUv5RETqdIA682OshfHJ5ViR5NbZKZVFwTA3H8+oPn5NtPBJ3UgT5hv4GmVYpgz
m4S6O/8CRJz33q+tz9N35e8Fx5JnU8l4Nwn6AfOW0tgUX9JO6V0+x6W7bvCjSrlH
vbmJYJjPynoP8Y1smAxGrNg8jwjQklTP5qTIRr2FBm2DZ0chJQYMAmbETShrYZu8
n4na84JJ67gEMD2LV+ym5k7ma6gVmfCw3inT12kXtiwzC+d8vyxzdvToCT589cCJ
lRG5jhihpxPJTZtJ27db4ZxxgvG87ArQNhpvzEQCKnGa22/UkOaC56NZwzxbtfqb
64u7Ok+Jn6z8fJBMeq9lxILUVJTsbgfD3wx4WqNH+f1D2U+LsSPXrm8xmP5DS5hd
KQ4GZUNT4kEApRCCSfqlzbi+BC2dwo7mm7zmhaMIV5Otu43Wda4fUpK2z+ZAwE35
YJJvZvdzD8LkeMFiQz4G
=/hsP
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: mod_jk - Failover behaviour and load + patch

2014-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Frederik,

On 3/26/14, 9:32 PM, Frederik Nosi wrote:
> My scenario is Apache httpd + mod_jk + N Tomcat's in. The default 
> behaviour of load balanced workers in mod_jk in my testing is that
> when a client requests a page (GET / POST / Whatever), the LB
> worker tries the request to every ajp worker. This in contrast with
> what i read here:
> 
> 
> http://people.apache.org/~mturk/docs/article/ftwai.html 
> 
> 
> Expecially this part:
> 
> 
> When having multiple nodes in a cluster you can improve your
> application availability by implementing failover. The failover
> means that if the particular elected node can not fulfill the
> request the another node will be selected automatically. In case of
> three nodes you are actually doubling your application
> availability. The application response time will be slower during
> failover, but none of your users will be rejected. Inside the
> mod_jk configuration there is a special configuration parameter
> called worker.retries that has default value of 3, but that needs
> to be adjusted to the actual number of nodes in the cluster.
> 
> ... worker.list=lbworker worker.lbworker.type=lb # Adjust to the
> number of workers worker.retries=4 
> worker.lbworker.balance_workers=node1,node2,node3,node4 If you add
> more then three workers to the load balancer adjust the retries
> parameter to reflect that number. It will ensure that even in the
> worse case scenario the request gets served if there is a single 
> operable node.
> 
> From that it seems that the "retries" parameter in a load balancer 
> worker context should mean the number of real (AJP) workers to
> try. (what i need indeed) but in my testing, that LB worker
> parameter is the number of times that all the AJP workers that are
> part of the LB worker get a round retry. In eg, having a LB worker
> with 4 AJP workers, setting LB Worker's retries = 2, the behaviour
> i see is that the AJP workers get called this way:
> 
> AJP1 -> timeout [...] AJP4 -> timeout
> 
> ===> repeat again (retries == 2)
> 
> AJP1 -> timeout [...] AJP4 -> timeout
> 
> --> LB sends an error to the client.
> 
> 
> 
> Now from the online documentation the meaning of that parameter in
> a load balancer worker context is'nt that clear, but from the link
> i provided seems it was exactly what i needed, not the number of
> retries to all AJP workers, but the number of single AJP workers to
> try..
> 
> If that is not correct i can fill a bug report. If instead it's by 
> design, the attached patch adds a new parameter, "lb_retries", that
> does what i need. Of course it's a bit rough, but works.
> 
> Any comments? Am I getting stuff wrong?

I'm bumping this because I can see Rainer has fixed a bunch of things
in mod_jk over the last few days. Perhaps he's getting ready to do a
release or something.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTOzvQAAoJEBzwKT+lPKRY6uEQAISOkIa3VwSlhVEu/JPuhqDD
SHN7/hui6l/0oj2chPRr1YWs0XO8yuP8afgzlfuJhWQ5fNeVshDliYijYusKZPSx
666iVZ4NqVF8zTYo7Y6LE7gJJS8LrZUnD/nEF3ngCWGp5V6KzbQkB2haQBeFFRX2
bK2xcPFAC/hhT4QmkSkyCb8KaqyGtgIZDXToiQlA1oWRkleRip8yU+JwZEQXUz8v
MNhRtG5hUiX5z6wJh7OVTRu421mwmfZav4SUNxvjN71UnvoiRST4H3qrQGeD6fHh
2bKq4ot+olZ7T0Wo4fd6NqRzn/7fwRfp9U6OIrwe5umjaWzYd99o/iTm31hcFJFz
f6d1A0A5uqZaDT2+o8y01qSbdIWDYZFKRv7KZuX1/+6WXp6h7VHXhY9mA/R8RYf9
NpSi0bk5FprrTNJoJx9+q/LBGlFrwFZqJpYfL93FMUlkOP47z2U1Z6ihf+HC4vb9
zIS/NRBMgYWcKezbcc7E40XHYChE3SedO809AVAyaz7VASAQsfMDVrih0eu7f+w0
R5FY/32Ks/o0B8Udi3numTAovEE72YjIuuvMZQp9CTGBwNMFQUUsiGAdILSBSULl
XNgAJXDOEOyVPDMONaHXQPk4xgDH/iZAcNdgqhnV+lcmgnhwSKAV8hz9/wF/u/H8
qs1OVu0vib9AXJ6ZFFEh
=GEhg
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Configuring limits of requests/sessions/threads in Tomcat

2014-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Danilo,

On 4/1/14, 2:03 PM, Danilo Amaral de Oliveira wrote:
> Next week we will deploy a institutional video to all company (more
> than 5k users) in a webpage in an application manges by the Tomcat
> 7.0.40. I have made a stress test through JMeter, simulating a lot
> of simultaneous access, and when the simultaneous access reaches
> 100 users the application stop answering.

What is your expected peak load? If you only need to handle 500
simultaneous users, then you should be fine.

> I would like to know if I can set a max number (80, for example)
> of requests (maxsession or threads, I dunno) in order to configure
> the tomcat to send a warning page advising the user that the server
> is loaded and try again in few minutes if the limits reach the
> maximum value.

You can change the size of Tomcat's request processing pool. That's
either "maxConnections" on your  or, better yet,
"maxThreads" in your .

If you set maxThreads="80", then the 100th request will wait in a
queue. You may get request timeouts at this point, which will be
equivalent to the 100-user situation you describe above.

What you really need is a CDN so your servers don't even handle the
requests at all. Is there a place where you can upload your file that
will be more scalable and/or faster? Something like Amazon S3 maybe?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTOzBFAAoJEBzwKT+lPKRYKjQP/0Ntz/ZT1ylSwMnFMCLFUDqC
4C0eFUXJvPXu3Rr9+EjoSPRbX7r3FN5JMrx4SmwBwfxZhsjiyXksUMNVvUlW0QeD
CUtDsy4oYu3MM8BZqa2zqHtzDXQu8Qp8Hg3a5N0PQGWUqZCR/f2FOgR1fV+Zco2S
Av7ioK67dC/u2elUoC/2oUJ1J4xXSLlVOFRKGNB1i/EmkpDLi07tyLs/L2Y9TmWQ
VfUv5RETqdIA682OshfHJ5ViR5NbZKZVFwTA3H8+oPn5NtPBJ3UgT5hv4GmVYpgz
m4S6O/8CRJz33q+tz9N35e8Fx5JnU8l4Nwn6AfOW0tgUX9JO6V0+x6W7bvCjSrlH
vbmJYJjPynoP8Y1smAxGrNg8jwjQklTP5qTIRr2FBm2DZ0chJQYMAmbETShrYZu8
n4na84JJ67gEMD2LV+ym5k7ma6gVmfCw3inT12kXtiwzC+d8vyxzdvToCT589cCJ
lRG5jhihpxPJTZtJ27db4ZxxgvG87ArQNhpvzEQCKnGa22/UkOaC56NZwzxbtfqb
64u7Ok+Jn6z8fJBMeq9lxILUVJTsbgfD3wx4WqNH+f1D2U+LsSPXrm8xmP5DS5hd
KQ4GZUNT4kEApRCCSfqlzbi+BC2dwo7mm7zmhaMIV5Otu43Wda4fUpK2z+ZAwE35
YJJvZvdzD8LkeMFiQz4G
=/hsP
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: configuring a combined realm

2014-04-01 Thread Francesco Viscomi
thanks Mark,
with localDataSource="true" it works;

for Daniel, thanks to you too;
I'm using tomcat 7; I was able to log to tomcat manager, but i wasn't able
to log to my application (adding localDataSource="true") it works right;

thanks again



2014-04-01 18:01 GMT+02:00 Mark Thomas :

> On 01/04/2014 13:15, Francesco Viscomi wrote:
> > I'm unable to understand what's wrong with this configuration:
>
> You need to read the Realm documentation more carefully.
>
> > context.xml file
> >
> ===
> > 
> > 
> >
> >
> >  > type="javax.sql.DataSource"
> > maxActive="100" maxIdle="30" maxWait="1"
> > username="utentedb" password="utentedb"
> > driverClassName="com.mysql.jdbc.Driver"
> >
> >
> url="jdbc:mysql://localhost:3306/timesheet?zeroDateTimeBehavior=convertToNull"/>
> >
> >
> >
> >  > dataSourceName="jdbc/PoolConnessioni"
> > userTable="Dipendente" userNameCol="username"
> userCredCol="password"
> > userRoleTable="ruoliUtente" roleNameCol="nomeRuolo"/>
> >
> >
> > 
>
> Take a look at the localDataSource attribute of the DataSourceRealm.
>
> Mark
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Ing. Viscomi Francesco


Re: SSL Certificates

2014-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Nithun,

On 4/1/14, 4:02 PM, Bomma, Nithun wrote:
> I want to get public & private keys from WebSphere and import into
> Tomcat.
> 
> We have WebSphere certificates (Signed by Verisign) until 2015 and
we > want to use the same in tomcat.

Where are the keys, now? Are they in a keystore? If so, open that
keystore and export the key and certificate. Then, import them into
another keystore for use with Tomcat.

> When I create a keystore (keytool -genkey -alias tomcat -keyalg RSA
> -keystore /opt/tomcat/SSL/tomcat.keystore), a keystore is getting
> created. But I'm unable to import the certificates into it.

You don't want to use "genkey" because that will create a new key. You
already have a key. You want to import from an existing keystore into
a new one.

> Is there any document or documentation which might be helpful?
> Could you please let me know?

Did you try Googling for "export websphere certificate into tomcat"?
We don't exactly document that procedure in the Tomcat documentation.

You can probably go back to VeriSign and ask for the certificate
again, then import that into your keystore. As for the server key,
you're going to have to get that from wherever Websphere keeps it.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTOyrKAAoJEBzwKT+lPKRYfaMP/Rw7EpCb/aesr9LxS+ZIV1cU
IvsQgM0CKgVR03YwGk/+6lPwi/596xXfVMXmFI/Ekzen6jx1H/GgXvAUYtEnnqJc
nf+TgVGAZ7JIZ1zcffX24Rv86xecPdMpuvxekyOdrBDITCnDCGCt3jkA/VozrACL
0FfiGNVJTJEuQSIuPkA3jWFE5Ci98RFvMRTo7YEsBmOmQm9pNHw9zUFrV8Con4Yt
TYGCvVHFJ2DypS0z0f0DvJ0BkZ8QIYAbGp2Tx9YREOSbQzYzqmrjJIXlw3QixHkV
qcAN+xnhu4OPk/5HKGPPMenHhaj+a2Ukg08MnvPoLD8Ml24+i4KNBFbapgR9cUOz
M/c91EH8TLr/WXSlR+7YTGVlm1plwWkancEBsBImTQeRmW4TFJg9/lohV0pSum7D
tLi5UbgE4JrwT++OukDJ553Cavg+Pv5v5awM1aL/SKlwtBPZG19ppjBjqkAsudmE
1Wf+ZPr77Fb9AhzU182DzhHcoIFT4EaQ8EdqZAOpl7idgNsRnHN25YWNp1O8wsJk
QFvqOcsGddIhZ6AdZ1nN+TLCk4hTazhttWToHwB3MHIY9tDXDnj9yjOM9ZLmVz4f
U2pyfitJ6UlplCvhzWZSZ+tq8nmWPeYkXHyZf4L0FO9PlxkCn0Jl6pt7f9KBbV/x
DYsBY1XNqiEg6TQgRGj5
=JmZE
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



[ANN] Apache Tomcat 7.0.53 released

2014-04-01 Thread Violeta Georgieva
The Apache Tomcat team announces the immediate availability of Apache
Tomcat 7.0.53.

Apache Tomcat is an open source software implementation of the Java
Servlet, JavaServer Pages, Java Expression Language and Java
WebSocket technologies.

This release contains a number of bug fixes and improvements compared to
version 7.0.52. The notable changes since 7.0.52 include:

- Update the Eclipse JDT compiler to enable full Java 8 support in JSPs.

Please refer to the change log for the complete list of changes:
http://tomcat.apache.org/tomcat-7.0-doc/changelog.html

Note: This version has 4 zip binaries: a generic one and
  three bundled with Tomcat native binaries for Windows operating
  systems running on different CPU architectures.

Note: Use of the JSR-356 Java WebSocket 1.0 implementation requires Java 7.

Note: If you use the APR/native AJP or HTTP connector you *must* upgrade
  to version 1.1.29 or later of the APR/native library.

Downloads:
http://tomcat.apache.org/download-70.cgi

Migration guides from Apache Tomcat 5.5.x and 6.0.x:
http://tomcat.apache.org/migration.html

- The Apache Tomcat team


Re: RES: Configuring limits of requests/sessions/threads in Tomcat

2014-04-01 Thread André Warnier

André Warnier wrote:

Danilo Amaral de Oliveira wrote:

Milo,

The video is embedded in a JWPlayer Javascript application.  The video 
is in the page too, but you need download it before watch it.


Summarizing, here the simulating process of watching the video:

User access the page  | Tomcat serve the page.


Ok, so there can be 5000 users obtaining that page, and just to annoy 
you, they all wait before they press the "play" button.
(I would imagine that the page does not really "contain" the video when 
they get it.  Or does the fact of simply viewing that page already 
downloads the video ?)


User clicks "play" button 


So now they all click "play" at the same time.

  | Tomcat send the video to the user (it is the same if the user 
download it)


That's probably not what really happens, is it ?
I mean, the "play" button must be sending something back to Tomcat.

User watches the video in the JWPlayer windows| The processing task of 
the video is in the local user machine - The interaction between the 
web application finishes after download the video.



...
I searched Google for JWPlayer, and went to their homepage, which shows 
one such video window.  I did this with Firefox, with the add-on HttpFox 
enabled, to see what happens.


Loading the page which contains the window showing the starting image of 
the video, does not really download the video yet; just a lot of html, 
stylesheets, javascript, gifs, jpegs etc.. But nothing very large 
individually.


When you click the "play" button however, /then/ the browser makes a 
request for the "video/mp4" file (in this case 3.6 MB) and starts 
downloading and playing it.

The request to the server for the video, is just a "GET" request.
(GET 
/sEtaWjfL/videos/RxiqSWej-htxObmZA.mp4?5c877a8d15f183bb974dcdccb105a79495b4e5e3b1b6e4cf2779670f5893acd5fb2e2e0fa612e58d66b8691edfddfac95896931e691ea609ff9f808064d5ebbefd315cdd991497cb4a0ea3fdf2a639831982a394 
HTTP/1.1)


So is there some application on the server which responds to that GET 
request from the page, or just the file itself ?


As for the real solution to your problem, considering that this JWPlayer 
is a commercial application, with probably some technical support 
available, did you ask the supplier about this ?




Complement of information, for anyone interested :

The following is the complete sequence of requests sent by the browser (as per HttpFox), 
starting from the pressing of the "play" icon in the middle of the initial image, up to 
the end of the video.


00:00:09.681	1.663	568	3.6M	GET	200	video/mp4 
https://videos-vm.jwpsrv.com/sEtaWjfL/videos/RxiqSWej-htxObmZA.mp4?5c877a8d15f183bb974dcdccb105a79495b4e5e3b1b6e4cf2779670f5893add9bd407b6146da13d8a990bbb9a17d6835bbd66c15fc66bb4167bad932cfe0c24276d7d671f2759d6d3f1d3994dd83013b92f4ba92d71d
00:00:10.648	0.150	830	200	GET	200	image/gif 
http://i.n.jwpltx.com/v1/jwplayer6/ping.gif?tv=4636&ph=1&n=2136859365394319&aid=FTMzKDHrEeODISIACusDuQ&e=s&i=0&pv=6.8.4616&pi=&a=0&ed=3&vs=2&l=2&q=4&mu=https%3A%2F%2Fvideos-vm.jwpsrv.com%2FsEtaWjfL%2Fvideos%2FRxiqSWej-5iAUmvy0.mp4%3F5c877a8d15f183bb974dcdccb105a79495b4e5e3b1b6e4cf2779670f5893add9bd407b6146da13d8a990bbb9a17d6835bbd66c15fc66bb4167bad932cfe0c24276d7d671f2759d6d3f1d6489e4990e20da9eeec3050e&pu=http%3A%2F%2Fwww.jwplayer.com%2F&t=Play&pt=JW%20Player%20%7C%20Best%20HTML5%20%26%20Flash%20Online%20Video%20Player%20%7C%20Video%20Hosting
00:00:21.681	0.158	829	200	GET	200	image/gif 
http://i.n.jwpltx.com/v1/jwplayer6/ping.gif?tv=4636&ph=1&n=4250413625278177&aid=FTMzKDHrEeODISIACusDuQ&e=t&i=0&pv=6.8.4616&pi=&ed=3&ti=11&pw=32&q=4&mu=https%3A%2F%2Fvideos-vm.jwpsrv.com%2FsEtaWjfL%2Fvideos%2FRxiqSWej-5iAUmvy0.mp4%3F5c877a8d15f183bb974dcdccb105a79495b4e5e3b1b6e4cf2779670f5893add9bd407b6146da13d8a990bbb9a17d6835bbd66c15fc66bb4167bad932cfe0c24276d7d671f2759d6d3f1d6489e4990e20da9eeec3050e&pu=http%3A%2F%2Fwww.jwplayer.com%2F&t=Play&pt=JW%20Player%20%7C%20Best%20HTML5%20%26%20Flash%20Online%20Video%20Player%20%7C%20Video%20Hosting
00:00:37.860	0.157	829	200	GET	200	image/gif 
http://i.n.jwpltx.com/v1/jwplayer6/ping.gif?tv=4636&ph=1&n=7175237523619218&aid=FTMzKDHrEeODISIACusDuQ&e=t&i=0&pv=6.8.4616&pi=&ed=3&ti=11&pw=64&q=4&mu=https%3A%2F%2Fvideos-vm.jwpsrv.com%2FsEtaWjfL%2Fvideos%2FRxiqSWej-5iAUmvy0.mp4%3F5c877a8d15f183bb974dcdccb105a79495b4e5e3b1b6e4cf2779670f5893add9bd407b6146da13d8a990bbb9a17d6835bbd66c15fc66bb4167bad932cfe0c24276d7d671f2759d6d3f1d6489e4990e20da9eeec3050e&pu=http%3A%2F%2Fwww.jwplayer.com%2F&t=Play&pt=JW%20Player%20%7C%20Best%20HTML5%20%26%20Flash%20Online%20Video%20Player%20%7C%20Video%20Hosting
00:00:48.764	0.169	829	200	GET	200	image/gif 
http://i.n.jwpltx.com/v1/jwplayer6/ping.gif?tv=4636&ph=1&n=6488892765556430&aid=FTMzKDHrEeODISIACusDuQ&e=t&i=0&pv=6.8.4616&pi=&ed=3&ti=11&pw=96&q=4&mu=https%3A%2F%2Fvideos-vm.jwpsrv.com%2FsEtaWjfL%2Fvideos%2FRxiqSWej-5iAUmvy0.mp4%3F5c877a8d15f183bb974dcdccb105a79495b4e5e3b1b6e4cf2779670f5893add9bd407b6146da13d8a990bbb9a17d6835bbd66c15fc66b

RE: SSL Certificates

2014-04-01 Thread Bomma, Nithun
Thanks Chris!

I want to get public & private keys from WebSphere and import into Tomcat.

We have WebSphere certificates (Signed by Verisign) until 2015 and we want to 
use the same in tomcat.

When I create a keystore (keytool -genkey -alias tomcat -keyalg RSA -keystore 
/opt/tomcat/SSL/tomcat.keystore), a keystore is getting created. But I'm unable 
to import the certificates into it.

Is there any document or documentation which might be helpful? Could you please 
let me know?

Thanks.


-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Monday, March 31, 2014 2:58 PM
To: Tomcat Users List
Subject: Re: SSL Certificates

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Ninthun,

On 3/31/14, 10:19 AM, Bomma, Nithun wrote:
> Hello,
> 
> We are using WebSphere v6.1 for SSO and we are moving to ForgeRock and 
> it uses Apache Tomcat (v7.0.37)
> 
> We are trying to import the certificates (Verisign) including the 
> chain certificates from WebSphere to Tomcat.
> 
> Have any of you did this before? If yes, could you help us out?

Websphere probably should be using Java keystores. You should just be able to 
use the same keystore, although something might need to be re-named or 
something.

Save yourself a huge headache and use Portecle:
http://portecle.sourceforge.net/

You should be able to take your server key and issued certificate and create a 
new Java Keystore to use with the BIO or NIO connectors. If you are using APR, 
then you will have to export your key and certificate to individual files and 
configure them appropriately.

Hope that helps,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTObq8AAoJEBzwKT+lPKRY99sQAKdQryt76EFPHD42vk72o/pJ
vgBaWBsLL57rK+6LgsUSuNneTviGaBkDY6kBVjnGzA1w3I9MJn4XnhX8Pm/Z1ZQd
rpYDk3/E+CI2Gh5C6HTkgcXE/hffQ8xKAhS/CZj4riJu6S3YSIPFtX6H3vTkQD1A
tWlUE8fEWm0Wo529izbiPPPseZTBdAU1Sbv4z4AEjZolrxyvE6Bm0GSyvSYTu5cm
g0oxv7hoSl8IxKHaI6mxmRFLCrBSRBmIHp6vSB7OHzmx0pi6UuZzWnhjL9N1VhZ6
zA3vxlQlicXxjMdWOY2dsy6GLxzK+CmOK61Fk52uJMRJgEz1Dzdb2hyuypdt1aVC
F160wtePQpbYkjnXusjsfE8PsiZxFyiFOBbfVnoni6yY7DiVSID5lglbvXPjnveA
jMCHKTjDrGZAeou7Tuu1aUMqvg9kaSOlCGAstK5G5wuAV8GSvGoqAfuZ70EbrTdj
pqK4xGl+uFKaJfw0bkFzD6seSWevk8CiWCZ46h3JVISM42VWqtiWnfKkTNjFSUVx
ECFll3YGmEwWbwo9cTDHD/GJYMqi878vhA34v/YmOVFLV6dVy0hOjudC6NXeu9/t
Hk2AGm82Fi5mgP3ZWT8K35/GcH1ezd77M+jFmikFjCZC6btZw26ir2A9i2xbdZ//
In71YEw3kQauMHA6UsgL
=BbUU
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Problem in accessing link

2014-04-01 Thread Bomma, Nithun
Thanks Chris!

I want to get public & private keys from WebSphere and import into Tomcat.

We have WebSphere certificates (Signed by Verisign) until 2015 and we want to 
use the same in tomcat.

When I create a keystore (keytool -genkey -alias tomcat -keyalg RSA -keystore 
/opt/tomcat/SSL/tomcat.keystore), a keystore is getting created. But I'm unable 
to import the certificates into it.

Is there any document or documentation which might be helpful? Could you please 
let me know?

Thanks.

Thanks,
Nithun Bomma
WebSphere Administrator
Amtrak - Information Technology (Operations)
AIM: nithunbomma 
EMAIL: nithun.bo...@amtrak.com
Desk: 215-349-2065; ATS: 728-2065; Cell: 215-704-4981

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Monday, March 31, 2014 5:18 PM
To: Tomcat Users List
Subject: Re: Problem in accessing link

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Randir,

On 3/31/14, 5:14 AM, Randhir Singh wrote:
> Thanks for your answer. There are 2 applications hosted on this 
> Tomcat. 1 is working fine and the other only is giving problems which 
> we are accessing on port 10080.
> 
> Request inputs on this so that the resolution is found.

You need to request inputs on this from whoever Elite Core is. We cannot help 
you, here.


Good luck,
- -chris

> -Original Message- From: Christopher Schultz 
> [mailto:ch...@christopherschultz.net] Sent: Saturday, March 29,
> 2014 6:22 PM To: Tomcat Users List Subject: Re: Problem in accessing 
> link
> 
> Randhir,
> 
> On 3/29/14, 8:38 AM, Randhir Singh wrote:
>> We are using tomcat in our production setup, the version of tomcat is 
>> 5.0.28.
> 
> It would be really good for you to investigate upgrading your version 
> of Tomcat. Not only has Tomcat 5.0 been retired, but Tomcat
> 5.5 has also been retired. Tomcat 8 is about to be released. There are 
> known and unknown unpatched security problems with the Tomcat 5 
> versions which will never be patched.
> 
>> While accessing the link hosted on tomcat, the following error is 
>> coming as below:
> 
>> -
>> -
>>
>> 
- --
>> -
>> -
>>
>> 
- 
> 
>> *HTTP Status 500 - * --
> 
>> *type* Exception report
> 
>> *message*
> 
>> *description* *The server encountered an internal error () that 
>> prevented it from fulfilling this request.*
> 
>> *exception*
> 
>> java.lang.NullPointerException
> 
> 
>> com.elitecore.reports.manager.server.GetCompanyInfoServlet.doAction(G
>> e
>>
>> 
tCompanyInfoServlet.java:93)
> 
> This
> 
> is a problem with whatever "elitecore' is. You'll have to look there.
> 
>> Request you to please advice on what steps should be taken so that 
>> this problem is resolved.
> 
> This is not a problem with Tomcat: it's a problem with the web 
> application deployed on Tomcat. This is something you'll have to do 
> yourself or engage the original developer.
> 
> -chris
> 
> -
>
> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTOdt4AAoJEBzwKT+lPKRYFJUP/2skKVpGkF09mj44ZJlR7731
WSKCe7C7fI6wZTD94hAVMMEqVKcyLvMBpeFih4S+zjUSvCs9Cw0kz9pjtvwA9mA9
8THXGKoNQuJs/xSRdEkJUSfQf2JAOXcklIKRL5EOH+bq/AT8n9ARHWX4rj72BKe5
UHYU50qsLIKQnjpxSJDz2cebQY9DuDe5MWn9TF16YL0ySfRT7wAmaXVeR4bgfuJr
lPlGydpsQ/1FXDOf/uU7gTjL6opVfK03RjNAKCuOdqN7HXdqNLQs2SHOA2V/jItc
uI+VXx6bj1+PuE9iNteBP5BJaDmlaBVVuBPEIRTplF3KBewSUaluDh6aOf8wnc9X
ThDDPrSWiwHLID2J+h0jCsxnfdAxEjgoTS25i2kTwDisVWlngafnlyoTBacZPOp4
hCcoKdRguU6mUYpyvu19NyZLPGmBofYGB69tNMXQOhlA12HxGUHMqXs9ndag1pgq
jhimFiMDYlQ+2FS+vtKAGQDBa8HVohgIdCYsI5r5R0sZHZwx09K5KR1nZw7RK8Vf
nE1ydf+4r2YkJKCRKlF+lQxpdmxASAdSrzlqIrWj6sszXf24g+mK5EzYuVT7twUi
Y6ycVI3fxo4ovm5AWcFlBcoDwl4wpzGWcVNc8D0hbmCS7gBELuWbwTnTsjT7Ockx
hYzYZQUInB0f9mqap9Pb
=itWA
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: RES: Configuring limits of requests/sessions/threads in Tomcat

2014-04-01 Thread André Warnier

Danilo Amaral de Oliveira wrote:

Milo,

The video is embedded in a JWPlayer Javascript application.  The video is in 
the page too, but you need download it before watch it.

Summarizing, here the simulating process of watching the video:

User access the page  | Tomcat serve the page.


Ok, so there can be 5000 users obtaining that page, and just to annoy you, they all wait 
before they press the "play" button.
(I would imagine that the page does not really "contain" the video when they get it.  Or 
does the fact of simply viewing that page already downloads the video ?)


User clicks "play" button 


So now they all click "play" at the same time.

  | Tomcat send the video to the user (it is the same if the user download 
it)

That's probably not what really happens, is it ?
I mean, the "play" button must be sending something back to Tomcat.


User watches the video in the JWPlayer windows| The processing task of the 
video is in the local user machine - The interaction between the web 
application finishes after download the video.


...
I searched Google for JWPlayer, and went to their homepage, which shows one such video 
window.  I did this with Firefox, with the add-on HttpFox enabled, to see what happens.


Loading the page which contains the window showing the starting image of the video, does 
not really download the video yet; just a lot of html, stylesheets, javascript, gifs, 
jpegs etc.. But nothing very large individually.


When you click the "play" button however, /then/ the browser makes a request for the 
"video/mp4" file (in this case 3.6 MB) and starts downloading and playing it.

The request to the server for the video, is just a "GET" request.
(GET 
/sEtaWjfL/videos/RxiqSWej-htxObmZA.mp4?5c877a8d15f183bb974dcdccb105a79495b4e5e3b1b6e4cf2779670f5893acd5fb2e2e0fa612e58d66b8691edfddfac95896931e691ea609ff9f808064d5ebbefd315cdd991497cb4a0ea3fdf2a639831982a394 
HTTP/1.1)


So is there some application on the server which responds to that GET request from the 
page, or just the file itself ?


As for the real solution to your problem, considering that this JWPlayer is a commercial 
application, with probably some technical support available, did you ask the supplier 
about this ?



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: RES: Configuring limits of requests/sessions/threads in Tomcat

2014-04-01 Thread Milo Hyson
On Apr 1, 2014, at 12:00 PM, Danilo Amaral de Oliveira 
 wrote:

> The video is embedded in a JWPlayer Javascript application.  The video is in 
> the page too, but you need download it before watch it.


Since users have to download the video, I'm guessing it isn't being streamed at 
a reasonable bit-rate but rather transmitted at full-rate like any other static 
file would be. If that's the case, your bandwidth (and Tomcat's time) are being 
spent on bulky video transmissions rather than serving up pages. I'd recommend 
taking a different approach, like using a content-aware streaming package or 
maybe even offloading the video to a third-party network (e.g. YouTube).

- Milo Hyson
Chief Scientist
CyberLife Labs, Inc.



Re: Configuring limits of requests/sessions/threads in Tomcat

2014-04-01 Thread André Warnier

Danilo Amaral de Oliveira wrote:

Hello Tomcat Community,

Next week we will deploy a institutional video to all company (more than 5k 
users) in a webpage in an application manges by the Tomcat 7.0.40. I have made 
a stress test through JMeter, simulating a lot of simultaneous access, and when 
the simultaneous access reaches 100 users the application stop answering.

I would like to know if I can set a max number (80, for example) of requests 
(maxsession or threads, I dunno) in order to configure the tomcat to send a 
warning page advising the user that the server is loaded and try again in few 
minutes if the limits reach the maximum value.



How is the video being served to the user ? is it just a link in the page directly to the 
video file, or is some active component serving it ?



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RES: Configuring limits of requests/sessions/threads in Tomcat

2014-04-01 Thread Danilo Amaral de Oliveira
Milo,

The video is embedded in a JWPlayer Javascript application.  The video is in 
the page too, but you need download it before watch it.

Summarizing, here the simulating process of watching the video:

User access the page  | Tomcat serve the page.
User clicks "play" button   | Tomcat send the video to the user (it is the 
same if the user download it)
User watches the video in the JWPlayer windows| The processing task of the 
video is in the local user machine - The interaction between the web 
application finishes after download the video.


Danilo



Grupo Energisa
Danilo A. Oliveira
Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI
e-mail: danilo.olive...@energisa.com.br | tel: (32) 3429-6342 | cel: (32) 
8452-9478

Esta mensagem contém informação confidencial. Se você a recebeu por engano, não 
divulgue ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e 
apague-a do computador.
Privileged and confidential. If this message has been received by mistake, do 
not disclose or copy its contents. Please notify sender and delete immediately.


-Mensagem original-
De: Milo Hyson [mailto:m...@cyberlifelabs.com]
Enviada em: terça-feira, 1 de abril de 2014 15:52
Para: Tomcat Users List
Assunto: Re: Configuring limits of requests/sessions/threads in Tomcat

On Apr 1, 2014, at 11:03 AM, Danilo Amaral de Oliveira 
 wrote:

> Next week we will deploy a institutional video to all company (more than 5k 
> users) in a webpage in an application manges by the Tomcat 7.0.40. I have 
> made a stress test through JMeter, simulating a lot of simultaneous access, 
> and when the simultaneous access reaches 100 users the application stop 
> answering.

Are you serving the video streams through Tomcat or just the pages that house 
them?

- Milo Hyson
Chief Scientist
CyberLife Labs, Inc.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Configuring limits of requests/sessions/threads in Tomcat

2014-04-01 Thread Milo Hyson
On Apr 1, 2014, at 11:03 AM, Danilo Amaral de Oliveira 
 wrote:

> Next week we will deploy a institutional video to all company (more than 5k 
> users) in a webpage in an application manges by the Tomcat 7.0.40. I have 
> made a stress test through JMeter, simulating a lot of simultaneous access, 
> and when the simultaneous access reaches 100 users the application stop 
> answering.

Are you serving the video streams through Tomcat or just the pages that house 
them?

- Milo Hyson
Chief Scientist
CyberLife Labs, Inc.



Configuring limits of requests/sessions/threads in Tomcat

2014-04-01 Thread Danilo Amaral de Oliveira
Hello Tomcat Community,

Next week we will deploy a institutional video to all company (more than 5k 
users) in a webpage in an application manges by the Tomcat 7.0.40. I have made 
a stress test through JMeter, simulating a lot of simultaneous access, and when 
the simultaneous access reaches 100 users the application stop answering.

I would like to know if I can set a max number (80, for example) of requests 
(maxsession or threads, I dunno) in order to configure the tomcat to send a 
warning page advising the user that the server is loaded and try again in few 
minutes if the limits reach the maximum value.



Danilo

[cid:image72e789.PNG@aee38af6.49ba1aa3]


Danilo A. Oliveira


Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI
e-mail: danilo.olive...@energisa.com.br | tel: (32) 3429-6342 | cel: (32) 
8452-9478

Esta mensagem contém informação confidencial. Se você a recebeu por engano, não 
divulgue ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e 
apague-a do computador.
Privileged and confidential. If this message has been received by mistake, do 
not disclose or copy its contents. Please notify sender and delete immediately.





Re: Apache perfomance issue

2014-04-01 Thread André Warnier

Saurabh Makol wrote:

Hello Tomcat expert,

I am facing a performance issue for one of the application that I am
hosting. My apologies for reaching out to y'all as I know this group is
tomcat issue but thought if anyone has ever come across this strange issue.

We have an environment which  is 64 bit Windows Server 2008 R2 having 2GB.
On this server we have Apache 2.4/ PHP 5.5.9 running with MySQL database.

The issue is that when I run JMeter(from my local machine) with 20
concurrent user it pegs the CPU at 100% on the server even though I have
set memory_limit = 128M in my php file.

Is their a way to reduce the CPU usage. Any advice would be appreciated.



As Mark indicated, this is definitely not the right list for that kind of 
question.
Try the Apache httpd Users List instead.

But just as a first and totally unsubstantiated impression from the scarce data above : 
isn't 2 GB of RAM a bit low (not to say miserly) for what you have running there ?


Windows Server 2008 on its own already uses a good chunk of that.
Then you have a MySQL server.
And then you have potentially 20 Apache + PHP processes (or threads), at 128 MB each : 
128MB * 20 = 2.5 GB.
Your server is probably spending more time swapping stuff in and out of memory, than at 
doing any useful work.

Have you even looked at a display in the Task Manager yet ?

Note that for any further discussion, you should really go to the httpd list, or a Windows 
list.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] Re: Apache perfomance issue

2014-04-01 Thread Saurabh Makol
Understood. Thanks gain for your help.


On Tue, Apr 1, 2014 at 12:12 PM, Mark Eggers  wrote:

> Replies inline:
>
>
> On 4/1/2014 8:53 AM, Saurabh Makol wrote:
>
>> Hello Tomcat expert,
>>
>> I am facing a performance issue for one of the application that I am
>> hosting. My apologies for reaching out to y'all as I know this group is
>> tomcat issue but thought if anyone has ever come across this strange
>> issue.
>>
>> We have an environment which  is 64 bit Windows Server 2008 R2 having 2GB.
>> On this server we have Apache 2.4/ PHP 5.5.9 running with MySQL database.
>>
>>
> There is no Tomcat, there is no Java. This is not the right mailing list.
>
>
>  The issue is that when I run JMeter(from my local machine) with 20
>> concurrent user it pegs the CPU at 100% on the server even though I have
>> set memory_limit = 128M in my php file.
>>
>>
> This has no impact on CPU performance. If a script exceeds your memory
> limit, you will get an error.
>
>
>  Is their a way to reduce the CPU usage. Any advice would be appreciated.
>>
>>
> http://www.php.net/manual/en/book.xhprof.php
> http://www.xdebug.org/docs/profiler
>
>
>  Thanks,
>> Saurabh
>>
>>
> And no, I am not a good resource for these tools.
>
> /mde/
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


[OT] Re: Apache perfomance issue

2014-04-01 Thread Mark Eggers

Replies inline:

On 4/1/2014 8:53 AM, Saurabh Makol wrote:

Hello Tomcat expert,

I am facing a performance issue for one of the application that I am
hosting. My apologies for reaching out to y'all as I know this group is
tomcat issue but thought if anyone has ever come across this strange issue.

We have an environment which  is 64 bit Windows Server 2008 R2 having 2GB.
On this server we have Apache 2.4/ PHP 5.5.9 running with MySQL database.



There is no Tomcat, there is no Java. This is not the right mailing list.


The issue is that when I run JMeter(from my local machine) with 20
concurrent user it pegs the CPU at 100% on the server even though I have
set memory_limit = 128M in my php file.



This has no impact on CPU performance. If a script exceeds your memory 
limit, you will get an error.



Is their a way to reduce the CPU usage. Any advice would be appreciated.



http://www.php.net/manual/en/book.xhprof.php
http://www.xdebug.org/docs/profiler



Thanks,
Saurabh



And no, I am not a good resource for these tools.

/mde/

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: catalina-ant reload task doesn't work

2014-04-01 Thread Mark Thomas
On 29/03/2014 02:23, Martin Gainty wrote:
> $/CATALINA_HOME/conf/server.xml
> autoDeploy=true
> 
> https://tomcat.apache.org/tomcat-6.0-doc/config/host.html

Martin,

Again, not relevant. I remind you of this message:
http://markmail.org/message/7x2tjic2azwfbw5o

Mark


> 
>  
> 
> ?
> Martin
> 
> _
> 
> 
>   
> 
> 
> 
>> Date: Fri, 28 Mar 2014 18:21:42 -0700
>> Subject: catalina-ant reload task doesn't work
>> From: catph...@catphive.net
>> To: users@tomcat.apache.org
>>
>> Using the tasks from the example ant script at:
>> http://tomcat.apache.org/tomcat-8.0-doc/appdev/build.xml.txt
>>
>> I have can deploy and undeploy from ant. However, the "reload" task doesn't
>> seem to do anything.
>>
>> I make changes to java and html files, run "ant reload" which triggers the
>> reload task. Ant reports success. I browse to the site and my changes
>> aren't reflected. undeploy followed by deploy works.
>>
>> Am I not understanding what reload is supposed to do, or is there a
>> different task that makes more sense to use?
> 
> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: configuring a combined realm

2014-04-01 Thread Mark Thomas
On 01/04/2014 13:15, Francesco Viscomi wrote:
> I'm unable to understand what's wrong with this configuration:

You need to read the Realm documentation more carefully.

> context.xml file
> ===
> 
> 
> 
> 
>  type="javax.sql.DataSource"
> maxActive="100" maxIdle="30" maxWait="1"
> username="utentedb" password="utentedb"
> driverClassName="com.mysql.jdbc.Driver"
> 
> url="jdbc:mysql://localhost:3306/timesheet?zeroDateTimeBehavior=convertToNull"/>
> 
> 
> 
>  dataSourceName="jdbc/PoolConnessioni"
> userTable="Dipendente" userNameCol="username" userCredCol="password"
> userRoleTable="ruoliUtente" roleNameCol="nomeRuolo"/>
> 
> 
> 

Take a look at the localDataSource attribute of the DataSourceRealm.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Request for better deployment usability: should be able to specify context root inside war

2014-04-01 Thread Mark Thomas
On 31/03/2014 17:43, Sebastien Tardif wrote:
> I understand that Tomcat currently doesn't always support specifying the 
> context root to be used in a file inside the War.

That is not correct. Tomcat NEVER allows the context path to be defined
by a context.xml file within a WAR.



> Other web server handle this better, like GlassFish and it's very convenient.

Define better.

> Usability is something we should try to achieve.

Define (lack of) usability.

> Since, in all cases, the War will need to be "read" anyway, how hard or 
> costly that can be to lookup a configuration file and read it?

Who said it was hard or costly?

> I think we cannot mentions "performance" reasons for current behavior since 
> everything else that need to be done will always be x factor way slower. It's 
> like optimizing string concatenation become calling a database, that makes me 
> laugh in each project I work on.

You appear to have made the invalid assumption that the current design
decisions were made for performance reasons.

> That issue is the only one that makes the infamous GlassFish looks better so 
> I wanted to raise it.

Again, define better.

Unless and until you define what use case(s) you believe Glassfish (or
any other application server) handles better and explain why you believe
they are better this thread isn't going to go anywhere useful.

Mark


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Apache perfomance issue

2014-04-01 Thread Saurabh Makol
Hello Tomcat expert,

I am facing a performance issue for one of the application that I am
hosting. My apologies for reaching out to y'all as I know this group is
tomcat issue but thought if anyone has ever come across this strange issue.

We have an environment which  is 64 bit Windows Server 2008 R2 having 2GB.
On this server we have Apache 2.4/ PHP 5.5.9 running with MySQL database.

The issue is that when I run JMeter(from my local machine) with 20
concurrent user it pegs the CPU at 100% on the server even though I have
set memory_limit = 128M in my php file.

Is their a way to reduce the CPU usage. Any advice would be appreciated.

Thanks,
Saurabh


Re: [OT] Tomcat under load && frontend reverse proxy timeouts

2014-04-01 Thread Frederik Nosi

Hi Christopher,

On 04/01/2014 05:50 PM, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Ferderik,

On 3/31/14, 7:14 PM, Frederik Nosi wrote:

We've tried scaling horizontaly, and there's where i noticed the
amplification effect of mod_jk, i posted another mail on this issue
and a patch, with subject: "Re: mod_jk - Failover behaviour and
load + patch" but the thread went nowhere FWICS.

I still have your message as "unread" and want to discuss it at
ApacheCon with the core mod_jk guys (if they are actually there). If
the bug (oversight) is real, it should get patched right away. Not
sure about an official follow-up release... we just had one.


Ah, okay, that's perfect thanks! Just ask if you need any info. I'll be 
waiting.



- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTOuBWAAoJEBzwKT+lPKRY0ncP+wSJJ7Qq0UmAS3MHPR0TlQMx
Ae7sqxXiEw5Bw+hjMagzn3I0DfJuV8k/W52gSYNHFu4aePGxRl2R6iyBb5SwEcPU
kxX/DRXJ3hAfFrEpBb+/W5Jitp8QhKxle+hylNxrJYvatshXxukMqKXuN9ietP0v
BU7hcIvUGpw8jjMMl4wBMK6BbvtPJPpIeE5xgWVF10kcfzZJgZa63Py94iMHWhPn
hxHpvUyAFDXjWfUiBr/qPUhNz04XtqleEARkQhFU9cV7RPjJYg6zr3lxlCMvtCGu
9pl4uAnj+ec++jgczBqb3cL2RXF09WUN8ugqTAA3KCYkm7BSTFX1FpgitZ/rT62R
kElDY3xG6lYb2x+CR7JCx4g0pfphcNmBhslpJQZSiLeiQ3W47mS12gmUt5BmkVJ0
pM7hHKIgygxgyU0VOl/QqpQK0DXBXYx3PT4gdh66ykV9BqlnQmFPL7+7me9/UM37
H9q9SRiekzwFp3GepqmVC8DjPHIzGbQyrYDUNMhZY2VD/bjZreD/LJsn8Ihxr7jh
11nWCSl0xpTvg+K+yXH1QCNz4wXPiuyBXoL/0KCrsCGZidCFMES7QDGexL5ySS6c
1I2NeP5sWlMykKi7toG2u0A4arxWbPLy84v1AbacYnO7XvMZ3vSucsSZ3Nu0oHiE
dpjlTNH1oZFFPI96xfq/
=jQJq
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


Frederik

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] Tomcat under load && frontend reverse proxy timeouts

2014-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Ferderik,

On 3/31/14, 7:14 PM, Frederik Nosi wrote:
> We've tried scaling horizontaly, and there's where i noticed the 
> amplification effect of mod_jk, i posted another mail on this issue
> and a patch, with subject: "Re: mod_jk - Failover behaviour and
> load + patch" but the thread went nowhere FWICS.

I still have your message as "unread" and want to discuss it at
ApacheCon with the core mod_jk guys (if they are actually there). If
the bug (oversight) is real, it should get patched right away. Not
sure about an official follow-up release... we just had one.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTOuBWAAoJEBzwKT+lPKRY0ncP+wSJJ7Qq0UmAS3MHPR0TlQMx
Ae7sqxXiEw5Bw+hjMagzn3I0DfJuV8k/W52gSYNHFu4aePGxRl2R6iyBb5SwEcPU
kxX/DRXJ3hAfFrEpBb+/W5Jitp8QhKxle+hylNxrJYvatshXxukMqKXuN9ietP0v
BU7hcIvUGpw8jjMMl4wBMK6BbvtPJPpIeE5xgWVF10kcfzZJgZa63Py94iMHWhPn
hxHpvUyAFDXjWfUiBr/qPUhNz04XtqleEARkQhFU9cV7RPjJYg6zr3lxlCMvtCGu
9pl4uAnj+ec++jgczBqb3cL2RXF09WUN8ugqTAA3KCYkm7BSTFX1FpgitZ/rT62R
kElDY3xG6lYb2x+CR7JCx4g0pfphcNmBhslpJQZSiLeiQ3W47mS12gmUt5BmkVJ0
pM7hHKIgygxgyU0VOl/QqpQK0DXBXYx3PT4gdh66ykV9BqlnQmFPL7+7me9/UM37
H9q9SRiekzwFp3GepqmVC8DjPHIzGbQyrYDUNMhZY2VD/bjZreD/LJsn8Ihxr7jh
11nWCSl0xpTvg+K+yXH1QCNz4wXPiuyBXoL/0KCrsCGZidCFMES7QDGexL5ySS6c
1I2NeP5sWlMykKi7toG2u0A4arxWbPLy84v1AbacYnO7XvMZ3vSucsSZ3Nu0oHiE
dpjlTNH1oZFFPI96xfq/
=jQJq
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: configuring a combined realm

2014-04-01 Thread Daniel Mikusa
On Apr 1, 2014, at 8:15 AM, Francesco Viscomi  wrote:

> I'm unable to understand what's wrong with this configuration:

Can you be more specific about what is and isn’t working with the setup?  As I 
understand it, you’re trying to setup container based authentication for the 
manager app and for your custom app.  Is authentication working for either of 
them?  If not, what happens when you try to auth?  Are you presented with the 
opportunity to login or do you just get access to everything?  If you are give 
the chance to login, does a login attempt with a valid user fail?  If so, are 
you presented with any error messages?

Also, please include the exact version of Tomcat that you’re running.

> 
> in the server.xml file I defined that as a resource i want to use
> conf/tomcat-users.xml (this authentication is just for tomcat manager);
> While to authenticated user on my application i define in the context.xml
> file as a realm a database;
> In other words I don't want to modify server.xml file to make
> authentication on my app;
> 
> 
> server.xml  file:
> 
> 
> 
> SSLEngine="on" />
>
> className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
> className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
> 
> 
>
>type="org.apache.catalina.UserDatabase"
>description="User database that can be updated and saved"
>factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>pathname="conf/tomcat-users.xml" />
> 
>
> 
> 
> 
>
>connectionTimeout="2"
>redirectPort="8443" />
>
>
> autoDeploy="true">
> 
> className="org.apache.catalina.realm.UserDatabaseRealm"
>resourceName="UserDatabase"/>
> 
> className="org.apache.catalina.valves.AccessLogValve" directory="logs"
>prefix="localhost_access_log." suffix=".txt"
>pattern="%h %l %u %t "%r" %s %b" />
>
>
>
> 
> 
> 
> 
> context.xml file

What file is this?  “conf/context.xml?  If so, I would not suggest putting this 
configuration there.  It’s settings will be applied to all applications 
deployed to your server, probably not what you want and possibly even why 
you’re seeing problems here.

> ===
> 
>  type="javax.sql.DataSource"
>maxActive="100" maxIdle="30" maxWait="1"
>username="utentedb" password="utentedb"
> driverClassName="com.mysql.jdbc.Driver"
> 
> url="jdbc:mysql://localhost:3306/timesheet?zeroDateTimeBehavior=convertToNull"/>
> 
> 
> 
>dataSourceName="jdbc/PoolConnessioni"
>userTable="Dipendente" userNameCol="username" userCredCol="password"
>userRoleTable="ruoliUtente" roleNameCol="nomeRuolo"/>
> 
> 
> 
> 
> 
> 
> thanks;


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



configuring a combined realm

2014-04-01 Thread Francesco Viscomi
I'm unable to understand what's wrong with this configuration:

in the server.xml file I defined that as a resource i want to use
conf/tomcat-users.xml (this authentication is just for tomcat manager);
While to authenticated user on my application i define in the context.xml
file as a realm a database;
In other words I don't want to modify server.xml file to make
authentication on my app;


server.xml  file:

































context.xml file
===















thanks;


Re: How to deploy Java application into Tomcat in Linux

2014-04-01 Thread André Warnier

Randhir Singh wrote:

Hi,



As per my understanding, the steps to deploy a Java application on Tomcat
(5.X/6.X) in Linux would be as follows:



1)  Install Tomcat on Linux

2)  Add a host entry in $TOMCAT_HOME/conf with the syntax like-

-



reports.fion.co.in












The above code would assign the host name to access the URL, gives the
location of the web application pointed out by appBase & context path.



3)  Start Tomcat.



Please let me know if the steps above are correct and also please let me
know in detail if the steps are not correct.



Hi.

Perhaps you should first reflect on the fact that Tomcat is open-source software, provided 
for free, and developed and maintained by people who are not being paid to do so.

And then on the fact that this Tomcat Users List is similarly-staffed.
So your last phrase may be interpreted differently from what you think, like : if you want 
detailed instructions, check the on-line Tomcat documentation, or hire some paid expert.

Hint : http://www.catb.org/esr/faqs/smart-questions.html

This being said, the main thing that is wrong above is that you are talking about 
installing new systems, yet using old versions of tomcat, one of them (5.x) not even 
supported anymore.  The current stable version of Tomcat is 7.0.52.
Which tends to show that you have not even done the minimum amount of homework, which 
would be at least to look at the Tomcat website's homepage.

Hint : http://tomcat.apache.org

Had you done so, and consulted the on-line documentation, you may also have seen that it 
is not recommended to place application  elements inside Tomcat's server.xml file.

Hint : 
https://tomcat.apache.org/tomcat-7.0-doc/deployer-howto.html#A_word_on_Contexts

So please go do some work yourself first.  This list likes to help people who are also 
willing to help themselves, not people just expecting someone else to do their homework.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org