Re: SSL Certificate : Unable to configure Tomcat server.xml

2010-10-26 Thread Richard da Silva
(a) Exists in certificate store 'cacerts' (bad idea btw). Yes it does exist. But, I took your advice, and created a separate keystore. Then imported the certificate there (b) Exists with the exact label 'tomcat' Yes, it does From what I have seen so far, the problem does not lie with the

Re: mod_jk 1.2.28 errors

2010-10-26 Thread Pid
On 26/10/2010 00:05, Hannaoui, Mo wrote: Hi, We are using mod_jk version 1.2.28, Apache 2.2.15 on Red Hat 4.1.2-46. The Apache server is 4-core CPU. The AJP is load balancing 2 Windows JBoss_4_2_2_GA / Tomcat-5.5 servers with 4-core CPU and 8GB RAM each. We are having couple

RE: mod_jk 1.2.28 errors

2010-10-26 Thread Hannaoui, Mo
- I believe the socket_timeout was at the recommendation of a document or a post that I read. - No application errors to suggest that the problem source is the application. -mo -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Monday, October 25, 2010 11:37 PM To: Tomcat

How to prevent Apache decoding characters with mod_jk

2010-10-26 Thread John Lister
Hi, I'm using mod_jk to interface to apache to tomcat and I've come across a small problem, it looks like apache (or maybe mod_jk) is decoding the url presented to apache before passing it onto tomcat. This is causing problems with my app (using Jersey) which complains that the decoded urls

RE: SSL Certificate : Unable to configure Tomcat server.xml

2010-10-26 Thread Darryl Lewis
Here are my notes on importing a SSL certificate in case that is the problem. I had a lot of issues and errors when I first tried. (these were compiled from suggestions on this list) Importing SSL certificates RootAddTrustExternalCARoot.crt Intermediate CA

Re: How to prevent Apache decoding characters with mod_jk

2010-10-26 Thread John Lister
Apologies, I came across this problem late last night and was probably too asleep to spot the solution, a quick recheck this morning after posting revealed forwardURICompat and forwardURIEscaped, the former was turned on. Problem solved, Thanks John On 26/10/2010 08:23, John Lister wrote:

SSL Certificate : Unable to configure Tomcat server.xml

2010-10-26 Thread Richard da Silva
Thanks for your response, Darryl But, the certificate is not the problem. The Tomcat Configuration is the issue (server.xml) Richard da Silva --- On Tue, 10/26/10, Darryl Lewis darryl.le...@unsw.edu.au wrote: From: Darryl Lewis darryl.le...@unsw.edu.au Subject: RE: SSL Certificate : Unable

Can we use Tomcat web server?

2010-10-26 Thread Chandra Shekar Bairi
Dear friends, I have developed a small web application using the Tomcat web server for my company. We are planning to purchase a web server very soon. Can we host this web application in our company before we purchase a different web server. This does not serve any business purpose. The web

Re: Can we use Tomcat web server?

2010-10-26 Thread Borut Hadžialić
Hi, what would stop you from using Tomcat to host your application in production? Apache Tomcat is licensed under Apache 2.0 license meaning you can (practically) do whatever you want with it. And its being successfully used in production for many years in large number of installations. Take a

Re: SSL Certificate : Unable to configure Tomcat server.xml

2010-10-26 Thread Rainer Frey
On Tuesday 26 October 2010 08:24:53 Richard da Silva wrote: (a) Exists in certificate store 'cacerts' (bad idea btw). Yes it does exist. But, I took your advice, and created a separate keystore. Then imported the certificate there Did you create a new private key and request a new

Re: Can we use Tomcat web server?

2010-10-26 Thread Chandra Shekar Bairi
Hi Borut, Nothing though. But my company is not sure if we can use this for free. They are assuming that we should purchase the tomcat web server. Hence I want to get this clarified. Thanks On Tue, Oct 26, 2010 at 11:52 AM, Borut Hadžialić borut.hadzia...@gmail.com wrote: Hi, what would stop

Re: Can we use Tomcat web server?

2010-10-26 Thread Antonio Petrelli
2010/10/26 Chandra Shekar Bairi chandra.ba...@gmail.com: Hi Borut, Nothing though. But my company is not sure if we can use this for free. They are assuming that we should purchase the tomcat web server. Hence I want to get this clarified. heh, there are still people thinking that really free

RE: SSL Certificate : Unable to configure Tomcat server.xml

2010-10-26 Thread Brett Delle Grazie
Hi Richard, In your Server_modified.xml up the top you've got AprListener configured with SSLEngine=on. This means Tomcat expects the APR type of SSL configuration on a Connector. (see Tomcat SSL Howto for details) http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html In short - your

Re: mod_jk 1.2.28 errors

2010-10-26 Thread André Warnier
Pid wrote: On 26/10/2010 00:05, Hannaoui, Mo wrote: ... worker.template.ping_mode=A worker.template.reply_timeout=3 worker.template.socket_connect_timeout=1 worker.template.socket_timeout=10 worker.template.connection_pool_timeout=600 I can't get to the jk docs docs at the moment,

JSESSIONID Cookie handle customizing

2010-10-26 Thread Juliano Daloia de Carvalho
Hi there, sorry for the late in give you news. First I would like to thank, Pid, Mark, Charles and Christopher for the responses. I've solved my problem using valve ( Thanks Mark :) ), I extended the BaseValve and its working perfectly (is in production right now). I didn't know of Valve

Custom HttpServletRequestWrapper and then jsp:param

2010-10-26 Thread Tomás Kelly
Hi folks, All that follows is being developed/tested in Tomcat 5.5.29 I'm scratching my head a little here. I wrote a custom http servlet request wrapper (code below) to allow me to manipulate some of the parameters for a given request. I was forced down this path to continue using some third

Help with tomcat 5.5 and Apache2 (404 issues)

2010-10-26 Thread Luiz Fabiano T.I CTO (Tempo Filmes)
Hi folks, I'm trying to use Apche and Tocamt 5.5 together, I want to answer request in http://mydomain.com/ in tomcat with my ROOT/.do but when I use /blog for example, I want to answer this request by Apache, I got a wordpress blog there, which only be able to answer on port

Custom HttpServletRequestWrapper and then jsp:param

2010-10-26 Thread Tomás Kelly
Hi folks, All that follows is being developed/tested in Tomcat 5.5.29 I'm scratching my head a little here. I wrote a custom http servlet request wrapper (code below) to allow me to manipulate some of the parameters for a given request. I was forced down this path to continue using some third

Re: Help with tomcat 5.5 and Apache2 (404 issues)

2010-10-26 Thread Pid
On 26/10/2010 12:47, Luiz Fabiano T.I CTO (Tempo Filmes) wrote: Hi folks, I'm trying to use Apche and Tocamt 5.5 together, I want to answer request in http://mydomain.com/ in tomcat with my ROOT/.do but when I use /blog for example, I want to answer this request by Apache,

Re: SSL Certificate : Unable to configure Tomcat server.xml

2010-10-26 Thread Crypto Sal
On 10/26/2010 04:08 AM, Richard da Silva wrote: Thanks for your response, Darryl But, the certificate is not the problem. The Tomcat Configuration is the issue (server.xml) Richard da Silva Richard, Are you sure that the certificate isn't also the problem? As Brett has previously

RE: SSL Certificate : Unable to configure Tomcat server.xml

2010-10-26 Thread Richard da Silva
Dear Sal and Brett, thank you for pointing this out to me. I changed the definition of the SSLEngine to off. But, still, the error persists. I am unable to copy the error messages, and paste them here, because, as I mentioned in my earlier post, there is NO error message.  Whenever I try to

RE: SSL Certificate : Unable to configure Tomcat server.xml

2010-10-26 Thread Brett Delle Grazie
Hi Richard, Comments below, Regards, Brett From: Richard da Silva [mailto:roman_s...@yahoo.com] Sent: 26 October 2010 13:30 To: Tomcat Users List; Brett Delle Grazie; crypto@gmail.com Cc: darryl.le...@unsw.edu.au Subject: RE: SSL Certificate : Unable to configure Tomcat

mod_jk makes ajp connector run out of free connections

2010-10-26 Thread Marc Wilmots
Hi Experts, I have the following setup: Apache1 / \ Apache2 Apache3 \ / Tomcat1 All Apaches are version 2.2.3 (RedHat) Apache2 and Apache3 loadbalance Tomcat1 (6.0.18) with mod_jk (2.2.28). In idle state

ApacheCon is next week

2010-10-26 Thread Mark Thomas
It's not too late to register! (and a number of the events are free) A summary of Tomcat content is on the Tomcat blog [1] and full details can be found on the ApacheCon site [2]. Hope to see you there. Mark [1] https://blogs.apache.org/tomcat/entry/tomcat_at_apachecon_north_america [2]

RES: Help with tomcat 5.5 and Apache2 (404 issues)

2010-10-26 Thread Luiz Fabiano T.I CTO (Tempo Filmes)
Dear PiD It's doesn't works for me, when I try to lauch apache2 the deamon sends it for me: ProxyPass URL must be absolute!, I've tried to put full path, with and without domain, anyway nothing good happened, I still with the problem and I will waiting for more help from you and the

Re: RES: Help with tomcat 5.5 and Apache2 (404 issues)

2010-10-26 Thread Pid
On 26/10/2010 14:14, Luiz Fabiano T.I CTO (Tempo Filmes) wrote: Dear PiD It's doesn't works for me, when I try to lauch apache2 the deamon sends it for me: ProxyPass URL must be absolute!, I've tried to put full path, with and without domain, anyway nothing good happened, I still with

Re: mod_jk makes ajp connector run out of free connections

2010-10-26 Thread Pid
On 26/10/2010 13:47, Marc Wilmots wrote: Hi Experts, I have the following setup: Apache1 / \ Apache2 Apache3 \ / Tomcat1 That's an interesting setup. What does it achieve? All Apaches are version 2.2.3 (RedHat) Time for an

Re: Can we use Tomcat web server?

2010-10-26 Thread Pid
On 26/10/2010 10:19, Antonio Petrelli wrote: 2010/10/26 Chandra Shekar Bairi chandra.ba...@gmail.com: Hi Borut, Nothing though. But my company is not sure if we can use this for free. They are assuming that we should purchase the tomcat web server. Hence I want to get this clarified. heh,

Re: mod_jk makes ajp connector run out of free connections

2010-10-26 Thread Marc Wilmots
2010/10/26 Pid p...@pidster.com On 26/10/2010 13:47, Marc Wilmots wrote: Hi Experts, I have the following setup: Apache1 / \ Apache2 Apache3 \ / Tomcat1 That's an interesting setup. What does it achieve? Apache1 is

Re: Tomcat cluster error (null pointer except) on NioReceiver.java:266

2010-10-26 Thread Stefano Suzzi
In the post before I sed why accept() returns null, so i was investigating in tomcat and jdk_1.6 source code, and I found that the method accept in ServerSocketChannel.java can return null in case of non-blocking socket e no connection available. Should this be tested? and why ask for session

RES: RES: Help with tomcat 5.5 and Apache2 (404 issues)

2010-10-26 Thread Luiz Fabiano T.I CTO (Tempo Filmes)
Pretty nice, it's works great for me..! ProxyRequests On ProxyPreserveHost On Proxy balancer://cloud BalancerMember ajp://localhost:8080 route=tomcat-producao /Proxy ProxyPass /blog ! ProxyPass /media ! Location / ProxyPass balancer://cloud/ stickysession=JSESSIONID /Location

Re: mod_jk makes ajp connector run out of free connections

2010-10-26 Thread Marc Wilmots
Hi again. I checked out the executor element, although, I can't find a lot of information about it. Would you mind explaining why using the executor element would fix the problem I am having? Thanks 2010/10/26 Pid p...@pidster.com On 26/10/2010 13:47, Marc Wilmots wrote: Hi Experts, I

Re: mod_jk makes ajp connector run out of free connections

2010-10-26 Thread Mladen Turk
On 10/26/2010 02:47 PM, Marc Wilmots wrote: Hi Experts, I have the following setup: Apache1 / \ Apache2 Apache3 \ / Tomcat1 All Apaches are version 2.2.3 (RedHat) Apache2 and Apache3 loadbalance

RFC 5746 compliant SSL renegotiation with client certificates

2010-10-26 Thread Aron K.
Hi, Firefox ist RFC 5746 compliant. (http://www.ssltls.de/) Tomcat 6.0.29 uses JRE 1.6.22, also RFC 5746 compliant. Renegotiation should occur, as the browser initially doesn't send the client certificate, then the user is supposed to choose a client cert. and then the browser should

Re: RFC 5746 compliant SSL renegotiation with client certificates

2010-10-26 Thread Mark Thomas
On 26/10/2010 18:28, Aron K. wrote: Hi, Firefox ist RFC 5746 compliant. (http://www.ssltls.de/) Tomcat 6.0.29 uses JRE 1.6.22, also RFC 5746 compliant. Renegotiation should occur, as the browser initially doesn't send the client certificate, then the user is supposed to choose a client

Tomcat manager

2010-10-26 Thread Propes, Barry L
Hello all, running Tomcat 6.0.26 on jdk1.6.0_18 on a Win XP Pro box. I think I'd asked before, but can't find reference to a fix here. Issue is I'm trying to alter the context.xml file within the manager webapp folder, for an IP restriction with the RemoteAddrValve, like so. In

RE: Tomcat manager

2010-10-26 Thread Caldarale, Charles R
From: Propes, Barry L [mailto:barry.l.pro...@citi.com] Subject: Tomcat manager In trying to overwrite the current setting to allow for the filter, do I need to delete the manager.xml file in Tomcat\conf\Catalina\localhost ? Yes. Doing so doesn't allow the manager.xml file to be

Re: mod_jk makes ajp connector run out of free connections

2010-10-26 Thread Marc Wilmots
2010/10/26 Mladen Turk mt...@apache.org On 10/26/2010 02:47 PM, Marc Wilmots wrote: Hi Experts, I have the following setup: Apache1 / \ Apache2 Apache3 \ / Tomcat1 All Apaches are version 2.2.3

RE: Tomcat manager

2010-10-26 Thread Propes, Barry L
Ok, so it ( webapps/manager/META-INF/context.xml) doesn't necessarily get copied out to the Catalina folder then? Is that correct? I mean, upon stopping the Tomcat service, and restarting it? Am I understanding that correctly? I hope I'm understanding you correctly. Thanks, Chuck.

RE: Tomcat manager

2010-10-26 Thread Caldarale, Charles R
From: Propes, Barry L [mailto:barry.l.pro...@citi.com] Subject: RE: Tomcat manager Ok, so it ( webapps/manager/META-INF/context.xml) doesn't necessarily get copied out to the Catalina folder then? Correct. The rules for when Tomcat chooses to copy the Context element have changed over

RE: Tomcat manager

2010-10-26 Thread Propes, Barry L
Ok, thanks, Chuck! -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Tuesday, October 26, 2010 1:42 PM To: Tomcat Users List Subject: RE: Tomcat manager From: Propes, Barry L [mailto:barry.l.pro...@citi.com] Subject: RE: Tomcat manager Ok, so it

deploying as ROOT application

2010-10-26 Thread Aggarwal, Ajay
Where is the official Tomcat documentation on how to make your application a ROOT application? I am using Tomcat 6.0 and can't seem to locate the section on deploying as ROOT application. -Ajay

Fwd: Re: deploying as ROOT application

2010-10-26 Thread Simon Funnell
On 26/10/10 20:31, Aggarwal, Ajay wrote: Where is the official Tomcat documentation on how to make your application a ROOT application? I am using Tomcat 6.0 and can't seem to locate the section on deploying as ROOT application. -Ajay Put your application in the webapps/ROOT folder

RE: Re: deploying as ROOT application

2010-10-26 Thread Aggarwal, Ajay
Perhaps I can discuss my needs here with other forum members. The only reason I thought my app needs to be a ROOT application is because I need to serve following contexts from my application: /foo/* /bar/* /sample1.html But now I am thinking that perhaps URL rewriting can help me here.

Tomcat 4/Java 6 Digester logging

2010-10-26 Thread MARX, MITCHELL (ATTSI)
I've seen lots of people asking this or similar questions, but I can't seem to get a working solution. I'm running Tomcat 4.1.40 on java 1.6.0_20-b02 on Solaris 10 and getting these type messages in catalina.out [org.apache.commons.digester.Digester] : addRuleSet() with no namespace URI

Re: Re: deploying as ROOT application

2010-10-26 Thread Hassan Schroeder
On Tue, Oct 26, 2010 at 12:52 PM, Aggarwal, Ajay ajay.aggar...@stratus.com wrote: But now I am thinking that perhaps URL rewriting can help me here. Perhaps I can still deploy my application as myapp and use URL rewriting filters to do following mapping:  /foo -- /myapp/foo  /bar --

Re: mod_jk makes ajp connector run out of free connections

2010-10-26 Thread Mladen Turk
On 10/26/2010 08:36 PM, Marc Wilmots wrote: 1200 1000, thus your theory is probably right. :) However, I'm just wondering... I read that when Tomcat reaches the max number of connections, just rejects new connections (I'm omitting the backlog on purpose). So, I can understand that my

RE: Re: deploying as ROOT application

2010-10-26 Thread Aggarwal, Ajay
Well, I was assuming these filters are global to Tomcat instance and not specific to an application. I haven't looked at available implementations of these filters yet. Based on your response I take it that my assumption is wrong. In that case, you are right, making my application as ROOT is a

RE: Re: deploying as ROOT application

2010-10-26 Thread Maximilian Stocker
Are you fronting tomcat with something else? Like Apache httpd? I wouldn't classify deploying a ROOT application as experimental either way... -Original Message- From: Aggarwal, Ajay [mailto:ajay.aggar...@stratus.com] Sent: Tuesday, October 26, 2010 4:13 PM To: Tomcat Users List Subject:

Re: Re: deploying as ROOT application

2010-10-26 Thread Hassan Schroeder
On Tue, Oct 26, 2010 at 1:12 PM, Aggarwal, Ajay ajay.aggar...@stratus.com wrote: In that case, you are right, making my application as ROOT is a better alternative. Just that I haven't been able to locate official Tomcat documentation on deploying as ROOT application. And I didn't want to

RE: Re: deploying as ROOT application

2010-10-26 Thread Aggarwal, Ajay
No, there is no Apache in my situation. I guess I will begin playing with ROOT application. -Original Message- From: Maximilian Stocker [mailto:m...@talentoyster.com] Sent: Tuesday, October 26, 2010 4:20 PM To: 'Tomcat Users List' Subject: RE: Re: deploying as ROOT application Are you

Re: deploying as ROOT application

2010-10-26 Thread Pid
On 26/10/2010 20:31, Aggarwal, Ajay wrote: Where is the official Tomcat documentation on how to make your application a ROOT application? I am using Tomcat 6.0 and can't seem to locate the section on deploying as ROOT application. Call it ROOT.war, or name the directory 'ROOT'.

RE: deploying as ROOT application

2010-10-26 Thread Caldarale, Charles R
From: Pid [mailto:p...@pidster.com] Subject: Re: deploying as ROOT application On 26/10/2010 20:31, Aggarwal, Ajay wrote: Where is the official Tomcat documentation on how to make your application a ROOT application? I am using Tomcat 6.0 and can't seem to locate the section on

Re: tomcat 6.0.29 hung

2010-10-26 Thread Jason Britton
I've further traced the root cause of my problems with threads sitting on socket read, never timing out, never throwing an exception and sometimes causing application deadlock (depending on where the socket read occurs) down to the network. By comparing the output of lsof -i :1521 | grep on

destory method is called twice while the child is destoryed directly

2010-10-26 Thread Ivan
Hi, While calling the method destory() on the StandardContext directly, it seems that the method destoryInternal() is called twice in the LifecycleMBeanBase, the two stacktraces are below : a. LifecycleMBeanBase.unregister(ObjectName) line: 191