Re: Please help me install Tomcat

2023-02-02 Thread TRS-80
Amn Ojee Uw  writes:

> I've tried to install Tomcat, different version, like so :
> /# Download the latest release of tomcat 10.1.5//
> //wget
> https://downloads.apache.org/tomcat/tomcat-8/v8.5.85/bin/apache-tomcat-8.5.85.tar.gz//
> //
> //# Create tomcat directory//
> //sudo mkdir /opt/tomcat//
> //
> //# Extract the binary file with tar command in the /opt/tomcat path//
> //sudo tar -xvf apache-tomcat-8.5.85.tar.gz -C /opt/tomcat
> --strip-components=1//

[...]

> I really don't even know what to do with that info. I am an enthusiast
> programmer and not a trained computer programmer, thus I find this
> kind of things really challenging.

Given these comments, I am not understanding why you are trying to
install from tarball when it appears to me that Tomcat is available in
the Debian repos (at least in Bookworm and Sid):

https://packages.debian.org/search?keywords=tomcat

It looks like 'tomcat10' is the package name you are looking for.

-- 
Cheers,
TRS-80


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



Re: Please help me in enabling SSL certificate

2018-08-07 Thread Venkataraman Srinivasan
John,

Thanks.  Now it is working fine. I cleansed the file.

Thanks
Venkat





>>> John Palmer  8/7/2018 9:10 AM >>>
your server.xml shows TWO connectors for port 8443; that second one (with
all the  certificate entries) is then causing the errror:

> Caused by: java.net.BindException: Address already in use

As that one is probably the one you want to be using, delete or comment out
the first connector for port 8443


On Thu, Aug 2, 2018 at 1:24 PM, Venkataraman Srinivasan <
venkataraman.sriniva...@gcrta.org> wrote:

>
> Hi ,
>
> I am using tomcat version 8.5.32
>
>
> I made the below entry  in Server.xml
>
>  
>
> 
> 
>
>
> 
> connectionTimeout="2"
> />
>
>
>
>
> sslImplementationName="org.apache.tomcat.util.net.jsse.
> JSSEImplementation"
> maxThreads="200" secure="true"  scheme="https" >
> keystorePass="x" type="RSA"
> clientAuth="false" SSLEnabled="true"
> sslProtocol="TLS"
>  >
>
> 
>
> '
> When I tried to login, https://webapxt03.rta:8443, the log file
> catalina.2018-08-02.log recorded as below
>
>
> CATALINA.OUT has got entries as below
>
>
> 02-Aug-2018 14:04:24.926 SEVERE [main] 
> org.apache.catalina.core.StandardService.initInternal
> Failed to initialize connector [Connector[HTTP/1.1-8443]]
>  org.apache.catalina.LifecycleException: Failed to initialize component
> [Connector[HTTP/1.1-8443]]
> at org.apache.catalina.util.LifecycleBase.init(
> LifecycleBase.java:112)
> at org.apache.catalina.core.StandardService.initInternal(
> StandardService.java:549)
> at org.apache.catalina.util.LifecycleBase.init(
> LifecycleBase.java:107)
> at org.apache.catalina.core.StandardServer.initInternal(
> StandardServer.java:875)
> at org.apache.catalina.util.LifecycleBase.init(
> LifecycleBase.java:107)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:632)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:655)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:309)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
> Caused by: org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
> at org.apache.catalina.connector.Connector.initInternal(
> Connector.java:995)
> at org.apache.catalina.util.LifecycleBase.init(
> LifecycleBase.java:107)
> ... 12 more
> Caused by: java.net.BindException: Address already in use
> at sun.nio.ch.Net.bind0(Native Method)
> at sun.nio.ch.Net.bind(Net.java:444)
> at sun.nio.ch.Net.bind(Net.java:436)
> at sun.nio.ch.ServerSocketChannelImpl.bind(
> ServerSocketChannelImpl.java:214)
> at sun.nio.ch.ServerSocketAdaptor.bind(
> ServerSocketAdaptor.java:74)
> at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.
> java:210)
> at org.apache.tomcat.util.net.AbstractEndpoint.init(
> AbstractEndpoint.java:1086)
> at org.apache.tomcat.util.net.AbstractJsseEndpoint.init(
> AbstractJsseEndpoint.java:268)
> at org.apache.coyote.AbstractProtocol.init(
> AbstractProtocol.java:581)
> at org.apache.coyote.http11.AbstractHttp11Protocol.init(
> AbstractHttp11Protocol.java:68)
> at org.apache.catalina.connector.Connector.initInternal(
> Connector.java:993)
> ... 13 more
>
>
> I used SSL/TLS Configuration HOW-TO of Apache Tomcat 7 document
>
>
>
> >>> Christopher Schultz  8/2/2018 12:44 PM
> >>>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Venkataraman,
>
> On 8/2/18 12:14 PM, Venkataraman Srinivasan wrote:
> > Chris,
> >
> > Thanks for your reply.  I will implement your recommendations in my
> > next iterations.
> >
> > Currently I did as below.
> >
> > I copied the keystore file as /home/apexadmin/.keystore
> >
> > and made below entry in server.xml
>
> What version of Tomcat are you using? Which part of the user guide are
> you reading? I just want to make sure you are following the right
> guide for the right version.
>
> >  > protocol="org.apache.coyote.http11.Http11NioProtocol"
> > maxThreads="200" redirectPort="8443" scheme="https" >  > certificateFile="/home/apexadmin/.keystore" keystorePass="x"
> > type="RSA" clientAuth="false" SSLEnabled="true" sslProtocol="TLS"
> >>
> >  
>
> You will need to set a few more attributes on the :
>
>SSLEnabled="true"
>secure="true"
>
> The next part depends upon your Tomcat version.
>
> > Opened the port 8443 and recycled tomcat.
>
> The  

Re: Please help me in enabling SSL certificate

2018-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Venkataraman,

On 8/2/18 2:24 PM, Venkataraman Srinivasan wrote:
> I am using tomcat version 8.5.32

Thanks.

> I made the below entry  in Server.xml
> 
> 
> 
>  
> 
> 
>   port="8443" protocol="HTTP/1.1" connectionTimeout="2" />
> 
> 
> 
> 
>  protocol="org.apache.coyote.http11.Http11NioProtocol" 
> sslImplementationName="org.apache.tomcat.util.net.jsse.JSSEImplementat
ion"
>
> 
maxThreads="200" secure="true"  scheme="https" >
> ).

If you want to use a keystore, you need to use the
certificateKeystoreFile and certificateKeystorePassword attributes
instead.

> keystorePass="x" type="RSA" clientAuth="false"
> SSLEnabled="true" sslProtocol="TLS"

None of clientAuth, SSLEnabled, or sslProtocol are valid attributes of
a  element.

clientAuth should be SSLHostConfig/@certificateVerification
SSLEnabled should be Connector/@SSLEnabled
sslProtocol should be SSLHostConfig/@sslProtocol

>> 
>  

As John mentions, you have two connectors attempting to use the same
port, which isn't going to work. I'd remove the first one, since it's
obvious you want the second one to be the configured connector.

You also need to set SSLEnabled="true" on the . Nothing
will work without that.

http://tomcat.apache.org/tomcat-8.5-doc/config/http.html#SSL_Support

Also, since you are using Tomcat 8.5, you should probably be using
Tomcat 8.5 configuration style, like you can see in this next section
of the configuration guide:

http://tomcat.apache.org/tomcat-8.5-doc/config/http.html#SSL_Support_-_S
SLHostConfig

Specifically, you should be using  elements with
 child elements instead of bare  elements
within the connector.

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

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAltpo1wACgkQHPApP6U8
pFhVxw//b1ErT5svW9RC2sTcpVCXTsmTG1EhnAIO1Q6dH2TFeL+SOH/v928I50Og
fiANo4SCtu3PeI7cYpbliJlufgaEQvKLn8tMNZN07GUcFSAdo0OlZHuEjBplpqSH
gqkragfZCyPzFX4byTOZzRNmVo6WLJUf5ZkaDUaxJ4gepIt6CJ2ChGqL07fnepZJ
frbd6iIv4WO1/rW+gkqPsgBVRk3+S7q6hHcAxikpu2LuNUDTM4Sq2hAhbRFaiM8r
L64c9KMNhDJB7xgWOk98wjGcRguG/bQ1GXnWzqUPcWTT2YeCGF3YBhVzu3gXG/Iy
E3HCCTN++H2wro90Rim9ZrOsZpQkqonO9nQix9CCB/hH4eTtBoU/DFhKhqO33wwv
gb8IX2xQVtqdX1ddWqCXEDenecwR6biSUYCeXfa5/zET/MI/TOqMeXSdZiv+Ygbc
7yXzFDEfW120RkbDcoM6GZ88SV/3T+XolnmQIBNOXPq9MUmt8zL0kbCPl/zgO13x
q+ACGqQ7YPVUh0mnlH3udff+79uyJxLTaQUQVYN29g7p9v7V2oKz13iHO7A5V0yc
gO7QQdOhC+qCsBugwMNcXzhVtehI68kfx6fIS4ie/yoZ/Rc7Z0qXBoiTtnJkM/Qe
oobgBvPhXEzMOQ/re20zU4v0LjjqP4jqVmLe01djmeq19BAw3D4=
=Lz/l
-END PGP SIGNATURE-

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



Re: Please help me in enabling SSL certificate

2018-08-07 Thread John Palmer
your server.xml shows TWO connectors for port 8443; that second one (with
all the  certificate entries) is then causing the errror:

> Caused by: java.net.BindException: Address already in use

As that one is probably the one you want to be using, delete or comment out
the first connector for port 8443


On Thu, Aug 2, 2018 at 1:24 PM, Venkataraman Srinivasan <
venkataraman.sriniva...@gcrta.org> wrote:

>
> Hi ,
>
> I am using tomcat version 8.5.32
>
>
> I made the below entry  in Server.xml
>
>  
>
> 
> 
>
>
> 
> connectionTimeout="2"
> />
>
>
>
>
> sslImplementationName="org.apache.tomcat.util.net.jsse.
> JSSEImplementation"
> maxThreads="200" secure="true"  scheme="https" >
> keystorePass="x" type="RSA"
> clientAuth="false" SSLEnabled="true"
> sslProtocol="TLS"
>  >
>
> 
>
> '
> When I tried to login, https://webapxt03.rta:8443, the log file
> catalina.2018-08-02.log recorded as below
>
>
> CATALINA.OUT has got entries as below
>
>
> 02-Aug-2018 14:04:24.926 SEVERE [main] 
> org.apache.catalina.core.StandardService.initInternal
> Failed to initialize connector [Connector[HTTP/1.1-8443]]
>  org.apache.catalina.LifecycleException: Failed to initialize component
> [Connector[HTTP/1.1-8443]]
> at org.apache.catalina.util.LifecycleBase.init(
> LifecycleBase.java:112)
> at org.apache.catalina.core.StandardService.initInternal(
> StandardService.java:549)
> at org.apache.catalina.util.LifecycleBase.init(
> LifecycleBase.java:107)
> at org.apache.catalina.core.StandardServer.initInternal(
> StandardServer.java:875)
> at org.apache.catalina.util.LifecycleBase.init(
> LifecycleBase.java:107)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:632)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:655)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:309)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
> Caused by: org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
> at org.apache.catalina.connector.Connector.initInternal(
> Connector.java:995)
> at org.apache.catalina.util.LifecycleBase.init(
> LifecycleBase.java:107)
> ... 12 more
> Caused by: java.net.BindException: Address already in use
> at sun.nio.ch.Net.bind0(Native Method)
> at sun.nio.ch.Net.bind(Net.java:444)
> at sun.nio.ch.Net.bind(Net.java:436)
> at sun.nio.ch.ServerSocketChannelImpl.bind(
> ServerSocketChannelImpl.java:214)
> at sun.nio.ch.ServerSocketAdaptor.bind(
> ServerSocketAdaptor.java:74)
> at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.
> java:210)
> at org.apache.tomcat.util.net.AbstractEndpoint.init(
> AbstractEndpoint.java:1086)
> at org.apache.tomcat.util.net.AbstractJsseEndpoint.init(
> AbstractJsseEndpoint.java:268)
> at org.apache.coyote.AbstractProtocol.init(
> AbstractProtocol.java:581)
> at org.apache.coyote.http11.AbstractHttp11Protocol.init(
> AbstractHttp11Protocol.java:68)
> at org.apache.catalina.connector.Connector.initInternal(
> Connector.java:993)
> ... 13 more
>
>
> I used SSL/TLS Configuration HOW-TO of Apache Tomcat 7 document
>
>
>
> >>> Christopher Schultz  8/2/2018 12:44 PM
> >>>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Venkataraman,
>
> On 8/2/18 12:14 PM, Venkataraman Srinivasan wrote:
> > Chris,
> >
> > Thanks for your reply.  I will implement your recommendations in my
> > next iterations.
> >
> > Currently I did as below.
> >
> > I copied the keystore file as /home/apexadmin/.keystore
> >
> > and made below entry in server.xml
>
> What version of Tomcat are you using? Which part of the user guide are
> you reading? I just want to make sure you are following the right
> guide for the right version.
>
> >  > protocol="org.apache.coyote.http11.Http11NioProtocol"
> > maxThreads="200" redirectPort="8443" scheme="https" >  > certificateFile="/home/apexadmin/.keystore" keystorePass="x"
> > type="RSA" clientAuth="false" SSLEnabled="true" sslProtocol="TLS"
> >>
> >  
>
> You will need to set a few more attributes on the :
>
>SSLEnabled="true"
>secure="true"
>
> The next part depends upon your Tomcat version.
>
> > Opened the port 8443 and recycled tomcat.
>
> The  defined above is listening on port 8080. That is
> unusual; most people would expect port 8080 to be a plaintext HTTP
> 

Re: Please help me in enabling SSL certificate

2018-08-02 Thread Venkataraman Srinivasan


Hi ,

I am using tomcat version 8.5.32


I made the below entry  in Server.xml

 











   
   
   
   

'
When I tried to login, https://webapxt03.rta:8443, the log file 
catalina.2018-08-02.log recorded as below 


CATALINA.OUT has got entries as below


02-Aug-2018 14:04:24.926 SEVERE [main] 
org.apache.catalina.core.StandardService.initInternal Failed to initialize 
connector [Connector[HTTP/1.1-8443]]
 org.apache.catalina.LifecycleException: Failed to initialize component 
[Connector[HTTP/1.1-8443]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
at 
org.apache.catalina.core.StandardService.initInternal(StandardService.java:549)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at 
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at org.apache.catalina.startup.Catalina.load(Catalina.java:632)
at org.apache.catalina.startup.Catalina.load(Catalina.java:655)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:309)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
Caused by: org.apache.catalina.LifecycleException: Protocol handler 
initialization failed
at 
org.apache.catalina.connector.Connector.initInternal(Connector.java:995)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
... 12 more
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:444)
at sun.nio.ch.Net.bind(Net.java:436)
at 
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:210)
at 
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:1086)
at 
org.apache.tomcat.util.net.AbstractJsseEndpoint.init(AbstractJsseEndpoint.java:268)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:581)
at 
org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:68)
at 
org.apache.catalina.connector.Connector.initInternal(Connector.java:993)
... 13 more


I used SSL/TLS Configuration HOW-TO of Apache Tomcat 7 document



>>> Christopher Schultz  8/2/2018 12:44 PM >>>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Venkataraman,

On 8/2/18 12:14 PM, Venkataraman Srinivasan wrote:
> Chris,
> 
> Thanks for your reply.  I will implement your recommendations in my
> next iterations.
> 
> Currently I did as below.
> 
> I copied the keystore file as /home/apexadmin/.keystore
> 
> and made below entry in server.xml

What version of Tomcat are you using? Which part of the user guide are
you reading? I just want to make sure you are following the right
guide for the right version.

>  protocol="org.apache.coyote.http11.Http11NioProtocol" 
> maxThreads="200" redirectPort="8443" scheme="https" >  certificateFile="/home/apexadmin/.keystore" keystorePass="x"
> type="RSA" clientAuth="false" SSLEnabled="true" sslProtocol="TLS"
>> 
>  

You will need to set a few more attributes on the :

   SSLEnabled="true"
   secure="true"

The next part depends upon your Tomcat version.

> Opened the port 8443 and recycled tomcat.

The  defined above is listening on port 8080. That is
unusual; most people would expect port 8080 to be a plaintext HTTP
port, while port 8443 would be the non-privileged HTTPS port.

Especially for testing, consider leaving the  for port 8080
as it was originally defined (without HTTPS) and configure a second
 for HTTPS on port 8443.

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

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAltjNNYACgkQHPApP6U8
pFi2UQ//SPU5itX1zh/lV/ICZYTOwiSSeF8EQfxWK1bZ9jCx3Pk44AMBRMRQqjl2
HMKRH/LsSMQp5iwtVBFKbjZyjG8btNMnmREUjFkMJHoFUh1IK0WVqybpeUSnl2BH
+TdS6Z9twZd5q9/UybsJZScdgfV9IFECAM9xmG21ty92+xBqkbeSPUc62gf/A783
4P6yAYLIM3ctMHIzjwTJQ78vxTxLjsfrXvQaIC/dGefrKM6dcpxklQ/me4JNp6Lu
GajNkuEhm20u8P172rVFdqr4NgdGlLd6UP3XXeRl1BNnCvvAI9B/HsYQ1ZOZ1pDe
Zh3Jjamdx8neCBoZBCB7Pg/BmyuJ3RQRkA2w4APIMxoY7Bw0aYT2JpZdQqUaLFN+
Omzqf4pjpyFfRYlyhsTmbFviqbaIT4+XJ+SZPt4TYUuqawGp7vRJOTaQwfyJfJq+
he0XNEJWNGOzPjcdyuoJevjLONM0h7fenTAfZUUTkzmLxkMoRMSO9sIkQy46f4Z7
vG7x3MdSvrJKgWEbUSKjsCvtuYfCATf7bPk+1KJQUTMiSmk/E8OVq6q9BrcOVl1Z

Re: Please help me in enabling SSL certificate

2018-08-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

James,

On 8/2/18 12:17 PM, James H. H. Lampert wrote:
> On 8/2/18, 9:05 AM, Venkataraman Srinivasan wrote:
>> I used below command to create certificate locally.
>> 
>> $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
>> -keystore /opt/tomcat/apache-tomcat-8.5.32/keystore
> 
> Ok. Probably the first thing you need to do is set up your
> connector to use that keystore.

Thanks for your reply, James. I'm going to make a few adjustments to
help newcomers as well as you use the correct terminology in a few place
s.

> If it's a Java Keystore, then presumably you will be using the 
> native/JSSE connector; the other one is for OpenSSL.
Java actually supports a handful of keystore types. Common ones are
JKS (the default up until Java 9, which is Java-specific), JCEKS
(which is still Java-specific and somehow "more secure" but I don't
understand how) and PKCS12, which is an industry-standard. OpenSSL can
use PKCS12 keystores, but usually people use PEM-encoded DER files
(the things that are a bunch of letters and numbers beginning with
either "BEGIN PRIVATE KEY" or "BEGIN CERTIFICATE".

> And there are plenty of web resources explaining that process in 
> detail. This is the one I keep bookmarked for reference:> 
> http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html

This is a good one, but things have changed a bit for configuration
for later versions of Tomcat. Tomcat 8.5 and later specifically have
to have a different kind of configuration for SSL/TLS certificates,
because of the use of Server Name Indication (SNI) to determine which
certificate to show to the client when making a connection.

Remember that the TLS handshake happens before the HTTP headers
(including the "Host" header) can be delivered, and the server can
host certificates for multiple domain names. SNI allows the TLS
handshake to tell the server which hostname it intends to reach once
the TLS handshake has completed and the HTTP conversation begins.

> Once you have the connector working, if you want your server to be 
> trusted by strangers, then you need to get that keystore signed.

Technically, it's the certificate that gets signed, not the keystore.

> Using Keytool (or some other utility, like KeyStore Explorer on a 
> Macintosh), you need to generate a Certificate Signing Request for
> your keystore.
> 
> You would then choose a Certificate Authority, and buy a
> certificate. At some point in the process, you will be asked to
> upload the CSR. You might also be asked to provide some sort of
> proof that you have control over the domain.
> 
> Once the certificate is issued, you would then import the reply

Which is a certificate itself. It's actually YOUR certificate, plus a
signature that proves the CA signed it.

> along with one or more supporting certificates (collectively, a 
> "certificate chain") into your keystore, again using either
> Keytool or some more user-friendly utility, and then plug the
> signed keystore into your server. The Certificate Authority, if
> it's a major one, will probably have detailed instructions specific
> to Tomcat.

They might. But there are a lot of options, so not every guide will be
straightforward to use.

If the Tomcat documentation can't help get things going, it needs to
be updated.

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

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAltjN1UACgkQHPApP6U8
pFg/XBAAhZQVTigfwjAxoEVEl+gj8Y1vUYY6qb9YwZVogovWWeBw1udV+iN0LhBx
bY+uol18XWzYKQ62OUn0nqOfYGrjcOJTCVWqz7HFNWTtOczmFUmFXsQZN76mOUx1
ynF97carzh74N6kQwP81JYVxZcqMtTwMln+hhSqJ2QtBJ1I8TmXn222QLGA3rT61
U4t1xjbkD+YU4+W4zhA5Z/gfMEBby5zi6YJOq5NHUnPsypypxIUSdIJ0l9T/qWu8
xcCCLtxtg3rqVjn4vi4Lo8/+YIm6IVohU39aOMNnVSjW19FGIKL5zFgWsFV2xy6w
r856GV0+WRDZDikwJegxUaKwt5gwBo5+sop75HMebRx67xazEFsXH3rlmCwloATK
ajv+GUIgWhUcHdhrMbr0DhKynaBSCkM7RUgeWl9CnjZ9L8Ejs2iO7dKu8qzT5/9C
FtFZcoesnST/atEGcZWE5CP9w10HkBactxsg/9juLBHdmGBnOKL547bAdv2xi1XN
3d4OVAj/pfW6GH0gJUrz0Eou7LIQE50niPQszxyqGixK3e7h7fDrKlpRNAQ6cpre
C0jNDYgWsKG7i7XNpuxxdnwpYSm18y3uMQ+BYRW4pNXUqRGWGmjFYponSAtuP9hI
hrHDvAsYdVR7fs+f7Nwn+cjSYxQ7hq0bNAwFrgVc5aLxdpewu/k=
=YXie
-END PGP SIGNATURE-

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



Re: Please help me in enabling SSL certificate

2018-08-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Venkataraman,

On 8/2/18 12:14 PM, Venkataraman Srinivasan wrote:
> Chris,
> 
> Thanks for your reply.  I will implement your recommendations in my
> next iterations.
> 
> Currently I did as below.
> 
> I copied the keystore file as /home/apexadmin/.keystore
> 
> and made below entry in server.xml

What version of Tomcat are you using? Which part of the user guide are
you reading? I just want to make sure you are following the right
guide for the right version.

>  protocol="org.apache.coyote.http11.Http11NioProtocol" 
> maxThreads="200" redirectPort="8443" scheme="https" >  certificateFile="/home/apexadmin/.keystore" keystorePass="changeit"
> type="RSA" clientAuth="false" SSLEnabled="true" sslProtocol="TLS"
>> 
>  

You will need to set a few more attributes on the :

   SSLEnabled="true"
   secure="true"

The next part depends upon your Tomcat version.

> Opened the port 8443 and recycled tomcat.

The  defined above is listening on port 8080. That is
unusual; most people would expect port 8080 to be a plaintext HTTP
port, while port 8443 would be the non-privileged HTTPS port.

Especially for testing, consider leaving the  for port 8080
as it was originally defined (without HTTPS) and configure a second
 for HTTPS on port 8443.

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

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAltjNNYACgkQHPApP6U8
pFi2UQ//SPU5itX1zh/lV/ICZYTOwiSSeF8EQfxWK1bZ9jCx3Pk44AMBRMRQqjl2
HMKRH/LsSMQp5iwtVBFKbjZyjG8btNMnmREUjFkMJHoFUh1IK0WVqybpeUSnl2BH
+TdS6Z9twZd5q9/UybsJZScdgfV9IFECAM9xmG21ty92+xBqkbeSPUc62gf/A783
4P6yAYLIM3ctMHIzjwTJQ78vxTxLjsfrXvQaIC/dGefrKM6dcpxklQ/me4JNp6Lu
GajNkuEhm20u8P172rVFdqr4NgdGlLd6UP3XXeRl1BNnCvvAI9B/HsYQ1ZOZ1pDe
Zh3Jjamdx8neCBoZBCB7Pg/BmyuJ3RQRkA2w4APIMxoY7Bw0aYT2JpZdQqUaLFN+
Omzqf4pjpyFfRYlyhsTmbFviqbaIT4+XJ+SZPt4TYUuqawGp7vRJOTaQwfyJfJq+
he0XNEJWNGOzPjcdyuoJevjLONM0h7fenTAfZUUTkzmLxkMoRMSO9sIkQy46f4Z7
vG7x3MdSvrJKgWEbUSKjsCvtuYfCATf7bPk+1KJQUTMiSmk/E8OVq6q9BrcOVl1Z
NXWPHOT3rN0JBtBbZNzmBPz3yYywy5zKD6FTeBwbQDn2Z+KInfMOT7+40954PUXI
j4b4vEL1H0hunoV9hRKUHpeQbLOumITocQ6Wzd9vmo6qA1tys2U=
=lTPy
-END PGP SIGNATURE-

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



Re: Please help me in enabling SSL certificate

2018-08-02 Thread James H. H. Lampert

On 8/2/18, 9:05 AM, Venkataraman Srinivasan wrote:

I used below command to create certificate locally.

$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore 
/opt/tomcat/apache-tomcat-8.5.32/keystore


Ok. Probably the first thing you need to do is set up your connector to 
use that keystore. If it's a Java Keystore, then presumably you will be 
using the native/JSSE connector; the other one is for OpenSSL. And there 
are plenty of web resources explaining that process in detail. This is 
the one I keep bookmarked for reference:


http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html

Once you have the connector working, if you want your server to be 
trusted by strangers, then you need to get that keystore signed.


Using Keytool (or some other utility, like KeyStore Explorer on a 
Macintosh), you need to generate a Certificate Signing Request for your 
keystore.


You would then choose a Certificate Authority, and buy a certificate. At 
some point in the process, you will be asked to upload the CSR. You 
might also be asked to provide some sort of proof that you have control 
over the domain.


Once the certificate is issued, you would then import the reply, along 
with one or more supporting certificates (collectively, a "certificate 
chain") into your keystore, again using either Keytool or some more 
user-friendly utility, and then plug the signed keystore into your 
server. The Certificate Authority, if it's a major one, will probably 
have detailed instructions specific to Tomcat.


--
JHHL

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



Re: Please help me in enabling SSL certificate

2018-08-02 Thread Venkataraman Srinivasan
Chris,

Thanks for your reply.  I will implement your recommendations in my next 
iterations.

Currently I did as below.


I copied the keystore file as /home/apexadmin/.keystore

and made below entry in server.xml



   
   
   



Opened the port 8443 and recycled tomcat.

But no use

Thanks
Venkat


>>> Christopher Schultz  8/2/2018 12:09 PM >>>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Venkataraman,

On 8/2/18 12:05 PM, Venkataraman Srinivasan wrote:
> I used below command to create certificate locally.
> 
> $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore 
> /opt/tomcat/apache-tomcat-8.5.32/keystore
Okay, so you have a self-signed certificate.

Have you tried anything to configure Tomcat for TLS/SSL? If so, what?

If you haven't tried anything, yet, have you read any documentation on
the Tomcat site for how to configure TLS?

(BTW, you probably have a certificate that doesn't last as long as you
might think, and the key might not have as many bits as you might
like. Consider inspecting the certificate and key to see the details
and decide if it meets your needs. Personally, I always use RSA keys
of at least 4096-bits and use SHA256 signatures on the certificates.
The validity period is up to you. You might also consider using an EC
key+certificate, since the same "strength" key+cert can be processed
with less CPU time than an equivalent RSA key.)

- -chris

 Christopher Schultz  8/2/2018
 12:03 PM >>>
> Venkataraman,
> 
> On 8/2/18 12:00 PM, Venkataraman Srinivasan wrote:
>> Please help me in enabling SSL certificate in Tomcat Apache 
>> servers.
> 
> Do you already have a certificate signed by a CA?
> 
> What have you already tried?
> 
> -chris
> 
> -
>
> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org 
> For additional commands, e-mail: users-h...@tomcat.apache.org 
> 
> 
> --
> 
> This email has been scanned for spam and viruses. Visit the
> following link to report this email as spam: 
> https://attseg.cloud-protect.net/index01.php?mod_id=11_option=logi 
tem_id=1533225806-BgkdviBw265M_address=venkataraman.srinivasan%40
gcrta.org=1
>
> 
> 
> -
>
> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org 
> For additional commands, e-mail: users-h...@tomcat.apache.org 
> 
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org 
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ 

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAltjLMIACgkQHPApP6U8
pFhsww/+OYuxpSdXU+twUKitl7UP6njGDFZdB3y6r0MEmv8Y5lzKeZRXr+VAru3r
RDv1kBg6v2ohaAR2+kjZ7xxueIDauaHcvnOCgnrFYq84ZI4vQgWKosaCc78OTv9e
H9jSE6wA29jwvgijSIDn5X3aAHugXVbBD6gKkZcFCOsi7MLmiZGljTie6qe1r+s7
mSF2lRy09TsiQX3c86wEV+Lp0280eRufDvphuu6Kto+AzNy8f4AHSXZ0smHQ8QB4
QM8vm23YXAOwnnbeljWsSdvN0KpjjzedHGzgZqhTKnu+vBiYxBp7+bJ5x9Lld8iS
YaYTFQtOFvG3jcQwptGN2X1e0fPdALOxWblRaIFZNq4U1WwIiOEcrgCTQNnsTOxM
IfEfMYugik7o7l2SwZZV5tqT+H++GehzBvHdXk0r40q+EBaioyws58DvB1/7FSb7
Vk4oKNjfDT5Hq04KMRtXlX7TB940OQuy7ckRF4bB8yUKQai0xqXANIfEQLpCHU6q
xuBM/5UOXjC7/KsEKgwFaLh7LeCLvl/6GLXpf9P3Wtg4Ahb57k61BhU2YsEZVop5
oX+Uf233f2IdUrEOq5/Kj302LP9DGcPZzjX2rWI7CpPEgOahTFpKxvJc4EoqZYah
WpWWL/m9yv57emaBeoxZtZJEfoHz/P8d/kd+x0e6jGq9Tl6yOKg=
=tj+4
-END PGP SIGNATURE-

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


--

This email has been scanned for spam and viruses. Visit the following link to 
report this email as spam:
https://attseg.cloud-protect.net/index01.php?mod_id=11_option=logitem_id=1533226184-8zaWI97tys-m_address=venkataraman.srinivasan%40gcrta.org=1

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



Re: Please help me in enabling SSL certificate

2018-08-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Venkataraman,

On 8/2/18 12:05 PM, Venkataraman Srinivasan wrote:
> I used below command to create certificate locally.
> 
> $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore 
> /opt/tomcat/apache-tomcat-8.5.32/keystore
Okay, so you have a self-signed certificate.

Have you tried anything to configure Tomcat for TLS/SSL? If so, what?

If you haven't tried anything, yet, have you read any documentation on
the Tomcat site for how to configure TLS?

(BTW, you probably have a certificate that doesn't last as long as you
might think, and the key might not have as many bits as you might
like. Consider inspecting the certificate and key to see the details
and decide if it meets your needs. Personally, I always use RSA keys
of at least 4096-bits and use SHA256 signatures on the certificates.
The validity period is up to you. You might also consider using an EC
key+certificate, since the same "strength" key+cert can be processed
with less CPU time than an equivalent RSA key.)

- -chris

 Christopher Schultz  8/2/2018
 12:03 PM >>>
> Venkataraman,
> 
> On 8/2/18 12:00 PM, Venkataraman Srinivasan wrote:
>> Please help me in enabling SSL certificate in Tomcat Apache 
>> servers.
> 
> Do you already have a certificate signed by a CA?
> 
> What have you already tried?
> 
> -chris
> 
> -
>
> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> --
> 
> This email has been scanned for spam and viruses. Visit the
> following link to report this email as spam: 
> https://attseg.cloud-protect.net/index01.php?mod_id=11_option=logi
tem_id=1533225806-BgkdviBw265M_address=venkataraman.srinivasan%40
gcrta.org=1
>
> 
> 
> -
>
> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAltjLMIACgkQHPApP6U8
pFhsww/+OYuxpSdXU+twUKitl7UP6njGDFZdB3y6r0MEmv8Y5lzKeZRXr+VAru3r
RDv1kBg6v2ohaAR2+kjZ7xxueIDauaHcvnOCgnrFYq84ZI4vQgWKosaCc78OTv9e
H9jSE6wA29jwvgijSIDn5X3aAHugXVbBD6gKkZcFCOsi7MLmiZGljTie6qe1r+s7
mSF2lRy09TsiQX3c86wEV+Lp0280eRufDvphuu6Kto+AzNy8f4AHSXZ0smHQ8QB4
QM8vm23YXAOwnnbeljWsSdvN0KpjjzedHGzgZqhTKnu+vBiYxBp7+bJ5x9Lld8iS
YaYTFQtOFvG3jcQwptGN2X1e0fPdALOxWblRaIFZNq4U1WwIiOEcrgCTQNnsTOxM
IfEfMYugik7o7l2SwZZV5tqT+H++GehzBvHdXk0r40q+EBaioyws58DvB1/7FSb7
Vk4oKNjfDT5Hq04KMRtXlX7TB940OQuy7ckRF4bB8yUKQai0xqXANIfEQLpCHU6q
xuBM/5UOXjC7/KsEKgwFaLh7LeCLvl/6GLXpf9P3Wtg4Ahb57k61BhU2YsEZVop5
oX+Uf233f2IdUrEOq5/Kj302LP9DGcPZzjX2rWI7CpPEgOahTFpKxvJc4EoqZYah
WpWWL/m9yv57emaBeoxZtZJEfoHz/P8d/kd+x0e6jGq9Tl6yOKg=
=tj+4
-END PGP SIGNATURE-

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



Re: Please help me in enabling SSL certificate

2018-08-02 Thread Venkataraman Srinivasan
I used below command to create certificate locally.

$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore 
/opt/tomcat/apache-tomcat-8.5.32/keystore


Thanks
Venkat



>>> Christopher Schultz  8/2/2018 12:03 PM >>>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Venkataraman,

On 8/2/18 12:00 PM, Venkataraman Srinivasan wrote:
> Please help me in enabling SSL certificate in Tomcat Apache
> servers.

Do you already have a certificate signed by a CA?

What have you already tried?

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

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAltjK0kACgkQHPApP6U8
pFgipg//f2c+/duHWneEVxOwKDXJqCVT4pAIZLyAeLuqvG6nY1rYDoyhRaSftAIZ
FTe3WAa8UZRWr2Ky6s234P1EpPJPWtMia7/++/n8/pranCIb6YVlbGm3SuPfncO/
VXtC0CEF0o3yTrnYLS4YTvMQUwlr0C3iqhtW2zDg/fgGdumC6PlYaw7+Qj6Jsc9k
N6Tir53YMyy1hVZu8wQxQ2c+HibQLWwY6YkgdloBqS3CLqBB4WS1NYXSVqqTH8cE
5KgHtDN8kja3T5OzcKCm/59wK/o03g7cLkit7S3mHn5pTkJ1p90HP0I2QzyEPUuN
yCw4liMOX/x2F3XBgfDangH4qABkWwpT5wsAPeJqu9drsE5CLd0ZEs2wz3BHyOzn
XlHKny6R5VBroriaTNmvXav0aY9f+QXOuhWWzDF5UTWPyqcNO/nzDwAdxy4jlykk
u4Yw07y3Yx/lUr6wuGi7gGEM8MdgQlOSfzv/rI2glL5n3hEr9WMr7yuTkM4wvyfp
feARNzAvBTInu++Bb8kB4r/KxJbx/4doCXlOxfR78PxuIP43nklMcwYxBt+suAEP
YU7fqPCVKmY1Urta1z/sBC5HwIFxfA8qa7LyZoOXi42kaULeBR2dydQM8cKoDlh8
BpXPbEbnEUyBMMuSNJtu1c1va7GdbZRJhz6S4LtxcDSYNEYWjJo=
=SLOV
-END PGP SIGNATURE-

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


--

This email has been scanned for spam and viruses. Visit the following link to 
report this email as spam:
https://attseg.cloud-protect.net/index01.php?mod_id=11_option=logitem_id=1533225806-BgkdviBw265M_address=venkataraman.srinivasan%40gcrta.org=1


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



Re: Please help me in enabling SSL certificate

2018-08-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Andrea,

On 8/2/18 12:03 PM, Andrea Freire wrote:
> You hace to install the native conector

Your statement is false: the native connector is NOT required to
install a TLS certificate in Tomcat.

- -chris

>  From: Venkataraman Srinivasan
>  Sent: Thursday, August 2, 2018
> 11:00:11 AM To: users@tomcat.apache.org Subject: Please help me in
> enabling SSL certificate
> 
> Hi,
> 
> Please help me in enabling SSL certificate in Tomcat Apache
> servers.
> 
> Thanks
> 
> 
> 
> 
> 
> Venkataraman Srinivasan Database Administrator Greater Cleveland
> RTA Desk phone 1-216-356-3028 
> venkataraman.sriniva...@grcta.org
>
> 
[X]
> 
> 
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAltjK38ACgkQHPApP6U8
pFj/IhAAnHQHp2wghMHDVLkr3MjZDcmmo6tSWTbNs1DR1Qa6VmvIR27Zbr8c5oQ8
fBJ5MMVzuH62t6kjXjnD+9oJo+fHLCDnDnyeIK2B8Q46kULEiJUIFiU+Ck1L8zsh
eLFWPca2h97QfBkTMC7zgrB+S4Sc76dxC9IQ0w8z5ERT2Gg9+d7uQRyfB4liA6rN
SEU42PKCdf9tCb9xCVXx8el0ykr3LD+LIXVCdbhNNrRVIZcPuN5W4y89apQds5UC
5iW83yNvLrUkCbWyiJ47/ZV4r74CJrQUBOX1BTujaaSE08J+gTkfwfW57a6Bf1cC
iRjZRm1jYPrZD9G2kocfWKl6PWQwgNv/hG3CczApcs4DioCwH4Cmq3k1tS2/n3aq
advQ3PN0jIV8MS3T5i4eZWnTzA52qBp1lxblFFmWfL6D2sE/a3i+/ckjhkrheSmR
3YF/Rk3NULN3OXEUGbqxD926O+r6sUDg28LDU8PstRB4Sz9l71jNtcushJlZuHkT
B80ovEihiEn/e64iG16s7DGIq/D5UULymwZaL1BjSOCjIfi2dSndfulpYbI9fwe4
cF9tQiZ2Nvh9LnibpudhYFPw/hkSUpaMjf9TjGDrvydnNDNqHwyd9ZBrYxZ4YzbN
BWrJhufcqx5mmIE/Q6vHFzrL7fggt6CTKLJyx0Re3u5xgDPd9uc=
=tZos
-END PGP SIGNATURE-

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



Re: Please help me in enabling SSL certificate

2018-08-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Venkataraman,

On 8/2/18 12:00 PM, Venkataraman Srinivasan wrote:
> Please help me in enabling SSL certificate in Tomcat Apache
> servers.

Do you already have a certificate signed by a CA?

What have you already tried?

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

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAltjK0kACgkQHPApP6U8
pFgipg//f2c+/duHWneEVxOwKDXJqCVT4pAIZLyAeLuqvG6nY1rYDoyhRaSftAIZ
FTe3WAa8UZRWr2Ky6s234P1EpPJPWtMia7/++/n8/pranCIb6YVlbGm3SuPfncO/
VXtC0CEF0o3yTrnYLS4YTvMQUwlr0C3iqhtW2zDg/fgGdumC6PlYaw7+Qj6Jsc9k
N6Tir53YMyy1hVZu8wQxQ2c+HibQLWwY6YkgdloBqS3CLqBB4WS1NYXSVqqTH8cE
5KgHtDN8kja3T5OzcKCm/59wK/o03g7cLkit7S3mHn5pTkJ1p90HP0I2QzyEPUuN
yCw4liMOX/x2F3XBgfDangH4qABkWwpT5wsAPeJqu9drsE5CLd0ZEs2wz3BHyOzn
XlHKny6R5VBroriaTNmvXav0aY9f+QXOuhWWzDF5UTWPyqcNO/nzDwAdxy4jlykk
u4Yw07y3Yx/lUr6wuGi7gGEM8MdgQlOSfzv/rI2glL5n3hEr9WMr7yuTkM4wvyfp
feARNzAvBTInu++Bb8kB4r/KxJbx/4doCXlOxfR78PxuIP43nklMcwYxBt+suAEP
YU7fqPCVKmY1Urta1z/sBC5HwIFxfA8qa7LyZoOXi42kaULeBR2dydQM8cKoDlh8
BpXPbEbnEUyBMMuSNJtu1c1va7GdbZRJhz6S4LtxcDSYNEYWjJo=
=SLOV
-END PGP SIGNATURE-

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



Re: Please help me in enabling SSL certificate

2018-08-02 Thread Andrea Freire
You hace to install the native conector

Obtener Outlook para Android


From: Venkataraman Srinivasan 
Sent: Thursday, August 2, 2018 11:00:11 AM
To: users@tomcat.apache.org
Subject: Please help me in enabling SSL certificate

Hi,

Please help me in enabling SSL certificate in Tomcat Apache servers.

Thanks





Venkataraman Srinivasan
Database Administrator
Greater Cleveland RTA
Desk phone 1-216-356-3028
venkataraman.sriniva...@grcta.org
[X]



Re: Please help : EOL TOMCAT 7 and 8.5

2018-04-12 Thread Christopher Schultz
Dan,

On 4/12/18 8:15 AM, BENGUIRA, Dan (Allianz en France) wrote:
> I’m sorry to bother you for a question as trivial as that, and I really
> checked carefully all the documentation available…
> 
> Do you please have the date of the end of life of Tomcat 7, and of
> TOMCAT 8.5 ?

If you search the Tomcat home page for "end of", you'll find only one
announcement: EOL for Tomcat 8.0.

Neither Tomcat 7.0 nor Tomcat 8.5 have announced EOL dates.

> I have access to the end of life of TOMCAT 6 via this link:
> https://tomcat.apache.org/tomcat-60-eol.html
> 
> TOMCAT 8 via this link : https://tomcat.apache.org/tomcat-80-eol.html
> 
> So I naturally tried https://tomcat.apache.org/tomcat-70-eol.html for
> TOMCAT 7, and https://tomcat.apache.org/tomcat-85-eol.html for tomcat
> 8.5, but it didn’t work
> 
> Do you know a way of knowing those informations?
> 
> Thanks to the generous soul that would help me, I would be very grateful !

7.0 is basically in "maintenance mode" and will probably only receive
security patches or really really great improvements that are easy to
back-port. I would consider 8.5 to be the best stable production version
of Tomcat to use right now, as 9.0 doesn't have enough mileage under its
tires, yet.

Traditionally, the Tomcat has supported 3 versions simultaneously, so
Tomcat 7.0 will not reach EOL until we all start talking about Tomcat 10.

Tomcat 8.0 is receiving a bit of an "out of band" EOL because 8.5 is
superseding it. But tomcat 7.0 is safe for the foreseeable future.

Hope that helps,
-chris

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



Re: Please help with Tomcat Garbage Collection

2016-11-16 Thread George I. Develekos
The data I posted was collected as Tomcat was restarted and for the next 
19 hours.


You see too much GC thrashing, are you saying the GC process finds too 
much G to clean up? Should I urge the developers to do some GC of their own?


I give 2G to start with because it may not actually /need /5g, and 
experience has shown that it doesn't. I know giving it all at the start 
is better but I don't have memory to spare. I'll probably up from 2/5 yo 
3/5.


To boost YoungGen, should I do it with an explicit setting or with the 
radio thingy? Set it to 3, perhaps?


On 16-Nov-16 6:59 PM, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

George,

On 11/16/16 11:18 AM, George I. Develekos wrote:

On another installation with higher  load, the JVM has "selected"
to give  YoungGen 250MB or so (as opposed to 150M here), and I
have confirmed that Full-GC is much less frequent so I'll go with
that next time I have downtime.

+1

- From the screenshots you posted, it looks like everything is healthy
EXCEPT that your young generation said 100% used *and* the "average
freed full GC" says nearly 700M per collection.

I've never used GCViewer, but if I'm reading that correctly, it's
saying that you are averaging more than 50% turnover in your tenured
generation during each full gc. (You have ~1300M in your tenured
generation and 700M is being collected each time.) That's a HUGE
amount of GC thrashing.

Were these samples taken of a stably-running production system, or was
this immediately after a restart, or in a lab or something?


When exactly can I expect to see my app freeze? Isn't it during
Full-GC?

John has already answered this. Feel free to ask follow-up questions.


Does the increase in CPU during those Full-GC times make sense?

Absolutely. Most of the time, applications are waiting for other
things to happen: read/write from the network, disk, whatever. GC is
100% CPU-bound activity, so you'll see a spike in the CPU usage
whenever the GC is running. Since some of the phases of CMS are
concurrent (that's what the "C" stands for), they won't pause your
application. Unfortunately, some phases are NOT concurrent, and the
application needs to be paused (this is appropriately called
"stop-the-world" because that's exactly what happens). Fortunately,
those phases are designed to be very short in time.

I have two recommendations for you, which really boils down to a
single one:

1. Set Xms and Xmx to be the same value

If you want to give 5G to your application, then give it all 5G. Don't
wait for the application to lazily grow to fill the space. It just
slows everything down. If you want a 2G heap, then use a 2G heap.
Splitting the heap into initial and max sizes is silly for a server
process.

2. Increase the young generation size by *at least* a factor of 2,
possibly 4. If you do #1 above, the JVM will likely re-size the young
generation for you anyway, since it will be starting with a bigger
heap. So you might not have to do this one at all.

Finally, the best course of action would be to upgrade to a more
recent JVM. You said initially that you were stuck, but you might not
be. You can use Oracle's JVM or OpenJVM running fairly easily, though
you might have to maintain and/or update it manually if there is no
package from RedHat for it.

I've never used package-managed JVMs because they tend to require
dozens or hundreds of other packages to be installed. Installation is
typically untarring a tarball, upgrading is just as easy, and
downgrading is a snap (just don't delete the old directory when
upgrading). The only downside is that the package manager won't go
fetch the archive and run the installer for you.

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

iQIcBAEBCAAGBQJYLJCEAAoJEBzwKT+lPKRYyrkP/RuvH0SKRcEGfDGWybq8LQl1
MXy6fPk1HtHrkRAgEtQhxmEh/Za64E993R7hXnKNiGjwz2FVp2Fz4rq81Y/cxuSw
PEO01mfwY7y+j97zO2PQvYubnEhHIiPZZ5IYnjVMqZtmdX6hETCiWAx6vFYcCnL/
9ZGmHXDuCcI1uxDNJ4rq/mJcFyMjRLMR1uufrGwv37nbwXAKCQPIiYb6lALyof2X
7HwZUNAYi+MAJnQJSub4/QM/Bm4IUJn4h47RKia2ar2PaEIOSZihqLP7JRjTlTA7
U6KvDUfiBKNh7ECOvAXxFhZxjK3NEpjBU3/6beRIVcL5K5klOGfXTofDACEACH47
5bfmLrQChR0jPbsBlQcLwRQQxVdsj6RJi0u96Anyn5ElLfZiKUexQDx6X0oXeV6i
n5o4En0Rme7GzVtcEh3FmY2y4vFqCAGgwZ3lK2caXH6AqpR0WsyRuLISK4UtjcxP
NJIXpURtsfNMNqHTH/US6VftfC2lIQNJB0mRzMdnl7KrA6U6mXmn21ZAiPT64lkw
O8JQ49fF3giszo+x37EVkaA+YFn86ap4UzxwH+Tz86xd8qckihFTvGLr48cCjlJn
zhyR8x5ir+Q1CW9Q3GhSZJTtC5j2LY94vF7I5pZdln34aM/37u/iXlesBaEzwqGW
Sx00lN+4sNzr9jPZez5C
=Q0qd
-END PGP SIGNATURE-

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





---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


Re: Please help with Tomcat Garbage Collection

2016-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

George,

On 11/16/16 11:18 AM, George I. Develekos wrote:
> On another installation with higher  load, the JVM has "selected"
> to give  YoungGen 250MB or so (as opposed to 150M here), and I
> have confirmed that Full-GC is much less frequent so I'll go with
> that next time I have downtime.

+1

- From the screenshots you posted, it looks like everything is healthy
EXCEPT that your young generation said 100% used *and* the "average
freed full GC" says nearly 700M per collection.

I've never used GCViewer, but if I'm reading that correctly, it's
saying that you are averaging more than 50% turnover in your tenured
generation during each full gc. (You have ~1300M in your tenured
generation and 700M is being collected each time.) That's a HUGE
amount of GC thrashing.

Were these samples taken of a stably-running production system, or was
this immediately after a restart, or in a lab or something?

> When exactly can I expect to see my app freeze? Isn't it during
> Full-GC?

John has already answered this. Feel free to ask follow-up questions.

> Does the increase in CPU during those Full-GC times make sense?

Absolutely. Most of the time, applications are waiting for other
things to happen: read/write from the network, disk, whatever. GC is
100% CPU-bound activity, so you'll see a spike in the CPU usage
whenever the GC is running. Since some of the phases of CMS are
concurrent (that's what the "C" stands for), they won't pause your
application. Unfortunately, some phases are NOT concurrent, and the
application needs to be paused (this is appropriately called
"stop-the-world" because that's exactly what happens). Fortunately,
those phases are designed to be very short in time.

I have two recommendations for you, which really boils down to a
single one:

1. Set Xms and Xmx to be the same value

If you want to give 5G to your application, then give it all 5G. Don't
wait for the application to lazily grow to fill the space. It just
slows everything down. If you want a 2G heap, then use a 2G heap.
Splitting the heap into initial and max sizes is silly for a server
process.

2. Increase the young generation size by *at least* a factor of 2,
possibly 4. If you do #1 above, the JVM will likely re-size the young
generation for you anyway, since it will be starting with a bigger
heap. So you might not have to do this one at all.

Finally, the best course of action would be to upgrade to a more
recent JVM. You said initially that you were stuck, but you might not
be. You can use Oracle's JVM or OpenJVM running fairly easily, though
you might have to maintain and/or update it manually if there is no
package from RedHat for it.

I've never used package-managed JVMs because they tend to require
dozens or hundreds of other packages to be installed. Installation is
typically untarring a tarball, upgrading is just as easy, and
downgrading is a snap (just don't delete the old directory when
upgrading). The only downside is that the package manager won't go
fetch the archive and run the installer for you.

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

iQIcBAEBCAAGBQJYLJCEAAoJEBzwKT+lPKRYyrkP/RuvH0SKRcEGfDGWybq8LQl1
MXy6fPk1HtHrkRAgEtQhxmEh/Za64E993R7hXnKNiGjwz2FVp2Fz4rq81Y/cxuSw
PEO01mfwY7y+j97zO2PQvYubnEhHIiPZZ5IYnjVMqZtmdX6hETCiWAx6vFYcCnL/
9ZGmHXDuCcI1uxDNJ4rq/mJcFyMjRLMR1uufrGwv37nbwXAKCQPIiYb6lALyof2X
7HwZUNAYi+MAJnQJSub4/QM/Bm4IUJn4h47RKia2ar2PaEIOSZihqLP7JRjTlTA7
U6KvDUfiBKNh7ECOvAXxFhZxjK3NEpjBU3/6beRIVcL5K5klOGfXTofDACEACH47
5bfmLrQChR0jPbsBlQcLwRQQxVdsj6RJi0u96Anyn5ElLfZiKUexQDx6X0oXeV6i
n5o4En0Rme7GzVtcEh3FmY2y4vFqCAGgwZ3lK2caXH6AqpR0WsyRuLISK4UtjcxP
NJIXpURtsfNMNqHTH/US6VftfC2lIQNJB0mRzMdnl7KrA6U6mXmn21ZAiPT64lkw
O8JQ49fF3giszo+x37EVkaA+YFn86ap4UzxwH+Tz86xd8qckihFTvGLr48cCjlJn
zhyR8x5ir+Q1CW9Q3GhSZJTtC5j2LY94vF7I5pZdln34aM/37u/iXlesBaEzwqGW
Sx00lN+4sNzr9jPZez5C
=Q0qd
-END PGP SIGNATURE-

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



RE: Please help with Tomcat Garbage Collection

2016-11-16 Thread John.E.Gregg



> -Original Message-
> From: George I. Develekos [mailto:gdevele...@omilia.com]
> Sent: Wednesday, November 16, 2016 10:18 AM
> To: users@tomcat.apache.org
> Subject: Re: Please help with Tomcat Garbage Collection
> 
> I appreciate the detailed response.
> 
> On another installation with higher  load, the JVM has "selected" to give
> YoungGen 250MB or so (as opposed to 150M here), and I have confirmed that
> Full-GC is much less frequent so I'll go with that next time I have downtime.
> 
> When exactly can I expect to see my app freeze? Isn't it during Full-GC?
> 
> Does the increase in CPU during those Full-GC times make sense?
> 
> 
> 
> Regards,
> 
> George I. Develekos | SeniorSW Engineer |t: _+30.210.6930664_| e:
> gdevele...@omilia.com <mailto:gdevele...@omilia.com>
> 
> 
> 
> Technology that Listens, Understands and Cares   - www.omilia.com
> <http://www.omilia.com/>
> 
> On 11/16/2016 6:11 PM, john.e.gr...@wellsfargo.com wrote:
> >
> > Sorry for top posting.  The format got weird.
> >
> > Those numbers aren’t bad.  The most important number for me is the
> > throughput on the summary tab.  Yours is 99.38%.  That means the JVM
> > was doing real work 99.38% of the time and garbage collecting the
> > other .62%.  You could improve that if you worked hard enough, but
> > going from 99.4 to 99.5 or 99.6 probably isn’t worth the effort.  If
> > the number was 90% or something, then you’d have more room for
> > improvement.
> >
> > Look at the GC performance numbers on the summary tab.  Obviously
> > minor GCs are much faster in this regard than major GCs. You can
> > reduce your total GC time by increasing the size of your young
> > generation.  You will get more or slower young collections but fewer
> > and faster old collections.  Overall the total time will be less than
> > it is now and the longest pauses will be shorter.
> >
> > As others have said, though, something doesn’t add up.  CMS is only
> > stop-the-world during certain phases.  (Not the ones with “concurrent”
> > in the name.)  If you feel these GC events coincide with pauses in
> > your app, you can try a thread dump or three (kill -3 ) during
> > the pause.  Use a tool like Samurai to parse the output.  This might
> > only be practical for longer pauses, though.
> >
> > Also, is it possible the VM itself is having a problem?  Maybe you
> > should talk to your virtualization team to see how stressed the
> > hardware is.  VMWare has an informative java best practices doc:
> >
> http://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/techp
> > aper/enterprise-java-applications-on-vmware-best-practices-guide.pdf
> >
> > John
> >
> > *From:*George I. Develekos [mailto:gdevele...@omilia.com]
> > *Sent:* Wednesday, November 16, 2016 5:21 AM
> > *To:* users@tomcat.apache.org
> > *Subject:* Re: Please help with Tomcat Garbage Collection
> >
> > I'm attaching three screenshots of the GCViewer app as it processed
> > the complete *gc.log* file (about 19 hours).
> >
> > Please have a look and advise on what I can do to limit Full-GC times.
> > As of now I have a recommendation to increase the Young Gen..
> >
> > The setup in summary:
> >
> > We are using Java 6 (stuck with CentOS 5.8 at this time) and Tomcat
> > 7.0.64.
> >
> > Xmx is 5G, Xms is 2G, and GC options are -XX:+UseConcMarkSweepGC
> > -XX:+CMSIncrementalMode
> >
> >
> >
> >
> >
> >
> > On 11/15/2016 11:45 PM, john.e.gr...@wellsfargo.com
> > <mailto:john.e.gr...@wellsfargo.com> wrote:
> >
> > -Original Message-
> >
> > From: George I. Develekos [mailto:gdevele...@omilia.com]
> >
> > Sent: Tuesday, November 15, 2016 3:00 PM
> >
> > To:users@tomcat.apache.org <mailto:users@tomcat.apache.org>
> >
> > Subject: Re: Please help with Tomcat Garbage Collection
> >
> > The system does very little swapping, both when it's GC'ing and 
> > when it's
> not.
> >
> > Less than 100MB worth of swap is taken.
> >
> > Giving Tomcat its own HW is not an option at this time,
> > especially as there's no
> >
> > guarantee it'll solve the problem. Besides it would be a VM
> > anyway, not physical
> >
> > dedicated HW.  The current server is also a VM.
> >
> > On 15-Nov-16 10:55 PM, Zdeněk Henek 

Re: Please help with Tomcat Garbage Collection

2016-11-16 Thread George I. Develekos

One thing I didn't respond to:

The VM host is unlikely to have something to do here. We have a 
coincidence (in time) of three events, consistently.


1. Full GC
2. High CPU
3. App freezes

So it seems really unlikely the host is responsible.

The odd thing is that, the same app, on the same OS, in other 
installations, where of course we also have Full-GC periodically, never 
shows any freeze.


Regards,

George I. Develekos | SeniorSW Engineer |t: _+30.210.6930664_| e: 
gdevele...@omilia.com <mailto:gdevele...@omilia.com>




Technology that Listens, Understands and Cares   - www.omilia.com 
<http://www.omilia.com/>


On 11/16/2016 6:11 PM, john.e.gr...@wellsfargo.com wrote:


Sorry for top posting.  The format got weird.

Those numbers aren’t bad.  The most important number for me is the 
throughput on the summary tab.  Yours is 99.38%.  That means the JVM 
was doing real work 99.38% of the time and garbage collecting the 
other .62%.  You could improve that if you worked hard enough, but 
going from 99.4 to 99.5 or 99.6 probably isn’t worth the effort.  If 
the number was 90% or something, then you’d have more room for 
improvement.


Look at the GC performance numbers on the summary tab.  Obviously 
minor GCs are much faster in this regard than major GCs. You can 
reduce your total GC time by increasing the size of your young 
generation.  You will get more or slower young collections but fewer 
and faster old collections.  Overall the total time will be less than 
it is now and the longest pauses will be shorter.


As others have said, though, something doesn’t add up.  CMS is only 
stop-the-world during certain phases.  (Not the ones with “concurrent” 
in the name.)  If you feel these GC events coincide with pauses in 
your app, you can try a thread dump or three (kill -3 ) during 
the pause.  Use a tool like Samurai to parse the output.  This might 
only be practical for longer pauses, though.


Also, is it possible the VM itself is having a problem?  Maybe you 
should talk to your virtualization team to see how stressed the 
hardware is.  VMWare has an informative java best practices doc: 
http://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/techpaper/enterprise-java-applications-on-vmware-best-practices-guide.pdf


John

*From:*George I. Develekos [mailto:gdevele...@omilia.com]
*Sent:* Wednesday, November 16, 2016 5:21 AM
*To:* users@tomcat.apache.org
*Subject:* Re: Please help with Tomcat Garbage Collection

I'm attaching three screenshots of the GCViewer app as it processed 
the complete *gc.log* file (about 19 hours).


Please have a look and advise on what I can do to limit Full-GC times. 
As of now I have a recommendation to increase the Young Gen..


The setup in summary:

We are using Java 6 (stuck with CentOS 5.8 at this time) and Tomcat 
7.0.64.


Xmx is 5G, Xms is 2G, and GC options are -XX:+UseConcMarkSweepGC   
-XX:+CMSIncrementalMode







On 11/15/2016 11:45 PM, john.e.gr...@wellsfargo.com 
<mailto:john.e.gr...@wellsfargo.com> wrote:


-Original Message-

From: George I. Develekos [mailto:gdevele...@omilia.com]

Sent: Tuesday, November 15, 2016 3:00 PM

To:users@tomcat.apache.org <mailto:users@tomcat.apache.org>

    Subject: Re: Please help with Tomcat Garbage Collection

The system does very little swapping, both when it's GC'ing and when 
it's not.

Less than 100MB worth of swap is taken.

Giving Tomcat its own HW is not an option at this time, especially as 
there's no

guarantee it'll solve the problem. Besides it would be a VM anyway, not 
physical

dedicated HW.  The current server is also a VM.

On 15-Nov-16 10:55 PM, Zdeněk Henek wrote:

I would start with moving this tomcat to its own hw.

Did you check swap? This long pauses could be because part of your

heap is swapped to hdd

Regards,

Zdenek Henek

On Tue, Nov 15, 2016, 21:37 George I. Develekos

<gdevele...@omilia.com> <mailto:gdevele...@omilia.com>

wrote:

On 15-Nov-16 10:22 PM, Christopher Schultz wrote:

George,

On 11/15/16 10:46 AM, George I. Develekos wrote:

Hello guys,

We are having problems on a production system with very long 
"full

GC" times, as long as1200sec real time (!!!).

We are using Java 6 (stuck with CentOS 5.8 at this 
time) and Tomcat

7.0.64.

Xmx is 5G, Xms is 2G, and GC options are 
-XX:+UseConcMarkSweepGC

-XX:+CMSIncrementalMode

No other custom memory-related settings are in place.

Looki

Re: Please help with Tomcat Garbage Collection

2016-11-16 Thread George I. Develekos

I appreciate the detailed response.

On another installation with higher  load, the JVM has "selected" to 
give  YoungGen 250MB or so (as opposed to 150M here), and I have 
confirmed that Full-GC is much less frequent so I'll go with that next 
time I have downtime.


When exactly can I expect to see my app freeze? Isn't it during Full-GC?

Does the increase in CPU during those Full-GC times make sense?



Regards,

George I. Develekos | SeniorSW Engineer |t: _+30.210.6930664_| e: 
gdevele...@omilia.com <mailto:gdevele...@omilia.com>




Technology that Listens, Understands and Cares   - www.omilia.com 
<http://www.omilia.com/>


On 11/16/2016 6:11 PM, john.e.gr...@wellsfargo.com wrote:


Sorry for top posting.  The format got weird.

Those numbers aren’t bad.  The most important number for me is the 
throughput on the summary tab.  Yours is 99.38%.  That means the JVM 
was doing real work 99.38% of the time and garbage collecting the 
other .62%.  You could improve that if you worked hard enough, but 
going from 99.4 to 99.5 or 99.6 probably isn’t worth the effort.  If 
the number was 90% or something, then you’d have more room for 
improvement.


Look at the GC performance numbers on the summary tab.  Obviously 
minor GCs are much faster in this regard than major GCs. You can 
reduce your total GC time by increasing the size of your young 
generation.  You will get more or slower young collections but fewer 
and faster old collections.  Overall the total time will be less than 
it is now and the longest pauses will be shorter.


As others have said, though, something doesn’t add up.  CMS is only 
stop-the-world during certain phases.  (Not the ones with “concurrent” 
in the name.)  If you feel these GC events coincide with pauses in 
your app, you can try a thread dump or three (kill -3 ) during 
the pause.  Use a tool like Samurai to parse the output.  This might 
only be practical for longer pauses, though.


Also, is it possible the VM itself is having a problem?  Maybe you 
should talk to your virtualization team to see how stressed the 
hardware is.  VMWare has an informative java best practices doc: 
http://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/techpaper/enterprise-java-applications-on-vmware-best-practices-guide.pdf


John

*From:*George I. Develekos [mailto:gdevele...@omilia.com]
*Sent:* Wednesday, November 16, 2016 5:21 AM
*To:* users@tomcat.apache.org
*Subject:* Re: Please help with Tomcat Garbage Collection

I'm attaching three screenshots of the GCViewer app as it processed 
the complete *gc.log* file (about 19 hours).


Please have a look and advise on what I can do to limit Full-GC times. 
As of now I have a recommendation to increase the Young Gen..


The setup in summary:

We are using Java 6 (stuck with CentOS 5.8 at this time) and Tomcat 
7.0.64.


Xmx is 5G, Xms is 2G, and GC options are -XX:+UseConcMarkSweepGC   
-XX:+CMSIncrementalMode







On 11/15/2016 11:45 PM, john.e.gr...@wellsfargo.com 
<mailto:john.e.gr...@wellsfargo.com> wrote:


-Original Message-

From: George I. Develekos [mailto:gdevele...@omilia.com]

Sent: Tuesday, November 15, 2016 3:00 PM

To:users@tomcat.apache.org <mailto:users@tomcat.apache.org>

Subject: Re: Please help with Tomcat Garbage Collection

The system does very little swapping, both when it's GC'ing and when 
it's not.

Less than 100MB worth of swap is taken.

Giving Tomcat its own HW is not an option at this time, especially as 
there's no

guarantee it'll solve the problem. Besides it would be a VM anyway, not 
physical

dedicated HW.  The current server is also a VM.

On 15-Nov-16 10:55 PM, Zdeněk Henek wrote:

I would start with moving this tomcat to its own hw.

Did you check swap? This long pauses could be because part of your

heap is swapped to hdd

Regards,

Zdenek Henek

On Tue, Nov 15, 2016, 21:37 George I. Develekos

<gdevele...@omilia.com> <mailto:gdevele...@omilia.com>

wrote:

On 15-Nov-16 10:22 PM, Christopher Schultz wrote:

George,

On 11/15/16 10:46 AM, George I. Develekos wrote:

Hello guys,

We are having problems on a production system with very long 
"full

GC" times, as long as1200sec real time (!!!).

We are using Java 6 (stuck with CentOS 5.8 at this 
time) and Tomcat

7.0.64.

Xmx is 5G, Xms is 2G, and GC options are 
-XX:+UseConcMarkSweepGC

-XX:+CMSIncrementalMode

No other custom memory-related settings are in place.

   

RE: Please help with Tomcat Garbage Collection

2016-11-16 Thread John.E.Gregg
Sorry for top posting.  The format got weird.

Those numbers aren’t bad.  The most important number for me is the throughput 
on the summary tab.  Yours is 99.38%.  That means the JVM was doing real work 
99.38% of the time and garbage collecting the other .62%.  You could improve 
that if you worked hard enough, but going from 99.4 to 99.5 or 99.6 probably 
isn’t worth the effort.  If the number was 90% or something, then you’d have 
more room for improvement.

Look at the GC performance numbers on the summary tab.  Obviously minor GCs are 
much faster in this regard than major GCs.  You can reduce your total GC time 
by increasing the size of your young generation.  You will get more or slower 
young collections but fewer and faster old collections.  Overall the total time 
will be less than it is now and the longest pauses will be shorter.

As others have said, though, something doesn’t add up.  CMS is only 
stop-the-world during certain phases.  (Not the ones with “concurrent” in the 
name.)  If you feel these GC events coincide with pauses in your app, you can 
try a thread dump or three (kill -3 ) during the pause.  Use a tool like 
Samurai to parse the output.  This might only be practical for longer pauses, 
though.

Also, is it possible the VM itself is having a problem?  Maybe you should talk 
to your virtualization team to see how stressed the hardware is.  VMWare has an 
informative java best practices doc: 
http://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/techpaper/enterprise-java-applications-on-vmware-best-practices-guide.pdf

John




From: George I. Develekos [mailto:gdevele...@omilia.com]
Sent: Wednesday, November 16, 2016 5:21 AM
To: users@tomcat.apache.org
Subject: Re: Please help with Tomcat Garbage Collection

I'm attaching three screenshots of the GCViewer app as it processed the 
complete gc.log file (about 19 hours).

Please have a look and advise on what I can do to limit Full-GC times. As of 
now I have a recommendation to increase the Young Gen..

The setup in summary:

We are using Java 6 (stuck with CentOS 5.8 at this time) and Tomcat 7.0.64.

Xmx is 5G, Xms is 2G, and GC options are -XX:+UseConcMarkSweepGC   
-XX:+CMSIncrementalMode


[cid:image001.png@01D23FEE.84B81AB0]

[cid:image002.png@01D23FEE.84B81AB0]


[cid:image003.png@01D23FEE.84B81AB0]
On 11/15/2016 11:45 PM, 
john.e.gr...@wellsfargo.com<mailto:john.e.gr...@wellsfargo.com> wrote:







-Original Message-

From: George I. Develekos [mailto:gdevele...@omilia.com]

Sent: Tuesday, November 15, 2016 3:00 PM

To: users@tomcat.apache.org<mailto:users@tomcat.apache.org>

Subject: Re: Please help with Tomcat Garbage Collection



The system does very little swapping, both when it's GC'ing and when it's not.

Less than 100MB worth of swap is taken.



Giving Tomcat its own HW is not an option at this time, especially as there's no

guarantee it'll solve the problem. Besides it would be a VM anyway, not physical

dedicated HW.  The current server is also a VM.





On 15-Nov-16 10:55 PM, Zdeněk Henek wrote:

I would start with moving this tomcat to its own hw.



Did you check swap? This long pauses could be because part of your

heap is swapped to hdd



Regards,

Zdenek Henek



On Tue, Nov 15, 2016, 21:37 George I. Develekos

<gdevele...@omilia.com><mailto:gdevele...@omilia.com>

wrote:



On 15-Nov-16 10:22 PM, Christopher Schultz wrote:

George,



On 11/15/16 10:46 AM, George I. Develekos wrote:

Hello guys,



We are having problems on a production system with very long "full

GC" times, as long as1200sec real time (!!!).



We are using Java 6 (stuck with CentOS 5.8 at this time) and Tomcat

7.0.64.



Xmx is 5G, Xms is 2G, and GC options are -XX:+UseConcMarkSweepGC

-XX:+CMSIncrementalMode



No other custom memory-related settings are in place.



Looking at the GC log, the last few Full-GC entries are:



1367.020: [Full GC 1367.020: [CMS: 1178831K->527456K(1926784K),

2.1117220 secs] 1250378K->527456K(2080128K), [CMS Perm :

169762K->56187K(169984K)] icms_dc=0 , 2.1118160 secs] [Times:

user=1.96 sys=0.13, real=2.11 secs]



2579.317: [Full GC 2579.317: [CMS2581.876: [CMS-concurrent-mark:

2.558/1212.733 secs] [*Times: user=113.05 sys=28.01,

real=**1212.49 **secs] ** * 3539.969: [Full GC 3539.969:

[CMS3540.056: [CMS-concurrent-sweep: 1.571/23.223 secs] [Times:

user=6.12 sys=1.36, real=*23.21 secs*]



4070.456: [Full GC 4070.457: [CMS: 1252569K->591200K(1926784K),

2.3447040 secs] 1270617K->591200K(2080128K), [CMS Perm :

169983K->56598K(169984K)] icms_dc=0 , 2.3448140 secs] [Times:

user=2.18 sys=0.14, real=2.34 secs]





What can we do?

1367.020 Full GC duration=2.11s

2579.317 Full GC duration=1212.49s



So your full GC immediately started another full GC that took 20

minutes ?



Are you only showing certain FULL GC activity from your log, or is

that everything?



CMS should have a mark and then a sweep each time

Re: Please help with Tomcat Garbage Collection

2016-11-15 Thread George I. Develekos



On 15-Nov-16 11:45 PM, john.e.gr...@wellsfargo.com wrote:




-Original Message-
From: George I. Develekos [mailto:gdevele...@omilia.com]
Sent: Tuesday, November 15, 2016 3:00 PM
To: users@tomcat.apache.org
Subject: Re: Please help with Tomcat Garbage Collection

The system does very little swapping, both when it's GC'ing and when it's not.
Less than 100MB worth of swap is taken.

Giving Tomcat its own HW is not an option at this time, especially as there's no
guarantee it'll solve the problem. Besides it would be a VM anyway, not physical
dedicated HW.  The current server is also a VM.


On 15-Nov-16 10:55 PM, Zdeněk Henek wrote:

I would start with moving this tomcat to its own hw.

Did you check swap? This long pauses could be because part of your
heap is swapped to hdd

Regards,
Zdenek Henek

On Tue, Nov 15, 2016, 21:37 George I. Develekos
<gdevele...@omilia.com>
wrote:


On 15-Nov-16 10:22 PM, Christopher Schultz wrote:

George,

On 11/15/16 10:46 AM, George I. Develekos wrote:

Hello guys,

We are having problems on a production system with very long "full
GC" times, as long as1200sec real time (!!!).

We are using Java 6 (stuck with CentOS 5.8 at this time) and Tomcat
7.0.64.

Xmx is 5G, Xms is 2G, and GC options are -XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode

No other custom memory-related settings are in place.

Looking at the GC log, the last few Full-GC entries are:

1367.020: [Full GC 1367.020: [CMS: 1178831K->527456K(1926784K),
2.1117220 secs] 1250378K->527456K(2080128K), [CMS Perm :
169762K->56187K(169984K)] icms_dc=0 , 2.1118160 secs] [Times:
user=1.96 sys=0.13, real=2.11 secs]

2579.317: [Full GC 2579.317: [CMS2581.876: [CMS-concurrent-mark:
2.558/1212.733 secs] [*Times: user=113.05 sys=28.01,
real=**1212.49 **secs] ** * 3539.969: [Full GC 3539.969:
[CMS3540.056: [CMS-concurrent-sweep: 1.571/23.223 secs] [Times:
user=6.12 sys=1.36, real=*23.21 secs*]

4070.456: [Full GC 4070.457: [CMS: 1252569K->591200K(1926784K),
2.3447040 secs] 1270617K->591200K(2080128K), [CMS Perm :
169983K->56598K(169984K)] icms_dc=0 , 2.3448140 secs] [Times:
user=2.18 sys=0.14, real=2.34 secs]


What can we do?

1367.020 Full GC duration=2.11s
2579.317 Full GC duration=1212.49s

So your full GC immediately started another full GC that took 20
minutes ?

Are you only showing certain FULL GC activity from your log, or is
that everything?

CMS should have a mark and then a sweep each time, but your times
don't seem to add up.

also note that the whole point of CMS is that there isn't any
stop-the-world during the mark portion of the process.

Are you actually experiencing a problem, or are you just suffering
from instrumentor's remorse?

- -chris


Chris,

What I listed is the result of the command:

grep "Full GC" gc.log

So (obviously) I have skipped other GC activity, i.e. whatever GC
activity didn't include the "Full GC" string.

Yes we are having app trouble due to the GC delays so this is a real
problem. Our application has real-time constraints so the GC delays
cannot be tolerated. I selected those GC options _in order to avoid
_long GC times.

Additionally, these periods coincide with high CPU for that JVM
process.  From 5-20% CPU where it is normally, it jumps to 60% ore more.
Once GC is done, our app rushes to catch up with tasks that had to
wait for GC to finish.

Answering another question from a member who has kindly responded,
yes the server is running other stuff. Basically it runs three
tomcats, the main one being this one. It also runs a DB2 database
that has close-to-zero activity.

George



It might be helpful if you could post a larger chunk of your GC log, at least 
long enough to cover the start and end of the CMS phases and maybe even more.  
Additionally, try using a tool like GCViewer to analyze the log.

How many CPUs do you have?  60% CPU usage isn't usually a big deal.

Like Chris already said, this is not a stop-the-world phase, so your 
application should continue working in parallel with the garbage collector.

Looks like your young generation is only 150MB (2080128k - 1926784k.)  That's 
very small for a 2-5GB heap.  Are you explicitly setting it somewhere or is the 
JVM choosing that for you?  It's so small that your old generation might be 
filling up faster that it should, leading to more frequent full collections.  
You could try setting the young generation to something like 25-50% of the 
total heap.  You'd get a lot of small pauses as the young gen is collected but 
fewer long ones.

John


John,

I have a couple of cores. One would be enough for what the server does.

I'll post a larger log chunk tomorrow.  I'll look into GCViewer, thanks.

I don't set the young gen, It's selected by the JVM. I don't even know 
what that is, to be honest. I do too many things for my company to know 
such esoteric things about each one of them. Server admin, network 
admin, DB admin, all admin


Nevertheless, if setting the 

RE: Please help with Tomcat Garbage Collection

2016-11-15 Thread John.E.Gregg



> -Original Message-
> From: George I. Develekos [mailto:gdevele...@omilia.com]
> Sent: Tuesday, November 15, 2016 3:00 PM
> To: users@tomcat.apache.org
> Subject: Re: Please help with Tomcat Garbage Collection
> 
> The system does very little swapping, both when it's GC'ing and when it's not.
> Less than 100MB worth of swap is taken.
> 
> Giving Tomcat its own HW is not an option at this time, especially as there's 
> no
> guarantee it'll solve the problem. Besides it would be a VM anyway, not 
> physical
> dedicated HW.  The current server is also a VM.
> 
> 
> On 15-Nov-16 10:55 PM, Zdeněk Henek wrote:
> > I would start with moving this tomcat to its own hw.
> >
> > Did you check swap? This long pauses could be because part of your
> > heap is swapped to hdd
> >
> > Regards,
> > Zdenek Henek
> >
> > On Tue, Nov 15, 2016, 21:37 George I. Develekos
> > <gdevele...@omilia.com>
> > wrote:
> >
> >> On 15-Nov-16 10:22 PM, Christopher Schultz wrote:
> >>> George,
> >>>
> >>> On 11/15/16 10:46 AM, George I. Develekos wrote:
> >>>> Hello guys,
> >>>>
> >>>> We are having problems on a production system with very long "full
> >>>> GC" times, as long as1200sec real time (!!!).
> >>>>
> >>>> We are using Java 6 (stuck with CentOS 5.8 at this time) and Tomcat
> >>>> 7.0.64.
> >>>>
> >>>> Xmx is 5G, Xms is 2G, and GC options are -XX:+UseConcMarkSweepGC
> >>>> -XX:+CMSIncrementalMode
> >>>>
> >>>> No other custom memory-related settings are in place.
> >>>>
> >>>> Looking at the GC log, the last few Full-GC entries are:
> >>>>
> >>>> 1367.020: [Full GC 1367.020: [CMS: 1178831K->527456K(1926784K),
> >>>> 2.1117220 secs] 1250378K->527456K(2080128K), [CMS Perm :
> >>>> 169762K->56187K(169984K)] icms_dc=0 , 2.1118160 secs] [Times:
> >>>> user=1.96 sys=0.13, real=2.11 secs]
> >>>>
> >>>> 2579.317: [Full GC 2579.317: [CMS2581.876: [CMS-concurrent-mark:
> >>>> 2.558/1212.733 secs] [*Times: user=113.05 sys=28.01,
> >>>> real=**1212.49 **secs] ** * 3539.969: [Full GC 3539.969:
> >>>> [CMS3540.056: [CMS-concurrent-sweep: 1.571/23.223 secs] [Times:
> >>>> user=6.12 sys=1.36, real=*23.21 secs*]
> >>>>
> >>>> 4070.456: [Full GC 4070.457: [CMS: 1252569K->591200K(1926784K),
> >>>> 2.3447040 secs] 1270617K->591200K(2080128K), [CMS Perm :
> >>>> 169983K->56598K(169984K)] icms_dc=0 , 2.3448140 secs] [Times:
> >>>> user=2.18 sys=0.14, real=2.34 secs]
> >>>>
> >>>>
> >>>> What can we do?
> >>> 1367.020 Full GC duration=2.11s
> >>> 2579.317 Full GC duration=1212.49s
> >>>
> >>> So your full GC immediately started another full GC that took 20
> >>> minutes ?
> >>>
> >>> Are you only showing certain FULL GC activity from your log, or is
> >>> that everything?
> >>>
> >>> CMS should have a mark and then a sweep each time, but your times
> >>> don't seem to add up.
> >>>
> >>> also note that the whole point of CMS is that there isn't any
> >>> stop-the-world during the mark portion of the process.
> >>>
> >>> Are you actually experiencing a problem, or are you just suffering
> >>> from instrumentor's remorse?
> >>>
> >>> - -chris
> >>>
> >> Chris,
> >>
> >> What I listed is the result of the command:
> >>
> >> grep "Full GC" gc.log
> >>
> >> So (obviously) I have skipped other GC activity, i.e. whatever GC
> >> activity didn't include the "Full GC" string.
> >>
> >> Yes we are having app trouble due to the GC delays so this is a real
> >> problem. Our application has real-time constraints so the GC delays
> >> cannot be tolerated. I selected those GC options _in order to avoid
> >> _long GC times.
> >>
> >> Additionally, these periods coincide with high CPU for that JVM
> >> process.  From 5-20% CPU where it is normally, it jumps to 60% ore more.
> >> Once GC is done, our app rushes to catch up with tasks that had to
> >> wait for GC to finish.
> >>
> >> Answering another question from a member who has kindly re

Re: Please help with Tomcat Garbage Collection

2016-11-15 Thread George I. Develekos
The system does very little swapping, both when it's GC'ing and when 
it's not. Less than 100MB worth of swap is taken.


Giving Tomcat its own HW is not an option at this time, especially as 
there's no guarantee it'll solve the problem. Besides it would be a VM 
anyway, not physical dedicated HW.  The current server is also a VM.



On 15-Nov-16 10:55 PM, Zdeněk Henek wrote:

I would start with moving this tomcat to its own hw.

Did you check swap? This long pauses could be because part of your heap is
swapped to hdd

Regards,
Zdenek Henek

On Tue, Nov 15, 2016, 21:37 George I. Develekos 
wrote:


On 15-Nov-16 10:22 PM, Christopher Schultz wrote:

George,

On 11/15/16 10:46 AM, George I. Develekos wrote:

Hello guys,

We are having problems on a production system with very long "full
GC" times, as long as1200sec real time (!!!).

We are using Java 6 (stuck with CentOS 5.8 at this time) and Tomcat
7.0.64.

Xmx is 5G, Xms is 2G, and GC options are -XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode

No other custom memory-related settings are in place.

Looking at the GC log, the last few Full-GC entries are:

1367.020: [Full GC 1367.020: [CMS: 1178831K->527456K(1926784K),
2.1117220 secs] 1250378K->527456K(2080128K), [CMS Perm :
169762K->56187K(169984K)] icms_dc=0 , 2.1118160 secs] [Times:
user=1.96 sys=0.13, real=2.11 secs]

2579.317: [Full GC 2579.317: [CMS2581.876: [CMS-concurrent-mark:
2.558/1212.733 secs] [*Times: user=113.05 sys=28.01,
real=**1212.49 **secs] ** * 3539.969: [Full GC 3539.969:
[CMS3540.056: [CMS-concurrent-sweep: 1.571/23.223 secs] [Times:
user=6.12 sys=1.36, real=*23.21 secs*]

4070.456: [Full GC 4070.457: [CMS: 1252569K->591200K(1926784K),
2.3447040 secs] 1270617K->591200K(2080128K), [CMS Perm :
169983K->56598K(169984K)] icms_dc=0 , 2.3448140 secs] [Times:
user=2.18 sys=0.14, real=2.34 secs]


What can we do?

1367.020 Full GC duration=2.11s
2579.317 Full GC duration=1212.49s

So your full GC immediately started another full GC that took 20 minutes
?

Are you only showing certain FULL GC activity from your log, or is
that everything?

CMS should have a mark and then a sweep each time, but your times
don't seem to add up.

also note that the whole point of CMS is that there isn't any
stop-the-world during the mark portion of the process.

Are you actually experiencing a problem, or are you just suffering
from instrumentor's remorse?

- -chris


Chris,

What I listed is the result of the command:

grep "Full GC" gc.log

So (obviously) I have skipped other GC activity, i.e. whatever GC
activity didn't include the "Full GC" string.

Yes we are having app trouble due to the GC delays so this is a real
problem. Our application has real-time constraints so the GC delays
cannot be tolerated. I selected those GC options _in order to avoid
_long GC times.

Additionally, these periods coincide with high CPU for that JVM
process.  From 5-20% CPU where it is normally, it jumps to 60% ore more.
Once GC is done, our app rushes to catch up with tasks that had to wait
for GC to finish.

Answering another question from a member who has kindly responded, yes
the server is running other stuff. Basically it runs three tomcats, the
main one being this one. It also runs a DB2 database that has
close-to-zero activity.

George


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus




---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


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



Re: Please help with Tomcat Garbage Collection

2016-11-15 Thread Zdeněk Henek
I would start with moving this tomcat to its own hw.

Did you check swap? This long pauses could be because part of your heap is
swapped to hdd

Regards,
Zdenek Henek

On Tue, Nov 15, 2016, 21:37 George I. Develekos 
wrote:

>
> On 15-Nov-16 10:22 PM, Christopher Schultz wrote:
> >
> > George,
> >
> > On 11/15/16 10:46 AM, George I. Develekos wrote:
> >> Hello guys,
> >>
> >> We are having problems on a production system with very long "full
> >> GC" times, as long as1200sec real time (!!!).
> >>
> >> We are using Java 6 (stuck with CentOS 5.8 at this time) and Tomcat
> >> 7.0.64.
> >>
> >> Xmx is 5G, Xms is 2G, and GC options are -XX:+UseConcMarkSweepGC
> >> -XX:+CMSIncrementalMode
> >>
> >> No other custom memory-related settings are in place.
> >>
> >> Looking at the GC log, the last few Full-GC entries are:
> >>
> >> 1367.020: [Full GC 1367.020: [CMS: 1178831K->527456K(1926784K),
> >> 2.1117220 secs] 1250378K->527456K(2080128K), [CMS Perm :
> >> 169762K->56187K(169984K)] icms_dc=0 , 2.1118160 secs] [Times:
> >> user=1.96 sys=0.13, real=2.11 secs]
> >>
> >> 2579.317: [Full GC 2579.317: [CMS2581.876: [CMS-concurrent-mark:
> >> 2.558/1212.733 secs] [*Times: user=113.05 sys=28.01,
> >> real=**1212.49 **secs] ** * 3539.969: [Full GC 3539.969:
> >> [CMS3540.056: [CMS-concurrent-sweep: 1.571/23.223 secs] [Times:
> >> user=6.12 sys=1.36, real=*23.21 secs*]
> >>
> >> 4070.456: [Full GC 4070.457: [CMS: 1252569K->591200K(1926784K),
> >> 2.3447040 secs] 1270617K->591200K(2080128K), [CMS Perm :
> >> 169983K->56598K(169984K)] icms_dc=0 , 2.3448140 secs] [Times:
> >> user=2.18 sys=0.14, real=2.34 secs]
> >>
> >>
> >> What can we do?
> > 1367.020 Full GC duration=2.11s
> > 2579.317 Full GC duration=1212.49s
> >
> > So your full GC immediately started another full GC that took 20 minutes
> > ?
> >
> > Are you only showing certain FULL GC activity from your log, or is
> > that everything?
> >
> > CMS should have a mark and then a sweep each time, but your times
> > don't seem to add up.
> >
> > also note that the whole point of CMS is that there isn't any
> > stop-the-world during the mark portion of the process.
> >
> > Are you actually experiencing a problem, or are you just suffering
> > from instrumentor's remorse?
> >
> > - -chris
> >
>
> Chris,
>
> What I listed is the result of the command:
>
> grep "Full GC" gc.log
>
> So (obviously) I have skipped other GC activity, i.e. whatever GC
> activity didn't include the "Full GC" string.
>
> Yes we are having app trouble due to the GC delays so this is a real
> problem. Our application has real-time constraints so the GC delays
> cannot be tolerated. I selected those GC options _in order to avoid
> _long GC times.
>
> Additionally, these periods coincide with high CPU for that JVM
> process.  From 5-20% CPU where it is normally, it jumps to 60% ore more.
> Once GC is done, our app rushes to catch up with tasks that had to wait
> for GC to finish.
>
> Answering another question from a member who has kindly responded, yes
> the server is running other stuff. Basically it runs three tomcats, the
> main one being this one. It also runs a DB2 database that has
> close-to-zero activity.
>
> George
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>


Re: Please help with Tomcat Garbage Collection

2016-11-15 Thread George I. Develekos


On 15-Nov-16 10:22 PM, Christopher Schultz wrote:


George,

On 11/15/16 10:46 AM, George I. Develekos wrote:

Hello guys,

We are having problems on a production system with very long "full
GC" times, as long as1200sec real time (!!!).

We are using Java 6 (stuck with CentOS 5.8 at this time) and Tomcat
7.0.64.

Xmx is 5G, Xms is 2G, and GC options are -XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode

No other custom memory-related settings are in place.

Looking at the GC log, the last few Full-GC entries are:

1367.020: [Full GC 1367.020: [CMS: 1178831K->527456K(1926784K),
2.1117220 secs] 1250378K->527456K(2080128K), [CMS Perm :
169762K->56187K(169984K)] icms_dc=0 , 2.1118160 secs] [Times:
user=1.96 sys=0.13, real=2.11 secs]

2579.317: [Full GC 2579.317: [CMS2581.876: [CMS-concurrent-mark:
2.558/1212.733 secs] [*Times: user=113.05 sys=28.01,
real=**1212.49 **secs] ** * 3539.969: [Full GC 3539.969:
[CMS3540.056: [CMS-concurrent-sweep: 1.571/23.223 secs] [Times:
user=6.12 sys=1.36, real=*23.21 secs*]

4070.456: [Full GC 4070.457: [CMS: 1252569K->591200K(1926784K),
2.3447040 secs] 1270617K->591200K(2080128K), [CMS Perm :
169983K->56598K(169984K)] icms_dc=0 , 2.3448140 secs] [Times:
user=2.18 sys=0.14, real=2.34 secs]


What can we do?

1367.020 Full GC duration=2.11s
2579.317 Full GC duration=1212.49s

So your full GC immediately started another full GC that took 20 minutes
?

Are you only showing certain FULL GC activity from your log, or is
that everything?

CMS should have a mark and then a sweep each time, but your times
don't seem to add up.

also note that the whole point of CMS is that there isn't any
stop-the-world during the mark portion of the process.

Are you actually experiencing a problem, or are you just suffering
from instrumentor's remorse?

- -chris



Chris,

What I listed is the result of the command:

grep "Full GC" gc.log

So (obviously) I have skipped other GC activity, i.e. whatever GC 
activity didn't include the "Full GC" string.


Yes we are having app trouble due to the GC delays so this is a real 
problem. Our application has real-time constraints so the GC delays 
cannot be tolerated. I selected those GC options _in order to avoid 
_long GC times.


Additionally, these periods coincide with high CPU for that JVM 
process.  From 5-20% CPU where it is normally, it jumps to 60% ore more. 
Once GC is done, our app rushes to catch up with tasks that had to wait 
for GC to finish.


Answering another question from a member who has kindly responded, yes 
the server is running other stuff. Basically it runs three tomcats, the 
main one being this one. It also runs a DB2 database that has 
close-to-zero activity.


George


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


Re: Please help with Tomcat Garbage Collection

2016-11-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

George,

On 11/15/16 10:46 AM, George I. Develekos wrote:
> Hello guys,
> 
> We are having problems on a production system with very long "full
> GC" times, as long as1200sec real time (!!!).
> 
> We are using Java 6 (stuck with CentOS 5.8 at this time) and Tomcat
> 7.0.64.
> 
> Xmx is 5G, Xms is 2G, and GC options are -XX:+UseConcMarkSweepGC 
> -XX:+CMSIncrementalMode
> 
> No other custom memory-related settings are in place.
> 
> Looking at the GC log, the last few Full-GC entries are:
> 
> 1367.020: [Full GC 1367.020: [CMS: 1178831K->527456K(1926784K), 
> 2.1117220 secs] 1250378K->527456K(2080128K), [CMS Perm : 
> 169762K->56187K(169984K)] icms_dc=0 , 2.1118160 secs] [Times:
> user=1.96 sys=0.13, real=2.11 secs]
> 
> 2579.317: [Full GC 2579.317: [CMS2581.876: [CMS-concurrent-mark: 
> 2.558/1212.733 secs] [*Times: user=113.05 sys=28.01,
> real=**1212.49 **secs] ** * 3539.969: [Full GC 3539.969:
> [CMS3540.056: [CMS-concurrent-sweep: 1.571/23.223 secs] [Times:
> user=6.12 sys=1.36, real=*23.21 secs*]
> 
> 4070.456: [Full GC 4070.457: [CMS: 1252569K->591200K(1926784K), 
> 2.3447040 secs] 1270617K->591200K(2080128K), [CMS Perm : 
> 169983K->56598K(169984K)] icms_dc=0 , 2.3448140 secs] [Times:
> user=2.18 sys=0.14, real=2.34 secs]
> 
> 
> What can we do?

1367.020 Full GC duration=2.11s
2579.317 Full GC duration=1212.49s

So your full GC immediately started another full GC that took 20 minutes
?

Are you only showing certain FULL GC activity from your log, or is
that everything?

CMS should have a mark and then a sweep each time, but your times
don't seem to add up.

also note that the whole point of CMS is that there isn't any
stop-the-world during the mark portion of the process.

Are you actually experiencing a problem, or are you just suffering
from instrumentor's remorse?

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

iQIcBAEBCAAGBQJYK25oAAoJEBzwKT+lPKRYQNEQAJ8xASbPXtJUHy7xzhdYpwnr
M6wpCnYcls/cihN1p5OgJaV5G4EyNDGzoDky/ijW6o6ywlAkwAw0TOZKiUD6KN3q
LPq/3nHCvUr0769TuzkLpCe+VjYKmD4k4JGq9qqBLrKeMhfEprKnod+BR2ZKVK03
WmI6mqYKfkdPi3iR5GBv95Wo4SXAONGSnG06ISo+mPPOrLqH8QSrGocFH63/+nU8
Vx3yESyWL4FiQxFe+BowEnhu26p5IgA76DtgXs8XV+ojKnuM1liZPd6GXTjT6lE/
HkVg7P30sMzVf9P+0naDzHzZw1Pg19c3L5CymF1+WQPUF7Bk7iaOJNX9ZvVvhtpP
aMmyNVp2GUWVXby2rHIS2cA1h0Nq9ZtUZECx5k8dLCYlMgmRlFdgM5W+Un2nP2qf
WrVh0YdsMc9PrP5JSt8MdgxRhRk/WAADC4gTi78hqS6Fuz6I8R5tkXu2xsQA5ALZ
Cd/dvX2hRY4yJ00A3ooYE9sRciQXoSrQ6VvfWfU1k4kI2ZC4C5mDXASQTOdyCKHx
KtGs9hK56hitZSCBhCrDD8OhzmnIJF1E+FmtKwuTEmkc7cGiCXiTJI+coO+sWzzV
AljVYpG8YIDSD+gHrWJbf4Bs9EzfjI7EwvAtszWBC1SM8pAHBbyguCDhFOAbLlp0
gHTCnOGA7/Qvgd+nLLxC
=UeZj
-END PGP SIGNATURE-

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



Re: Please help with Tomcat Garbage Collection

2016-11-15 Thread Zdeněk Henek
Is there running something else in that server? Real time should be never
bigger than user+sys

Z

On Tue, Nov 15, 2016, 16:46 George I. Develekos 
wrote:

> Hello guys,
>
> We are having problems on a production system with very long "full GC"
> times, as long as1200sec real time (!!!).
>
> We are using Java 6 (stuck with CentOS 5.8 at this time) and Tomcat 7.0.64.
>
> Xmx is 5G, Xms is 2G, and GC options are -XX:+UseConcMarkSweepGC
> -XX:+CMSIncrementalMode
>
> No other custom memory-related settings are in place.
>
> Looking at the GC log, the last few Full-GC entries are:
>
> 1367.020: [Full GC 1367.020: [CMS: 1178831K->527456K(1926784K),
> 2.1117220 secs] 1250378K->527456K(2080128K), [CMS Perm :
> 169762K->56187K(169984K)] icms_dc=0 , 2.1118160 secs] [Times: user=1.96
> sys=0.13, real=2.11 secs]
>
> 2579.317: [Full GC 2579.317: [CMS2581.876: [CMS-concurrent-mark:
> 2.558/1212.733 secs] [*Times: user=113.05 sys=28.01, real=**1212.49
> **secs] **
> *
> 3539.969: [Full GC 3539.969: [CMS3540.056: [CMS-concurrent-sweep:
> 1.571/23.223 secs] [Times: user=6.12 sys=1.36, real=*23.21 secs*]
>
> 4070.456: [Full GC 4070.457: [CMS: 1252569K->591200K(1926784K),
> 2.3447040 secs] 1270617K->591200K(2080128K), [CMS Perm :
> 169983K->56598K(169984K)] icms_dc=0 , 2.3448140 secs] [Times: user=2.18
> sys=0.14, real=2.34 secs]
>
>
> What can we do?
>
> Thanks,
>
> George
>
>
>
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>


Re: Please help with Tomcat Garbage Collection

2016-11-15 Thread George I. Develekos

Thanks, but, all I got was this "y"...


On 15-Nov-16 9:48 PM, pina.freder...@gmail.com wrote:

y

Sent from my HTC on T-  .  4G LTE

- Reply message -
From: "George I. Develekos" 
To: 
Subject: Please help with Tomcat Garbage Collection
Date: Tue, Nov 15, 2016 10:46 AM

Hello guys,

We are having problems on a production system with very long "full GC"
times, as long as1200sec real time (!!!).

We are using Java 6 (stuck with CentOS 5.8 at this time) and Tomcat 7.0.64.

Xmx is 5G, Xms is 2G, and GC options are -XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode

No other custom memory-related settings are in place.

Looking at the GC log, the last few Full-GC entries are:

1367.020: [Full GC 1367.020: [CMS: 1178831K->527456K(1926784K),
2.1117220 secs] 1250378K->527456K(2080128K), [CMS Perm :
169762K->56187K(169984K)] icms_dc=0 , 2.1118160 secs] [Times: user=1.96
sys=0.13, real=2.11 secs]

2579.317: [Full GC 2579.317: [CMS2581.876: [CMS-concurrent-mark:
2.558/1212.733 secs] [*Times: user=113.05 sys=28.01, real=**1212.49
**secs] **
*
3539.969: [Full GC 3539.969: [CMS3540.056: [CMS-concurrent-sweep:
1.571/23.223 secs] [Times: user=6.12 sys=1.36, real=*23.21 secs*]

4070.456: [Full GC 4070.457: [CMS: 1252569K->591200K(1926784K),
2.3447040 secs] 1270617K->591200K(2080128K), [CMS Perm :
169983K->56598K(169984K)] icms_dc=0 , 2.3448140 secs] [Times: user=2.18
sys=0.14, real=2.34 secs]


What can we do?

Thanks,

George





---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


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



Re: Please help with Tomcat Garbage Collection

2016-11-15 Thread pina.freder...@gmail.com
y

Sent from my HTC on T-  .  4G LTE

- Reply message -
From: "George I. Develekos" 
To: 
Subject: Please help with Tomcat Garbage Collection
Date: Tue, Nov 15, 2016 10:46 AM

Hello guys,

We are having problems on a production system with very long "full GC" 
times, as long as1200sec real time (!!!).

We are using Java 6 (stuck with CentOS 5.8 at this time) and Tomcat 7.0.64.

Xmx is 5G, Xms is 2G, and GC options are -XX:+UseConcMarkSweepGC   
-XX:+CMSIncrementalMode

No other custom memory-related settings are in place.

Looking at the GC log, the last few Full-GC entries are:

1367.020: [Full GC 1367.020: [CMS: 1178831K->527456K(1926784K), 
2.1117220 secs] 1250378K->527456K(2080128K), [CMS Perm : 
169762K->56187K(169984K)] icms_dc=0 , 2.1118160 secs] [Times: user=1.96 
sys=0.13, real=2.11 secs]

2579.317: [Full GC 2579.317: [CMS2581.876: [CMS-concurrent-mark: 
2.558/1212.733 secs] [*Times: user=113.05 sys=28.01, real=**1212.49 
**secs] **
*
3539.969: [Full GC 3539.969: [CMS3540.056: [CMS-concurrent-sweep: 
1.571/23.223 secs] [Times: user=6.12 sys=1.36, real=*23.21 secs*]

4070.456: [Full GC 4070.457: [CMS: 1252569K->591200K(1926784K), 
2.3447040 secs] 1270617K->591200K(2080128K), [CMS Perm : 
169983K->56598K(169984K)] icms_dc=0 , 2.3448140 secs] [Times: user=2.18 
sys=0.14, real=2.34 secs]


What can we do?

Thanks,

George





---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

RE: Please help

2015-07-17 Thread Caldarale, Charles R
 From: uzair rashid [mailto:uzairrashi...@gmail.com] 
 Subject: Re: Please help

 Jul 16, 2015 5:09:52 PM org.apache.coyote.AbstractProtocol init
 SEVERE: Failed to initialize end point associated with ProtocolHandler 
 [http-apr-8443]

This is a completely different problem, so you should start a completely new 
thread to discuss it (with an appropriate subject line this time).

 - 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: Please help

2015-07-17 Thread uzair rashid
Hello Chuck:

Thank you!

INFO: Command line argument: -Xss1024k
Jul 16, 2015 5:09:49 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: Loaded APR based Apache Tomcat Native library 1.1.32 using APR
version 1.5.1.
Jul 16, 2015 5:09:49 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Jul 16, 2015 5:09:51 PM org.apache.catalina.core.AprLifecycleListener
initializeSSL
INFO: OpenSSL successfully initialized (OpenSSL 1.0.1j 15 Oct 2014)
Jul 16, 2015 5:09:51 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler [http-apr-8080]
Jul 16, 2015 5:09:52 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler [http-apr-8443]
Jul 16, 2015 5:09:52 PM org.apache.coyote.AbstractProtocol init
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
 at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:490)
 at
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:646)
 at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
 at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
 at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
 at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
 at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
 at
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821)
 at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)

I missed that point of the error as well!

Could you please give your input
On Thu, Jul 16, 2015 at 8:25 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: uzair rashid [mailto:uzairrashi...@gmail.com]
  Subject: Please help

 Please help as a subject line is not terribly useful, is it?

  I am using Apache Tomcat 7.0.57..

 Good to know; many people forget to mention the version they're using.

  I have configured my server.xml as follows:

  Realm className=org.apache.catalina.realm.UserDatabaseRealm
  resourceName=UserDatabase/
 
/Realm

  SEVERE: Parse Fatal Error at line 36 column 4: XML document structures
 must
  start and end within the same entity.

 You have both an end tag and an empty element - pick one or the other.
 Any decent XML editor will highlight the syntax error.

  - 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.


 -Original Message-
 From: uzair rashid [mailto:uzairrashi...@gmail.com]
 Sent: 2015 July 16, Thursday 19:33
 To: users@tomcat.apache.org
 Subject: Please help

 Hello:



 I am using Apache Tomcat 7.0.57..



 I have configured my server.xml as follows:

 ?xml version=1.0 encoding=UTF-8?!--

   Licensed to the Apache Software Foundation (ASF) under one or more

   contributor license agreements.  See the NOTICE file distributed with

   this work for additional information regarding copyright ownership.

   The ASF licenses this file to You under the Apache License, Version 2.0

   (the License); you may not use this file except in compliance with

   the License.  You may obtain a copy of the License at



   http://www.apache.org/licenses/LICENSE-2.0



   Unless required by applicable law or agreed to in writing, software

   distributed under the License is distributed on an AS IS BASIS,

   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

   See the License for the specific language governing permissions and

   limitations under the License.

 --!-- Note:  A Server is not itself a Container, so you may not

  define subcomponents such as Valves at this level.

  Documentation at /docs/config/server.html

  --Server port=8005 shutdown=SHUTDOWN

   Listener className=org.apache.catalina.startup.VersionLoggerListener/

   !-- Security listener. Documentation at /docs/config/listeners.html

   Listener className=org.apache.catalina.security.SecurityListener /

   --

   !--APR library loader. Documentation at /docs/apr.html --

   Listener className=org.apache.catalina.core.AprLifecycleListener
 SSLEngine=on/

   !--Initialize Jasper prior to webapps are loaded. Documentation 

RE: Please help

2015-07-16 Thread Caldarale, Charles R
 From: uzair rashid [mailto:uzairrashi...@gmail.com] 
 Subject: Please help

Please help as a subject line is not terribly useful, is it?

 I am using Apache Tomcat 7.0.57..

Good to know; many people forget to mention the version they're using.

 I have configured my server.xml as follows:

 Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase/

   /Realm

 SEVERE: Parse Fatal Error at line 36 column 4: XML document structures must
 start and end within the same entity.

You have both an end tag and an empty element - pick one or the other.  Any 
decent XML editor will highlight the syntax error.

 - 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.


-Original Message-
From: uzair rashid [mailto:uzairrashi...@gmail.com] 
Sent: 2015 July 16, Thursday 19:33
To: users@tomcat.apache.org
Subject: Please help

Hello:



I am using Apache Tomcat 7.0.57..



I have configured my server.xml as follows:

?xml version=1.0 encoding=UTF-8?!--

  Licensed to the Apache Software Foundation (ASF) under one or more

  contributor license agreements.  See the NOTICE file distributed with

  this work for additional information regarding copyright ownership.

  The ASF licenses this file to You under the Apache License, Version 2.0

  (the License); you may not use this file except in compliance with

  the License.  You may obtain a copy of the License at



  http://www.apache.org/licenses/LICENSE-2.0



  Unless required by applicable law or agreed to in writing, software

  distributed under the License is distributed on an AS IS BASIS,

  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

  See the License for the specific language governing permissions and

  limitations under the License.

--!-- Note:  A Server is not itself a Container, so you may not

 define subcomponents such as Valves at this level.

 Documentation at /docs/config/server.html

 --Server port=8005 shutdown=SHUTDOWN

  Listener className=org.apache.catalina.startup.VersionLoggerListener/

  !-- Security listener. Documentation at /docs/config/listeners.html

  Listener className=org.apache.catalina.security.SecurityListener /

  --

  !--APR library loader. Documentation at /docs/apr.html --

  Listener className=org.apache.catalina.core.AprLifecycleListener
SSLEngine=on/

  !--Initialize Jasper prior to webapps are loaded. Documentation at
/docs/jasper-howto.html --

  Listener className=org.apache.catalina.core.JasperListener/

  !-- Prevent memory leaks due to use of particular java/javax APIs--

  Listener
className=org.apache.catalina.core.JreMemoryLeakPreventionListener/

  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/

  Listener
className=org.apache.catalina.core.ThreadLocalLeakPreventionListener/



  !-- Global JNDI resources

   Documentation at /docs/jndi-resources-howto.html

  --

  GlobalNamingResources

!-- Editable user database that can also be used by

 UserDatabaseRealm to authenticate users

--

Resource name=UserDatabase auth=Container
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/

  /GlobalNamingResources



  !-- A Service is a collection of one or more Connectors that share

   a single Container Note:  A Service is not itself a Container,

   so you may not define subcomponents such as Valves at this level.

   Documentation at /docs/config/service.html

   --

  Service name=Catalina



!--The connectors can use a shared executor, you can define one or
more named thread pools--

!--

Executor name=tomcatThreadPool namePrefix=catalina-exec-

maxThreads=150 minSpareThreads=4/

--





!-- A Connector represents an endpoint by which requests are received

 and responses are returned. Documentation at :

 Java HTTP Connector: /docs/config/http.html (blocking 
non-blocking)

 Java AJP  Connector: /docs/config/ajp.html

 APR (HTTP/AJP) Connector: /docs/apr.html

 Define a non-SSL HTTP/1.1 Connector on port 8080

--

Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2
redirectPort=8443 compression=on URIEncoding=UTF-8
compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata
compressableMimeType=text/html,text/xml,text/plain,text/css,text/javascript,text/json,application/json/

!-- A Connector using the shared thread pool--

!--

Connector executor=tomcatThreadPool

   port=8080 protocol=HTTP/1.1

   connectionTimeout=2

   redirectPort=8443 /

--

!-- Define a SSL Coyote 

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

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

Ian,

On 4/15/14, 2:52 PM, Ian Long wrote:
 I need some help from all the tomcat experts out there! I am using
  tomcat behind apache httpd using mod_jk (1.2.39). About 50-100
 times per day (out of many requests), I’m getting an internal
 server error from Tomcat (error 500), without any exceptions in my
 code, nor in Tomcat logs. I am only seeing the error in my New
 Relic application monitoring tool, and I can see them in the mod_jk
 logs if I turn on debug.

As much fun as reading debug logs is, I wasn't able to find a problem
in what you posted. Can you maybe highlight the section that indicates
a problem?

You also didn't post the exception from the Java side.

 My server is not heavily loaded, with a load average hovering
 around 0.5 on a 4 cpu system.

How many httpd processes are serving this Tomcat? Do you have a
mismatch between the number of connections coming from httpd and the
number of connections available on the Tomcat side (Connector)?

 You can see the internal error below at 13:59:13.790.

Yes, we can see that there was an error, but not what the error was.

 My worker setup is very simple:
 
 worker.list=worker1 worker.worker1.port=8009 
 worker.worker1.host=127.0.0.1 worker.worker1.type=ajp13 
 worker.worker1.connection_pool_timeout=600 
 worker.worker1.connect_timeout=1
 
 My Connector is also straightforward:
 
 Connector port=8009 connectionTimeout=60
 minSpareThreads=5 address=127.0.0.1 URIEncoding=UTF-8
 enableLookups=false disableUploadTimeout=true 
 maxSpareThreads=75 maxThreads=800 protocol=AJP/1.3 /

That all looks okay to me on the face of it. Just a note: you may want
to use an Executor for better control of the thread pool.

What connector are you actually using

Is 800 threads enough to handle whatever might be coming from httpd
(or all of your httpd instances)?

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

iQIcBAEBCAAGBQJTTYSWAAoJEBzwKT+lPKRYzAkP/1Eeusa0Jh6uFoUFg0+wq/cO
IF8F0DkQXZ5d1WrYtF3nRhcNXclgfl6kYpNyz9dSN55Sk2hrWFZcSGZnMu4ZZvQE
jMg+555tPm36QmmAw3NzUm6wwTpcByjsZuj10fsigiaNW3ucAc2vsQ40ETH5LH+/
E4crD6PFBSfNe5qcF51T6qcPVMMaXxjd5aBWRBfT2sUEogRg3o5Xm6zal+fwQrfR
v4mbvwC4bz7ysCXGZQxSh7qQrorpXePIqCrUekAXxPRGxGXbUvj8+alVjY7p0Him
w5WyyzbEqIymrARoip/+Xd1nRe7bWdt0sUBqBsKn7KKvUVvvIMbKmtAn398zcP9k
l9746MuX0Z9JGuCNDeX/giaUeijckjyY2WjxWY/mU9v75v02jqpPlgzZZhELKv/3
ScE13HgxzPHAiDNXHJuQsJL8HxRbtl29aPV+406kQbolzfMudxXPU2hSIi8MDiYn
hTJSZwp47bQngD9Ym8v+EdeExvRg2xLhlIuJc5j+34E9J5R9p/QC7Ru6YyzpESO5
olTzG/5Dt4V75q7mRkMtNiIWku9Ur5dtD+wjLAcQPmcoUuN0pX+rl2L4a7Wp+mqO
rCuEZK5Y1S6/DBlu7UcBALe/T0OG8nzld4xLKZJR/oluuQSRXlRw6div4DaoqQMf
4PjjoG0+Hj2KS2aQm/JQ
=oqiw
-END PGP SIGNATURE-

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



Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Ian Long
Thanks for the reply.

It looks to me like tomcat just gave up partway through generating the request, 
I’m trying to figure out why.  

There are no exceptions in either my application logs or the tomcat log itself, 
which is frustrating.

Thanks, I’ll look into the executor.

Apache matches what is set in my connector:

IfModule prefork.c
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      800
MaxClients       800
MaxRequestsPerChild  0
/IfModule

Yes, the connector settings should be fine, there are usually less than 20 
httpds.

Cheers,
Ian

On April 15, 2014 at 3:13:08 PM, Christopher Schultz 
(ch...@christopherschultz.net) wrote:

-BEGIN PGP SIGNED MESSAGE-  
Hash: SHA256  

Ian,  

On 4/15/14, 2:52 PM, Ian Long wrote:  
 I need some help from all the tomcat experts out there! I am using  
 tomcat behind apache httpd using mod_jk (1.2.39). About 50-100  
 times per day (out of many requests), I’m getting an internal  
 server error from Tomcat (error 500), without any exceptions in my  
 code, nor in Tomcat logs. I am only seeing the error in my New  
 Relic application monitoring tool, and I can see them in the mod_jk  
 logs if I turn on debug.  

As much fun as reading debug logs is, I wasn't able to find a problem  
in what you posted. Can you maybe highlight the section that indicates  
a problem?  

You also didn't post the exception from the Java side.  

 My server is not heavily loaded, with a load average hovering  
 around 0.5 on a 4 cpu system.  

How many httpd processes are serving this Tomcat? Do you have a  
mismatch between the number of connections coming from httpd and the  
number of connections available on the Tomcat side (Connector)?  

 You can see the internal error below at 13:59:13.790.  

Yes, we can see that there was an error, but not what the error was.  

 My worker setup is very simple:  
  
 worker.list=worker1 worker.worker1.port=8009  
 worker.worker1.host=127.0.0.1 worker.worker1.type=ajp13  
 worker.worker1.connection_pool_timeout=600  
 worker.worker1.connect_timeout=1  
  
 My Connector is also straightforward:  
  
 Connector port=8009 connectionTimeout=60  
 minSpareThreads=5 address=127.0.0.1 URIEncoding=UTF-8  
 enableLookups=false disableUploadTimeout=true  
 maxSpareThreads=75 maxThreads=800 protocol=AJP/1.3 /  

That all looks okay to me on the face of it. Just a note: you may want  
to use an Executor for better control of the thread pool.  

What connector are you actually using  

Is 800 threads enough to handle whatever might be coming from httpd  
(or all of your httpd instances)?  

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

iQIcBAEBCAAGBQJTTYSWAAoJEBzwKT+lPKRYzAkP/1Eeusa0Jh6uFoUFg0+wq/cO  
IF8F0DkQXZ5d1WrYtF3nRhcNXclgfl6kYpNyz9dSN55Sk2hrWFZcSGZnMu4ZZvQE  
jMg+555tPm36QmmAw3NzUm6wwTpcByjsZuj10fsigiaNW3ucAc2vsQ40ETH5LH+/  
E4crD6PFBSfNe5qcF51T6qcPVMMaXxjd5aBWRBfT2sUEogRg3o5Xm6zal+fwQrfR  
v4mbvwC4bz7ysCXGZQxSh7qQrorpXePIqCrUekAXxPRGxGXbUvj8+alVjY7p0Him  
w5WyyzbEqIymrARoip/+Xd1nRe7bWdt0sUBqBsKn7KKvUVvvIMbKmtAn398zcP9k  
l9746MuX0Z9JGuCNDeX/giaUeijckjyY2WjxWY/mU9v75v02jqpPlgzZZhELKv/3  
ScE13HgxzPHAiDNXHJuQsJL8HxRbtl29aPV+406kQbolzfMudxXPU2hSIi8MDiYn  
hTJSZwp47bQngD9Ym8v+EdeExvRg2xLhlIuJc5j+34E9J5R9p/QC7Ru6YyzpESO5  
olTzG/5Dt4V75q7mRkMtNiIWku9Ur5dtD+wjLAcQPmcoUuN0pX+rl2L4a7Wp+mqO  
rCuEZK5Y1S6/DBlu7UcBALe/T0OG8nzld4xLKZJR/oluuQSRXlRw6div4DaoqQMf  
4PjjoG0+Hj2KS2aQm/JQ  
=oqiw  
-END PGP SIGNATURE-  

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



Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Ian Long
Forgot to mention that it looks like tomcat returned around 50% of what the 
page should have been, before it hit the Internal Server Error.

Cheers,
Ian


On April 15, 2014 at 3:13:08 PM, Christopher Schultz 
(ch...@christopherschultz.net) wrote:

-BEGIN PGP SIGNED MESSAGE-  
Hash: SHA256  

Ian,  

On 4/15/14, 2:52 PM, Ian Long wrote:  
 I need some help from all the tomcat experts out there! I am using  
 tomcat behind apache httpd using mod_jk (1.2.39). About 50-100  
 times per day (out of many requests), I’m getting an internal  
 server error from Tomcat (error 500), without any exceptions in my  
 code, nor in Tomcat logs. I am only seeing the error in my New  
 Relic application monitoring tool, and I can see them in the mod_jk  
 logs if I turn on debug.  

As much fun as reading debug logs is, I wasn't able to find a problem  
in what you posted. Can you maybe highlight the section that indicates  
a problem?  

You also didn't post the exception from the Java side.  

 My server is not heavily loaded, with a load average hovering  
 around 0.5 on a 4 cpu system.  

How many httpd processes are serving this Tomcat? Do you have a  
mismatch between the number of connections coming from httpd and the  
number of connections available on the Tomcat side (Connector)?  

 You can see the internal error below at 13:59:13.790.  

Yes, we can see that there was an error, but not what the error was.  

 My worker setup is very simple:  
  
 worker.list=worker1 worker.worker1.port=8009  
 worker.worker1.host=127.0.0.1 worker.worker1.type=ajp13  
 worker.worker1.connection_pool_timeout=600  
 worker.worker1.connect_timeout=1  
  
 My Connector is also straightforward:  
  
 Connector port=8009 connectionTimeout=60  
 minSpareThreads=5 address=127.0.0.1 URIEncoding=UTF-8  
 enableLookups=false disableUploadTimeout=true  
 maxSpareThreads=75 maxThreads=800 protocol=AJP/1.3 /  

That all looks okay to me on the face of it. Just a note: you may want  
to use an Executor for better control of the thread pool.  

What connector are you actually using  

Is 800 threads enough to handle whatever might be coming from httpd  
(or all of your httpd instances)?  

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

iQIcBAEBCAAGBQJTTYSWAAoJEBzwKT+lPKRYzAkP/1Eeusa0Jh6uFoUFg0+wq/cO  
IF8F0DkQXZ5d1WrYtF3nRhcNXclgfl6kYpNyz9dSN55Sk2hrWFZcSGZnMu4ZZvQE  
jMg+555tPm36QmmAw3NzUm6wwTpcByjsZuj10fsigiaNW3ucAc2vsQ40ETH5LH+/  
E4crD6PFBSfNe5qcF51T6qcPVMMaXxjd5aBWRBfT2sUEogRg3o5Xm6zal+fwQrfR  
v4mbvwC4bz7ysCXGZQxSh7qQrorpXePIqCrUekAXxPRGxGXbUvj8+alVjY7p0Him  
w5WyyzbEqIymrARoip/+Xd1nRe7bWdt0sUBqBsKn7KKvUVvvIMbKmtAn398zcP9k  
l9746MuX0Z9JGuCNDeX/giaUeijckjyY2WjxWY/mU9v75v02jqpPlgzZZhELKv/3  
ScE13HgxzPHAiDNXHJuQsJL8HxRbtl29aPV+406kQbolzfMudxXPU2hSIi8MDiYn  
hTJSZwp47bQngD9Ym8v+EdeExvRg2xLhlIuJc5j+34E9J5R9p/QC7Ru6YyzpESO5  
olTzG/5Dt4V75q7mRkMtNiIWku9Ur5dtD+wjLAcQPmcoUuN0pX+rl2L4a7Wp+mqO  
rCuEZK5Y1S6/DBlu7UcBALe/T0OG8nzld4xLKZJR/oluuQSRXlRw6div4DaoqQMf  
4PjjoG0+Hj2KS2aQm/JQ  
=oqiw  
-END PGP SIGNATURE-  

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



Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Konstantin Kolinko
2014-04-15 22:52 GMT+04:00 Ian Long ian.l...@opterus.com:
 Hi All,

 I need some help from all the tomcat experts out there!  I am using tomcat 
 behind apache httpd using mod_jk (1.2.39).  About 50-100 times per day (out 
 of many requests), I’m getting an internal server error from Tomcat (error 
 500), without any exceptions in my code, nor in Tomcat logs.  I am only 
 seeing the error in my New Relic application monitoring tool, and I can see 
 them in the mod_jk logs if I turn on debug.

Can you update to 1.2.40 released today? It fixes several issues.

Is error 500 mentioned in Access log at Tomcat side?

If an error happens at some early state of processing (in Connector,
in CoyoteAdapter), then there may be nothing in the
catalina/localhost/web application logs, unless you turn on debug
logging at Tomcat side.

Best regards,
Konstantin Kolinko

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



Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

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

Ian,

On 4/15/14, 3:33 PM, Ian Long wrote:
 Thanks for the reply.
 
 It looks to me like tomcat just gave up partway through generating
 the request, I’m trying to figure out why.
 
 There are no exceptions in either my application logs or the tomcat
 log itself, which is frustrating.

Definitely. You checked catalina.out (or wherever stdout goes) as well
as your application's logs?

 Thanks, I’ll look into the executor.
 
 Apache matches what is set in my connector:
 
 IfModule prefork.c StartServers   8 MinSpareServers5 
 MaxSpareServers   20 ServerLimit  800 MaxClients   800 
 MaxRequestsPerChild  0 /IfModule
 
 Yes, the connector settings should be fine, there are usually less
 than 20 httpds.

You mean 20 httpd prefork processes, right? That should be fine: it
means you will need 20 connections available in Tomcat.

 Forgot to mention that it looks like tomcat returned around 50% of
 what the page should have been, before it hit the Internal Server
 Error.

Have you run out of memory or anything like that?

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

iQIcBAEBCAAGBQJTTY7wAAoJEBzwKT+lPKRYj6MQALTNWcCMZ7KI3+9PqBml7cId
isbPrfJuSfVbta6lJXI8yuwjm6V/CvFc1l7WK2/qBosXO0jMopCZvCkJOOwVyAYt
6cozaLsH1YeFFfoOT6t7d/QhAjiWtlT+/sxX80dW/7t8uwbTQ7Bji01I3dtvYQsF
f//HWfwDPSaxWBeXqZZ9bAG2uW7kiEExThlgQYbfcUnMPNB9Rc382GbI2/vIAtaR
9fWARiaLWfv4oaLzv67zAnFO/LV61HtLzA9PSy68do3AzZs0GvzKPPHlMdkobeGi
lBUeSA8t9ZH7qetBaUUEto50cE5KnPtRVQG4bpA+9BrUyKHFxeyrB+rT3s1EhUlZ
dH+QfioMEVQEAX/9tidA8pyWHiSNGYKCc2mAiIO2ahGWnx+IpUXOJz6bi0QnDJhp
KeGrMrrV0R6fcUXoDiQzQGRTtWriJvl8VkP/eow3BpUeLO0ICdfYd9jOn5e0xtMV
kO6X4N8aALyoTXtFm/0xTl01vXa5ZCWDdHRdtifcO9qAzHuGFYEjMaMeyUg08RAc
BeSW3K8B2gAoXcilgOPAxuae9NRRwyius+tC0lLi/LvQRRbpAxBTV9Gv/BT/fbjU
xndD+hVRiGcEoCmydngpmkGwqrroCfDWSyw4kYSxP9sGPRhNi3yPL3VlFBJXGUaC
mfJtAJ7Rp6Ch6KKzY/oS
=ag/e
-END PGP SIGNATURE-

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



Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread André Warnier

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Ian,

On 4/15/14, 3:33 PM, Ian Long wrote:

Thanks for the reply.

It looks to me like tomcat just gave up partway through generating
the request, I’m trying to figure out why.

There are no exceptions in either my application logs or the tomcat
log itself, which is frustrating.


Definitely. You checked catalina.out (or wherever stdout goes) as well
as your application's logs?


Thanks, I’ll look into the executor.

Apache matches what is set in my connector:

IfModule prefork.c StartServers   8 MinSpareServers5 
MaxSpareServers   20 ServerLimit  800 MaxClients   800 
MaxRequestsPerChild  0 /IfModule


Yes, the connector settings should be fine, there are usually less
than 20 httpds.


You mean 20 httpd prefork processes, right? That should be fine: it
means you will need 20 connections available in Tomcat.


Forgot to mention that it looks like tomcat returned around 50% of
what the page should have been, before it hit the Internal Server
Error.


Have you run out of memory or anything like that?


I was going to ask the same thing, slightly differently.

I can think of a scenario which might result in the same kind of symptoms, only I am not 
sure if it makes sense, Java-wise.


A request is recived by httpd, which passes it to Tomcat via mod_jk.
Tomcat allocates a thread to handle the request, and this thread starts running the 
corresponding application (webapp).  The webapp starts processing the request, produces 
some output, and then for some reason to be determined, it suddenly runs out of memory, 
and the thread running the application dies.
Because Tomcat has temporarily run out of memory, there is no way for the application to 
write anything to the logs, because this would require allocating some additional memory 
to do so, and there isn't any available.
So Tomcat just catches (a posteriori) the fact that the thread died, returning an error 
500 to mod_jk and httpd.
As soon as the offending thread dies, some memory is freed, and Tomcat appears to work 
normally again, including other requests to that same application, because those other 
requests do not cause the same spike in memory usage.


Tomcat/Java experts : Could something like this happen, and would it match the symptoms as 
described by Ian ?


And Ian, could it be that some requests to that application, because maybe of a parameter 
that is different from the other cases, could cause such a spike in memory requirements ?



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



Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Ian Long
I don’t think it’s memory related - Tomcat is allocated an 8GB heap and 
according to New Relic it has never used more than 6.5G; there is also lots of 
PermGen space available.

Cheers,
Ian


On April 15, 2014 at 4:18:11 PM, André Warnier (a...@ice-sa.com) wrote:

Christopher Schultz wrote:  
 -BEGIN PGP SIGNED MESSAGE-  
 Hash: SHA256  
  
 Ian,  
  
 On 4/15/14, 3:33 PM, Ian Long wrote:  
 Thanks for the reply.  
  
 It looks to me like tomcat just gave up partway through generating  
 the request, I’m trying to figure out why.  
  
 There are no exceptions in either my application logs or the tomcat  
 log itself, which is frustrating.  
  
 Definitely. You checked catalina.out (or wherever stdout goes) as well  
 as your application's logs?  
  
 Thanks, I’ll look into the executor.  
  
 Apache matches what is set in my connector:  
  
 IfModule prefork.c StartServers 8 MinSpareServers 5  
 MaxSpareServers 20 ServerLimit 800 MaxClients 800  
 MaxRequestsPerChild 0 /IfModule  
  
 Yes, the connector settings should be fine, there are usually less  
 than 20 httpds.  
  
 You mean 20 httpd prefork processes, right? That should be fine: it  
 means you will need 20 connections available in Tomcat.  
  
 Forgot to mention that it looks like tomcat returned around 50% of  
 what the page should have been, before it hit the Internal Server  
 Error.  
  
 Have you run out of memory or anything like that?  

I was going to ask the same thing, slightly differently.  

I can think of a scenario which might result in the same kind of symptoms, only 
I am not  
sure if it makes sense, Java-wise.  

A request is recived by httpd, which passes it to Tomcat via mod_jk.  
Tomcat allocates a thread to handle the request, and this thread starts running 
the  
corresponding application (webapp). The webapp starts processing the request, 
produces  
some output, and then for some reason to be determined, it suddenly runs out of 
memory,  
and the thread running the application dies.  
Because Tomcat has temporarily run out of memory, there is no way for the 
application to  
write anything to the logs, because this would require allocating some 
additional memory  
to do so, and there isn't any available.  
So Tomcat just catches (a posteriori) the fact that the thread died, returning 
an error  
500 to mod_jk and httpd.  
As soon as the offending thread dies, some memory is freed, and Tomcat appears 
to work  
normally again, including other requests to that same application, because 
those other  
requests do not cause the same spike in memory usage.  

Tomcat/Java experts : Could something like this happen, and would it match the 
symptoms as  
described by Ian ?  

And Ian, could it be that some requests to that application, because maybe of a 
parameter  
that is different from the other cases, could cause such a spike in memory 
requirements ?  


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



Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Ian Long
Yes, I checked both the tomcat log (I’ve configured tomcat to use log4j) as 
well as my application logs.

Yes, 20 httpd prefork processes.

I don’t think it’s memory related, I have an 8GB heap and tomcat averages 5GB 
usage and peeks around 6.5 before garbage collection kicks in.

Cheers,
Ian


On April 15, 2014 at 3:57:04 PM, Christopher Schultz 
(ch...@christopherschultz.net) wrote:

-BEGIN PGP SIGNED MESSAGE-  
Hash: SHA256  

Ian,  

On 4/15/14, 3:33 PM, Ian Long wrote:  
 Thanks for the reply.  
  
 It looks to me like tomcat just gave up partway through generating  
 the request, I’m trying to figure out why.  
  
 There are no exceptions in either my application logs or the tomcat  
 log itself, which is frustrating.  

Definitely. You checked catalina.out (or wherever stdout goes) as well  
as your application's logs?  

 Thanks, I’ll look into the executor.  
  
 Apache matches what is set in my connector:  
  
 IfModule prefork.c StartServers 8 MinSpareServers 5  
 MaxSpareServers 20 ServerLimit 800 MaxClients 800  
 MaxRequestsPerChild 0 /IfModule  
  
 Yes, the connector settings should be fine, there are usually less  
 than 20 httpds.  

You mean 20 httpd prefork processes, right? That should be fine: it  
means you will need 20 connections available in Tomcat.  

 Forgot to mention that it looks like tomcat returned around 50% of  
 what the page should have been, before it hit the Internal Server  
 Error.  

Have you run out of memory or anything like that?  

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

iQIcBAEBCAAGBQJTTY7wAAoJEBzwKT+lPKRYj6MQALTNWcCMZ7KI3+9PqBml7cId  
isbPrfJuSfVbta6lJXI8yuwjm6V/CvFc1l7WK2/qBosXO0jMopCZvCkJOOwVyAYt  
6cozaLsH1YeFFfoOT6t7d/QhAjiWtlT+/sxX80dW/7t8uwbTQ7Bji01I3dtvYQsF  
f//HWfwDPSaxWBeXqZZ9bAG2uW7kiEExThlgQYbfcUnMPNB9Rc382GbI2/vIAtaR  
9fWARiaLWfv4oaLzv67zAnFO/LV61HtLzA9PSy68do3AzZs0GvzKPPHlMdkobeGi  
lBUeSA8t9ZH7qetBaUUEto50cE5KnPtRVQG4bpA+9BrUyKHFxeyrB+rT3s1EhUlZ  
dH+QfioMEVQEAX/9tidA8pyWHiSNGYKCc2mAiIO2ahGWnx+IpUXOJz6bi0QnDJhp  
KeGrMrrV0R6fcUXoDiQzQGRTtWriJvl8VkP/eow3BpUeLO0ICdfYd9jOn5e0xtMV  
kO6X4N8aALyoTXtFm/0xTl01vXa5ZCWDdHRdtifcO9qAzHuGFYEjMaMeyUg08RAc  
BeSW3K8B2gAoXcilgOPAxuae9NRRwyius+tC0lLi/LvQRRbpAxBTV9Gv/BT/fbjU  
xndD+hVRiGcEoCmydngpmkGwqrroCfDWSyw4kYSxP9sGPRhNi3yPL3VlFBJXGUaC  
mfJtAJ7Rp6Ch6KKzY/oS  
=ag/e  
-END PGP SIGNATURE-  

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



Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread André Warnier

Ian,

On this list, it is kind of frowned-upon to top post. It is preferred when people answer 
a question, below the question.  Keeps things more logical in the reading sequence, and 
avoids having to scroll down to guess what you are responding to.


Ian Long wrote:

Yes, I checked both the tomcat log (I’ve configured tomcat to use log4j) as 
well as my application logs.

Yes, 20 httpd prefork processes.

I don’t think it’s memory related, I have an 8GB heap and tomcat averages 5GB 
usage and peeks around 6.5 before garbage collection kicks in.



Of course we do not know (yet) either what the cause of your problem is.
But we know that Tomcat would normally write something in its logs, when a server error 
500 happens.

So,
- either Tomcat and /or your application wrote something to a logfile, and you have not 
yet found that logfile

- or else Tomcat and/or your application crashed, but did not write anything to 
the logs.
In that last case, one of the most likely causes for such a behaviour is running out of 
memory.

Whether you believe that this is possible or not is your opinion.
But it is of the nature of software bugs, to be unexpected.
If they were expected, they would have been corrected already.


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



Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Ian Long

On April 15, 2014 at 4:58:28 PM, André Warnier 
(a...@ice-sa.com(mailto:a...@ice-sa.com)) wrote:

 Ian,
  
 On this list, it is kind of frowned-upon to top post. It is preferred when 
 people answer
 a question, below the question. Keeps things more logical in the reading 
 sequence, and
 avoids having to scroll down to guess what you are responding to.
  
 Ian Long wrote:
  Yes, I checked both the tomcat log (I’ve configured tomcat to use log4j) as 
  well as my application logs.
 
  Yes, 20 httpd prefork processes.
 
  I don’t think it’s memory related, I have an 8GB heap and tomcat averages 
  5GB usage and peeks around 6.5 before garbage collection kicks in.
 
  
 Of course we do not know (yet) either what the cause of your problem is.
 But we know that Tomcat would normally write something in its logs, when a 
 server error
 500 happens.
 So,
 - either Tomcat and /or your application wrote something to a logfile, and 
 you have not
 yet found that logfile
 - or else Tomcat and/or your application crashed, but did not write anything 
 to the logs.
 In that last case, one of the most likely causes for such a behaviour is 
 running out of
 memory.
 Whether you believe that this is possible or not is your opinion.
 But it is of the nature of software bugs, to be unexpected.
 If they were expected, they would have been corrected already.
  

Ok, thanks, didn’t know about the top post issue.

I have tomcat configured to log via log4j, and then there is my application 
log, those are the only two logs, and neither contains anything.

It’s not about believing, I have monitoring software that gives me precise 
information about memory use and there is no indication of a problem there.

Thanks,
Ian

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



Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread André Warnier

Ian Long wrote:

On April 15, 2014 at 4:58:28 PM, André Warnier 
(a...@ice-sa.com(mailto:a...@ice-sa.com)) wrote:


Ian,
 
On this list, it is kind of frowned-upon to top post. It is preferred when people answer

a question, below the question. Keeps things more logical in the reading 
sequence, and
avoids having to scroll down to guess what you are responding to.
 
Ian Long wrote:

Yes, I checked both the tomcat log (I’ve configured tomcat to use log4j) as 
well as my application logs.

Yes, 20 httpd prefork processes.

I don’t think it’s memory related, I have an 8GB heap and tomcat averages 5GB 
usage and peeks around 6.5 before garbage collection kicks in.

 
Of course we do not know (yet) either what the cause of your problem is.

But we know that Tomcat would normally write something in its logs, when a 
server error
500 happens.
So,
- either Tomcat and /or your application wrote something to a logfile, and you 
have not
yet found that logfile
- or else Tomcat and/or your application crashed, but did not write anything to 
the logs.
In that last case, one of the most likely causes for such a behaviour is 
running out of
memory.
Whether you believe that this is possible or not is your opinion.
But it is of the nature of software bugs, to be unexpected.
If they were expected, they would have been corrected already.
 


Ok, thanks, didn’t know about the top post issue.

I have tomcat configured to log via log4j, and then there is my application 
log, those are the only two logs, and neither contains anything.

It’s not about believing, I have monitoring software that gives me precise 
information about memory use and there is no indication of a problem there.



Would that monitoring software detect a very short occasional spike in the usage of 
memory, just before the thread running that application is blown out of the water and the 
memory usage returns to normal ?
Or is it something that updates its data on a 5-second interval and it just always misses 
the significant event ?


Honestly, I am just fishing and trying to find a clue (or rather, trying to help you find 
a clue). But some problems are just like that. You can only carefully eliminate the 
possible causes one after the other until you're left with one that you cannot eliminate.


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



Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Tim Watts
On Tue, 2014-04-15 at 17:12 -0400, Ian Long wrote:
   
  Ian Long wrote:
 I have tomcat configured to log via log4j, and then there is my
 application log, those are the only two logs, and neither contains
 anything.

They're empty?  Are you sure the logs are writable?  How much free space
is available on the file system where the logs reside?


 It’s not about believing, I have monitoring software that gives me
 precise information about memory use and there is no indication of a
 problem there.
 
 Thanks,
 Ian
 
 -
 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: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Ian Long
 
On April 15, 2014 at 6:50:05 PM, Tim Watts 
(t...@cliftonfarm.org(mailto:t...@cliftonfarm.org)) wrote:
 On Tue, 2014-04-15 at 17:12 -0400, Ian Long wrote:
  
   Ian Long wrote:
  I have tomcat configured to log via log4j, and then there is my
  application log, those are the only two logs, and neither contains
  anything.
  
 They're empty? Are you sure the logs are writable? How much free space
 is available on the file system where the logs reside?
  
  
  It’s not about believing, I have monitoring software that gives me
  precise information about memory use and there is no indication of a
  problem there.
 
  Thanks,
  Ian
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 

Sorry, I should have been more clear.  No, they are not empty, things
are being logged in both files, just not specifically for this problem.

There are no errors in the logs corresponding to the time I see the error
recorded in New Relic.

There is more than 100GB of free space on the drive.

Cheers,
Ian

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



RE: please help me how i can test that whether tomcat is up and running on

2011-10-03 Thread Jeffrey Janner
And the key to the proper answer is this bit from the OP:
 please help me how i can test that whether tomcat is up and running
 on a remote machine from a client machine.
The proper answer is he can't, as the server is only listening to the port 
via the localhost IP (aka loopback).  There is no way he will ever be able to 
check status this way from a client (remote) system.


 -Original Message-
 From: André Warnier [mailto:a...@ice-sa.com]
 Sent: Thursday, September 22, 2011 3:21 PM
 To: Tomcat Users List
 Subject: Re: please help me how i can test that whether tomcat is up
 and running on
 
 Hi.
 
 This is all very nicely explained, but maybe irrelevant.
 As far as I understand, the OP is trying to connect to the shutdown
 port mentioned in
 the Server tag, not to a Connector.  On that shutdown port, there
 should not be so
 many connection requests that they outrun the ability of Tomcat to
 accept a connection on it.
 I have a suspicion that the client does not connect to Tomcat though,
 maybe not even to
 the Tomcat host.
 But the OP did not really provide enough information to validate or
 invalidate that suspicion.
 
 Daniel Baktiar wrote:
  Hi Vishveswara,
 
  If you look at the behavior of ServerSocket, or any BSD-like
 listening
  server socket in general, there is something called 'backlog'.
 
 http://download.oracle.com/javase/1.4.2/docs/api/java/net/ServerSocket.
 html
 
  In short, backlog is something like a queue, if all your worker
 thread
  occupied, the listening server socket is allowed to hold and queue n
 number
  of connecting socket. Only when the all threads occupied and backlog
 full
  then you will get connection refused. The connection socket in the
 backlog
  is silently accepted but not served yet. If the connection socket was
 held
  in the backlog for quite some time (e.g. due to existing worker
 threads
  still busy), until it is time out for the connection client socket,
 then
  that what you have said may occur: the Tomcat is up and running, yet
 the
  connection client socket  java.net.ConnectException: Connection
 timeout:
  connect.
 
  So, what you can detect by a connection client socket is not whether
 Tomcat
  is up and running, instead whether Tomcat is up and running and
 able to
  accept and process one more client socket within the client time out
  interval. There are cases where Tomcat is up and running but is
 not able
  to accept and process one more client socket within the client time
 out
  interval (which is the case when java.net.ConnectException:
 Connection
  timeout: connect happens).
 
  There is an acceptCount attribute in server.xml Connector / which
  specifies the backlog. If you set this to 0, it may behave the way
 you want,
  but you have to test yourself whether that will be good for the
 system
  behaviour and performance from the user point of view.
 
  ---
  daniel baktiar
 
  On Thu, Sep 22, 2011 at 18:30, vishveswara chary varanasi 
  vvchary.varan...@gmail.com wrote:
 
  Tomcat community has a wiki which providded the
 
 
 http://wiki.apache.org/tomcat/HowTo#How_do_I_check_whether_Tomcat_is_UP
 _or_DOWN.3F_There_is_no_status_command
 
  i have tried to connect to tomcat using sockect connection on the
 port
  where the tomcat running
 
   Socket socket = new Socket(hostname, port);
 
  this works some time and some time even if the tomcat is up and
  runnning this is throwing the java.net.ConnectException: Connection
  timed out: connect.
 
  please help me how i can test that whether tomcat is up and running
 on
  a remote machine from a client machine.
 
  Thanks
 
  
 -
  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
 

__

Confidentiality Notice:  This Transmission (including any attachments) may 
contain information that is privileged, confidential, and exempt from 
disclosure under applicable law.  If the reader of this message is not the 
intended recipient you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly prohibited.  

If you have received this transmission in error, please immediately reply to 
the sender or telephone (512) 343-9100 and delete this transmission from your 
system.


Re: please help me how i can test that whether tomcat is up and running on

2011-10-03 Thread André Warnier

Coming late to the party, hm ?

Jeffrey Janner wrote:

And the key to the proper answer is this bit from the OP:

please help me how i can test that whether tomcat is up and running
on a remote machine from a client machine.

The proper answer is he can't, as the server is only listening to the port 
via the localhost IP (aka loopback).  There is no way he will ever be able to check 
status this way from a client (remote) system.


As was mentioned in the first answer to the OP's post, on 22/9.
But the OP himself seems to have lost interest a long time ago, and never even posted a 
message indicating whether he had solved his problem.

Ungrateful, they are.


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



Re: please help me how i can test that whether tomcat is up and running on a remote machine from a client machine.

2011-09-22 Thread André Warnier

vishveswara chary varanasi wrote:

Tomcat community has a wiki which providded the
http://wiki.apache.org/tomcat/HowTo#How_do_I_check_whether_Tomcat_is_UP_or_DOWN.3F_There_is_no_status_command

i have tried to connect to tomcat using sockect connection on the port
where the tomcat running



which is ?


 Socket socket = new Socket(hostname, port);



What is hostname in your case ? can the client resolve this name to an IP address 
corresponding to the Tomcat host ?



this works some time and some time even if the tomcat is up and
runnning this is throwing the java.net.ConnectException: Connection
timed out: connect.



When does it work and when not ?


please help me how i can test that whether tomcat is up and running on
a remote machine from a client machine.



Read this carefully : http://tomcat.apache.org/tomcat-7.0-doc/config/server.html
(all of it, but particularly the address attribute).

Unless I am mistaken, it means that by default Tomcat only listens, on that port, on the 
address localhost, which usually is the IP address 127.0.0.1.

In other words, by default this will only work from a client running on the 
same host.

By using e.g. : address=0.0.0.0
you could tell Tomcat to bind this listening socket to all the IP addresses of the Tomcat 
host.  But then, you have to be extra careful not to allow just any client to stop Tomcat, 
just by connecting to that IP/port and sending SHUTDOWN.


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



Re: please help me how i can test that whether tomcat is up and running on

2011-09-22 Thread Daniel Baktiar
Hi Vishveswara,

If you look at the behavior of ServerSocket, or any BSD-like listening
server socket in general, there is something called 'backlog'.
http://download.oracle.com/javase/1.4.2/docs/api/java/net/ServerSocket.html

In short, backlog is something like a queue, if all your worker thread
occupied, the listening server socket is allowed to hold and queue n number
of connecting socket. Only when the all threads occupied and backlog full
then you will get connection refused. The connection socket in the backlog
is silently accepted but not served yet. If the connection socket was held
in the backlog for quite some time (e.g. due to existing worker threads
still busy), until it is time out for the connection client socket, then
that what you have said may occur: the Tomcat is up and running, yet the
connection client socket  java.net.ConnectException: Connection timeout:
connect.

So, what you can detect by a connection client socket is not whether Tomcat
is up and running, instead whether Tomcat is up and running and able to
accept and process one more client socket within the client time out
interval. There are cases where Tomcat is up and running but is not able
to accept and process one more client socket within the client time out
interval (which is the case when java.net.ConnectException: Connection
timeout: connect happens).

There is an acceptCount attribute in server.xml Connector / which
specifies the backlog. If you set this to 0, it may behave the way you want,
but you have to test yourself whether that will be good for the system
behaviour and performance from the user point of view.

---
daniel baktiar

On Thu, Sep 22, 2011 at 18:30, vishveswara chary varanasi 
vvchary.varan...@gmail.com wrote:

 Tomcat community has a wiki which providded the

 http://wiki.apache.org/tomcat/HowTo#How_do_I_check_whether_Tomcat_is_UP_or_DOWN.3F_There_is_no_status_command

 i have tried to connect to tomcat using sockect connection on the port
 where the tomcat running

  Socket socket = new Socket(hostname, port);

 this works some time and some time even if the tomcat is up and
 runnning this is throwing the java.net.ConnectException: Connection
 timed out: connect.

 please help me how i can test that whether tomcat is up and running on
 a remote machine from a client machine.

 Thanks

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




Re: please help me how i can test that whether tomcat is up and running on

2011-09-22 Thread André Warnier

Hi.

This is all very nicely explained, but maybe irrelevant.
As far as I understand, the OP is trying to connect to the shutdown port mentioned in 
the Server tag, not to a Connector.  On that shutdown port, there should not be so 
many connection requests that they outrun the ability of Tomcat to accept a connection on it.
I have a suspicion that the client does not connect to Tomcat though, maybe not even to 
the Tomcat host.

But the OP did not really provide enough information to validate or invalidate 
that suspicion.

Daniel Baktiar wrote:

Hi Vishveswara,

If you look at the behavior of ServerSocket, or any BSD-like listening
server socket in general, there is something called 'backlog'.
http://download.oracle.com/javase/1.4.2/docs/api/java/net/ServerSocket.html

In short, backlog is something like a queue, if all your worker thread
occupied, the listening server socket is allowed to hold and queue n number
of connecting socket. Only when the all threads occupied and backlog full
then you will get connection refused. The connection socket in the backlog
is silently accepted but not served yet. If the connection socket was held
in the backlog for quite some time (e.g. due to existing worker threads
still busy), until it is time out for the connection client socket, then
that what you have said may occur: the Tomcat is up and running, yet the
connection client socket  java.net.ConnectException: Connection timeout:
connect.

So, what you can detect by a connection client socket is not whether Tomcat
is up and running, instead whether Tomcat is up and running and able to
accept and process one more client socket within the client time out
interval. There are cases where Tomcat is up and running but is not able
to accept and process one more client socket within the client time out
interval (which is the case when java.net.ConnectException: Connection
timeout: connect happens).

There is an acceptCount attribute in server.xml Connector / which
specifies the backlog. If you set this to 0, it may behave the way you want,
but you have to test yourself whether that will be good for the system
behaviour and performance from the user point of view.

---
daniel baktiar

On Thu, Sep 22, 2011 at 18:30, vishveswara chary varanasi 
vvchary.varan...@gmail.com wrote:


Tomcat community has a wiki which providded the

http://wiki.apache.org/tomcat/HowTo#How_do_I_check_whether_Tomcat_is_UP_or_DOWN.3F_There_is_no_status_command

i have tried to connect to tomcat using sockect connection on the port
where the tomcat running

 Socket socket = new Socket(hostname, port);

this works some time and some time even if the tomcat is up and
runnning this is throwing the java.net.ConnectException: Connection
timed out: connect.

please help me how i can test that whether tomcat is up and running on
a remote machine from a client machine.

Thanks

-
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: please help me how i can test that whether tomcat is up and running on

2011-09-22 Thread Daniel Baktiar
Oops. I missed that. You've pointed it straight!

---
daniel baktiar

On Fri, Sep 23, 2011 at 04:20, André Warnier a...@ice-sa.com wrote:

 Hi.

 This is all very nicely explained, but maybe irrelevant.
 As far as I understand, the OP is trying to connect to the shutdown port
 mentioned in the Server tag, not to a Connector.  On that shutdown port,
 there should not be so many connection requests that they outrun the ability
 of Tomcat to accept a connection on it.
 I have a suspicion that the client does not connect to Tomcat though, maybe
 not even to the Tomcat host.
 But the OP did not really provide enough information to validate or
 invalidate that suspicion.


 Daniel Baktiar wrote:

 Hi Vishveswara,

 If you look at the behavior of ServerSocket, or any BSD-like listening
 server socket in general, there is something called 'backlog'.
 http://download.oracle.com/**javase/1.4.2/docs/api/java/**
 net/ServerSocket.htmlhttp://download.oracle.com/javase/1.4.2/docs/api/java/net/ServerSocket.html

 In short, backlog is something like a queue, if all your worker thread
 occupied, the listening server socket is allowed to hold and queue n
 number
 of connecting socket. Only when the all threads occupied and backlog full
 then you will get connection refused. The connection socket in the
 backlog
 is silently accepted but not served yet. If the connection socket was held
 in the backlog for quite some time (e.g. due to existing worker threads
 still busy), until it is time out for the connection client socket, then
 that what you have said may occur: the Tomcat is up and running, yet the
 connection client socket  java.net.ConnectException: Connection timeout:
 connect.

 So, what you can detect by a connection client socket is not whether
 Tomcat
 is up and running, instead whether Tomcat is up and running and able to
 accept and process one more client socket within the client time out
 interval. There are cases where Tomcat is up and running but is not
 able
 to accept and process one more client socket within the client time out
 interval (which is the case when java.net.ConnectException: Connection
 timeout: connect happens).

 There is an acceptCount attribute in server.xml Connector / which
 specifies the backlog. If you set this to 0, it may behave the way you
 want,
 but you have to test yourself whether that will be good for the system
 behaviour and performance from the user point of view.

 ---
 daniel baktiar

 On Thu, Sep 22, 2011 at 18:30, vishveswara chary varanasi 
 vvchary.varan...@gmail.com wrote:

  Tomcat community has a wiki which providded the

 http://wiki.apache.org/tomcat/**HowTo#How_do_I_check_whether_**
 Tomcat_is_UP_or_DOWN.3F_There_**is_no_status_commandhttp://wiki.apache.org/tomcat/HowTo#How_do_I_check_whether_Tomcat_is_UP_or_DOWN.3F_There_is_no_status_command

 i have tried to connect to tomcat using sockect connection on the port
 where the tomcat running

  Socket socket = new Socket(hostname, port);

 this works some time and some time even if the tomcat is up and
 runnning this is throwing the java.net.ConnectException: Connection
 timed out: connect.

 please help me how i can test that whether tomcat is up and running on
 a remote machine from a client machine.

 Thanks

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





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




RE: Please Help

2011-03-29 Thread Joseph Morgan
So. *what* is it not showing?  Is it a JSP?  If so, what is the time on 
your tomcat server compared to the time of the JSP.  We have this sometimes 
when we deploy and find we have to update a JSP within a very short period of 
time, and our Tomcat server in our COLO is 2 time zones off.  The JSP gets the 
local time, and if the server has compiled it, then it thinks the new JSP has 
already been compiled.

-Original Message-
From: Jinal Dhruv [mailto:dhruv.ji...@yahoo.com] 
Sent: Tuesday, March 29, 2011 1:32 PM
To: Tomcat
Subject: Please Help

One problem I am having Using Tomcat 6.0 is it doesn't reflect the change what 
I made instantaneously..
I mean it keep showing old results though I have disabled option of 
'Remembering History' in browser..
What I feel is it is fetching old results from somewhere and now it's not by 
browser..
So how to configure Tomcat 6.0 so that it never remember anything and do 
process entirely new every time when it comes the execution part..

Regards,Jinal Dhruv



Re: Please Help

2011-03-29 Thread Jinal Dhruv
I am having problem particularly with running Servlets programs..
Though I clear browser history, delete .class file and comile .java file again, 
it shows old results..So from where it come? Is Tomcat is storing it at 
somewhere?




From: Joseph Morgan joseph.mor...@ignitesales.com
To: Tomcat Users List users@tomcat.apache.org; Jinal Dhruv 
dhruv.ji...@yahoo.com
Sent: Wednesday, 30 March 2011 12:08 AM
Subject: Re: Please Help

So. *what* is it not showing?  Is it a JSP?  If so, what is the time on 
your tomcat server compared to the time of the JSP.  We have this sometimes 
when we deploy and find we have to update a JSP within a very short period of 
time, and our Tomcat server in our COLO is 2 time zones off.  The JSP gets the 
local time, and if the server has compiled it, then it thinks the new JSP has 
already been compiled.

-Original Message-
From: Jinal Dhruv [mailto:dhruv.ji...@yahoo.com] 
Sent: Tuesday, March 29, 2011 1:32 PM
To: Tomcat
Subject: Please Help

One problem I am having Using Tomcat 6.0 is it doesn't reflect the change what 
I made instantaneously..
I mean it keep showing old results though I have disabled option of 
'Remembering History' in browser..
What I feel is it is fetching old results from somewhere and now it's not by 
browser..
So how to configure Tomcat 6.0 so that it never remember anything and do 
process entirely new every time when it comes the execution part..

Regards,Jinal Dhruv



RE: Please Help

2011-03-29 Thread Joseph Morgan
You can 1) Restart Tomcat or your web app, or 2) read this:

http://stackoverflow.com/questions/415520/how-do-i-make-tomcat-stop-caching-my-servlet-responses


-Original Message-
From: Jinal Dhruv [mailto:dhruv.ji...@yahoo.com] 
Sent: Tuesday, March 29, 2011 1:47 PM
To: Tomcat Users List
Subject: Re: Please Help

I am having problem particularly with running Servlets programs..
Though I clear browser history, delete .class file and comile .java file again, 
it shows old results..So from where it come? Is Tomcat is storing it at 
somewhere?




From: Joseph Morgan joseph.mor...@ignitesales.com
To: Tomcat Users List users@tomcat.apache.org; Jinal Dhruv 
dhruv.ji...@yahoo.com
Sent: Wednesday, 30 March 2011 12:08 AM
Subject: Re: Please Help

So. *what* is it not showing?  Is it a JSP?  If so, what is the time on 
your tomcat server compared to the time of the JSP.  We have this sometimes 
when we deploy and find we have to update a JSP within a very short period of 
time, and our Tomcat server in our COLO is 2 time zones off.  The JSP gets the 
local time, and if the server has compiled it, then it thinks the new JSP has 
already been compiled.

-Original Message-
From: Jinal Dhruv [mailto:dhruv.ji...@yahoo.com] 
Sent: Tuesday, March 29, 2011 1:32 PM
To: Tomcat
Subject: Please Help

One problem I am having Using Tomcat 6.0 is it doesn't reflect the change what 
I made instantaneously..
I mean it keep showing old results though I have disabled option of 
'Remembering History' in browser..
What I feel is it is fetching old results from somewhere and now it's not by 
browser..
So how to configure Tomcat 6.0 so that it never remember anything and do 
process entirely new every time when it comes the execution part..

Regards,Jinal Dhruv


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



Re: Please Help

2011-03-29 Thread Jinal Dhruv
Actually, I am using Tomcat from last 15 days only..One thing worked is if I 
restart PC, then it works fine..so it looks like restarting Tomcat works..
The problem on given link is excatly what I am facing..Thanx a ton for this..
but still can U tell me exactly how to restart Tomcat without restarting PC as 
one green signal is not appearing in my taskbar and I am using Windows7 as well 
as what do you mean by restarting webapp?




From: Joseph Morgan joseph.mor...@ignitesales.com
To: Tomcat Users List users@tomcat.apache.org; Jinal Dhruv 
dhruv.ji...@yahoo.com
Sent: Wednesday, 30 March 2011 12:36 AM
Subject: Re: Please Help

You can 1) Restart Tomcat or your web app, or 2) read this:

http://stackoverflow.com/questions/415520/how-do-i-make-tomcat-stop-caching-my-servlet-responses


-Original Message-
From: Jinal Dhruv [mailto:dhruv.ji...@yahoo.com] 
Sent: Tuesday, March 29, 2011 1:47 PM
To: Tomcat Users List
Subject: Re: Please Help

I am having problem particularly with running Servlets programs..
Though I clear browser history, delete .class file and comile .java file again, 
it shows old results..So from where it come? Is Tomcat is storing it at 
somewhere?




From: Joseph Morgan joseph.mor...@ignitesales.com
To: Tomcat Users List users@tomcat.apache.org; Jinal Dhruv 
dhruv.ji...@yahoo.com
Sent: Wednesday, 30 March 2011 12:08 AM
Subject: Re: Please Help

So. *what* is it not showing?  Is it a JSP?  If so, what is the time on 
your tomcat server compared to the time of the JSP.  We have this sometimes 
when we deploy and find we have to update a JSP within a very short period of 
time, and our Tomcat server in our COLO is 2 time zones off.  The JSP gets the 
local time, and if the server has compiled it, then it thinks the new JSP has 
already been compiled.

-Original Message-
From: Jinal Dhruv [mailto:dhruv.ji...@yahoo.com] 
Sent: Tuesday, March 29, 2011 1:32 PM
To: Tomcat
Subject: Please Help

One problem I am having Using Tomcat 6.0 is it doesn't reflect the change what 
I made instantaneously..
I mean it keep showing old results though I have disabled option of 
'Remembering History' in browser..
What I feel is it is fetching old results from somewhere and now it's not by 
browser..
So how to configure Tomcat 6.0 so that it never remember anything and do 
process entirely new every time when it comes the execution part..

Regards,Jinal Dhruv


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



RE: Please Help

2011-03-29 Thread Propes, Barry L
If you can get to your Manager app in Tomcat, you should be able to reload, or 
at least stop and start the webapp there.

-Original Message-
From: Jinal Dhruv [mailto:dhruv.ji...@yahoo.com]
Sent: Tuesday, March 29, 2011 2:12 PM
To: Tomcat Users List
Subject: Re: Please Help

Actually, I am using Tomcat from last 15 days only..One thing worked is if I 
restart PC, then it works fine..so it looks like restarting Tomcat works..
The problem on given link is excatly what I am facing..Thanx a ton for this..
but still can U tell me exactly how to restart Tomcat without restarting PC as 
one green signal is not appearing in my taskbar and I am using Windows7 as well 
as what do you mean by restarting webapp?




From: Joseph Morgan joseph.mor...@ignitesales.com
To: Tomcat Users List users@tomcat.apache.org; Jinal Dhruv 
dhruv.ji...@yahoo.com
Sent: Wednesday, 30 March 2011 12:36 AM
Subject: Re: Please Help

You can 1) Restart Tomcat or your web app, or 2) read this:

http://stackoverflow.com/questions/415520/how-do-i-make-tomcat-stop-caching-my-servlet-responses


-Original Message-
From: Jinal Dhruv [mailto:dhruv.ji...@yahoo.com]
Sent: Tuesday, March 29, 2011 1:47 PM
To: Tomcat Users List
Subject: Re: Please Help

I am having problem particularly with running Servlets programs..
Though I clear browser history, delete .class file and comile .java file again, 
it shows old results..So from where it come? Is Tomcat is storing it at 
somewhere?




From: Joseph Morgan joseph.mor...@ignitesales.com
To: Tomcat Users List users@tomcat.apache.org; Jinal Dhruv 
dhruv.ji...@yahoo.com
Sent: Wednesday, 30 March 2011 12:08 AM
Subject: Re: Please Help

So. *what* is it not showing?  Is it a JSP?  If so, what is the time on 
your tomcat server compared to the time of the JSP.  We have this sometimes 
when we deploy and find we have to update a JSP within a very short period of 
time, and our Tomcat server in our COLO is 2 time zones off.  The JSP gets the 
local time, and if the server has compiled it, then it thinks the new JSP has 
already been compiled.

-Original Message-
From: Jinal Dhruv [mailto:dhruv.ji...@yahoo.com]
Sent: Tuesday, March 29, 2011 1:32 PM
To: Tomcat
Subject: Please Help

One problem I am having Using Tomcat 6.0 is it doesn't reflect the change what 
I made instantaneously..
I mean it keep showing old results though I have disabled option of 
'Remembering History' in browser..
What I feel is it is fetching old results from somewhere and now it's not by 
browser..
So how to configure Tomcat 6.0 so that it never remember anything and do 
process entirely new every time when it comes the execution part..

Regards,Jinal Dhruv


-
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: Please Help

2011-03-29 Thread Jinal Dhruv
HOw to get to Manager app? don't get exactly..




From: Propes, Barry L  barry.l.pro...@citi.com
To: Tomcat Users List users@tomcat.apache.org; Jinal Dhruv 
dhruv.ji...@yahoo.com
Sent: Wednesday, 30 March 2011 12:49 AM
Subject: RE: Please Help

If you can get to your Manager app in Tomcat, you should be able to reload, or 
at least stop and start the webapp there.

-Original Message-
From: Jinal Dhruv [mailto:dhruv.ji...@yahoo.com]
Sent: Tuesday, March 29, 2011 2:12 PM
To: Tomcat Users List
Subject: Re: Please Help

Actually, I am using Tomcat from last 15 days only..One thing worked is if I 
restart PC, then it works fine..so it looks like restarting Tomcat works..
The problem on given link is excatly what I am facing..Thanx a ton for this..
but still can U tell me exactly how to restart Tomcat without restarting PC as 
one green signal is not appearing in my taskbar and I am using Windows7 as well 
as what do you mean by restarting webapp?




From: Joseph Morgan joseph.mor...@ignitesales.com
To: Tomcat Users List users@tomcat.apache.org; Jinal Dhruv 
dhruv.ji...@yahoo.com
Sent: Wednesday, 30 March 2011 12:36 AM
Subject: Re: Please Help

You can 1) Restart Tomcat or your web app, or 2) read this:

http://stackoverflow.com/questions/415520/how-do-i-make-tomcat-stop-caching-my-servlet-responses


-Original Message-
From: Jinal Dhruv [mailto:dhruv.ji...@yahoo.com]
Sent: Tuesday, March 29, 2011 1:47 PM
To: Tomcat Users List
Subject: Re: Please Help

I am having problem particularly with running Servlets programs..
Though I clear browser history, delete .class file and comile .java file again, 
it shows old results..So from where it come? Is Tomcat is storing it at 
somewhere?




From: Joseph Morgan joseph.mor...@ignitesales.com
To: Tomcat Users List users@tomcat.apache.org; Jinal Dhruv 
dhruv.ji...@yahoo.com
Sent: Wednesday, 30 March 2011 12:08 AM
Subject: Re: Please Help

So. *what* is it not showing?  Is it a JSP?  If so, what is the time on 
your tomcat server compared to the time of the JSP.  We have this sometimes 
when we deploy and find we have to update a JSP within a very short period of 
time, and our Tomcat server in our COLO is 2 time zones off.  The JSP gets the 
local time, and if the server has compiled it, then it thinks the new JSP has 
already been compiled.

-Original Message-
From: Jinal Dhruv [mailto:dhruv.ji...@yahoo.com]
Sent: Tuesday, March 29, 2011 1:32 PM
To: Tomcat
Subject: Please Help

One problem I am having Using Tomcat 6.0 is it doesn't reflect the change what 
I made instantaneously..
I mean it keep showing old results though I have disabled option of 
'Remembering History' in browser..
What I feel is it is fetching old results from somewhere and now it's not by 
browser..
So how to configure Tomcat 6.0 so that it never remember anything and do 
process entirely new every time when it comes the execution part..

Regards,Jinal Dhruv


-
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: Please Help

2011-03-29 Thread Joseph Morgan
I suspect you installed Tomcat as a service.  If so, you should be able to find 
the tomcat monitoring application.  Click on your start icon in Win7 and then, 
in the search box, type Tomcat.  Hopefully, you will see a Monitor Tomcat 
entry.  Right-click over that, and select Run As Administrator.  Once you get 
the screen up, you should have a set of tabs (General, Log On, Logging, ...).  
On the General tab, you should have buttons along the bottom, Start, Stop, 
Pause, and Restart.  If the tomcat service is running, click Stop.  Once 
stopped, click Start.

To restart just the web app, you can run the manager application (if you 
installed it).  Open a browser window and enter:

http://localhost:8080/manager/html

If that works, then you installed the manager app, and this will allow you to 
control individual applications.

-Original Message-
From: Jinal Dhruv [mailto:dhruv.ji...@yahoo.com] 
Sent: Tuesday, March 29, 2011 2:12 PM
To: Tomcat Users List
Subject: Re: Please Help

Actually, I am using Tomcat from last 15 days only..One thing worked is if I 
restart PC, then it works fine..so it looks like restarting Tomcat works..
The problem on given link is excatly what I am facing..Thanx a ton for this..
but still can U tell me exactly how to restart Tomcat without restarting PC as 
one green signal is not appearing in my taskbar and I am using Windows7 as well 
as what do you mean by restarting webapp?




From: Joseph Morgan joseph.mor...@ignitesales.com
To: Tomcat Users List users@tomcat.apache.org; Jinal Dhruv 
dhruv.ji...@yahoo.com
Sent: Wednesday, 30 March 2011 12:36 AM
Subject: Re: Please Help

You can 1) Restart Tomcat or your web app, or 2) read this:

http://stackoverflow.com/questions/415520/how-do-i-make-tomcat-stop-caching-my-servlet-responses


-Original Message-
From: Jinal Dhruv [mailto:dhruv.ji...@yahoo.com] 
Sent: Tuesday, March 29, 2011 1:47 PM
To: Tomcat Users List
Subject: Re: Please Help

I am having problem particularly with running Servlets programs..
Though I clear browser history, delete .class file and comile .java file again, 
it shows old results..So from where it come? Is Tomcat is storing it at 
somewhere?




From: Joseph Morgan joseph.mor...@ignitesales.com
To: Tomcat Users List users@tomcat.apache.org; Jinal Dhruv 
dhruv.ji...@yahoo.com
Sent: Wednesday, 30 March 2011 12:08 AM
Subject: Re: Please Help

So. *what* is it not showing?  Is it a JSP?  If so, what is the time on 
your tomcat server compared to the time of the JSP.  We have this sometimes 
when we deploy and find we have to update a JSP within a very short period of 
time, and our Tomcat server in our COLO is 2 time zones off.  The JSP gets the 
local time, and if the server has compiled it, then it thinks the new JSP has 
already been compiled.

-Original Message-
From: Jinal Dhruv [mailto:dhruv.ji...@yahoo.com] 
Sent: Tuesday, March 29, 2011 1:32 PM
To: Tomcat
Subject: Please Help

One problem I am having Using Tomcat 6.0 is it doesn't reflect the change what 
I made instantaneously..
I mean it keep showing old results though I have disabled option of 
'Remembering History' in browser..
What I feel is it is fetching old results from somewhere and now it's not by 
browser..
So how to configure Tomcat 6.0 so that it never remember anything and do 
process entirely new every time when it comes the execution part..

Regards,Jinal Dhruv


-
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: Please help - Question on Tomcat Startup

2011-01-21 Thread Savoy, Melinda
Sorry for the email below.  I got my problem fixed.  For some reason, some 
files from my LIB directory were deleted.   The only thing I had done in 
eclipse was to add a web service project and why my files in tomcat would be 
deleted in beyond me.

If anyone has seen this before any help/response would be appreciated.  Thanks 
anyway.

Regards.

_
From: Savoy, Melinda
Sent: Friday, January 21, 2011 6:35 AM
To: 'users@tomcat.apache.org'
Subject: Please help - Question on Tomcat Startup


I have what I think is a weird situation.

I have two workspaces in 2 different versions of Eclipse that reside in 2 
different directories and whereby I have 2 different versions of the tomcat 
server that reside in 2 different directories on my Windows XP box.

In one my workspaces, which is a test workspace, I was testing how to do a web 
service by choosing the web service project option in Eclipse Helios.  I am 
running Tomcat 6.0.30.  What is WEIRD, is that I then went to another workspace 
where I'm running Eclipse Galileo and Tomcat 6.0.18 and tried to start my 
Tomcat server I got the 2 FAIL errors below which is the same error(s) I got on 
my other workspace.  I am not understanding what change on my box was able to 
create these errors on 2 different tomcat servers.

Any help would be greatly appreciated.  Thanks.

05:47:50,755 WARN  [Digester] 
[SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 
'source' to 'org.eclipse.jst.jee.server:SCMIS' did not find a matching property.
05:47:50,770 INFO  [AprLifecycleListener] The APR based Apache Tomcat Native 
library which allows optimal performance in production environments was not 
found on the java.library.path: C:\Program 
Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program
 Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\Program 
Files\IBM\SDP70Shared\AgentController\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
 Files\Microsoft SQL Server\80\Tools\BINN;C:\Program 
Files\Rational\common;C:\Program Files\Windows Imaging\;c:\Program 
Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL 
Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL 
Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL 
Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual 
Studio .NET 2005\Common7\IDE\PrivateAssemblies\;C:\Program 
Files\NetManage\RUMBA\System;C:\Program Files\NetManage\RUMBA\;C:\Program 
Files\Microsoft Application Virtualization 
Client;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Hyperion/common/EssbaseRTC/9.3.1/bin;C:\Hyperion\common\ODBC\Merant\5.2\Drivers;C:\Hyperion\BIPlus\bin;C:\Hyperion\BIPlus\lib;C:\Hyperion\common\SAP\bin;C:\Program
 Files\Microsoft Network Monitor 3\;C:\Program Files\Microsoft SQL 
Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL 
Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL 
Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual 
Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program 
Files\QuickTime\QTSystem\;c:\apache-ant-1.8.2\
05:47:50,802 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-8080
05:47:50,802 INFO  [Catalina] Initialization processed in 379 ms
05:47:50,833 INFO  [StandardService] Starting service Catalina
05:47:50,833 INFO  [StandardEngine] Starting Servlet Engine: Apache 
Tomcat/6.0.18
05:47:51,380 DEBUG [NegotiateSecurityFilter] 
[waffle.servlet.NegotiateSecurityFilter] loaded
05:47:51,380 DEBUG [NegotiateSecurityFilter] initializing default secuirty 
filter providers
05:47:51,395 INFO  [NegotiateSecurityFilter] 
[waffle.servlet.NegotiateSecurityFilter] started
05:47:51,442 DEBUG [PooledDataSource] Creating PooledDataSource from JDBC 
driver com.cca.j204.J204Driver 
[URL=JDBC:J204://THRDEVL:41000/SQL/CNCTSTRD/STARD1/isolation level=RU]
05:47:51,458 INFO  [ResolverUtil] Scanning for classes in 
[/C:/eclipse-3.5-SR1/Workspace/Phase V 
Dev/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SCMIS/WEB-INF/classes/org/texashealth/scmis/stripes/ext/]
 matching criteria: is assignable to Configuration
05:47:51,489 INFO  [ResolverUtil] Scanning for classes in 
[/C:/eclipse-3.5-SR1/Workspace/Phase V 
Dev/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SCMIS/WEB-INF/classes/org/texashealth/scmis/stripes/ext/]
 matching criteria: is assignable to ActionResolver
05:47:51,489 INFO  [ResolverUtil] Scanning for classes in 
[/C:/eclipse-3.5-SR1/Workspace/Phase V 
Dev/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SCMIS/WEB-INF/classes/org/texashealth/scmis/stripes/]
 matching criteria: is assignable to ActionBean
05:47:51,583 INFO  [ResolverUtil] Scanning for classes in 
[/C:/eclipse-3.5-SR1/Workspace/Phase V 
Dev/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SCMIS/WEB-INF/classes/org/texashealth/scmis/stripes/ext/]
 matching criteria: is assignable to 

Re: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chris,

On 11/24/2010 9:47 AM, Pid wrote:
 SEVERE: A web application appears to have started a thread named
 [MultiThreadedHttpConnectionManager cleanup] but has failed to stop it.
 This is very likely to create a memory leak.
 
 MultiThreadedHttpConnectionManager is a class from HTTP Client.

If you are using Axis and it's creating a
MultiThreadedHttpConnectionManager, it should be stopping it when the
webapp undeploys.

So, the question is: are you properly shutting-down the Axis services
when your webapp shuts down? If you are, then this is a bug in Axis that
should be reported to them.

If you aren't, then you need to do so.

If you want a quick solution, you can always write your own
ServletContextListener and call
MultiThreadedHttpConnectionManager.shutdownAll() -- it's a static method
that looks like it'll kill all threads from all
MultiThreadedHttpConnectionManager objects. Seems like a reasonable
hack, as long as commons-http-client was loaded by the WebappClassLoader. ;)

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

iEYEARECAAYFAkzxDgkACgkQ9CaO5/Lv0PAYagCgjN6tvR47NshlNwSojGO7LOp2
3eAAnisYOvsvoZBL8R34+azn+K3ZTpoi
=RAzC
-END PGP SIGNATURE-

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



RE: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-27 Thread Emerson, Christopher
That scares me a little bit.  If I have 100+ concurrent users, won't
that effect the other users?

I've gone through every blog, jira, axis2 documentation site in the past
4 weeks and I've tried writing the client many ways with no luck so I
was pretty sure I am closing down the client the way I am supposed to.

Is it possible that I have something as simple as an incorrect web.xml
configuration?

Another thing I noticed is that the servlet api is in Tomcat's lib
directory.  Should that be in the individual webapp directories?

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Saturday, November 27, 2010 8:56 AM
To: Tomcat Users List
Subject: Re: Please help ... [MultiThreadedHttpConnectionManager
cleanup]

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chris,

On 11/24/2010 9:47 AM, Pid wrote:
 SEVERE: A web application appears to have started a thread named
 [MultiThreadedHttpConnectionManager cleanup] but has failed to stop
it.
 This is very likely to create a memory leak.
 
 MultiThreadedHttpConnectionManager is a class from HTTP Client.

If you are using Axis and it's creating a
MultiThreadedHttpConnectionManager, it should be stopping it when the
webapp undeploys.

So, the question is: are you properly shutting-down the Axis services
when your webapp shuts down? If you are, then this is a bug in Axis that
should be reported to them.

If you aren't, then you need to do so.

If you want a quick solution, you can always write your own
ServletContextListener and call
MultiThreadedHttpConnectionManager.shutdownAll() -- it's a static method
that looks like it'll kill all threads from all
MultiThreadedHttpConnectionManager objects. Seems like a reasonable
hack, as long as commons-http-client was loaded by the
WebappClassLoader. ;)

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

iEYEARECAAYFAkzxDgkACgkQ9CaO5/Lv0PAYagCgjN6tvR47NshlNwSojGO7LOp2
3eAAnisYOvsvoZBL8R34+azn+K3ZTpoi
=RAzC
-END PGP SIGNATURE-

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




DISCLAIMER:
Orange Lake Resorts does not accept legal responsibility for the contents of 
this message. Orange Lake Resorts reserves the right to monitor the 
transmission of this message and to take corrective action against any misuse 
or abuse of its e-mail system or other components of its network. The 
information contained in this e-mail is confidential and may be legally 
privileged.  It is intended solely for the addressee. If you are not the 
intended recipient, any disclosure, copying, distribution, or any action or act 
of forbearance taken in reliance on it, is prohibited and may be unlawful. Any 
views expressed in this e-mail are those of the individual sender, except where 
the sender has been duly authorized to specifically state the content of the 
e-mail on behalf of Orange Lake Resorts.  The recipient should check this 
e-mail and any attachments for the presence of viruses. Orange Lake Resorts 
accepts no liability for any damage caused by any viruses transmitted by this 
e-mail.

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



RE: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-27 Thread Caldarale, Charles R
 From: Emerson, Christopher [mailto:cemer...@orangelake.com] 
 Subject: RE: Please help ... [MultiThreadedHttpConnectionManager cleanup]

 If I have 100+ concurrent users, won't that effect the other users?

Each webapp should have its own copy of the HTTP client, so no.

 Is it possible that I have something as simple as an incorrect 
 web.xml configuration?

Can't tell without seeing it, can we?  As suggested earlier, you may well have 
an incorrect configuration for the libraries you're using, and their 
configuration may not be in WEB-INF/web.xml.

 Another thing I noticed is that the servlet api is in Tomcat's lib
 directory.  Should that be in the individual webapp directories?

Absolutely not.  It's correctly placed where it is.

 - 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: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-27 Thread André Warnier

Caldarale, Charles R wrote:
From: Emerson, Christopher [mailto:cemer...@orangelake.com] 
Subject: RE: Please help ... [MultiThreadedHttpConnectionManager cleanup]



If I have 100+ concurrent users, won't that effect the other users?


Each webapp should have its own copy of the HTTP client, so no.

Is it possible that I have something as simple as an incorrect 
web.xml configuration?


Can't tell without seeing it, can we?  As suggested earlier, you may well have 
an incorrect configuration for the libraries you're using, and their 
configuration may not be in WEB-INF/web.xml.


Another thing I noticed is that the servlet api is in Tomcat's lib
directory.  Should that be in the individual webapp directories?


Absolutely not.  It's correctly placed where it is.


As long as servlet api above really means servlet-api.jar ... (?)




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



RE: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-27 Thread Emerson, Christopher

Thanx Charles!  Yes, I meant sevlet-api.jar, sorry.  The webapp is
written in Adobe Flex calling custom java apis.  Looking at the web.xml
file used, could it have something to do with this listener as you said
earlier?

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app

display-nameBlazeDS/display-name
descriptionBlazeDS Application/description

!-- Http Flex Session attribute and binding listener support --
listener
listener-classflex.messaging.HttpFlexSession/listener-class
/listener

!-- MessageBroker Servlet --
servlet
servlet-nameMessageBrokerServlet/servlet-name
display-nameMessageBrokerServlet/display-name
 
servlet-classflex.messaging.MessageBrokerServlet/servlet-class
init-param
param-nameservices.configuration.file/param-name
param-value/WEB-INF/flex/services-config.xml/param-value
   /init-param
load-on-startup1/load-on-startup
/servlet

servlet-mapping
servlet-nameMessageBrokerServlet/servlet-name
url-pattern/messagebroker/*/url-pattern
/servlet-mapping

welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
/welcome-file-list

!-- for WebSphere deployment, please uncomment --
!--
resource-ref
descriptionFlex Messaging WorkManager/description
res-ref-namewm/MessagingWorkManager/res-ref-name
res-typecom.ibm.websphere.asynchbeans.WorkManager/res-type
res-authContainer/res-auth
res-sharing-scopeShareable/res-sharing-scope
/resource-ref
--

error-page
   error-code404/error-code
   location/main.html/location
/error-page 

/web-app


-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Saturday, November 27, 2010 10:08 AM
To: Tomcat Users List
Subject: RE: Please help ... [MultiThreadedHttpConnectionManager
cleanup]

 From: Emerson, Christopher [mailto:cemer...@orangelake.com] 
 Subject: RE: Please help ... [MultiThreadedHttpConnectionManager
cleanup]

 If I have 100+ concurrent users, won't that effect the other users?

Each webapp should have its own copy of the HTTP client, so no.

 Is it possible that I have something as simple as an incorrect 
 web.xml configuration?

Can't tell without seeing it, can we?  As suggested earlier, you may
well have an incorrect configuration for the libraries you're using, and
their configuration may not be in WEB-INF/web.xml.

 Another thing I noticed is that the servlet api is in Tomcat's lib
 directory.  Should that be in the individual webapp directories?

Absolutely not.  It's correctly placed where it is.

 - 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




DISCLAIMER:
Orange Lake Resorts does not accept legal responsibility for the contents of 
this message. Orange Lake Resorts reserves the right to monitor the 
transmission of this message and to take corrective action against any misuse 
or abuse of its e-mail system or other components of its network. The 
information contained in this e-mail is confidential and may be legally 
privileged.  It is intended solely for the addressee. If you are not the 
intended recipient, any disclosure, copying, distribution, or any action or act 
of forbearance taken in reliance on it, is prohibited and may be unlawful. Any 
views expressed in this e-mail are those of the individual sender, except where 
the sender has been duly authorized to specifically state the content of the 
e-mail on behalf of Orange Lake Resorts.  The recipient should check this 
e-mail and any attachments for the presence of viruses. Orange Lake Resorts 
accepts no liability for any damage caused by any viruses transmitted by this 
e-mail.

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



RE: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-27 Thread Caldarale, Charles R
 From: Emerson, Christopher [mailto:cemer...@orangelake.com] 
 Subject: RE: Please help ... [MultiThreadedHttpConnectionManager cleanup]

 Looking at the web.xml file used, could it have something to 
 do with this listener as you said earlier?

Can't say - Tomcat is just the container here; you'll have to consult the Flex 
doc and support for information about using that tool.

It's interesting to see all the latent 3rd-party package bugs that the Tomcat 
memory leak detection mechanisms have uncovered - and that had previously been 
erroneously blamed on Tomcat.

 - 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: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-24 Thread Rob Gregory
 Please let me know if anyone has seen this before.

I bet whoever put that in as a feature is really glad for all the posts
that followed. 

http://wiki.apache.org/tomcat/MemoryLeakProtection or a quick google
will provide you with some explanation, but basically it's most likely
your code ;o)





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



RE: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-24 Thread Caldarale, Charles R
 From: Emerson, Christopher [mailto:cemer...@orangelake.com] 
 Subject: Please help ... [MultiThreadedHttpConnectionManager cleanup]

 Ever since we've upgraded to Tomcat 6 4 weeks ago, I've been fighting
 the following error on shutdown ...

You've actually had the error all along, but it's only the recent Tomcat 
versions that have been detecting and reporting it.

 Nov 23, 2010 4:42:18 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads
 SEVERE: A web application appears to have started a thread named
 [MultiThreadedHttpConnectionManager cleanup] but has failed to stop it.
 This is very likely to create a memory leak.

Your webapp has started an auxiliary thread, but not terminated it promptly.  
You should be using a ServletContextListener that insures any such extra 
threads have terminated before returning from its contextDestroyed() method.

 - 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: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-24 Thread Pid
On 24/11/2010 14:41, Rob Gregory wrote:
 Please let me know if anyone has seen this before.
 
 I bet whoever put that in as a feature is really glad for all the posts
 that followed. 
 
 http://wiki.apache.org/tomcat/MemoryLeakProtection or a quick google
 will provide you with some explanation, but basically it's most likely
 your code ;o)

At least we're finding the source of the problems, rather than people
blindly assuming that it's Tomcat's fault.


Nov 23, 2010 4:42:18 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads

SEVERE: A web application appears to have started a thread named
[MultiThreadedHttpConnectionManager cleanup] but has failed to stop it.
This is very likely to create a memory leak.

MultiThreadedHttpConnectionManager is a class from HTTP Client.


p




0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


RE: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-24 Thread Emerson, Christopher
So if this is being started from Axis2 1.5.1 client, there's a bug in
the client code generation or the supporting Axis2 jars?

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Wednesday, November 24, 2010 9:41 AM
To: Tomcat Users List
Subject: RE: Please help ... [MultiThreadedHttpConnectionManager
cleanup]

 From: Emerson, Christopher [mailto:cemer...@orangelake.com] 
 Subject: Please help ... [MultiThreadedHttpConnectionManager cleanup]

 Ever since we've upgraded to Tomcat 6 4 weeks ago, I've been fighting
 the following error on shutdown ...

You've actually had the error all along, but it's only the recent Tomcat
versions that have been detecting and reporting it.

 Nov 23, 2010 4:42:18 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads
 SEVERE: A web application appears to have started a thread named
 [MultiThreadedHttpConnectionManager cleanup] but has failed to stop
it.
 This is very likely to create a memory leak.

Your webapp has started an auxiliary thread, but not terminated it
promptly.  You should be using a ServletContextListener that insures any
such extra threads have terminated before returning from its
contextDestroyed() method.

 - 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




DISCLAIMER:
Orange Lake Resorts does not accept legal responsibility for the contents of 
this message. Orange Lake Resorts reserves the right to monitor the 
transmission of this message and to take corrective action against any misuse 
or abuse of its e-mail system or other components of its network. The 
information contained in this e-mail is confidential and may be legally 
privileged.  It is intended solely for the addressee. If you are not the 
intended recipient, any disclosure, copying, distribution, or any action or act 
of forbearance taken in reliance on it, is prohibited and may be unlawful. Any 
views expressed in this e-mail are those of the individual sender, except where 
the sender has been duly authorized to specifically state the content of the 
e-mail on behalf of Orange Lake Resorts.  The recipient should check this 
e-mail and any attachments for the presence of viruses. Orange Lake Resorts 
accepts no liability for any damage caused by any viruses transmitted by this 
e-mail.

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



Re: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-24 Thread André Warnier

Emerson, Christopher wrote:

Ever since we've upgraded to Tomcat 6 4 weeks ago, I've been fighting
the following error on shutdown ...

 


Nov 23, 2010 4:42:18 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads

SEVERE: A web application appears to have started a thread named
[MultiThreadedHttpConnectionManager cleanup] but has failed to stop it.
This is very likely to create a memory leak.

 


We're using Tomcat 6.0.29 and it reproduces on both Windows and Linux.

The application uses commons-httpclient-3.1.  I've done so many
different things to shut down the connection from the web application
that I'm convinced that it is either something with the
commons-httpclient-3.1 or Tomcat 6.  Since this did not happen with
Tomcat 5, I'm leaning towards Tomcat 6 problem.

 


Let me see if I have got this right..

The reason why you are seeing the message above in Tomcat 6, and were not seeing it in 
Tomcat 5, is because in Tomcat 6 there is added code which detects this kind of thing, and 
prints messages in the logs about it.
Under Tomcat 5, the root reason happened too, but was not detected so you just did not 
know about it.


If really this happens only when you shut down Tomcat, I don't think it should matter, 
since you are stopping the whole JVM, including that rogue thread, the memory will get 
cleaned up and there will be no leak left anyway.


The message is there in case you would just stop and restart this application, without 
stopping the JVM in-between.  Then you would experience a memory leak, and then it could 
matter in the long run.


This being said, it does indicate a cause for possible memory leaks in the future, so you 
/might/ want to investigate further.


How am I doing ?


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



RE: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-24 Thread Caldarale, Charles R
 From: Emerson, Christopher [mailto:cemer...@orangelake.com] 
 Subject: RE: Please help ... [MultiThreadedHttpConnectionManager cleanup]

 So if this is being started from Axis2 1.5.1 client, there's a bug in
 the client code generation or the supporting Axis2 jars?

Possibly, or possibly you don't have it configured properly.  (E.g., missing 
listener declaration in WEB-INF/web.xml.)

 - 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: Please help ... [MultiThreadedHttpConnectionManager cleanup]

2010-11-24 Thread Emerson, Christopher
Thank you!  I just wanted to eliminate Tomcat 6 as a variable and that
this wasn't a known issue.

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Wednesday, November 24, 2010 9:53 AM
To: Tomcat Users List
Subject: RE: Please help ... [MultiThreadedHttpConnectionManager
cleanup]

 From: Emerson, Christopher [mailto:cemer...@orangelake.com] 
 Subject: RE: Please help ... [MultiThreadedHttpConnectionManager
cleanup]

 So if this is being started from Axis2 1.5.1 client, there's a bug in
 the client code generation or the supporting Axis2 jars?

Possibly, or possibly you don't have it configured properly.  (E.g.,
missing listener declaration in WEB-INF/web.xml.)

 - 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




DISCLAIMER:
Orange Lake Resorts does not accept legal responsibility for the contents of 
this message. Orange Lake Resorts reserves the right to monitor the 
transmission of this message and to take corrective action against any misuse 
or abuse of its e-mail system or other components of its network. The 
information contained in this e-mail is confidential and may be legally 
privileged.  It is intended solely for the addressee. If you are not the 
intended recipient, any disclosure, copying, distribution, or any action or act 
of forbearance taken in reliance on it, is prohibited and may be unlawful. Any 
views expressed in this e-mail are those of the individual sender, except where 
the sender has been duly authorized to specifically state the content of the 
e-mail on behalf of Orange Lake Resorts.  The recipient should check this 
e-mail and any attachments for the presence of viruses. Orange Lake Resorts 
accepts no liability for any damage caused by any viruses transmitted by this 
e-mail.

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



Re: Please help: Setting up an environment with Apache as webserver and JBoss as the application server

2009-12-14 Thread Pid

On 14/12/2009 18:25, Smithan John wrote:

Hi All,

To all the geeks out there :),



I'm pretty new to server level configurations. I have a task in hand to
migrate a set of applications from one server to another. The requirement is
an AS-IS migration. The requirement is to migrate a setup which has Apache
as the webserver, Webgate as the access server and JBoss as the application
server. Presently i have did a 'tar' and an 'untar' of the present
filesystem to the new physical box. Webgate was freshly installed in the new
setup. I have also made changes in the config files for the new copy. Kindly
help me with the below queries.


Moving the installed binaries /may/ work, or more likely may not, 
depending on your OS (you didn't mention what that was).


Usually installing a fresh copy of the latest/best available version is 
a better idea.



1)What are all the configuration specific changes i need to make in the new
server?


Depends on the custom properties of your configuration?


2)If i startup the Apache and JBoss servers, how can i make sure that Apache
and JBoss are communicating successfully? Is there some tool/utility for
testing the same.


A web page is displayed, or the logs show errors.  Probably.


3)Any other specific things to keep in mind while migrating from one server
to another?


Erm...


4)If Apache and JBoss servers dont startup successfully, what could be the
possible cause.


You messed up somewhere.


5)Also let me know the configuration files in which the Apache and JBoss
ports are configured so that i can make port changes if required and what
are the default ports used.


The HTTPD users mailing list is the best place to get help for that 
server.  The same is probably true of JBOSS (which does contain Tomcat, 
but is configured very differently).


Casting your eye over the documentation available for each server first, 
might be a wise idea...



p


waiting for your priceless help. Thanks a ton :)






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



Re: Please help: Setting up an environment with Apache as webserver and JBoss as the application server

2009-12-14 Thread André Warnier

Smithan John wrote:


waiting for your priceless help. Thanks a ton :)

Don't worry, it won't be priceless.  For this kind of work, I am sure 
you can hire a couple of the gurus here, and they will name a price.



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



Re: PLEASE HELP ME!!!

2009-11-11 Thread Konstantin Kolinko
 root cause
 java.lang.NumberFormatException: null
                 java.lang.Integer.parseInt(Unknown Source)
                 java.lang.Integer.parseInt(Unknown Source)

 org.apache.jsp.check_005fenter_jsp._jspService(check_005fenter_jsp.java:61)
  ftc.budget.servlet.BudgetJspPage.service(BudgetJspPage.java:71)


Go to the /work directory of your Tomcat installation and find
check_005fenter_jsp.java file somewhere there. It is Java source for
your JSP page (check/enter.jsp).  Somewhere there (on line 61 of java
code) is a Integer.parseInt() call. The exception was thrown because
the argument to that call was null.

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



Re: PLEASE HELP ME!!!

2009-11-11 Thread André Warnier

achudesni...@btabank.ru wrote:

After autorization on http server occure this problem.
What's happened, who know? Please help me.


HTTP Status 500 - 


type Exception report
message 
description The server encountered an internal error () that prevented it 
from fulfilling this request.


org.apache.jasper.JasperException: null
 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)

 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 ftc.budget.common.tomcat.CharsetFilter.doFilter(CharsetFilter.java:41)

root cause 
java.lang.NumberFormatException: null

 java.lang.Integer.parseInt(Unknown Source)
 java.lang.Integer.parseInt(Unknown Source)
 
org.apache.jsp.check_005fenter_jsp._jspService(check_005fenter_jsp.java:61)

 ftc.budget.servlet.BudgetJspPage.service(BudgetJspPage.java:71)
 


That, sir, looks to me like another serious financial crisis in the 
making.  I think you should immediately report this higher up.




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



Re: PLEASE HELP ME!!!

2009-11-11 Thread Pid

On 11/11/2009 08:57, André Warnier wrote:

achudesni...@btabank.ru wrote:

After autorization on http server occure this problem.
What's happened, who know? Please help me.


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

org.apache.jasper.JasperException: null

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)


org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
ftc.budget.common.tomcat.CharsetFilter.doFilter(CharsetFilter.java:41)

root cause java.lang.NumberFormatException: null
java.lang.Integer.parseInt(Unknown Source)
java.lang.Integer.parseInt(Unknown Source)

org.apache.jsp.check_005fenter_jsp._jspService(check_005fenter_jsp.java:61)

ftc.budget.servlet.BudgetJspPage.service(BudgetJspPage.java:71)



That, sir, looks to me like another serious financial crisis in the
making. I think you should immediately report this higher up.


... and lose 10 points for not using a descriptive subject line.

p



-
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: please help......

2009-05-26 Thread David Smith
vijay sankar wrote:
 I have recently downloaded the 6.0.18 binary distribution and I am running
 it in vista.

 I have started the server by running bootstrap.jar and it is working fine.
 I tried to stop the server by running the shutdown.bat, but it is not
 stopping.

 Can any one help me regarding this

   
If you are trying to shut it down w/ shutdown.bat, why not start it with
startup.bat?  I've never tried starting it by executing the jar file.

-- 
David Smith
Programmer/Analyst
College of Agriculture and Life Sciences
Cornell University
B32 Morrison Hall
Ithaca, NY 14853
Phone: (607) 255-4334


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



Re: please help......

2009-05-26 Thread David Smith
vijay sankar wrote:
 It's not starting when I have executed the startup.bat. So I have executed
 the jar file...

 On Tue, May 26, 2009 at 10:18 AM, David Smith d...@cornell.edu wrote:

   
 vijay sankar wrote:
 
 I have recently downloaded the 6.0.18 binary distribution and I am
   
 running
 
 it in vista.

 I have started the server by running bootstrap.jar and it is working
   
 fine.
 
 I tried to stop the server by running the shutdown.bat, but it is not
 stopping.

 Can any one help me regarding this


   
 If you are trying to shut it down w/ shutdown.bat, why not start it with
 startup.bat?  I've never tried starting it by executing the jar file.

 
Then the problem you are having with the shutdown script may be the same
as the issue you have with the startup script.  Fix one and the other
may disappear automatically.

--David

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



Re: please help......

2009-05-26 Thread Mark Thomas
vijay sankar wrote:
 I have recently downloaded the 6.0.18 binary distribution and I am running
 it in vista.
 
 I have started the server by running bootstrap.jar and it is working fine.

Why not use the scripts...

 I tried to stop the server by running the shutdown.bat, but it is not
 stopping.

... then you can use the scripts to stop it.

Mark



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



Re: please help......

2009-05-26 Thread vijay sankar
It's not starting when I have executed the startup.bat. So I have executed
the jar file...

On Tue, May 26, 2009 at 10:18 AM, David Smith d...@cornell.edu wrote:

 vijay sankar wrote:
  I have recently downloaded the 6.0.18 binary distribution and I am
 running
  it in vista.
 
  I have started the server by running bootstrap.jar and it is working
 fine.
  I tried to stop the server by running the shutdown.bat, but it is not
  stopping.
 
  Can any one help me regarding this
 
 
 If you are trying to shut it down w/ shutdown.bat, why not start it with
 startup.bat?  I've never tried starting it by executing the jar file.

 --
 David Smith
 Programmer/Analyst
 College of Agriculture and Life Sciences
 Cornell University
 B32 Morrison Hall
 Ithaca, NY 14853
 Phone: (607) 255-4334


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




Re: Please help

2009-05-26 Thread Juha Laiho
Sibusiso khoza wrote:
 Mark
 
 Your efforts to assist are greatly appreciated.  Please don't take my
 next question as a sign of laziness or stupidity.  I'm a biginner when
 it comes to  programming and have been struggling with this one issue
 for ages.
 
 I did everything in your suggested sollution. The one bit I need to
 clearify is the full.package.name in :
 
 servlet-classfull.package.name.WebStocks/servlet-class
 
 I have the WebStocks class in the  C:/program files/apache group/tomcat
 4.1/webapps/root/web-inf/classes directory
 
 How should I write the full package name?? .  servlet-class.?.
 /servlet.

Hello,

packages are an important concept of the Java language, not in any way
tied to servlets. Package names also have an effect in how the Java
virtual machine finds class files, and understanding how package names
are connected to the required directory hierarchy for class files is
something that should be learned before working with servlets.

These things are not hard to learn, but they're something you'll just
need to know. TO gain the knowledge, please devote some time to the
Java tutorial published by Sun:

http://java.sun.com/docs/books/tutorial/index.html

I would recommend at least glancing through the Hello World application
example in the Getting started part of the tutorial; there are some steps
to ensure that your environment is sane and all the needed pieces are in
proper places.

After that, the Learning the Java Language trail at
http://java.sun.com/docs/books/tutorial/java/index.html is what you'll
need; from there it'll be at least Language Basics, Classes and Objects,
Interfaces and Inheritance, Numbers and Strings, and Packages.

Yes, it's reading, and as such, boring (not!). It'll give you the needed
foundation to continue (such as the basic knowledge to get more information
out of the help provided here by others).

I hope this was of any help - even though perhaps not exactly the help
you came here for.
-- 
..Juha

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



Re: Please help

2009-05-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mark,

On 5/25/2009 6:30 PM, Mark Thomas wrote:
 OK. You need to remove the invoker section and do something like this:
 servlet
 servlet-nameWebStocks/servlet-name
 servlet-classfull.package.name.WebStocks/servlet-class
 /servlet
 
 servlet-mapping
   servlet-nameWebStocks/servlet-name
 url-pattern/WebStocks/url-pattern
 /servlet-mapping
 
 and modify your application to call /WebStocks rather than
 /servlet/WebStocks

There's no reason to change /servlet/WebStocks to /WebStocks... there's
nothing inherently wrong with the /servlet/ path prefix. Leaving the
/servlet/ on there makes the upgrade path easier.

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

iEYEARECAAYFAkocKPYACgkQ9CaO5/Lv0PBkyACguqlIv8pIwYvi2BH1ksVUSRME
F/cAn0MIAfjVk8iLbzO+ScnmUJqaNnIJ
=z+aA
-END PGP SIGNATURE-

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



Re: Please help

2009-05-25 Thread Mark Thomas
Sibusiso khoza wrote:
 HI,
 
 I'm quite new at using tomcat.  I've installed tomcat 4.1.
If you are new to Tomcat then start with the latest version (6.0.18).
The 4.1.x branch is about 1-2 months away from being de-supported.

  I've followed my book (Java Programming (Shelly Cashman Series)) and 
 modified my web.xml (invoker) 
If the book says to use the invoker servlet, put the book in the bin
(better yet the recycling bin) and get a newer/better book.


 in the web-inf directory  enabled servlet reloading for tomcat.  Tomcat 
 seems to be working well  all the servlet examples work fine.   I assume my 
 classpaths are all correct.
You should not be making any changes to any class paths. Tomcat handles
all of this for you. If you need to edit the class path used by Tomcat,
you are doing something wrong.

 I've susscessfully compiled a servlet called WebStocks which is the 
 controller in my MVC model and placed it in the classes folder in the web-inf 
 directory.
 
 I am able to access the index.html through (localhost:8080/index.html).
  My aplication requires you to log on the index.html and when you click log 
 on, the userName and password are supposed to bo posted to the WebStocks 
 servlet. 
 However, when I click log on,  all that is displayed is: 
  Status 404 - /servlet/WebStocks

Looks like your servlet mappings are broken. What is in web.xml?

Mark


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



Re: Please help

2009-05-25 Thread Sibusiso khoza

Sure. This is how my web.xml file looks:

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
 display-nameWelcome to Tomcat/display-name
 description
Welcome to Tomcat
 /description

 !-- added the following section --
servlet-mapping
   servlet-nameinvoker/servlet-name
   url-pattern/servlet/*/url-pattern
   /servlet-mapping

/web-app

- Original Message - 
From: Patrick Herber patrick.her...@ticino.com

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, May 25, 2009 11:23 PM
Subject: Re: Please help


Could you kindly send us an extract of your web.xml file, where the 
Servlet and the serlvet mapping are defined?


Regards,
Patrick

Sibusiso khoza wrote:

HI,

I'm quite new at using tomcat.  I've installed tomcat 4.1.  I've followed 
my book (Java Programming (Shelly Cashman Series)) and modified my 
web.xml (invoker) in the web-inf directory  enabled servlet reloading 
for tomcat.  Tomcat seems to be working well  all the servlet examples 
work fine.   I assume my classpaths are all correct.


I've susscessfully compiled a servlet called WebStocks which is the 
controller in my MVC model and placed it in the classes folder in the 
web-inf directory.


I am able to access the index.html through (localhost:8080/index.html).
 My aplication requires you to log on the index.html and when you click 
log on, the userName and password are supposed to bo posted to the 
WebStocks servlet. However, when I click log on,  all that is displayed 
is: Status 404 - /servlet/WebStocks




type Status report

message /servlet/WebStocks

description The requested resource (/servlet/WebStocks) is not available.




Apache Tomcat/4.1.18




-
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: Please help

2009-05-25 Thread Sibusiso khoza

Hi Mark,

This is how my web.xml looks:

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
 display-nameWelcome to Tomcat/display-name
 description
Welcome to Tomcat
 /description

 !-- added the following section --
servlet-mapping
   servlet-nameinvoker/servlet-name
   url-pattern/servlet/*/url-pattern
   /servlet-mapping

/web-app


- Original Message - 
From: Mark Thomas ma...@apache.org

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, May 25, 2009 11:31 PM
Subject: Re: Please help



Sibusiso khoza wrote:

HI,

I'm quite new at using tomcat.  I've installed tomcat 4.1.

If you are new to Tomcat then start with the latest version (6.0.18).
The 4.1.x branch is about 1-2 months away from being de-supported.

 I've followed my book (Java Programming (Shelly Cashman Series)) and 
modified my web.xml (invoker)

If the book says to use the invoker servlet, put the book in the bin
(better yet the recycling bin) and get a newer/better book.


in the web-inf directory  enabled servlet reloading for tomcat.  Tomcat 
seems to be working well  all the servlet examples work fine.   I assume 
my classpaths are all correct.

You should not be making any changes to any class paths. Tomcat handles
all of this for you. If you need to edit the class path used by Tomcat,
you are doing something wrong.

I've susscessfully compiled a servlet called WebStocks which is the 
controller in my MVC model and placed it in the classes folder in the 
web-inf directory.


I am able to access the index.html through (localhost:8080/index.html).
 My aplication requires you to log on the index.html and when you click 
log on, the userName and password are supposed to bo posted to the 
WebStocks servlet.

However, when I click log on,  all that is displayed is:
 Status 404 - /servlet/WebStocks


Looks like your servlet mappings are broken. What is in web.xml?

Mark


-
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: Please help

2009-05-25 Thread Mark Thomas
Sibusiso khoza wrote:
 Sure. This is how my web.xml file looks:
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
 
 web-app
  display-nameWelcome to Tomcat/display-name
  description
 Welcome to Tomcat
  /description
 
  !-- added the following section --
 servlet-mapping
servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
/servlet-mapping
 
 /web-app

OK. You need to remove the invoker section and do something like this:
servlet
servlet-nameWebStocks/servlet-name
servlet-classfull.package.name.WebStocks/servlet-class
/servlet

servlet-mapping
servlet-nameWebStocks/servlet-name
url-pattern/WebStocks/url-pattern
/servlet-mapping

and modify your application to call /WebStocks rather than
/servlet/WebStocks

Notes:
1. The invoker is really, really bad. See the FAQ for why.
2. Your servlet should be in a package and you must specify the package
name in web.xml

Mark

 
 - Original Message - From: Patrick Herber
 patrick.her...@ticino.com
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Monday, May 25, 2009 11:23 PM
 Subject: Re: Please help
 
 
 Could you kindly send us an extract of your web.xml file, where the
 Servlet and the serlvet mapping are defined?

 Regards,
 Patrick

 Sibusiso khoza wrote:
 HI,

 I'm quite new at using tomcat.  I've installed tomcat 4.1.  I've
 followed my book (Java Programming (Shelly Cashman Series)) and
 modified my web.xml (invoker) in the web-inf directory  enabled
 servlet reloading for tomcat.  Tomcat seems to be working well  all
 the servlet examples work fine.   I assume my classpaths are all
 correct.

 I've susscessfully compiled a servlet called WebStocks which is the
 controller in my MVC model and placed it in the classes folder in the
 web-inf directory.

 I am able to access the index.html through (localhost:8080/index.html).
  My aplication requires you to log on the index.html and when you
 click log on, the userName and password are supposed to bo posted
 to the WebStocks servlet. However, when I click log on,  all that
 is displayed is: Status 404 - /servlet/WebStocks

 


 type Status report

 message /servlet/WebStocks

 description The requested resource (/servlet/WebStocks) is not
 available.


 


 Apache Tomcat/4.1.18



 -
 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: Please help

2009-05-25 Thread Sibusiso khoza

Mark

Your efforts to assist are greatly appreciated.  Please don't take my next 
question as a sign of laziness or stupidity.  I'm a biginner when it comes 
to  programming and have been struggling with this one issue for ages.


I did everything in your suggested sollution. The one bit I need to clearify 
is the full.package.name in :


servlet-classfull.package.name.WebStocks/servlet-class

I have the WebStocks class in the  C:/program files/apache group/tomcat 
4.1/webapps/root/web-inf/classes directory


How should I write the full package name?? .  servlet-class.?. /servlet.


- Original Message - 
From: Mark Thomas ma...@apache.org

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, May 26, 2009 12:30 AM
Subject: Re: Please help



Sibusiso khoza wrote:

Sure. This is how my web.xml file looks:

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
 display-nameWelcome to Tomcat/display-name
 description
Welcome to Tomcat
 /description

 !-- added the following section --
servlet-mapping
   servlet-nameinvoker/servlet-name
   url-pattern/servlet/*/url-pattern
   /servlet-mapping

/web-app


OK. You need to remove the invoker section and do something like this:
   servlet
   servlet-nameWebStocks/servlet-name
   servlet-classfull.package.name.WebStocks/servlet-class
   /servlet

   servlet-mapping
servlet-nameWebStocks/servlet-name
   url-pattern/WebStocks/url-pattern
   /servlet-mapping

and modify your application to call /WebStocks rather than
/servlet/WebStocks

Notes:
1. The invoker is really, really bad. See the FAQ for why.
2. Your servlet should be in a package and you must specify the package
name in web.xml

Mark



- Original Message - From: Patrick Herber
patrick.her...@ticino.com
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, May 25, 2009 11:23 PM
Subject: Re: Please help



Could you kindly send us an extract of your web.xml file, where the
Servlet and the serlvet mapping are defined?

Regards,
Patrick

Sibusiso khoza wrote:

HI,

I'm quite new at using tomcat.  I've installed tomcat 4.1.  I've
followed my book (Java Programming (Shelly Cashman Series)) and
modified my web.xml (invoker) in the web-inf directory  enabled
servlet reloading for tomcat.  Tomcat seems to be working well  all
the servlet examples work fine.   I assume my classpaths are all
correct.

I've susscessfully compiled a servlet called WebStocks which is the
controller in my MVC model and placed it in the classes folder in the
web-inf directory.

I am able to access the index.html through (localhost:8080/index.html).
 My aplication requires you to log on the index.html and when you
click log on, the userName and password are supposed to bo posted
to the WebStocks servlet. However, when I click log on,  all that
is displayed is: Status 404 - /servlet/WebStocks




type Status report

message /servlet/WebStocks

description The requested resource (/servlet/WebStocks) is not
available.





Apache Tomcat/4.1.18




-
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





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



Re: Please help with setting up a tomcat configuration in production...

2009-02-15 Thread André Warnier

Julien Martin wrote:

Hi.
It will probably be useful for anyone wanting to help you, to know which 
version of Tomcat you are talking about.

Also on which platform, athough one can kind of guess that.
But it's time-consuming and error-prone to have to make guesses.

With my limited knowledge and until a real expert steps in, I'll tell 
you that your guess about the origin of the problem is probably correct.

You should not have that Context element in the server.xml file.
At best, it means that you cannot reload your application without having 
to restart Tomcat.

Just remove it.
You already have an appBase in the Host element, so Tomcat knows where 
to look for applications for that Host.
If you just name your war file jeanbaptistemartin.com.war, and drop in 
the directory that is the Host appBase, it will probably work, right out 
of the box.
Why don't you try that, and make another post with all the details if it 
does not work ?





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



Re: Please help with setting up a tomcat configuration in production...

2009-02-15 Thread Julien Martin
Thanks a lot for your reply,
Tomcat version: 6.0.18
Platform: linux centos
I'll try the suggested solution and keep you posted...
Julien.

2009/2/15 André Warnier a...@ice-sa.com

 Julien Martin wrote:

 Hi.
 It will probably be useful for anyone wanting to help you, to know which
 version of Tomcat you are talking about.
 Also on which platform, athough one can kind of guess that.
 But it's time-consuming and error-prone to have to make guesses.

 With my limited knowledge and until a real expert steps in, I'll tell you
 that your guess about the origin of the problem is probably correct.
 You should not have that Context element in the server.xml file.
 At best, it means that you cannot reload your application without having to
 restart Tomcat.
 Just remove it.
 You already have an appBase in the Host element, so Tomcat knows where to
 look for applications for that Host.
 If you just name your war file jeanbaptistemartin.com.war, and drop in
 the directory that is the Host appBase, it will probably work, right out of
 the box.
 Why don't you try that, and make another post with all the details if it
 does not work ?




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




Re: Please help with setting up a tomcat configuration in production...

2009-02-15 Thread Hassan Schroeder
On Sun, Feb 15, 2009 at 8:33 AM, Julien Martin bal...@gmail.com wrote:

 I'll try the suggested solution and keep you posted...

You might also find the virtual hosting how-to in the docs useful.

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Please help with setting up a tomcat configuration in production...

2009-02-15 Thread Julien Martin
Thanks but the suggested solution does not work. Now when I point my browser
to http://www.jeanbaptistemartin.com I land on the tomcat manager app...
Any one has any other idea?
In the meantime I am going to have a look at the virtual hosts documentation
as suggested by Hassan.
Julien.

2009/2/15 André Warnier a...@ice-sa.com

 Julien Martin wrote:

 Hi.
 It will probably be useful for anyone wanting to help you, to know which
 version of Tomcat you are talking about.
 Also on which platform, athough one can kind of guess that.
 But it's time-consuming and error-prone to have to make guesses.

 With my limited knowledge and until a real expert steps in, I'll tell you
 that your guess about the origin of the problem is probably correct.
 You should not have that Context element in the server.xml file.
 At best, it means that you cannot reload your application without having to
 restart Tomcat.
 Just remove it.
 You already have an appBase in the Host element, so Tomcat knows where to
 look for applications for that Host.
 If you just name your war file jeanbaptistemartin.com.war, and drop in
 the directory that is the Host appBase, it will probably work, right out of
 the box.
 Why don't you try that, and make another post with all the details if it
 does not work ?




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




Re: Please help with setting up a tomcat configuration in production...

2009-02-15 Thread Julien Martin
I read the documentation and tried the following configuration:

  Engine name=Catalina defaultHost=jeanbaptistemartin.com

  !--For clustering, please take a look at documentation at:
  /docs/cluster-howto.html  (simple how to)
  /docs/config/cluster.html (reference documentation) --
  !--
  Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster/
  --

  !-- The request dumper valve dumps useful debugging information about
   the request and response data received and sent by Tomcat.
   Documentation at: /docs/config/valve.html --
  !--
  Valve className=org.apache.catalina.valves.RequestDumperValve/
  --

  !-- This Realm uses the UserDatabase configured in the global JNDI
   resources under the key UserDatabase.  Any edits
   that are performed against this UserDatabase are immediately
   available for use by the Realm.  --
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase/

  !-- Define the default virtual host
   Note: XML Schema validation will not work with Xerces 2.2.
   --
  Host name=localhost  appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false

!-- SingleSignOn valve, share authentication between web
applications
 Documentation at: /docs/config/valve.html --
!--
Valve className=org.apache.catalina.authenticator.SingleSignOn /
--

!-- Access log processes all example.
 Documentation at: /docs/config/valve.html --
!--
Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs
   prefix=localhost_access_log. suffix=.txt pattern=common
resolveHosts=false/
--

/Host

Host appBase=jbm-app name=jeanbaptistemartin.com unpackWARs=true
autoDeploy=true
Aliaswww.jeanbaptistemartin.com/Alias
Context path= docBase=ROOT debug=0 reloadable=true/
/Host

/Engine

I now get a 404 tomcat error.

Any one could please help?

Thanks in advance,

Julien.


Re: Please help with setting up a tomcat configuration in production...

2009-02-15 Thread Hassan Schroeder
On Sun, Feb 15, 2009 at 9:09 AM, Julien Martin bal...@gmail.com wrote:

 I now get a 404 tomcat error.

1) don't post config files full of commented-out example stuff. We've
all seen it, it isn't relevant, and it makes it hard to read the parts
that /are/ relevant.

2) are you sure your Tomcat instance has started correctly? You can
get the default ROOT page? No errors in the logs?

3) if you're only deploying one hostname, why don't you just go back
to the original config, rename your app to ROOT.war and put it in
the base webapps dir?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Please help with setting up a tomcat configuration in production...

2009-02-15 Thread André Warnier

Julien Martin wrote:


I now get a 404 tomcat error.

Any one could please help?

We're trying.  But you are not making it easy, by making several changes 
at once and then not telling us about it until it is too late.


First, you have already modified the standard Tomcat configuration, by 
making that second Host the default one (in Engine).  You should 
probably not do that, or not yet.


Second, before you create a second Host with a name like 
jeanbaptistemartin.com, is that name a real DNS name, that resolves to 
the IP address of your physical Tomcat host ?

Because if it isn't the case, then it will not work, no matter what else.

Third, you should probably *not* have a Context element in your 
server.xml.


Although this is explained in the on-line documentation, and has been 
explained many times before in this forum (and these previous 
explanations are available on-line, and searchable), let me give you a 
quick overview :


- the appBase attribute of your Host element tells Tomcat, /for this 
Host/, where the applications can normally be found.
By default, this is the webapps directory under the main Tomcat 
installation directory (or more exactly, under the CATALINA_BASE directory).
- you can change the above by creating a specific Context element for 
your webapp, but you should only do that if there is no other way 
(because it is confusing).  And if you create such a Context element, 
you should not put it in the server.xml file.  It goes somewhere else, 
which I will tell you another time.
- a webapp can consist either of the developed directory structure of 
your webapp, with the top directory (e.g. CATALINA_BASE/webapps/abc if 
your application is called abc), a WEB-INF subdirectory, the class 
files or jars, etc.., OR of a single war file containing everything 
and named abc.war.
- if it is a war file abc.war, the simple fact of dropping it in the 
webapps directory will make it so that Tomcat will notice it, and 
deploy it as the application named abc.
You should then be able to access this application by entering the URL : 
http://myhostname/abc;.
- if you want your application to be the /default/ application for that 
Host (in other words, the one that is called when the user enters 
http://myhostname/;), then you should name your application ROOT 
(exactly like that, in capitals), and place it under the webapps 
directory of that Host.

If it is a war file, then it should be named ROOT.war (also exactly).


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



Re: Please help with setting up a tomcat configuration in production...

2009-02-15 Thread Julien Martin
THANKS A LOT ANDRÉ!!
After reading your detailed reply, I followed your suggestion: ROOT.war and
removed all unnecessary stuff from server.xml. It now works!!
All the best,
Julien.

2009/2/15 André Warnier a...@ice-sa.com

 Julien Martin wrote:


 I now get a 404 tomcat error.

 Any one could please help?

  We're trying.  But you are not making it easy, by making several changes
 at once and then not telling us about it until it is too late.

 First, you have already modified the standard Tomcat configuration, by
 making that second Host the default one (in Engine).  You should probably
 not do that, or not yet.

 Second, before you create a second Host with a name like 
 jeanbaptistemartin.com, is that name a real DNS name, that resolves to
 the IP address of your physical Tomcat host ?
 Because if it isn't the case, then it will not work, no matter what else.

 Third, you should probably *not* have a Context element in your
 server.xml.

 Although this is explained in the on-line documentation, and has been
 explained many times before in this forum (and these previous explanations
 are available on-line, and searchable), let me give you a quick overview :

 - the appBase attribute of your Host element tells Tomcat, /for this Host/,
 where the applications can normally be found.
 By default, this is the webapps directory under the main Tomcat
 installation directory (or more exactly, under the CATALINA_BASE directory).
 - you can change the above by creating a specific Context element for your
 webapp, but you should only do that if there is no other way (because it is
 confusing).  And if you create such a Context element, you should not put it
 in the server.xml file.  It goes somewhere else, which I will tell you
 another time.
 - a webapp can consist either of the developed directory structure of
 your webapp, with the top directory (e.g. CATALINA_BASE/webapps/abc if your
 application is called abc), a WEB-INF subdirectory, the class files or
 jars, etc.., OR of a single war file containing everything and named
 abc.war.
 - if it is a war file abc.war, the simple fact of dropping it in the
 webapps directory will make it so that Tomcat will notice it, and deploy
 it as the application named abc.
 You should then be able to access this application by entering the URL : 
 http://myhostname/abc;.
 - if you want your application to be the /default/ application for that
 Host (in other words, the one that is called when the user enters 
 http://myhostname/;), then you should name your application ROOT
 (exactly like that, in capitals), and place it under the webapps directory
 of that Host.
 If it is a war file, then it should be named ROOT.war (also exactly).



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




Re: Please help with setting up a tomcat configuration in production...

2009-02-15 Thread André Warnier

Julien Martin wrote:

THANKS A LOT ANDRÉ!!
After reading your detailed reply, I followed your suggestion: ROOT.war and
removed all unnecessary stuff from server.xml. It now works!!
All the best,
Julien.


We live to serve.
À votre service !

(J'en suis tout content moi-même. Cela prouve qu'on apprend quelque 
chose, sur ces forums.)


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



Re: please help me how to configure SSL 2 way on tamcat webser by using .net client. can anybody solve this problem

2008-11-21 Thread Bill Barker

Christopher Schultz [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Chandra,

 Chandra Madhumanchi (cmadhuma) wrote:
 Do we have any solution ssl 2 way configuration on tamcat webserver
 through .Net Client

 If you're just trying to connect to Tomcat using SSL from a .Net client,
 there's no special configuration when using a non-.Net client.

 when i am validating client certificate by using .net class(sslStream)
 http://msdn.microsoft.com/en-us/library/system.net.security.sslstream.as
 px
 i am getting error like SSPI failed.

 This list isn't the best one to ask .Net questions. Generally, the
 client certificate is delivered FROM the client (your .Net code) to the
 server (Tomcat). Is Tomcat giving you the error, or is .Net giving you
 the error?

 Please post the entire stack trace of the exception you are getting, as
 well as any message you are getting in a log file. like SSPI failed is
 not very precise.

 clientAuth=true
 keystoreFile=server.keystore

 This looks okay. Does your keystore have the client's certificate in it?
 What about a certificate that has signed the client's certificate?
 Perhaps a dump of your keystore would be helpful, too.


This seems to be a common misconception.  The keystoreFile plays no role in 
authenticating client certs in Tomcat.  It is only used to get the server 
cert.  The truststoreFile attribute is what is used to validate client 
certs.  If it is omitted, then you just get the trusted root certs provided 
by your JVM vendor (e.g. the cacerts file for the Sun JVM).

 Can you get this to work through a web browser? Honestly, the .Netedness
 of the client is irrelevant.

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

 iEYEARECAAYFAkklkrwACgkQ9CaO5/Lv0PBb4wCcCGOCla20G8qrta2kwN+B589R
 zKsAoMIXymYXlmGB1bZxVWqnhmSHbBBZ
 =d71m
 -END PGP SIGNATURE-

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: please help me how to configure SSL 2 way on tamcat webser by using .net client. can anybody solve this problem

2008-11-20 Thread Chandra Madhumanchi (cmadhuma)
 
Do we have any solution ssl 2 way configuration on tamcat webserver
through .Net Client

-Original Message-
From: Chandra Madhumanchi (cmadhuma) 
Sent: Wednesday, November 19, 2008 11:16 AM
To: users@tomcat.apache.org
Subject: please help me how to configure SSL 2 way on tamcat webser by
using .net client.

Hi 
 
when i am validating client certificate by using .net class(sslStream)
http://msdn.microsoft.com/en-us/library/system.net.security.sslstream.as
px
i am getting error like SSPI failed.
 
Actually in server.xml  i configure clientAuth as True.
 
 !-- Define a SSL HTTP/1.1 Connector on port 8443 --
   
Connector port=8443 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   clientAuth=true sslProtocol=TLS
keystoreFile=server.keystore keystorePass=123456 /
 
 
Do i need to do any other settings come out the problem.
 
Could you please provide any sample solution how to validate client
certificate on tamcat webserver through .Net client.

Regards

Chandra Madhumanchi

http://www.cisco.com/ 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >