Re: endpoint.warn.unlockAcceptorFailed

2011-09-28 Thread Konstantin Kolinko
2011/9/27 Konstantin Kolinko knst.koli...@gmail.com:
 2011/9/27 Konstantin Kolinko knst.koli...@gmail.com:
 2011/9/27 Leo Donahue - PLANDEVX leodona...@mail.maricopa.gov:
 Tomcat 6.0.32 and 6.0.33 32-bit windows zip - Windows XP Pro

 Running the shutdown.bat script, on .32 and .33, hung at trying to stop the 
 coyote connector, which then produces the error message in the command 
 prompt window endpoint.warn.unlockAcceptorFailed over and over.

 I fixed the missing message r1176477.

 The rest of the issue needs investigation.

 Last changes in the shutdown code were
 http://svn.apache.org/viewvc?view=revisionrevision=1065945

Fixed in trunk and 7.0. It wouldn't be in 7.0.22 which is already
tagged, but in 7.0.23.
Proposed for 6.0.

Bugzilla issue:
https://issues.apache.org/bugzilla/show_bug.cgi?id=51905


Best regards,
Konstantin Kolinko

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



2 servlets on tomcat.

2011-09-28 Thread ilyal levin
Hi

I have installed tomcat v6 on port 8080, wrote a simple java program
(eclipse 3.7) and now i have my servlet running.
now i want to write another servlet, how can i define tomcat so that i can
run both servlets at the same time? or maybe it is
not possible.

Thanks a lot.


Re: 2 servlets on tomcat.

2011-09-28 Thread André Warnier

ilyal levin wrote:

Hi

I have installed tomcat v6 on port 8080, wrote a simple java program
(eclipse 3.7) and now i have my servlet running.
now i want to write another servlet, how can i define tomcat so that i can
run both servlets at the same time? or maybe it is
not possible.


You really do not provide a lot of information, so answer this :

- What is the top directory where Tomcat is installed ?
- What is the URL that you currently use, to access the web application which you mention 
above ?




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



RE: 2 servlets on tomcat.

2011-09-28 Thread Caldarale, Charles R
 From: André Warnier [mailto:a...@ice-sa.com] 
 Subject: Re: 2 servlets on tomcat.

 ilyal levin wrote:
  I have installed tomcat v6 on port 8080, wrote a simple java 
  program (eclipse 3.7) and now i have my servlet running.
  now i want to write another servlet, how can i define tomcat
  so that i can run both servlets at the same time?

 You really do not provide a lot of information, so answer this :

Before answering, read the servlet spec or otherwise become familiar with the 
concept of web applications of which servlets are a component.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



Re: 2 servlets on tomcat.

2011-09-28 Thread André Warnier

Caldarale, Charles R wrote:
From: André Warnier [mailto:a...@ice-sa.com] 
Subject: Re: 2 servlets on tomcat.



ilyal levin wrote:
I have installed tomcat v6 on port 8080, wrote a simple java 
program (eclipse 3.7) and now i have my servlet running.

now i want to write another servlet, how can i define tomcat
so that i can run both servlets at the same time?



You really do not provide a lot of information, so answer this :


Before answering, read the servlet spec or otherwise become familiar with the 
concept of web applications of which servlets are a component.


Charles, you are impatient.  That was supposed to be lesson #3.
Lesson #1 was gentle prodding about providing more (and better) information.
Lesson #2 would be about the difference between webapps and servlets, and where 
they live.
Then, if you want, you can take over, when things become more interesting.
;-)

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



Using namespaces within XML documents produced from JSPXs

2011-09-28 Thread Paul Wilson
Hi there,

I'm trying use taglibs with a JSPX page, but also specify a namespace
declaration for elements rendered by the JSP. An example:

foo:xyz xmlns:foo=path/to/foo/ns xmlns:bar=path/to/bar/ns
   foo:p/
   bar:q/
/foo:xyz

In the above example, I have a taglib registered for only 'foo', whereas I'd
like 'bar' to be considered verbatim and added to the body content as such.
What actually happens is the xmlns declaration is removed and is not made
available to the taglib component processing 'foo:xyz'. Jasper then
complains that 'bar' is not bound.

I've also tried:

jsp:root xmlns:jsp=... version=2.1 xmlns:foo=path/to/foo/ns
   foo:xyz xmlns:bar=path/to/bar/ns
 foo:p/
 bar:q/
   /foo:xyz
/jsp:root

But again the 'bar' namespace is removed. I also tried 'jsp:attribute',
although that appears to strip the namespace off the element completely,
despite http://java.net/jira/browse/JSP_SPEC_PUBLIC-97 stating that
namespaces would be supported in version 2.1.

I'm lost and can't think my way around this one unfortunately, any help
*vastly* appreciated.

Regards,
Paul


TOMCAT-7.0 and SSL issues

2011-09-28 Thread Alexandre Adao
I have a CAS server on Apache-Tomcat-7.0.19 on Windows 2008 and I need to apply 
the SSL. I followed this instructions ( 
https://wiki.jasig.org/display/CASUM/Best+Practice+-+Setting+Up+CAS+Locally+using+the+Maven2+WAR+Overlay+Method ),but
 when Apache restarts, I have the follwing error:
 
SEVERE: Failed to initialize end point associated with ProtocolHandler 
[http-apr-8443]
java.lang.Exception: Connector attribute SSLCertificateFile must be defined 
when using SSL with APR
 
So this how I made it to work for my test SSL. I followed this instructions 
using Openssl. http://tomcat.apache.org/tomcat-3.3-doc/tomcat-ssl-howto.html#s6
 
My  question is, why my first aproach didn't work ?
 
Thanks for your help in Advance
 
--Alex Adao

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



Re: TOMCAT-7.0 and SSL issues

2011-09-28 Thread Konstantin Kolinko
2011/9/28 Alexandre Adao aad...@yahoo.com:
 I have a CAS server on Apache-Tomcat-7.0.19 on Windows 2008 and I need to 
 apply the SSL. I followed this instructions ( 
 https://wiki.jasig.org/display/CASUM/Best+Practice+-+Setting+Up+CAS+Locally+using+the+Maven2+WAR+Overlay+Method ),but
  when Apache restarts, I have the follwing error:

 SEVERE: Failed to initialize end point associated with ProtocolHandler 
 [http-apr-8443]
 java.lang.Exception: Connector attribute SSLCertificateFile must be defined 
 when using SSL with APR

 So this how I made it to work for my test SSL. I followed this instructions 
 using Openssl. 
 http://tomcat.apache.org/tomcat-3.3-doc/tomcat-ssl-howto.html#s6

tomcat-3.3-doc

Do you know where the proper docs for Tomcat 7.0 are?
Just make a guess.



 My  question is, why my first aproach didn't work ?



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



Re: Using namespaces within XML documents produced from JSPXs

2011-09-28 Thread Konstantin Kolinko
2011/9/28 Paul Wilson paulalexwil...@gmail.com:
 Hi there,


1. What exactly build of Tomcat x.y.z  you are using?

 I'm trying use taglibs with a JSPX page, but also specify a namespace
 declaration for elements rendered by the JSP. An example:

 foo:xyz xmlns:foo=path/to/foo/ns xmlns:bar=path/to/bar/ns
   foo:p/
   bar:q/
 /foo:xyz

 In the above example, I have a taglib registered for only 'foo', whereas I'd
 like 'bar' to be considered verbatim and added to the body content as such.
 What actually happens is the xmlns declaration is removed and is not made
 available to the taglib component processing 'foo:xyz'. Jasper then
 complains that 'bar' is not bound.


2. What happens if you wrap all with jsp:root element and move your
xmlns:bar there?
(and not xmlns:foo like in your example below)

 I've also tried:

 jsp:root xmlns:jsp=... version=2.1 xmlns:foo=path/to/foo/ns
   foo:xyz xmlns:bar=path/to/bar/ns
         foo:p/
         bar:q/
   /foo:xyz
 /jsp:root


3. What version of specification is specified at the top of your web.xml file?

Best regards,
Konstantin Kolinko

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



Re: TOMCAT-7.0 and SSL issues

2011-09-28 Thread Marvin Addison
 My  question is, why my first aproach didn't work ?

Likely because you specified the APR connector somewhere in your
connector config, yet the SSL instructions you cited for CAS describe
the setup for the pure-java connectors.  APR is a different (but
friendly) beast.

M

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



Re: TOMCAT-7.0 and SSL issues

2011-09-28 Thread Pid
On 28/09/2011 17:17, Alexandre Adao wrote:

Please start a new email, rather than replying to an existing thread 2
servlets on tomcat.  This is called thread hijacking.


p



signature.asc
Description: OpenPGP digital signature


Re: Using namespaces within XML documents produced from JSPXs

2011-09-28 Thread Konstantin Kolinko
2011/9/28 Konstantin Kolinko knst.koli...@gmail.com:
 2011/9/28 Paul Wilson paulalexwil...@gmail.com:
 Hi there,


 1. What exactly build of Tomcat x.y.z  you are using?

 I'm trying use taglibs with a JSPX page, but also specify a namespace
 declaration for elements rendered by the JSP. An example:

 foo:xyz xmlns:foo=path/to/foo/ns xmlns:bar=path/to/bar/ns
   foo:p/
   bar:q/
 /foo:xyz

 In the above example, I have a taglib registered for only 'foo', whereas I'd
 like 'bar' to be considered verbatim and added to the body content as such.
 What actually happens is the xmlns declaration is removed and is not made
 available to the taglib component processing 'foo:xyz'. Jasper then
 complains that 'bar' is not bound.


 2. What happens if you wrap all with jsp:root element and move your
 xmlns:bar there?
 (and not xmlns:foo like in your example below)

 I've also tried:

 jsp:root xmlns:jsp=... version=2.1 xmlns:foo=path/to/foo/ns
   foo:xyz xmlns:bar=path/to/bar/ns
         foo:p/
         bar:q/
   /foo:xyz
 /jsp:root


 3. What version of specification is specified at the top of your web.xml file?


Just a quick test with current trunk of Tomcat:

Using the standard examples application that comes with Tomcat.
I edited the following page:
\webapps\examples\jsp\jsp2\jspx\textRotate.jspx

1) I replaced opening svg tag with:

svg xmlns=http://www.w3.org/2000/svg;
 width=450 height=500 viewBox=0 0 450 500
 xmlns:c=http://java.sun.com/jsp/jstl/core;
 xmlns:fn=http://java.sun.com/jsp/jstl/functions;
 xmlns:jsp=http://java.sun.com/JSP/Page;
 xmlns:foo=bar
  jsp:directive.page contentType=image/svg+xml /
  titleJSP 2.0 JSPX/title
foo:xBar!/foo:x

Note xmlns declaration and foo:x element.

The page,
http://localhost:8080/examples/jsp/jsp2/jspx/textRotate.jspx?name=JSPX
renders correctly and gives me:

?xml version=1.0 encoding=UTF-8?
svg xmlns:foo=bar xmlns=http://www.w3.org/2000/svg; viewBox=0 0
450 500 height=500 width=450titleJSP 2.0
JSPX/titlefoo:xBar!/foo:xg id=testContent()


With correct xmlns:foo=bar and foo:xBar!/foo:x.


2) But if I move xmlns declaration from svg element to the new
jsp:root element (adding it around the document):
jsp:root version=2.2 xmlns:jsp=http://java.sun.com/JSP/Page;
xmlns:foo=bar
svg xmlns=http://www.w3.org/2000/svg;
 width=450 height=500 viewBox=0 0 450 500
 xmlns:c=http://java.sun.com/jsp/jstl/core;
 xmlns:fn=http://java.sun.com/jsp/jstl/functions;
 
  jsp:directive.page contentType=image/svg+xml /
  titleJSP 2.0 JSPX/title
foo:xBar!/foo:x

(...)
/jsp:root

It generates invalid XML document where the foo prefix is not declared:
svg xmlns=http://www.w3.org/2000/svg; viewBox=0 0 450 500
height=500 width=450titleJSP 2.0
JSPX/titlefoo:xBar!/foo:xg id=testContent (...)


So, from practical point of view, I think that the problem is the following:
- jsp:root tag by definition does not generate any content
- your custom tag can only generate text (from Tomcat perspective)

Thus it has no XML element in its possession to set xmlns attribute on it.
(Nor it is clever enough to add xmlns attribute to some other element,
as in the example of svg document it does not add it to the svg
element).

I think the cause for this behaviour might be that
the generated xml document can be included as a part into another xml
document (with jsp:include) and thus there should be a mechanism to
suppress unneeded xmlns declarations.

Best regards,
Konstantin Kolinko

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



Re: Incorporating changes and compiling Tomcat

2011-09-28 Thread Pid
On 27/09/2011 21:58, gilbert.be...@bcbssc.com wrote:
 Can any one please direct me to instructions on how to incorporate fixes and 
 then recompile.  Target OS is Windows Server 2003.  Thanks!

Note: Tomcat doesn't issue patches, a new version is released.
Unless you are planning to write patches yourself, you should just
download the latest version.


p




signature.asc
Description: OpenPGP digital signature


RE: Incorporating changes and compiling Tomcat

2011-09-28 Thread Wilde, Bruce R.
So, what are security minded system administrators to do about
mitigating CVE-2011-3190 against V6.0.33?

From the
http://tomcat.apache.org/security-6.html#Fixed_in_Apache_Tomcat_6.0.34_(
not_yet_released) page

Mitigation options:

Upgrade to Tomcat 6.0.34. [Ed. What is the expected release
date?]
Apply the appropriate patch. [Ed. Patch provides 2 java source
files; requiring a re-compilation]
Configure both Tomcat and the reverse proxy to use a shared
secret.
... 
Use the org.apache.jk.server.JkCoyoteHandler (BIO) AJP connector
implementation.
...


V/R,
Bruce

-Original Message-
From: users-return-228011-BRUCE.R.WILDE=saic@tomcat.apache.org
[mailto:users-return-228011-BRUCE.R.WILDE=saic@tomcat.apache.org] On
Behalf Of Pid
Sent: Wednesday, September 28, 2011 1:34 PM
To: Tomcat Users List
Subject: Re: Incorporating changes and compiling Tomcat

On 27/09/2011 21:58, gilbert.be...@bcbssc.com wrote:
 Can any one please direct me to instructions on how to incorporate
fixes and then recompile.  Target OS is Windows Server 2003.  Thanks!

Note: Tomcat doesn't issue patches, a new version is released.
Unless you are planning to write patches yourself, you should just
download the latest version.


p



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



Re: Incorporating changes and compiling Tomcat

2011-09-28 Thread Konstantin Kolinko
2011/9/28 Wilde, Bruce R. bruce.r.wi...@saic.com:
 So, what are security minded system administrators to do about
 mitigating CVE-2011-3190 against V6.0.33?

 From the
 http://tomcat.apache.org/security-6.html#Fixed_in_Apache_Tomcat_6.0.34_(
 not_yet_released) page

 Mitigation options:

        Upgrade to Tomcat 6.0.34. [Ed. What is the expected release
 date?]

or to 7.0.21

        Apply the appropriate patch. [Ed. Patch provides 2 java source
 files; requiring a re-compilation]

man patch

svn help patch  (since Subversion 1.7)

Or apply it manually using your text editor of choice.

        Configure both Tomcat and the reverse proxy to use a shared
 secret.

Read configuration reference. Any Tomcat administrator should have
done so once.

                ...
        Use the org.apache.jk.server.JkCoyoteHandler (BIO) AJP connector
 implementation.

The above one is the easiest. I would recommend it.
BTW, this is the connector implementation that is used by default when
you do not have Tomcat-Native/APR installed. That is what most users
are already using by default.


Regarding original question how to build it:

There are
 - BUILDING.txt
 - webapps/docs/building.html

in every release. What else is needed?


Best regards,
Konstantin Kolinko

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



RE: Incorporating changes and compiling Tomcat

2011-09-28 Thread GILBERT.BERRY
Unfortunately, the government won't let we wait.  Maybe patches is the wrong 
word.  For instance the updated code for AjpAprProcessor.java and 
AjpProcessor.java needed to fix CVE-2011-3190 is available and has been 
incorporated into 6.0.34, they just haven't released it yet.  So what I trying 
to do is to manually incorporate the changes and rebuild Tomcat, something I've 
never done before.  Not being that well versed in Java and ant, I've been doing 
a lot of head scratching.

Gilbert Berry
Blue Cross/Blue Shield of South Carolina
Tricare Post Adjudication Reporting
(803) 763-1873
x 31873
(803) 466-7282 cell
gilbert.be...@mytricare.com
 
THIS EMAIL IS CONFIDENTIAL
http://www.bcbssc.com/confidentiality.htm
 

-Original Message-
From: Pid [mailto:p...@pidster.com] 
Sent: Wednesday, September 28, 2011 1:34 PM
To: Tomcat Users List
Subject: Re: Incorporating changes and compiling Tomcat

On 27/09/2011 21:58, gilbert.be...@bcbssc.com wrote:
 Can any one please direct me to instructions on how to incorporate fixes and 
 then recompile.  Target OS is Windows Server 2003.  Thanks!

Note: Tomcat doesn't issue patches, a new version is released.
Unless you are planning to write patches yourself, you should just
download the latest version.


p



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



RE: Incorporating changes and compiling Tomcat

2011-09-28 Thread GILBERT.BERRY
Thank you.  I guess all I need now is caffeine.

Gilbert Berry
Blue Cross/Blue Shield of South Carolina
Tricare Post Adjudication Reporting
(803) 763-1873
x 31873
(803) 466-7282 cell
gilbert.be...@mytricare.com
 
THIS EMAIL IS CONFIDENTIAL
http://www.bcbssc.com/confidentiality.htm
 

-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: Wednesday, September 28, 2011 1:56 PM
To: Tomcat Users List
Subject: Re: Incorporating changes and compiling Tomcat

2011/9/28 Wilde, Bruce R. bruce.r.wi...@saic.com:
 So, what are security minded system administrators to do about
 mitigating CVE-2011-3190 against V6.0.33?

 From the
 http://tomcat.apache.org/security-6.html#Fixed_in_Apache_Tomcat_6.0.34_(
 not_yet_released) page

 Mitigation options:

        Upgrade to Tomcat 6.0.34. [Ed. What is the expected release
 date?]

or to 7.0.21

        Apply the appropriate patch. [Ed. Patch provides 2 java source
 files; requiring a re-compilation]

man patch

svn help patch  (since Subversion 1.7)

Or apply it manually using your text editor of choice.

        Configure both Tomcat and the reverse proxy to use a shared
 secret.

Read configuration reference. Any Tomcat administrator should have
done so once.

                ...
        Use the org.apache.jk.server.JkCoyoteHandler (BIO) AJP connector
 implementation.

The above one is the easiest. I would recommend it.
BTW, this is the connector implementation that is used by default when
you do not have Tomcat-Native/APR installed. That is what most users
are already using by default.


Regarding original question how to build it:

There are
 - BUILDING.txt
 - webapps/docs/building.html

in every release. What else is needed?


Best regards,
Konstantin Kolinko

-
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



connection pooling configuration for DB2 in tomcat

2011-09-28 Thread rad muthu
All,
I am looking for DB2 connection pooling configuration used in DB2.

Thanks
Krish


Re: Incorporating changes and compiling Tomcat

2011-09-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bruce,

On 9/28/2011 1:44 PM, Wilde, Bruce R. wrote:
 So, what are security minded system administrators to do about 
 mitigating CVE-2011-3190 against V6.0.33?

This is the option I chose:

 (c) Configure both Tomcat and the reverse proxy to use a shared
 secret.

You could also switch to the non-APR connector:

 (d) Use the org.apache.jk.server.JkCoyoteHandler (BIO) AJP
 connector implementation.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6DmdEACgkQ9CaO5/Lv0PBNCwCfWGvziAArTZL/sEjSxLgYyxeE
esYAoJV+m2dSYqJCubcpgsG0XLA/1Ibw
=yuL8
-END PGP SIGNATURE-

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



Re: Incorporating changes and compiling Tomcat

2011-09-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Gilbert,

On 9/28/2011 1:58 PM, gilbert.be...@bcbssc.com wrote:
 Unfortunately, the government won't let we wait.  Maybe patches is 
 the wrong word.  For instance the updated code for 
 AjpAprProcessor.java and AjpProcessor.java needed to fix 
 CVE-2011-3190 is available and has been incorporated into 6.0.34, 
 they just haven't released it yet.  So what I trying to do is to 
 manually incorporate the changes and rebuild Tomcat, something
 I've never done before.  Not being that well versed in Java and
 ant, I've been doing a lot of head scratching.

You have non-code-patching options for mitigating this vulnerability:
see other posts in this thread (specifically, Bruce's branch).

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6Dmk0ACgkQ9CaO5/Lv0PAHnQCfQrnj+pvhBiHvHmOoaUrGzZPq
1B8Anj7afuzq68XwsVs5jVpp5OCs3Gpa
=n8xJ
-END PGP SIGNATURE-

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



Re: Incorporating changes and compiling Tomcat

2011-09-28 Thread Pid
On 28/09/2011 18:44, Wilde, Bruce R. wrote:
 So, what are security minded system administrators to do about
 mitigating CVE-2011-3190 against V6.0.33?
 
 From the
 http://tomcat.apache.org/security-6.html#Fixed_in_Apache_Tomcat_6.0.34_(
 not_yet_released) page
 
 Mitigation options:
 
   Upgrade to Tomcat 6.0.34. [Ed. What is the expected release
 date?]
   Apply the appropriate patch. [Ed. Patch provides 2 java source
 files; requiring a re-compilation]
   Configure both Tomcat and the reverse proxy to use a shared
 secret.
   ... 
   Use the org.apache.jk.server.JkCoyoteHandler (BIO) AJP connector
 implementation.
   ...
 


It's a fair question, and you do provide answers - but those are aimed
at a specific problem.

This may be appropriate, but the OP did not declare their interest and
we do sometimes have people asking how to compile in Tomcat patches
because they misunderstand the release protocol/process.

Details matter: it's fair to challenge the question and provide a range
of answers if the subject is unclear IMO.


p






signature.asc
Description: OpenPGP digital signature


Seeking tips on multi-host, multi-context deployments

2011-09-28 Thread Sam Hokin
Hi, folks.  I've got what I consider to be a fairly significant production implementation of Tomcat with, currently, 89 
contexts in 30 hosts on two concurrent servers.  Everything works fine ... except when it doesn't.  As the number of 
contexts and hosts have increased, there have been more and more JVM and/or Tomcat crashes, typically a couple per week 
lately, on one or both servers.  The error messages vary from nothing at all in catalina.out, to exceptions regarding 
database connections, to exceptions about threads.  Basically, I've been trying to find some good advice on 
configuration in my situation and haven't been able to find much.


In a bit more detail, the deployment is as follows:

(2) Dell 1950 8-CPU servers running Fedora 14 Linux 2.6.35, one with 2 GB RAM 
and one with 4 GB RAM
(2) Tomcat 7.0.16 instances, one on each server, running clustered contexts in 
distributable mode, under Sun JDK 1.6.0
One server runs Apache HTTPD, using mod_proxy_ajp to connect to the two Tomcat 
instances and manage balancing
The other server runs PostgreSQL, the database used by the apps, which connect 
to it via JNDI/JDBC connection pooling

There are a few contexts that run on only one or the other server (namely, Softslate and Searchblox, which are not 
serialized to support clustering).   Most contexts, which run my app, run in parallel on both servers.  I've implemented 
clustering to maintain site availability when a Tomcat instance goes down.


I could post up all the various JVM and Tomcat parameters, but I'm really looking for any definitive list of tips for 
things to try to improve stability.  If anyone has written or seen a how-to document on multi-host, multi-context 
deployments like this, please share!  Thanks!!


P.S. One option I've considered is to run KVM and run each host in its own virtual OS.  To me that's a ridiculous amount 
of OS overhead to deal with occasional Tomcat outages, but it probably would be one solution, much more difficult to 
maintain than a single Tomcat instance per server running all the hosts and contexts.  If you've had experience running 
multiple Tomcat instances in separate virtual machines, I'd be curious to hear how it went.


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



Re: Seeking tips on multi-host, multi-context deployments

2011-09-28 Thread David Kerber

On 9/28/2011 7:25 PM, Sam Hokin wrote:
Hi, folks.  I've got what I consider to be a fairly significant 
production implementation of Tomcat with, currently, 89 contexts in 30 
hosts on two concurrent servers.  Everything works fine ... except 
when it doesn't.  As the number of contexts and hosts have increased, 
there have been more and more JVM and/or Tomcat crashes, typically a 
couple per week lately, on one or both servers.  The error messages 
vary from nothing at all in catalina.out, to exceptions regarding 
database connections, to exceptions about threads.  Basically, I've 
been trying to find some good advice on configuration in my situation 
and haven't been able to find much.


In a bit more detail, the deployment is as follows:

(2) Dell 1950 8-CPU servers running Fedora 14 Linux 2.6.35, one with 2 
GB RAM and one with 4 GB RAM

Stuff in lots more RAM!


(2) Tomcat 7.0.16 instances, one on each server, running clustered 
contexts in distributable mode, under Sun JDK 1.6.0
One server runs Apache HTTPD, using mod_proxy_ajp to connect to the 
two Tomcat instances and manage balancing
The other server runs PostgreSQL, the database used by the apps, which 
connect to it via JNDI/JDBC connection pooling


There are a few contexts that run on only one or the other server 
(namely, Softslate and Searchblox, which are not serialized to support 
clustering).   Most contexts, which run my app, run in parallel on 
both servers.  I've implemented clustering to maintain site 
availability when a Tomcat instance goes down.


I could post up all the various JVM and Tomcat parameters, but I'm 
really looking for any definitive list of tips for things to try to 
improve stability.  If anyone has written or seen a how-to document 
on multi-host, multi-context deployments like this, please share!  
Thanks!!


P.S. One option I've considered is to run KVM and run each host in its 
own virtual OS.  To me that's a ridiculous amount of OS overhead to 
deal with occasional Tomcat outages, but it probably would be one 
solution, much more difficult to maintain than a single Tomcat 
instance per server running all the hosts and contexts.  If you've had 
experience running multiple Tomcat instances in separate virtual 
machines, I'd be curious to hear how it went.


-
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: Seeking tips on multi-host, multi-context deployments

2011-09-28 Thread Igor Cicimov
If i was you i wouldnt even start without 8GB of RAM on each server!
 On Sep 29, 2011 9:26 AM, Sam Hokin s...@ims.net wrote:
 Hi, folks. I've got what I consider to be a fairly significant production
implementation of Tomcat with, currently, 89
 contexts in 30 hosts on two concurrent servers. Everything works fine ...
except when it doesn't. As the number of
 contexts and hosts have increased, there have been more and more JVM
and/or Tomcat crashes, typically a couple per week
 lately, on one or both servers. The error messages vary from nothing at
all in catalina.out, to exceptions regarding
 database connections, to exceptions about threads. Basically, I've been
trying to find some good advice on
 configuration in my situation and haven't been able to find much.

 In a bit more detail, the deployment is as follows:

 (2) Dell 1950 8-CPU servers running Fedora 14 Linux 2.6.35, one with 2 GB
RAM and one with 4 GB RAM
 (2) Tomcat 7.0.16 instances, one on each server, running clustered
contexts in distributable mode, under Sun JDK 1.6.0
 One server runs Apache HTTPD, using mod_proxy_ajp to connect to the two
Tomcat instances and manage balancing
 The other server runs PostgreSQL, the database used by the apps, which
connect to it via JNDI/JDBC connection pooling

 There are a few contexts that run on only one or the other server (namely,
Softslate and Searchblox, which are not
 serialized to support clustering). Most contexts, which run my app, run in
parallel on both servers. I've implemented
 clustering to maintain site availability when a Tomcat instance goes down.

 I could post up all the various JVM and Tomcat parameters, but I'm really
looking for any definitive list of tips for
 things to try to improve stability. If anyone has written or seen a
how-to document on multi-host, multi-context
 deployments like this, please share! Thanks!!

 P.S. One option I've considered is to run KVM and run each host in its own
virtual OS. To me that's a ridiculous amount
 of OS overhead to deal with occasional Tomcat outages, but it probably
would be one solution, much more difficult to
 maintain than a single Tomcat instance per server running all the hosts
and contexts. If you've had experience running
 multiple Tomcat instances in separate virtual machines, I'd be curious to
hear how it went.

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



RE: Seeking tips on multi-host, multi-context deployments

2011-09-28 Thread Caldarale, Charles R
 From: Sam Hokin [mailto:s...@ims.net] 
 Subject: Seeking tips on multi-host, multi-context deployments

 I could post up all the various JVM and Tomcat parameters

The devil is in the details.  Without the specifics of the execution 
environment and the observed errors, it's really impossible to give you 
anything definitive.  More RAM is often useful, but frequently only postpones 
outages due to ill-behaved applications (the most common cause of crashes).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



RE: endpoint.warn.unlockAcceptorFailed

2011-09-28 Thread Leo Donahue - PLANDEVX
___
From: Konstantin Kolinko [knst.koli...@gmail.com]
Subject: Re: endpoint.warn.unlockAcceptorFailed

2011/9/27 Konstantin Kolinko knst.koli...@gmail.com:
 2011/9/27 Konstantin Kolinko knst.koli...@gmail.com:
 2011/9/27 Leo Donahue - PLANDEVX leodona...@mail.maricopa.gov:
 Tomcat 6.0.32 and 6.0.33 32-bit windows zip - Windows XP Pro

 Running the shutdown.bat script, on .32 and .33, hung at trying to stop the 
 coyote connector, which then produces the error message in the command 
 prompt window endpoint.warn.unlockAcceptorFailed over and over.

 I fixed the missing message r1176477.

 The rest of the issue needs investigation.

 Last changes in the shutdown code were
 http://svn.apache.org/viewvc?view=revisionrevision=1065945

Fixed in trunk and 7.0. It wouldn't be in 7.0.22 which is already
tagged, but in 7.0.23.
Proposed for 6.0.

Bugzilla issue:
https://issues.apache.org/bugzilla/show_bug.cgi?id=51905


Best regards,
Konstantin Kolinko

-

Not sure if this info is too late, but it is for tomcat 6.0.33

Thanks for filing the bug report and for fixing the issue.  So it sounds like 
my firewall setting afterall.

Catalina log:
Sep 28, 2011 7:03:11 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Sep 28, 2011 7:03:11 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], 
random [true].
Sep 28, 2011 7:03:11 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 28, 2011 7:03:11 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Sep 28, 2011 7:03:11 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1017 ms
Sep 28, 2011 7:03:11 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 28, 2011 7:03:11 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.33
Sep 28, 2011 7:03:11 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Sep 28, 2011 7:03:12 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Sep 28, 2011 7:03:12 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
Sep 28, 2011 7:03:12 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
Sep 28, 2011 7:03:12 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Sep 28, 2011 7:03:12 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 28, 2011 7:03:12 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Sep 28, 2011 7:03:12 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 594 ms
Sep 28, 2011 7:03:24 PM org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Sep 28, 2011 7:03:24 PM org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
Sep 28, 2011 7:03:25 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Sep 28, 2011 7:03:25 PM org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Sep 28, 2011 7:03:55 PM org.apache.tomcat.util.net.AprEndpoint stop
WARNING: endpoint.warn.unlockAcceptorFailed
Sep 28, 2011 7:03:56 PM org.apache.tomcat.util.net.AprEndpoint stop
WARNING: endpoint.warn.unlockAcceptorFailed
Sep 28, 2011 7:03:57 PM org.apache.tomcat.util.net.AprEndpoint stop
WARNING: endpoint.warn.unlockAcceptorFailed
Sep 28, 2011 7:03:58 PM org.apache.tomcat.util.net.AprEndpoint stop
WARNING: endpoint.warn.unlockAcceptorFailed
Sep 28, 2011 7:03:59 PM org.apache.tomcat.util.net.AprEndpoint stop
WARNING: endpoint.warn.unlockAcceptorFailed
Sep 28, 2011 7:04:00 PM org.apache.tomcat.util.net.AprEndpoint stop
WARNING: endpoint.warn.unlockAcceptorFailed
Sep 28, 2011 7:04:01 PM org.apache.tomcat.util.net.AprEndpoint stop
WARNING: endpoint.warn.unlockAcceptorFailed
and outputs the same message every second until I terminate the windows process.

Thread Dump:
2011-09-28 19:06:41
Full thread dump Java HotSpot(TM) Client VM (20.2-b06 mixed mode, sharing):
RMI TCP Connection(2)-192.168.1.104 daemon prio=6 tid=0x02f50400 nid=0x374 
runnable [0x04aff000]
   java.lang.Thread.State: RUNNABLE
 at java.net.SocketInputStream.socketRead0(Native Method)
 at java.net.SocketInputStream.read(SocketInputStream.java:129)
 at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
 at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
 - locked 0x22df19d8 (a java.io.BufferedInputStream)
 at 

Re: catalina_pid file contains +1 pid number instead of correct pid

2011-09-28 Thread Raghu GS



Konstantin Kolinko wrote:
 
 2011/9/27 Raghu GS raghu...@i10n.com:

 Hello Everybody

 We are using Tomcat 6.20 in CentOS 5.3 server.
 
 6.0.20 ??
 
 You should read
 http://tomcat.apache.org/security-6.html
 
 as well as all the fixed issues in changelog.
 
 I have recently enabled catalina_pid functionality using environment
 variable.
 The PID file got created and contains +1 PID number.

 If the Tomcat's real PID number 5446, the pid file would contain 5447 as
 PID
 number.
 
 catalina.sh is a shell script file. There are not many secrets there
 and it is editable.
 You should try to debug what really goes on on your system.
 
 IIRC there were some talks about using exec command vs eval
 command  in the script to launch the process.
 
 Anyway, if CATALINA_PID file were not working I think somebody would
 report it, but 6.0.20 was so old ago and I do not remember such
 reports.
 
 Please help me to resolve this problem as we are using tomcat in 10 of
 our
 servers.

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

Actually the PID number in the PID file is not wildly incorrect.
So, please suggest me an easy to implement solution.
-- 
View this message in context: 
http://old.nabble.com/catalina_pid-file-contains-%2B1-pid-number-instead-of-correct-pid-tp32521407p32550880.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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