Return a custom page in the event of a client requesting a non-existent resource on tomcat9

2024-02-02 Thread Kaushal Shriyan
Hi,

I am running tomcat version 9.0.84 on Red Hat Enterprise Linux release 8.7
(Ootpa). Is there a way to configure the server to return a custom page in
the event of a client requesting a non-existent resource.

Please guide me.

Thanks in advance.

Best Regards,

Kaushal


Re: Enable two way SSL in Apache Tomcat 10 Version 10.0.27

2023-08-20 Thread Kaushal Shriyan
On Sun, Aug 20, 2023 at 4:25 PM  wrote:

> Kaushal,
>
> please check the new configuration method with SSLHostConfig - your's is
> probably from an older version, right? In the working version you already
> use it.
>
> see my (redacted) config:
>
>  protocol="org.apache.coyote.http11.Http11Nio2Protocol"
>
>  sslImplementationName="org.apache.tomcat.util.net.jsse.JSSEImplementation"
>allowTrace="false"
>maxThreads="150"
>SSLEnabled="true"
>compression="off"
>scheme="https"
>server="Apache Tomcat"
>secure="true"
>defaultSSLHostConfigName="example.com" >
>  compression="on" />
>hostName="example.com"
>   honorCipherOrder="true"
>   protocols="+TLSv1.2,+TLSv1.3"
>   certificateVerification="required"
> 
>   truststoreFile="${catalina.base}/conf/ssl/cacerts.jks"
>   truststorePassword="changeit"
>
> ciphers="TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:!DSS">
> certificateKeystoreFile="${catalina.base}/conf/ssl/tomcat.p12"
> certificateKeystorePassword="changeit"
> certificateKeyAlias="tomcat"
> type="RSA" />
> 
> 
>
>
> Hope this helps
>
> Peter
>
>
Thanks Peter for the quick email response and appreciate it. It worked like
a charm. Thanks once again.

Best Regards,

Kaushal


Re: Enable two way SSL in Apache Tomcat 10 Version 10.0.27

2023-08-19 Thread Kaushal Shriyan
Hi,

I am attaching both server.xml for one way SSL and Two Way SSL

One way SSL
/opt/tomcat10/conf/server.xml -> tomcat10serverworkingonewaytls.xml
(working)
Two way SSL /opt/tomcat10/conf/server.xml
-> tomcat10serverworkingtwowaytls.xml (Not working)

Please comment. Thanks in advance.

Best Regards,

Kaushal

On Sun, Aug 20, 2023 at 6:48 AM Kaushal Shriyan 
wrote:

>
>
> On Thu, Aug 10, 2023 at 11:29 AM Christopher Schultz <
> ch...@christopherschultz.net> wrote:
>
>> Kaushal,
>>
>> On 8/7/23 22:23, Kaushal Shriyan wrote:
>> > Hi,
>> >
>> > I have gone through
>> https://tomcat.apache.org/tomcat-10.0-doc/ssl-howto.html.
>> > Is there a way to enable two way SSL (mutual) in Apache Tomcat 10
>> Version
>> > 10.0.27?
>> >
>> > Please guide me.
>> >
>> > Thanks in Advance.
>>
>> I see you have "gone through" the SSL Howto, but could you be specific
>> about what you have actually done? For example, what does your
>>  in server.xml look like, what does your web.xml look like,
>> and what files do you have on the disk?
>>
>> -chris
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>
> Hi Chris,
>
> Apologies for the delay in replying. Thanks in advance. I am trying to
> enable Mutual two way SSL using tomcat 10.0.27 on Red Hat Enterprise Linux
> release 8.8 (Ootpa). Currently I am encountering the below issue.
>
> 20-Aug-2023 06:40:25.183 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
> initialize component [Connector[HTTP/1.1-10443]]
> org.apache.catalina.LifecycleException: Protocol handler initialization
> failed
>
> Caused by: java.lang.IllegalArgumentException: No SSLHostConfig element
> was found with the hostName [_default_] to match the
> defaultSSLHostConfigName for the connector [https-openssl-nio-10443]
>
> #cat /etc/redhat-release
>
> *Red Hat Enterprise Linux release 8.8 (Ootpa)*
> # /opt/tomcat10/bin/version.sh
> Using CATALINA_BASE:   /opt/tomcat10
> Using CATALINA_HOME:   /opt/tomcat10
> Using CATALINA_TMPDIR: /opt/tomcat10/temp
> Using JRE_HOME:/usr
> Using CLASSPATH:
> /opt/tomcat10/bin/bootstrap.jar:/opt/tomcat10/bin/tomcat-juli.jar
> Using CATALINA_OPTS:
> Server version: Apache Tomcat/10.0.27
> Server built:   Oct 3 2022 14:18:31 UTC
> Server number:  10.0.27.0
> OS Name:Linux
> OS Version: 4.18.0-477.15.1.el8_8.x86_64
> Architecture:   amd64
> JVM Version:1.8.0_382-b05
> JVM Vendor: Red Hat, Inc.
> #
>
> #*cat catalina.out*
> 20-Aug-2023 06:40:24.753 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [clientAuth] to [want]
> 20-Aug-2023 06:40:24.756 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [sslProtocol] to [TLS]
> 20-Aug-2023 06:40:24.756 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [keystoreFile] to
> [/opt/tomcat10/ssl/keystore.jks]
> 20-Aug-2023 06:40:24.756 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [keystorePass] to [apigee]
> 20-Aug-2023 06:40:24.757 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [truststoreFile] to
> [/opt/tomcat10/ssl/clienttrustore.jks]
> 20-Aug-2023 06:40:24.757 WARNING [main]
> org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
> [Server/Service/Connector] failed to set property [truststorePass] to
> [apigee]
> 20-Aug-2023 06:40:24.809 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Server version name:
>   Apache Tomcat/10.0.27
> 20-Aug-2023 06:40:24.809 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Server built:
>  Oct 3 2022 14:18:31 UTC
> 20-Aug-2023 06:40:24.809 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Server version
> number: 10.0.27.0
> 20-Aug-2023 06:40:24.809 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log OS Name:
>   Linux
> 20-Aug-2023 06:40:24.810 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log OS Version:
>  4.18.0-477.15.1.el8_8.x86_64
> 20-Aug-2023 06:40:24.810 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Ar

Re: Enable two way SSL in Apache Tomcat 10 Version 10.0.27

2023-08-19 Thread Kaushal Shriyan
On Thu, Aug 10, 2023 at 11:29 AM Christopher Schultz <
ch...@christopherschultz.net> wrote:

> Kaushal,
>
> On 8/7/23 22:23, Kaushal Shriyan wrote:
> > Hi,
> >
> > I have gone through
> https://tomcat.apache.org/tomcat-10.0-doc/ssl-howto.html.
> > Is there a way to enable two way SSL (mutual) in Apache Tomcat 10 Version
> > 10.0.27?
> >
> > Please guide me.
> >
> > Thanks in Advance.
>
> I see you have "gone through" the SSL Howto, but could you be specific
> about what you have actually done? For example, what does your
>  in server.xml look like, what does your web.xml look like,
> and what files do you have on the disk?
>
> -chris
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Hi Chris,

Apologies for the delay in replying. Thanks in advance. I am trying to
enable Mutual two way SSL using tomcat 10.0.27 on Red Hat Enterprise Linux
release 8.8 (Ootpa). Currently I am encountering the below issue.

20-Aug-2023 06:40:25.183 SEVERE [main]
org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to
initialize component [Connector[HTTP/1.1-10443]]
org.apache.catalina.LifecycleException: Protocol handler initialization
failed

Caused by: java.lang.IllegalArgumentException: No SSLHostConfig element was
found with the hostName [_default_] to match the defaultSSLHostConfigName
for the connector [https-openssl-nio-10443]

#cat /etc/redhat-release

*Red Hat Enterprise Linux release 8.8 (Ootpa)*
# /opt/tomcat10/bin/version.sh
Using CATALINA_BASE:   /opt/tomcat10
Using CATALINA_HOME:   /opt/tomcat10
Using CATALINA_TMPDIR: /opt/tomcat10/temp
Using JRE_HOME:/usr
Using CLASSPATH:
/opt/tomcat10/bin/bootstrap.jar:/opt/tomcat10/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Server version: Apache Tomcat/10.0.27
Server built:   Oct 3 2022 14:18:31 UTC
Server number:  10.0.27.0
OS Name:Linux
OS Version: 4.18.0-477.15.1.el8_8.x86_64
Architecture:   amd64
JVM Version:1.8.0_382-b05
JVM Vendor: Red Hat, Inc.
#

#*cat catalina.out*
20-Aug-2023 06:40:24.753 WARNING [main]
org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
[Server/Service/Connector] failed to set property [clientAuth] to [want]
20-Aug-2023 06:40:24.756 WARNING [main]
org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
[Server/Service/Connector] failed to set property [sslProtocol] to [TLS]
20-Aug-2023 06:40:24.756 WARNING [main]
org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
[Server/Service/Connector] failed to set property [keystoreFile] to
[/opt/tomcat10/ssl/keystore.jks]
20-Aug-2023 06:40:24.756 WARNING [main]
org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
[Server/Service/Connector] failed to set property [keystorePass] to [apigee]
20-Aug-2023 06:40:24.757 WARNING [main]
org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
[Server/Service/Connector] failed to set property [truststoreFile] to
[/opt/tomcat10/ssl/clienttrustore.jks]
20-Aug-2023 06:40:24.757 WARNING [main]
org.apache.tomcat.util.digester.SetPropertiesRule.begin Match
[Server/Service/Connector] failed to set property [truststorePass] to
[apigee]
20-Aug-2023 06:40:24.809 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Server version name:
  Apache Tomcat/10.0.27
20-Aug-2023 06:40:24.809 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Server built:
 Oct 3 2022 14:18:31 UTC
20-Aug-2023 06:40:24.809 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Server version
number: 10.0.27.0
20-Aug-2023 06:40:24.809 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log OS Name:
  Linux
20-Aug-2023 06:40:24.810 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log OS Version:
 4.18.0-477.15.1.el8_8.x86_64
20-Aug-2023 06:40:24.810 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Architecture:
 amd64
20-Aug-2023 06:40:24.810 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Java Home:
  /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.382.b05-2.el8.x86_64/jre
20-Aug-2023 06:40:24.810 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log JVM Version:
  1.8.0_382-b05
20-Aug-2023 06:40:24.810 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:
 Red Hat, Inc.
20-Aug-2023 06:40:24.810 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:
  /opt/tomcat10
20-Aug-2023 06:40:24.810 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:
  /opt/tomcat10
20-Aug-2023 06:40:24.811 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument:
-Djava.util.logging.config.file=/opt/tomcat10/conf/logging.properties
20-Aug-2023 06:40:24

Enable two way SSL in Apache Tomcat 10 Version 10.0.27

2023-08-07 Thread Kaushal Shriyan
Hi,

I have gone through https://tomcat.apache.org/tomcat-10.0-doc/ssl-howto.html.
Is there a way to enable two way SSL (mutual) in Apache Tomcat 10 Version
10.0.27?

Please guide me.

Thanks in Advance.

Best Regards,

Kaushal


Re: Enable HTTP Strict Transport Security (HSTS) in Tomcat 9.0.x

2022-04-29 Thread Kaushal Shriyan
Thanks Peter for the link and it worked like a charm. I am running the
tomcat version 9.0.56 on CentOS Linux release 7.9.2009 (Core). I have
enabled the TLSv1.3 protocol as per the below block but when I ran the scan
https://www.ssllabs.com/ssltest/analyze.html, It says *TLS 1.3 -> No* as
per the below scan results.



https://github.com/drwetter/testssl.sh

./testssl.sh --htmlfile
testapp-consent-testpreprod.testapicraft.com.29042022.html
testapp-consent-testpreprod.testapicraft.com


###
testssl.sh   3.1dev from https://testssl.sh/dev/

  This program is free software. Distribution and
 modification under GPLv2 permitted.
  USAGE w/o ANY WARRANTY. USE IT AT YOUR OWN RISK!

   Please file bugs @ https://testssl.sh/bugs/

###

 Using "LibreSSL 2.8.3" [~69 ciphers]
 on DACADMINs-MacBook-Pro:/usr/bin/openssl
 (built: "date not available", platform: "information not available")


 Start 2022-04-29 19:02:41-->> 35.210.220.115:443 (
testapp-consent-testpreprod.testapicraft.com) <<--

 Service detected:   HTTP


 Testing protocols via sockets except NPN+ALPN

 SSLv2  not offered (OK)
 SSLv3  not offered (OK)
 TLS 1  not offered
 TLS 1.1not offered
 TLS 1.2offered (OK)
 *TLS 1.3not offered and downgraded to a weaker protocol*
 NPN/SPDY   Local problem: /usr/bin/openssl doesn't support NPN/SPDY
 ALPN/HTTP2 not offered

[image: image.png]

Am I missing anything in the /opt/tomcat9/conf/server.xml file? Please
comment and guide me. Thanks in advance

Best Regards,

Kaushal

On Fri, Apr 29, 2022 at 12:15 PM Thomas Hoffmann (Speed4Trade GmbH)
 wrote:

>
>
> > -Ursprüngliche Nachricht-
> > Von: Christopher Schultz 
> > Gesendet: Freitag, 29. April 2022 01:10
> > An: users@tomcat.apache.org
> > Betreff: Re: Enable HTTP Strict Transport Security (HSTS) in Tomcat 9.0.x
> >
> > Kaushal,
> >
> > On 4/28/22 15:37, Kaushal Shriyan wrote:
> > > On Fri, Apr 29, 2022 at 12:44 AM Peter Chiu  wrote:
> > >
> > >> This is what I am using. Hope this helps.
> > >>
> > >> https://orclcs.blogspot.com/2017/04/enable-hsts-in-tomcat.html
> > >
> > > Thanks Peter. Do I need to run tomcat on port 443 or 8443 to enable
> > > HTTP Strict Transport Security (HSTS). I will be unable to run tomcat
> > > service on port 443 as it is a privileged port for root user only.
> > > Currently I am running tomcat service as tomcat user on port 8080.
> >
> > You must use HTTPS to connect to a server in order for the HSTS header
> to be
> > respected.
> >
> > https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-
> > Transport-Security
> >
> > "
> > Note: The Strict-Transport-Security header is ignored by the browser when
> > your site is accessed using HTTP; this is because an attacker may
> intercept
> > HTTP connections and inject the header or remove it. When your site is
> > accessed over HTTPS with no certificate errors, the browser knows your
> site
> > is HTTPS capable and will honor the Strict-Transport-Security header.
> > "
> >
> > Is your server available via https:// ? If you are running on port 80,
> that
> > doesn't tell us if it's encrypted.
> >
> > If you are enabling HSTS, how do you expect users to connect to your
> service
> > if you are running non-secure HTTP on port 8080?
> >
> > -chris
> >
>
> Hello,
> according to
> https://github.com/Oreste-Luci/apache-tomcat-8.0.26-src/blob/master/java/org/apache/catalina/filters/HttpHeaderSecurityFilter.java
> the headers are set, if request.isSecure is set to true.
>
> So it depends on  within the server.xml
> If behind a proxy with SSL Offloading, this flag can also be set on a
> plain http connection.
>
> Greetings,
> Thomas
>


Re: Enable HTTP Strict Transport Security (HSTS) in Tomcat 9.0.x

2022-04-28 Thread Kaushal Shriyan
On Fri, Apr 29, 2022 at 12:44 AM Peter Chiu  wrote:

> This is what I am using. Hope this helps.
>
> https://orclcs.blogspot.com/2017/04/enable-hsts-in-tomcat.html


Thanks Peter. Do I need to run tomcat on port 443 or 8443 to enable HTTP
Strict Transport Security (HSTS). I will be unable to run tomcat service on
port 443 as it is a privileged port for root user only. Currently I am
running tomcat service as tomcat user on port 8080.

Please suggest further. Thanks in advance

Best Regards,

Kaushal


Enable HTTP Strict Transport Security (HSTS) in Tomcat 9.0.x

2022-04-28 Thread Kaushal Shriyan
Hi,

I am running the tomcat version 9.0.56 on CentOS Linux release 7.9.2009
(Core) and trying to configure HTTP Strict Transport Security (HSTS)
using /opt/tomcat9/conf/web.xml

# ./version.sh
Using CATALINA_BASE:   /opt/tomcat9
Using CATALINA_HOME:   /opt/tomcat9
Using CATALINA_TMPDIR: /opt/tomcat9/temp
Using JRE_HOME:
 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.322.b06-1.el7_9.x86_64
Using CLASSPATH:
/opt/tomcat9/bin/bootstrap.jar:/opt/tomcat9/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Server version: Apache Tomcat/9.0.56
Server built:   Dec 2 2021 14:30:07 UTC
Server number:  9.0.56.0
OS Name:Linux
OS Version: 3.10.0-1160.62.1.el7.x86_64
Architecture:   amd64
JVM Version:1.8.0_322-b06
JVM Vendor: Red Hat, Inc.
# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
#


> */opt/tomcat9/conf/web.xml*
>   httpHeaderSecurity
>
> org.apache.catalina.filters.HttpHeaderSecurityFilter
>   true
>   
> hstsEnabled
> true
>   
>   
> hstsMaxAgeSeconds
> 31536000
>   
>   
> hstsIncludeSubDomains
> true
>   
> 
> 
>   httpHeaderSecurity
>   /*
>   REQUEST
> 


When I scan the https://tomcatURL FQDN using
https://www.ssllabs.com/ssltest/ I do not see the Strict Transport Security
response header. Please guide me. Thanks in advance

Best Regards,

Kaushal


Apache tomcat upgrade from 9.0.52 to 9.0.60

2022-03-27 Thread Kaushal Shriyan
Hi,

I am referring to https://tomcat.apache.org/download-90.cgi. I am currently
running
Apache Tomcat/9.0.52 on CentOS Linux release 7.9.2009 (Core)

/opt/tomcat/bin/version.sh
Using CATALINA_BASE:   /var/tmp/tomcat9
Using CATALINA_HOME:   /var/tmp/tomcat9
Using CATALINA_TMPDIR: /var/tmp/tomcat9/temp
Using JRE_HOME:/usr
Using CLASSPATH:
/var/tmp/tomcat9/bin/bootstrap.jar:/var/tmp/tomcat9/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Server version: Apache Tomcat/9.0.52
Server built:   Jul 31 2021 04:12:17 UTC
Server number:  9.0.52.0
OS Name:Linux
OS Version: 3.10.0-1160.59.1.el7.x86_64
Architecture:   amd64
JVM Version:1.8.0_322-b06
JVM Vendor: Red Hat, Inc.

How do I upgrade it to the latest version as per
https://tomcat.apache.org/download-90.cgi#9.0.60 Please suggest/guide?

Thanks in advance and I look forward to hearing from you

Best Regards,

Kaushal


Use relative path in Java code hosted in tomcat server.

2019-09-19 Thread Kaushal Shriyan
Hi,

I am adding the below absolute path in java code and compiled in a war file
and uploaded in tomcat 9.0.24 servlet/jsp container.

file=createPDF("/opt/tomcat9/webapps/statementspdf/"+accountId+statementId+".pdf",
> statementsEntityATOS);


 Is there a way to use relative path instead of absolute path to store all
pdf files in /opt/tomcat9/webapps/statementspdf/ directory. Any examples to
help me understand it better.
For
example file=createPDF("../webapps/statementspdf/"+accountId+statementId+".pdf",
statementsEntityATOS);

Thanks in advance and i look forward to hearing from you

Best Regards,

Kaushal


Re: Tomcat version 9.0.22 release

2019-07-12 Thread Kaushal Shriyan
On Sat, Jul 13, 2019 at 12:47 AM Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Krushal,
>
> On 7/11/19 13:00, Kaushal Shriyan wrote:
> > Is there a way to find out if tomcat version 9.0.22
> > https://tomcat.apache.org/download-90.cgi#9.0.22 is a security or
> > enhancement or bug fix to tomcat version 9.0.21?
> >
> > Any help would be appreciated and i look forward to hearing from
> > you.
>
> http://tomcat.apache.org/tomcat-9.0-doc/changelog.html#Tomcat_9.0.22_(ma
> rkt)
>
>
Thanks Chris and appreciate your help.


Tomcat version 9.0.22 release

2019-07-11 Thread Kaushal Shriyan
Hi,

Is there a way to find out if tomcat version 9.0.22
https://tomcat.apache.org/download-90.cgi#9.0.22 is a security or
enhancement or bug fix to tomcat version 9.0.21?

Any help would be appreciated and i look forward to hearing from you.

Thanks in Advance.

Best Regards,

Kaushal


Re: Enable Debugging in Tomcat7 catalina.out file

2017-01-11 Thread Kaushal Shriyan
On Fri, Jan 6, 2017 at 12:10 AM, Kaushal Shriyan <kaushalshri...@gmail.com>
wrote:

> Hi,
>
> Is there a way to enable debugging tomcat catalina.out file. I did set it
> to FINEST in logging.properties file.
>
> Tomcat version :- 7.0.59
> OS :- CentOS release 6.8 (Final)
> Java version :- java -version
> java version "1.7.0_80"
> Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
> Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
>
> My logging.properties file are as below :-
>
> 
> -
> #*cat logging.properties*
> # 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.
>
> handlers = 1catalina.java.util.logging.FileHandler,
> 2localhost.java.util.logging.FileHandler, 
> 3manager.java.util.logging.FileHandler,
> 4host-manager.java.util.logging.FileHandler, java.util.logging.
> ConsoleHandler
>
> .handlers = 1catalina.java.util.logging.FileHandler,
> 2localhost.java.util.logging.FileHandler, 
> 3manager.java.util.logging.FileHandler,
> 4host-manager.java.util.logging.FileHandler, java.util.logging.
> ConsoleHandler
>
> 
> # Handler specific properties.
> # Describes specific configuration info for Handlers.
> 
>
> 1catalina.org.apache.juli.FileHandler.level = FINE
> 1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
> 1catalina.org.apache.juli.FileHandler.prefix = catalina.
> 1catalina.java.util.logging.FileHandler.limit = 1
> 1catalina.java.util.logging.FileHandler.count = 1
>
> 1catalina.java.util.logging.FileHandler.level = FINEST
> 1catalina.java.util.logging.FileHandler.pattern = ${catalina.base}/logs/
> catalina%g.log
> 1catalina.java.util.logging.FileHandler.limit = 50
> 1catalina.java.util.logging.FileHandler.count = 1
> 1catalina.java.util.logging.FileHandler.formatter = java.util.logging.
> SimpleFormatter
>
> 2localhost.org.apache.juli.FileHandler.level = FINE
> 2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
> 2localhost.org.apache.juli.FileHandler.prefix = localhost.
> 2localhost.java.util.logging.FileHandler.limit = 1
> 2localhost.java.util.logging.FileHandler.count = 1
>
> 2localhost.java.util.logging.FileHandler.level = FINEST
> 2localhost.java.util.logging.FileHandler.pattern = ${catalina.base}/logs/
> localhost%g.log
> 2localhost.java.util.logging.FileHandler.limit = 50
> 2localhost.java.util.logging.FileHandler.count = 1
> 2localhost.java.util.logging.FileHandler.formatter = java.util.logging.
> SimpleFormatter
>
> 3manager.org.apache.juli.FileHandler.level = FINE
> 3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
> 3manager.org.apache.juli.FileHandler.prefix = manager.
> 3manager.java.util.logging.FileHandler.limit = 1
> 3manager.java.util.logging.FileHandler.count = 1
>
> 3manager.java.util.logging.FileHandler.level = FINEST
> 3manager.java.util.logging.FileHandler.pattern =
> ${catalina.base}/logs/manager%g.log
> 3manager.java.util.logging.FileHandler.limit = 50
> 3manager.java.util.logging.FileHandler.count = 1
> 3manager.java.util.logging.FileHandler.formatter = java.util.logging.
> SimpleFormatter
>
> 4host-manager.org.apache.juli.FileHandler.level = FINE
> 4host-manager.org.apache.juli.FileHandler.directory =
> ${catalina.base}/logs
> 4host-manager.org.apache.juli.FileHandler.prefix = host-manager.
> 4host-manager.java.util.logging.FileHandler.limit = 1
> 4host-manager.java.util.logging.FileHandler.count = 1
>
> 4host-manager.java.util.logging.FileHandler.level = FINEST
> 4host-manager.java.util.logging.FileHandler.pattern =
> ${catalina.base}/logs/host-manager%g.log
> 4host-manager.java.util.logging.FileHandler.limit = 50
> 4host-manager.java.util.logging.FileHandler.co

Enable Debugging in Tomcat7 catalina.out file

2017-01-05 Thread Kaushal Shriyan
Hi,

Is there a way to enable debugging tomcat catalina.out file. I did set it
to FINEST in logging.properties file.

Tomcat version :- 7.0.59
OS :- CentOS release 6.8 (Final)
Java version :- java -version
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)

My logging.properties file are as below :-

-
#*cat logging.properties*
# 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.

handlers = 1catalina.java.util.logging.FileHandler,
2localhost.java.util.logging.FileHandler,
3manager.java.util.logging.FileHandler,
4host-manager.java.util.logging.FileHandler,
java.util.logging.ConsoleHandler

.handlers = 1catalina.java.util.logging.FileHandler,
2localhost.java.util.logging.FileHandler,
3manager.java.util.logging.FileHandler,
4host-manager.java.util.logging.FileHandler,
java.util.logging.ConsoleHandler


# Handler specific properties.
# Describes specific configuration info for Handlers.


1catalina.org.apache.juli.FileHandler.level = FINE
1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.
1catalina.java.util.logging.FileHandler.limit = 1
1catalina.java.util.logging.FileHandler.count = 1

1catalina.java.util.logging.FileHandler.level = FINEST
1catalina.java.util.logging.FileHandler.pattern =
${catalina.base}/logs/catalina%g.log
1catalina.java.util.logging.FileHandler.limit = 50
1catalina.java.util.logging.FileHandler.count = 1
1catalina.java.util.logging.FileHandler.formatter =
java.util.logging.SimpleFormatter

2localhost.org.apache.juli.FileHandler.level = FINE
2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
2localhost.org.apache.juli.FileHandler.prefix = localhost.
2localhost.java.util.logging.FileHandler.limit = 1
2localhost.java.util.logging.FileHandler.count = 1

2localhost.java.util.logging.FileHandler.level = FINEST
2localhost.java.util.logging.FileHandler.pattern =
${catalina.base}/logs/localhost%g.log
2localhost.java.util.logging.FileHandler.limit = 50
2localhost.java.util.logging.FileHandler.count = 1
2localhost.java.util.logging.FileHandler.formatter =
java.util.logging.SimpleFormatter

3manager.org.apache.juli.FileHandler.level = FINE
3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
3manager.org.apache.juli.FileHandler.prefix = manager.
3manager.java.util.logging.FileHandler.limit = 1
3manager.java.util.logging.FileHandler.count = 1

3manager.java.util.logging.FileHandler.level = FINEST
3manager.java.util.logging.FileHandler.pattern =
${catalina.base}/logs/manager%g.log
3manager.java.util.logging.FileHandler.limit = 50
3manager.java.util.logging.FileHandler.count = 1
3manager.java.util.logging.FileHandler.formatter =
java.util.logging.SimpleFormatter

4host-manager.org.apache.juli.FileHandler.level = FINE
4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
4host-manager.org.apache.juli.FileHandler.prefix = host-manager.
4host-manager.java.util.logging.FileHandler.limit = 1
4host-manager.java.util.logging.FileHandler.count = 1

4host-manager.java.util.logging.FileHandler.level = FINEST
4host-manager.java.util.logging.FileHandler.pattern =
${catalina.base}/logs/host-manager%g.log
4host-manager.java.util.logging.FileHandler.limit = 50
4host-manager.java.util.logging.FileHandler.count = 1
4host-manager.java.util.logging.FileHandler.formatter =
java.util.logging.SimpleFormatter

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter =
java.util.logging.SimpleFormatter

org.apache.juli.FileHandler.level = FINE
org.apache.juli.FileHandler.directory = ${catalina.base}/logs
org.apache.juli.FileHandler.prefix = servlet-examples.


# Facility specific properties.
# Provides extra control for each logger.



Re: Exception in thread "http-bio-8080-exec-120" java.lang.OutOfMemoryError: PermGen space

2016-11-28 Thread Kaushal Shriyan
Thanks Roman and Chris for the detailed explanation. Is there a way to find
out what all java classes are loaded during runtime?

Thanks in Advance.

Regards,

Kaushal

On Tue, Nov 29, 2016 at 10:47 AM, Román Valoria <romanvalo...@gmail.com>
wrote:

> Sun, or should I say Oracle now, seems to be including the exact same tool
> on the JDK. It is already pre-packaged, so it may be customized by Oracle.
> It has the same look and feel as in the screenshot.
>
> On Tue, Nov 29, 2016 at 11:17 AM, Kaushal Shriyan <
> kaushalshri...@gmail.com>
> wrote:
>
> > On Tue, Nov 29, 2016 at 7:40 AM, Román Valoria <romanvalo...@gmail.com>
> > wrote:
> >
> > > Use Java VisualVM to see PermGen memory allocation and troubleshoot. It
> > > would also let you validate that your sizing parameters are properly
> set.
> > >
> > >
> > Hi Roman,
> >
> > Thanks for your reply. Are you referring to https://visualvm.github.io/?
> > Please comment.
> >
> > Regards,
> >
> > Kaushal
> >
>


Re: Exception in thread "http-bio-8080-exec-120" java.lang.OutOfMemoryError: PermGen space

2016-11-28 Thread Kaushal Shriyan
On Tue, Nov 29, 2016 at 7:40 AM, Román Valoria 
wrote:

> Use Java VisualVM to see PermGen memory allocation and troubleshoot. It
> would also let you validate that your sizing parameters are properly set.
>
>
Hi Roman,

Thanks for your reply. Are you referring to https://visualvm.github.io/?
Please comment.

Regards,

Kaushal


Exception in thread "http-bio-8080-exec-120" java.lang.OutOfMemoryError: PermGen space

2016-11-28 Thread Kaushal Shriyan
Hi,

I am seeing the below PermGen space issue in tomcat catalina.out file.
Currently i am running Apache Tomcat Version 7.0.59 on CentOS release 6.8
(Final)
java -version
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)

Exception in thread "http-bio-8080-exec-120" java.lang.OutOfMemoryError:
PermGen space
Exception in thread "http-bio-8080-exec-165" java.lang.OutOfMemoryError:
PermGen space

2016-11-28 13:40:30.543 ERROR 19011 --- [o-8080-exec-110]
o.s.boot.context.web.ErrorPageFilter : Forwarding to error page from
request [/push-notifications] due to exception [PermGen space]
java.lang.OutOfMemoryError: PermGen space


Is there a way to debug PermGen space issue and are there any tools to
debug the same. Currently i have set -XX:MaxPermSize=1024m. How do i
determine what value should be set for MaxPermSize?

Any help will be highly appreciable. Please do let me know if you need any
additional details.

Thanks in Advance

Regards,

Kaushal


Re: Apache Tomcat Version 7.0.59 on CentOS 6.8 to handle 2k requests/second

2016-11-14 Thread Kaushal Shriyan
On Mon, Nov 14, 2016 at 8:06 PM, Mark Thomas <ma...@apache.org> wrote:

> On 14/11/2016 14:28, Kaushal Shriyan wrote:
> > Hi,
> >
> > is there a way to configure tomcat to handle 2k requests/second (2k
> meaning
> > 2000 requests per second). How many cpu cores do i need to setup tomcat
> to
> > handle 2k requests/second? How much physical memory the server should
> have?
>
> That will depend on your application.
>
> My laptop will easily handle 10 times that for a simple application. I
> have seen much larger servers unable to handle more than a handful of
> requests a second for a large, complex, poorly performing application.
>
> > Any guidelines or rule of thumb to be followed? Any help will be highly
> > appreciable.
>
> Profile your application.
>

Thanks Mark Thomas for the quick reply.

Please suggest me any open source profiling application which i can start
with. I will appreciate if you can help me understand the relation between
2k requests/second vs cpu cores of the server.

Thanks again in advance.

Regards,

Kaushal


Apache Tomcat Version 7.0.59 on CentOS 6.8 to handle 2k requests/second

2016-11-14 Thread Kaushal Shriyan
Hi,

is there a way to configure tomcat to handle 2k requests/second (2k meaning
2000 requests per second). How many cpu cores do i need to setup tomcat to
handle 2k requests/second? How much physical memory the server should have?

Any guidelines or rule of thumb to be followed? Any help will be highly
appreciable.

Thanks in Advance.

Regards,

Kaushal


graceful restart tomcat

2011-11-10 Thread Kaushal Shriyan
Hi,

Is there a way to forcefully graceful restart tomcat server using bash
script via cron.Any sample bash script ?

Regards,

Kaushal

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



Re: graceful restart tomcat

2011-11-10 Thread Kaushal Shriyan
On Thu, Nov 10, 2011 at 2:42 PM, Pid p...@pidster.com wrote:
 On 10/11/2011 08:28, Kaushal Shriyan wrote:
 Hi,

 Is there a way to forcefully graceful restart tomcat server using bash
 script via cron.Any sample bash script ?

 Which is it: forceful or graceful?  The two are not usually compatible.

 'graceful' is found in Apache HTTPD: [the] signal causes the parent
 process to advise the children to exit after their current request (or
 to exit immediately if they're not serving anything). The parent
 re-reads its configuration files and re-opens its log files. As each
 child dies off the parent replaces it with a child from the new
 generation of the configuration, which begins serving new requests
 immediately.

 There is no equivalent for Tomcat.

 The Commons Daemon found in tomcat/bin/commons-daemon-native.tar.gz
 provides a service wrapper and /etc/init.d/ type sample script which may
 be useful.

Hi pid

I dont see commons-daemon-native.tar.gz under /opt/test/apache-tomcat-5.5.27/bin

catalina.shcommons-logging-api-1.1.1.jar  digest.sh
jsvc.tar.gzsetclasspath.sh   startup.bat   tomcat5w.exe
tool-wrapper.bat  version.sh
[root@bin]# pwd
/opt/test/apache-tomcat-5.5.27/bin
[root@bin]# ls
bootstrap.jar  catalina-tasks.xml cpappend.bat
jkstatus-tasks.xml service.bat   shutdown.bat  startup.sh
tomcat-juli.jar   tool-wrapper.sh
catalina.bat   commons-daemon.jar digest.bat
jmxaccessor-tasks.xml  setclasspath.bat  shutdown.sh   tomcat5.exe
tomcat-native.tar.gz  version.bat
catalina.shcommons-logging-api-1.1.1.jar  digest.sh
jsvc.tar.gzsetclasspath.sh   startup.bat   tomcat5w.exe
tool-wrapper.bat  version.sh
[root@bin]#

Please suggest further.

Regards,

Kaushal

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



Re: HTTP Status 404 - /manager/html

2011-11-08 Thread Kaushal Shriyan
On Tue, Nov 8, 2011 at 10:29 AM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
 From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com]
 Subject: Re: HTTP Status 404 - /manager/html

 I did downloaded it from
 http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.19/bin/

 Good.  For curiosity's sake, why didn't you use the most recent release?

 i do have manager webapps

 So noted.

 Are you sure you're accessing that Tomcat?

 Have you changed anything in conf/server.xml (e.g., disabling 
 deployOnStartup)?

 Look in the Tomcat logs to see if there are any errors regarding deployment 
 of or access to the manager webapp.

  - Chuck


Thanks Chuck for the hint,Fixed it after peeking at catalina.out log file.

INFO: Deploying configuration descriptor manager.xml from
/opt/tomcat0/conf/Catalina/localhost
java.lang.IllegalArgumentException: Document base
/opt/tomcat0/server/webapps/manager does not exist or is not a
readable directory
SEVERE: Context [/manager] startup failed due to previous errors
INFO: Deploying web application directory host-manager

So going through the logs,if we look at
/opt/tomcat0/conf/Catalina/localhost/manager.xml docBase was set to a
different path
I have corrected it and it worked fine.

Regards,

Kaushal

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



HTTP Status 404 - /manager/html

2011-11-07 Thread Kaushal Shriyan
Hi,

When i hit http://IP:8080/manager/html, I get HTTP Status 404 -
/manager/html, Tomcat Version 7.0.19, Any clue ?

Regards

Kaushal

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



Re: HTTP Status 404 - /manager/html

2011-11-07 Thread Kaushal Shriyan
On Tue, Nov 8, 2011 at 8:42 AM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
 From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com]
 Subject: HTTP Status 404 - /manager/html

 When i hit http://IP:8080/manager/html, I get HTTP Status 404 -
 /manager/html, Tomcat Version 7.0.19, Any clue ?

 Is the manager webapp deployed?  Where did you get this Tomcat?  If you used 
 a 3rd-party repackaged version of Tomcat rather than a real one from 
 tomcat.apache.org, it could easily be missing normally included components.

  - Chuck

Hi Chuck,

I did downloaded it from
http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.19/bin/ and i do
have manager webapps

root@:/opt/tomcat0/webapps# du -hsc *
19M clients
8.0Kclients.war
3.3Mdocs
2.0Mexamples
92K host-manager
40M invite
40M invite-bk-2
40M invite-nov-1
116Kmanager
2.4Mrac
2.0Mrac.war
208KROOT
148Mtotal
root@:/opt/tomcat0/webapps#

Please suggest further.

Regards

Kaushal



 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



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



Re: Autodeploy and clear work directory

2011-05-20 Thread Kaushal Shriyan
On Thu, May 19, 2011 at 6:04 AM, Kaushal Shriyan
kaushalshri...@gmail.com wrote:
 Hi,

 I am running TC 5.5.27, Ubuntu Linux Server 8.04 and Java6U24.

 Is there a way to clear the work directory automatically when i deploy
 any new war under webapps and i always need to restart tomcat server
 whenever i deploy new war. is there a forceful auto deploy feature ?

 Regards,

 Kaushal


Hi,

Can someone please reply me on my earlier post to this Mailing List ?

Regards,

Kaushal

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



Autodeploy and clear work directory

2011-05-18 Thread Kaushal Shriyan
Hi,

I am running TC 5.5.27, Ubuntu Linux Server 8.04 and Java6U24.

Is there a way to clear the work directory automatically when i deploy
any new war under webapps and i always need to restart tomcat server
whenever i deploy new war. is there a forceful auto deploy feature ?

Regards,

Kaushal

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



tomcat - which version to download

2011-03-31 Thread Kaushal Shriyan
Hi,

As of now I am using tomcat apache 5.5.27 with java version 1.6.0_24 on
Ubuntu Server 10.04. I happened to visit the url -
http://tomcat.apache.org/whichversion.html
Bit confused. Not sure which version i need to go for my production purpose
to avail latest features and performance improvement.

Please suggest/guide.

Thanks

Kaushal


explaining server.xml

2011-03-31 Thread Kaushal Shriyan
Hi,

Can someone please help me understand about various tag and definition in
server.xml ?

Thanks

Kaushal


Re: tomcat - which version to download

2011-03-31 Thread Kaushal Shriyan
On Thu, Mar 31, 2011 at 4:58 PM, Mark Thomas ma...@apache.org wrote:

 On 31/03/2011 12:12, Robert P. J. Day wrote:
  On Thu, 31 Mar 2011, Kaushal Shriyan wrote:
 
  Hi,
 
  As of now I am using tomcat apache 5.5.27 with java version
  1.6.0_24 on Ubuntu Server 10.04. I happened to visit the url -
  http://tomcat.apache.org/whichversion.html Bit confused. Not sure
  which version i need to go for my production purpose to avail latest
  features and performance improvement.

 Latest features - Tomcat 7
 Best performance - Latest JDK

 There are a few performance tweaks in Tomcat 7 but nothing as
 significant as you'll get from using Java 6 rather than Java 5 (as you
 already are).

as a totally new user to tomcat, i'm running ubuntu 10.10 and i just
  downloaded the tomcat 7.0.11 tarball and dumped it into a personal
  directory.  seems to start and run fine, although i have no existing
  webapps that force me to worry about backward compatibility.

 The specifications are backwards compatible. If a specification
 compliant application runs on Tomcat 3 it should run on Tomcat 7. If it
 doesn't, that would be a bug.

 The catch is specification compliant. Tomcat has become stricter in
 enforcing the requirements of the specification (usually because of edge
 case bugs if it doesn't) which does mean that an application that runs
 on an older Tomcat version may require some fixes and/or Tomcat
 configuration to disable checks on the latest release.

 Mark



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


Hi,

As per - http://wiki.apache.org/tomcat/TomcatVersions

Tomcat 7.0.x

Spec versions:

Servlet 3.0, JSP 2.2, EL 2.2
Enhancements:Yes
Process:CTR

Can someone please explain me about EL 2.2, Enhancements and about process
CTR.

Thanks

Kaushal


Re: tomcat - which version to download

2011-03-31 Thread Kaushal Shriyan
On Thu, Mar 31, 2011 at 5:26 PM, Mark Thomas ma...@apache.org wrote:

 On 31/03/2011 12:47, Kaushal Shriyan wrote:
  Hi,
 
  As per - http://wiki.apache.org/tomcat/TomcatVersions
 
  Tomcat 7.0.x
 
  Spec versions:
 
  Servlet 3.0, JSP 2.2, EL 2.2
  Enhancements:Yes
  Process:CTR
 
  Can someone please explain me about EL 2.2,

 Read the EL 2.2 specification.

  Enhancements

 It means that Tomcat 7 will have new features added to it.


Can you please point me about the Release notes about New Features available
in Tomcat 7 ?


  and about process CTR.

 http://www.apache.org/foundation/glossary.html

 Mark



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




Re: tomcat - which version to download

2011-03-31 Thread Kaushal Shriyan
On Thu, Mar 31, 2011 at 7:58 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Kaushal,

 On 3/31/2011 7:02 AM, Kaushal Shriyan wrote:
  As of now I am using tomcat apache 5.5.27 with java version 1.6.0_24 on
  Ubuntu Server 10.04. I happened to visit the url -
  http://tomcat.apache.org/whichversion.html
  Bit confused. Not sure which version i need to go for my production
 purpose
  to avail latest features and performance improvement.

 If you have done all your testing on Tomcat 5.5 and you want to go into
 production, don't do anything foolish like install Tomcat 6 or Tomcat 7
 in production and just cross your fingers.

 Instead, re-start your testing procedure with the version that you'd
 like to use in production. I would recommend Tomcat 7.latest.

 For full disclosure, we only recently upgraded from Tomcat 5.5 to Tomcat
 6.0 in production after a lengthy testing process to make sure
 everything worked. We are going to be moving up to Tomcat 7 in
 development, soon, and hope to push it our into production withing a few
 months.

 - -chris


Chris,

Thanks for the quick reply. Really appreciated. As of now its 7.0.11, so
Should i need to go with 7.0.11 or the lower 7.0... version ?
Please suggest

Thanks

Kaushal


maxThreads

2011-03-31 Thread Kaushal Shriyan
Hi,

What are the implications or issues if maxThreads are increased from the
default 150 to 300 threads. Are there any performance issues ?
I am using TC 5.5.27 , Ubuntu Linux Server 8.04 , Sun Java 1.6.0 Update 24

Please suggest/guide.

Thanks and Regards,

Kaushal


log4j

2010-07-08 Thread Kaushal Shriyan
Hi,

Is there a way to run log4j appender at a specified time?

log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/catalina.out
log4j.appender.R.DatePattern='.'-MM-dd
log4j.appender.R.layout=org.apache.log4j.PatternLayout

I have put the log4j.properties under /opt/tomcat0/common/classes

Please suggest.

Thanks and Regards

Kaushal

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



jconsole

2010-06-29 Thread Kaushal Shriyan
Hi,

Does jconsole
http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html cause
additional overheads on a server?

Thanks,

Kaushal


Re: jconsole

2010-06-29 Thread Kaushal Shriyan
On Tue, Jun 29, 2010 at 7:22 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com]
  Subject: jconsole
 
  Does jconsole
  http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html
  cause additional overheads on a server?

 Of course - not even Java can avoid Heisenberg.  Just how much overhead
 depends on what you're looking at and how often you look.  Whether or not
 the effect is ignorable in your environment is something only you can
 decide.

  - Chuck

 Hi Chuck,

My servers are heavily loaded running multiple tomcat instances. Are there
light weight applications in competent to jconsole.
Please suggest.

Thanks,

Kaushal


Unrecognized VM option '+HeapDumpOnCtrlBreak'

2010-06-03 Thread Kaushal Shriyan
Hi,

I am running tomcat 5.5.27 on ubuntu 8.04, java version is

java -version
java version 1.6.0_06
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22, mixed mode)

I did added JAVA_OPTS=-Xms512m -Xmx4500m -XX:+HeapDumpOnCtrlBreak
-XX:+HeapDumpOnOutOfMemoryError  on tomcat init script

Unrecognized VM option '+HeapDumpOnCtrlBreak'
Could not create the Java virtual machine.
done.


Please suggest

Thanks,

Kaushal


Re: Unrecognized VM option '+HeapDumpOnCtrlBreak'

2010-06-03 Thread Kaushal Shriyan
On Thu, Jun 3, 2010 at 6:55 PM, Bill Au bill.w...@gmail.com wrote:

 That option is not available in Java 6.  With Java 6, you can use jmap to
 take a heap dump.

 Bill


Hi Bill

Please let me know the jmap option to take a heap dump

Thanks,

Kaushal


foreach ant task

2010-03-11 Thread Kaushal Shriyan
Hi

can someone here give me example to use foreach ant task to deploy
same war to multiple running Tomcat Server?
http://ant-contrib.sourceforge.net/tasks/tasks/foreach.html

Thanks,

Kaushal

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



Re: Deploy war

2010-03-04 Thread Kaushal Shriyan
On Wed, Mar 3, 2010 at 9:22 PM, Gurkan Erdogdu cgurkanerdo...@gmail.com wrote:
 I wonder whether you have looked at
 http://tomcat.apache.org/tomcat-6.0-doc/index.html or not

 2010/3/3 Kaushal Shriyan kaushalshri...@gmail.com

 On Wed, Mar 3, 2010 at 4:50 PM, André Warnier a...@ice-sa.com wrote:
  Pid wrote:
 
  On 03/03/2010 09:52, André Warnier wrote:
 
  Kaushal Shriyan wrote:
 
  Hi,
 
  At the moment, I stop,kill tomcat and scp the war to webapps folder
  and start tomcat server. is there a better way to do it ?
 
 
  http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html
 
  At the very least you could
 
  *without stopping Tomcat*
 
  upload an inactive version webapp.war-off
 
  and then rename it webapp.war once it's there, which would reduce the
  downtime.
 
 
  Which is what is explained - among other useful things like autoDeploy -
 in
  the section Deploying on a running Tomcat server.
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 

 Hi,

 is it possible to restart tomcat using ant ? I googled and found out
 that its possible using build.xml file.
 Any example ?

 Thanks and Regards,

 Kaushal

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




 --
 Gurkan Erdogdu
 http://gurkanerdogdu.blogspot.com


Hi,

We face issues whenever we deploy application using tomcat manager we
used to face the situation where new
changes were not reflected. On stopping, cleaning work folder and
starting tomcat again application used to get deployed properly. But
to restart and clean we need to ssh again on the machine where we want
to deploy defeating our main purpose.

Also one more issue we have faced is we are not able to locate the new
war file where Tomcat manager has deployed it

We need to have a tool that does the following on specified remote hosts

1. stop the tomcat
2. back up the existing war
3. remove existing wars and folders and copy the new war
4. start the tomcat again

Are the above steps possible using ant or is there a better and
efficient way to do it ?

Thanks and Regards,

Kaushal

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



Deploy war

2010-03-03 Thread Kaushal Shriyan
Hi,

At the moment, I stop,kill tomcat and scp the war to webapps folder
and start tomcat server. is there a better way to do it ?

Thanks,

Kaushal

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



Re: Deploy war

2010-03-03 Thread Kaushal Shriyan
On Wed, Mar 3, 2010 at 4:50 PM, André Warnier a...@ice-sa.com wrote:
 Pid wrote:

 On 03/03/2010 09:52, André Warnier wrote:

 Kaushal Shriyan wrote:

 Hi,

 At the moment, I stop,kill tomcat and scp the war to webapps folder
 and start tomcat server. is there a better way to do it ?


 http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html

 At the very least you could

 *without stopping Tomcat*

 upload an inactive version webapp.war-off

 and then rename it webapp.war once it's there, which would reduce the
 downtime.


 Which is what is explained - among other useful things like autoDeploy - in
 the section Deploying on a running Tomcat server.



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



Hi,

is it possible to restart tomcat using ant ? I googled and found out
that its possible using build.xml file.
Any example ?

Thanks and Regards,

Kaushal

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



Re: Deploy war

2010-02-25 Thread Kaushal Shriyan
On Thu, Feb 25, 2010 at 12:55 PM, Kaushal Shriyan
kaushalshri...@gmail.com wrote:
 Hi,

 Is there a tool available to deploy same war to multiple tomcat server ?

 Thanks,

 Kaushal

Hi,

can someone guide me about
http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html ?
I did downloaded TCD and extracted it. I got build.xml  docs  images
lib  LICENSE NOTICE  RELEASE-NOTES
what do i do next to proceed ?

Please suggest.

Thanks and Regards,

Kaushal

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



Re: Deploy war

2010-02-25 Thread Kaushal Shriyan
On Thu, Feb 25, 2010 at 10:01 PM, Oliver Dauter odau...@gmail.com wrote:
 On Thu, Feb 25, 2010 at 13:27, Kaushal Shriyan kaushalshri...@gmail.com 
 wrote:
 On Thu, Feb 25, 2010 at 4:33 PM, Lorenzo Salvadorini
 lorenzo.salvador...@softecspa.it wrote:
 2010/2/25 Kaushal Shriyan kaushalshri...@gmail.com

 I did downloaded
 http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.27/bin/apache-tomcat-5.5.27-deployer.tar.gz
 After extracting i see only build.xml  docs  images  lib  LICENSE
 NOTICE  RELEASE-NOTES

 What do i do next?

  Please suggest

 cat docs/*

 --
 Go easy. Step lightly. Stay free. - The Clash


Hi Oliver

I did read that already. cat docs/* contains manual.html it contains
the same contents as The TCD includes a ready-to-use Ant script, with
the following targets:

The Tomcat Client Deployer Package looks to be what you need to deploy
to a remote server from the command line. From the page:

This is a package which can be used to validate, compile, compress to
.WAR, and deploy web applications to production or development Tomcat
servers. It should be noted that this feature uses the Tomcat Manager
and as such the target Tomcat server should be running.

How can i use it from command line. Please suggest.

Thanks and Regards,

Kaushal

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



Re: Deploy war

2010-02-25 Thread Kaushal Shriyan
On Thu, Feb 25, 2010 at 7:14 PM, Kaushal Shriyan
kaushalshri...@gmail.com wrote:
 On Thu, Feb 25, 2010 at 12:55 PM, Kaushal Shriyan
 kaushalshri...@gmail.com wrote:
 Hi,

 Is there a tool available to deploy same war to multiple tomcat server ?

 Thanks,

 Kaushal

 Hi,

 can someone guide me about
 http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html ?
 I did downloaded TCD and extracted it. I got build.xml  docs  images
 lib  LICENSE NOTICE  RELEASE-NOTES
 what do i do next to proceed ?

 Please suggest.

 Thanks and Regards,

 Kaushal


Hi,

deployer.properties


build=/usr/local/test/build
webapp=config
path=/config
url=http://example:8080/manager
username=tomcat
password=tomcat


ant -Durl=http:/some.other.host:8080/manager

is that correct ?

Please suggest.

Thanks and Regards,

Kaushal

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



Deploy war

2010-02-24 Thread Kaushal Shriyan
Hi,

Is there a tool available to deploy same war to multiple tomcat server ?

Thanks,

Kaushal

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



log viewer

2010-01-13 Thread Kaushal Shriyan
Hi,

I am using GUI application lamdaprobe for accessing catalina.out file.
the issue is that it doesnot contain search feature for finding out
exceptions in catalina.out file
since i do not want to give physical ssh access to the tomcat server

Please guide/suggest.

Thanks and Regards,

Kaushal

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



Re: log viewer

2010-01-13 Thread Kaushal Shriyan
On Wed, Jan 13, 2010 at 8:05 PM, Pid p...@pidster.com wrote:
 On 13/01/2010 12:20, Kaushal Shriyan wrote:

 Hi,

 I am using GUI application lamdaprobe for accessing catalina.out file.
 the issue is that it doesnot contain search feature for finding out
 exceptions in catalina.out file

 That would be a problem with lambdaprobe rather than with Tomcat.

 since i do not want to give physical ssh access to the tomcat server
 Please guide/suggest.

 Use another log viewer utility?

Hi Pid,

Please suggest any log viewer utility

Thanks,

Kaushal

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



Re: log viewer

2010-01-13 Thread Kaushal Shriyan
On Wed, Jan 13, 2010 at 8:52 PM, Christopher Schultz
ch...@christopherschultz.net wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Kaushal,

 On 1/13/2010 10:07 AM, Kaushal Shriyan wrote:
 On Wed, Jan 13, 2010 at 8:05 PM, Pid p...@pidster.com wrote:
 On 13/01/2010 12:20, Kaushal Shriyan wrote:

 Hi,

 I am using GUI application lamdaprobe for accessing catalina.out file.
 the issue is that it doesnot contain search feature for finding out
 exceptions in catalina.out file

 That would be a problem with lambdaprobe rather than with Tomcat.

 since i do not want to give physical ssh access to the tomcat server
 Please guide/suggest.

 Use another log viewer utility?

 Hi Pid,

 Please suggest any log viewer utility


Hi Chris,

 Any decent web browser will allow you to search within a page for a
 string. Can't you use that feature to search-through catalina.out after
 it's been dumped into a page for you?

 Otherwise, download the log file using lambdaprobe to a local file, then
 use a decent text-search program to scan the file for whatever you want.
 UNIX grep is a good choice.

It requires me to download the entire file again and again which is in
way over utilizing Internet bandwidth.

for example my search is in the format of grep somestring
catalina.out | cut -d , -f 6,7,8 | grep -i 91987272727 I can do it
very easily when i am connected to the tomcat server but for the end
user without ssh access, it wont be possible.

please suugest/guide


 A better option would be to configure your logger to, say, email all
 exception reports to you. Then, you don't have to go digging through
 your stdout log file looking for them.

Please Suggest me a step by step guide to configure logger to email
all the exceptions in catalina.out file

Thanks  and Regards,

Kaushal

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



Re: centralized log server

2009-11-17 Thread Kaushal Shriyan
On Tue, Nov 17, 2009 at 3:52 PM, Pid p...@pidster.com wrote:
 On 17/11/2009 07:51, Kaushal Shriyan wrote:

 Hi,

 is there a centralized application to access all the tomcat server
 catalina.logs

 All of them on the internet?

I googled for it. but could not locate any one.

Thanks,

Kaushal

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



Re: centralized log server

2009-11-17 Thread Kaushal Shriyan
On Tue, Nov 17, 2009 at 8:53 PM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
 From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com]
 Subject: centralized log server

 is there a centralized application to access all the tomcat server
 catalina.logs

 Your question is badly phrased, as Pid keeps trying to point out.

 If all you want is to be able to look at the log files, any editor will do.

 LambdaProbe can display the Tomcat log files in a browser - if it can be 
 installed on your version of Tomcat, which you didn't bother to tell us.  You 
 also didn't tell us what platform you're running on, or whether you're using 
 a standard Tomcat download or a 3rd-party repackaged version.  (The location 
 of the log files varies with each.)

Hi Chuck

I got to see tcat server from
http://www.mulesoft.com/tcat-server-enterprise-tomcat-application-server
which says about centralized logging system and also additional
features.

Do you recommend it. I am using the vanila apache tomcat 5.5.27 from
http://tomcat.apache.org/download-55.cgi

Please suggest/Guide

Thanks,

Kaushal

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



centralized log server

2009-11-16 Thread Kaushal Shriyan
Hi,

is there a centralized application to access all the tomcat server
catalina.logs

Thanks,

Kaushal

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



catalina.out file

2009-10-23 Thread Kaushal Shriyan
Hi,

can i change catalina.out to catalina.log or something else. if its
possible how is it done ?

Thanks,

Kaushal

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



Re: catalina.out file

2009-10-23 Thread Kaushal Shriyan
On Fri, Oct 23, 2009 at 11:23 PM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
 From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com]
 Subject: catalina.out file

 can i change catalina.out to catalina.log or something else. if its
 possible how is it done ?

 Tomcat itself does not directly use catalina.out.  Look at the catalina.sh 
 startup script: you'll see a redirect of stdout and stderr to catalina.out; 
 feel free to change it to anything you want.


Thanks Chuck :-)

Kaushal

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



centralized server

2009-05-11 Thread Kaushal Shriyan
Hi,

Is there a way to log all the catalina.out files of tomcat hosted on
different servers to a centralized server and view it using a web Interface?

Thanks and Regards

Kaushal


no request on access log

2009-03-19 Thread Kaushal Shriyan
Hi,

I am using tomcat5 on gentoo OS and Sun JDK 1.5.0.12, i dont see any request
coming to access log.

Host name=testa.example.comappBase=webapps/foldera
unpackWARs=true autoDeploy=true 
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=testa.example_access_log.
suffix=.txt
 pattern=combined resolveHosts=false/
Context path=usage docBase=usage debug=0 priviledged=true/
/Host

  Host name=testb.example.comappBase=webapps/folderb
unpackWARs=true autoDeploy=true 
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=testb.example_access_log.
suffix=.txt
 pattern=combined resolveHosts=false/
Context path=usage docBase=usage debug=0 priviledged=true/
/Host

is that access configuration in server.xml correct ?

Please suggest

Thanks and Regards

Kaushal


Re: no request on access log

2009-03-19 Thread Kaushal Shriyan
On Thu, Mar 19, 2009 at 10:32 PM, Peter Crowther 
peter.crowt...@melandra.com wrote:

  From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com]
  Host name=testa.example.com
 [...]
  Host name=testb.example.com
 [...]

 So are you testing these by browsing to http://testa.example.com, and have
 you mapped that in your DNS or hosts file to be your Tomcat server?  If not,
 these won't work.

 Do you need two Host elements?  Are you actually serving two different
 sites from one Tomcat?

 What Tomcat revision are you running?  There were two different major
 versions of Tomcat 5.  Version numbers are 5.x.y - what are the values of
 x and y?  If you tell us that, we can give you more help.

- Peter

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

 Hi Peter

I am using Tomcat 5.5.27. Actually i have number of WAR under webapps. I am
running it on the same host where tomcat server is running.

I want access log for two of my WAR under webapps folder meaning separate
access log for two of my WAR. In my earlier email, I believe it would be
wrong as you have said.

Please suggest.

Thanks and Regards

Kaushal


Re: no request on access log

2009-03-19 Thread Kaushal Shriyan
On Thu, Mar 19, 2009 at 10:53 PM, Kaushal Shriyan
kaushalshri...@gmail.comwrote:

 On Thu, Mar 19, 2009 at 10:32 PM, Peter Crowther 
 peter.crowt...@melandra.com wrote:

  From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com]
  Host name=testa.example.com
 [...]
  Host name=testb.example.com
 [...]

 So are you testing these by browsing to http://testa.example.com, and
 have you mapped that in your DNS or hosts file to be your Tomcat server?  If
 not, these won't work.


ok



 Do you need two Host elements?  Are you actually serving two different
 sites from one Tomcat?


I have multiple WAR under webapps in a single instance of tomcat. I need two
different access logs for this purpose.

does it make sense ?



 What Tomcat revision are you running?  There were two different major
 versions of Tomcat 5.  Version numbers are 5.x.y - what are the values of
 x and y?  If you tell us that, we can give you more help.

- Peter

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

 Hi Peter

 I am using Tomcat 5.5.27. Actually i have number of WAR under webapps. I am
 running it on the same host where tomcat server is running.

 I want access log for two of my WAR under webapps folder meaning separate
 access log for two of my WAR. In my earlier email, I believe it would be
 wrong as you have said.


 Please suggest.

 Thanks and Regards

 Kaushal


Thanks and Regards

Kaushal


restrict myapps under webapps to localhost

2009-02-19 Thread Kaushal Shriyan
Hi

I am using tomcat-5.0.27-r6,Sun JDK 1.5.0.12  on gentoo OS
I have a clarification regarding restricting webapps/myapps to localhost
I have created myapps.xml under /etc/tomcat5/Catalina/localhost/myapps.xml
myapps.xml contains

#

!--

Context configuration file for the Tomcat Administration Web App

$Id: admin.xml,v 1.3 2004/02/20 17:09:19 remm Exp $

--


Context path=/myapps docBase=${catalina.home}/webapps/myapps
debug=0 privileged=true

  !-- Uncomment this Valve to limit access to the Admin app to localhost
   for obvious security reasons. Allow may be a comma-separated list of
   hosts (or even regular expressions).
  Valve className=org.apache.catalina.valves.RemoteAddrValve
allow=127.0.0.1/
  --

 Valve className=org.apache.catalina.valves.RemoteAddrValve
 allow=127.0.0.1/

  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_admin_log. suffix=.txt
  timestamp=true/

/Context

#


is that correct what i am doing ?

Do i need to restart tomcat application server ?

Thanks and Regards

Kaushal


run tomcat as tomcat user

2009-01-21 Thread Kaushal Shriyan
Hi

I am not able to start tomcat as tomcat user on ubutu 8.04 Linux,
Below is my start/stop script
Any ideas as what is going wrong ?


Thanks and Regards

Kaushal

###
#!/bin/sh
#
# Startup script for Tomcat

JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
export JAVA_HOME
CATALINA_OPTS=-Xms512m -Xmx1m
export CATALINA_OPTS
start_tomcat=/usr/local/apache-tomcat-5.5.27/bin/startup.sh
stop_tomcat=/usr/local/apache-tomcat-5.5.27/bin/shutdown.sh

start() {
echo -n Starting tomcat: 
su -c ${start_tomcat} tomcat
echo done.
}
stop() {
echo -n Shutting down tomcat: 
${stop_tomcat}
echo done.
}

# See how we were called
case $1 in
  start)
start
;;
  stop)
stop
;;
  restart)
stop
sleep 10
start
;;
  *)
echo Usage: $0 {start|stop|restart}
esac

###


enable-access-log-in-tomcat

2009-01-20 Thread Kaushal Shriyan
Hi

I am using tomcat-5.5.26, sun-jdk-1.5.0.15 on gentoo linux, I have enabled
the below in server.xml

Valve className=org.apache.catalina.valves.FastCommonAccessLogValve
 directory=logs  prefix=localhost_access_log.
suffix=.txt
 pattern=%h %l %u %t %r %s %b %D %T resolveHosts=false/

The issue is that i don't see time parameter value in the
/var/log/tomcat-5.5/localhost_access_log.2009-01-20.txt file
Below is the snippet of the local access log

172.20.2.111 - - [20/Jan/2009:04:08:40 -0800] GET
/Trunk/login?sessionExpired=true HTTP/1.1 200 40005

Any clue

Thanks and Regards

Kaushal


Status Web Application

2008-08-07 Thread Kaushal Shriyan
Hi

I am running tomcat-5.0.27-r6/sun-jdk-1.5.0.10/Gentoo. when i look at the
Status Web Application (http://example.com:8080/manager/status) I see lots
of this page

StageTimeB SentB RecvClientVHost
S678731459 ms0 KB0 KB10.10.1.6host12

is there a way to handle this

Thanks and Regards

Kaushal


Print Page Generation Time

2008-06-03 Thread Kaushal Shriyan
Hi,

How can i enable printing the Page Generation time in the access logs
I have set the below in server.xml file

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log.
suffix=.txt
 pattern=common resolveHosts=false/
not sure on how to  enable printing the Page Generation time in the access
logs.

Tomcat and OS details : tomcat-5.0.27-r6,Gentoo OS and sun-jdk-1.5.0.12

Thanks and Regards

Kaushal


3 instance of Tomcat Server

2008-04-08 Thread Kaushal Shriyan
Hi,

How can i install 3 instance of Tomcat Server on a single host

Thanks and Regards

Kaushal


JSP Code to capture HTTP headers

2006-07-31 Thread Kaushal Shriyan

Hi ALL

I have a sample php code,

?php header(Content-Type: text/html); ?
h1ENV/h1
?php
foreach ($_ENV as $key = $value) {
  echo Key: $key, value: $value;
  echo br;
}
?
h1SERVER/h1
?php
foreach ($_SERVER as $key = $value) {
  echo Key: $key, value: $value;
  echo br;
}
?
h1COOKIE/h1
?php

foreach ($_COOKIE as $key = $value) {
  echo Key: $key, value: $value;
  echo br;
}
?
h1GLOBALS/h1
?php
foreach ($GLOBALS as $key = $value) {
  echo Key: $key, value: $value;
  echo br;
}
?

I wanted this to work in JSP(Java Server Pages)

Thanks and Regards

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Weird Issue with Tomcat 4.1.31

2006-07-31 Thread Kaushal Shriyan

Hi

when i hit http://localhost:8080/

I get on the web pasge


HTTP Status 404 - /

type Status report

message /

description The requested resource (/) is not available.
Apache Tomcat/4.1.24


The issue here is that I am running jakarta-tomcat-4.1.31 version, but above
I see Apache Tomcat/4.1.24 :-(

#ps -aef | grep tomcat
root 14817 1  0 16:01 pts/200:00:08
/usr/local/j2sdk1.4.2_10//bin/java -
Djava.endorsed.dirs=/usr/local/tomcat/jakarta-tomcat-4.1.31/common/endorsed-classpath
/usr/local/j2sdk1.4.2_10//lib/tools.jar:/usr/local/tomcat/jakarta-
tomcat-4.1.31/bin/bootstrap.jar -
Dcatalina.base=/usr/local/tomcat/jakarta-tomcat-4.
root 14855 14086  0 16:30 pts/200:00:00 grep tomcat
#

Any clue on this

Thanks and Regards

Kaushal


Re: Weird Issue with Tomcat 4.1.31

2006-07-31 Thread Kaushal Shriyan

On 7/31/06, Kaushal Shriyan [EMAIL PROTECTED] wrote:


 Hi

when i hit http://localhost:8080/

I get on the web pasge


HTTP Status 404 - /

type Status report

message /

description The requested resource (/) is not available.
Apache Tomcat/4.1.24


The issue here is that I am running jakarta-tomcat-4.1.31 version, but
above I see Apache Tomcat/4.1.24 :-(

#ps -aef | grep tomcat
root 14817 1  0 16:01 pts/200:00:08
/usr/local/j2sdk1.4.2_10//bin/java -
Djava.endorsed.dirs=/usr/local/tomcat/jakarta-tomcat-4.1.31/common/endorsed-classpath
/usr/local/j2sdk1.4.2_10//lib/tools.jar:/usr/local/tomcat/jakarta-
tomcat-4.1.31/bin/bootstrap.jar -
Dcatalina.base=/usr/local/tomcat/jakarta-tomcat-4.
root 14855 14086  0 16:30 pts/200:00:00 grep tomcat
#

Any clue on this

Thanks and Regards

Kaushal



Thanks ALL

I fixed this issue on my own :-)

Kaushal


Re: Need Help

2006-06-26 Thread Kaushal Shriyan

On 6/26/06, vineesh kumar [EMAIL PROTECTED] wrote:

Go to apache site
  jakarta.apache.org
  u will get all the information about the tomcat server and
other technologies related.Also try a googlwe search u can get a hell
lot of books bout tomcat in the market.but better u read the documents
at the apache site

On 6/26/06, Ravichandran Gopinath , Tidel Park - Chennai
[EMAIL PROTECTED] wrote:
 hi Tomcat experts,

 I am a fresher. Just now joined in HCL. I am basically very poor in Server
 side. Even from my first day itself, they spoke something technically about
 tomcat. I dont know anything about tomcat. But i am doing projects with the
 help of tomcat only. Will you anyone please send me some information about
 how tomcat is running and some beginner learning materials for Tomcat. and
 please explain configuration files (.xml) briefly.




 Thanks  Regards

  K.G.Ravichandran

 HCL Technologies Ltd.






--
Vineesh Kumar
Software Engineer
ISS-RnD Department
HCL infosystems Ltd
Cochin

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Hi K.G.Ravichandran

You can refer to http://tomcat.apache.org/ for Tomcat application server :)

Kaushal

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apache and Tomcat

2006-04-10 Thread Kaushal Shriyan
Hi ALL

Apache is a Standalone Web Server
Tomcat is a Standalone Application Server
In case of Tomcat its actually a Servlet/JSP Container
so programs written in JSP or Servlets can be hosted on it
Can I have a detailed explanation on this


My question is can I have Tomcat Application Server only to host my
JSP Servlets
application or do i need also Apache Web Server

Please also let me know whether Apache Web Server is written in C
Programming Language and Tomcat is written in JAVA and the mod_jk
connector is written in C Language

Thanks in Advance

Regards

Kaushal

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mod jk

2006-03-06 Thread Kaushal Shriyan
HI All

I am getting

[EMAIL PROTECTED]/apache/bin# ./apachectl start
Syntax error on line 212 of /home/qrq/suds_20_dir/apache/conf/httpd.conf:
Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a
module not included in the server configuration
./apachectl start: httpd could not be started
[EMAIL PROTECTED]/apache/bin#

Please let me know where i am going wrong

Regards

Kaushal

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod jk

2006-03-06 Thread Kaushal Shriyan
Thanks Warren Pace

Its there I will paste u the httpd.conf file but while i restart

[EMAIL PROTECTED]/apache/bin# ./apachectl start
Syntax error on line 206 of /home/qrq/suds_20_dir/apache/conf/httpd.conf:
Cannot load /home/qrq/suds_20_dir/apache/libexec/mod_jk.so into
server: ld.so.1: /home/qrq/suds_20_dir/apache/bin/httpd: fatal:
relocation error: file /home/qrq/suds_20_dir/apache/libexec/mod_jk.so:
symbol dir_module: referenced symbol not found
./apachectl start: httpd could not be started

Regards

Kaushal



On 3/6/06, Warren Pace [EMAIL PROTECTED] wrote:

 
  From: Kaushal Shriyan [EMAIL PROTECTED]
  Date: 2006/03/06 Mon AM 05:08:31 EST
  To: users@tomcat.apache.org,  users@httpd.apache.org
  Subject: mod jk
 
  HI All
 
  I am getting
 
  [EMAIL PROTECTED]/apache/bin# ./apachectl start
  Syntax error on line 212 of /home/qrq/suds_20_dir/apache/conf/httpd.conf:
  Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a
  module not included in the server configuration
  ./apachectl start: httpd could not be started
  [EMAIL PROTECTED]/apache/bin#
 
  Please let me know where i am going wrong
 
 Are you loading mod_jk dynamically?
 The JkWorkersFile statement needs to appear after the LoadModule statement as 
 such:
 LoadModule jk_module /usr/lib/apache2/mod_jk.so
 JkWorkersFile /etc/apache2/workers.properties

  Regards
 
  Kaushal
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod jk

2006-03-06 Thread Kaushal Shriyan
Thanks Aliye

I am getting this below information

[EMAIL PROTECTED]/apache_1.3.26/libexec# ldd
/home/qrq/suds_20_dir/apache_1.3.26/libexec/mod_jk.so
warning: ldd: /home/qrq/suds_20_dir/apache_1.3.26/libexec/mod_jk.so:
is not executable
   libc.so.1 = /usr/lib/libc.so.1
   libdl.so.1 =/usr/lib/libdl.so.1
   /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1


One more thing i would like to tell is that I have apache 1.3.26 running
but in the URL its for 1.3.33

Please let me know if you can give me prebuild binaries for 1.3.26
since I cant build from src

Thanks in Advance

Regards

Kaushal




On 3/6/06, Edao, Aliye [EMAIL PROTECTED] wrote:
 Hi,

 The mod_jk you are using seems not to function properly. You can see that if 
 you user the command:
 ldd /home/qrq/suds_20_dir/apache/libexec/mod_jk.so (you should get something 
 like -- not found ...

 Recompile it or download a binary version suitable to
 your system form 
 http://apache.speedbone.de/tomcat/tomcat-connectors/jk/binaries/


 
 Mit freundlichem Gruß / kind regards

 Dr. Aliye Edao




 -Ursprüngliche Nachricht-
 Von: Kaushal Shriyan [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 6. März 2006 12:51
 An: Tomcat Users List
 Betreff: Re: mod jk

 Thanks Warren Pace

 Its there I will paste u the httpd.conf file but while i restart

 [EMAIL PROTECTED]/apache/bin# ./apachectl start
 Syntax error on line 206 of /home/qrq/suds_20_dir/apache/conf/httpd.conf:
 Cannot load /home/qrq/suds_20_dir/apache/libexec/mod_jk.so into
 server: ld.so.1: /home/qrq/suds_20_dir/apache/bin/httpd: fatal:
 relocation error: file /home/qrq/suds_20_dir/apache/libexec/mod_jk.so:
 symbol dir_module: referenced symbol not found
 ./apachectl start: httpd could not be started

 Regards

 Kaushal



 On 3/6/06, Warren Pace [EMAIL PROTECTED] wrote:
 
  
   From: Kaushal Shriyan [EMAIL PROTECTED]
   Date: 2006/03/06 Mon AM 05:08:31 EST
   To: users@tomcat.apache.org,  users@httpd.apache.org
   Subject: mod jk
  
   HI All
  
   I am getting
  
   [EMAIL PROTECTED]/apache/bin# ./apachectl start
   Syntax error on line 212 of /home/qrq/suds_20_dir/apache/conf/httpd.conf:
   Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a
   module not included in the server configuration
   ./apachectl start: httpd could not be started
   [EMAIL PROTECTED]/apache/bin#
  
   Please let me know where i am going wrong
  
  Are you loading mod_jk dynamically?
  The JkWorkersFile statement needs to appear after the LoadModule statement 
  as such:
  LoadModule jk_module /usr/lib/apache2/mod_jk.so
  JkWorkersFile /etc/apache2/workers.properties
 
   Regards
  
   Kaushal
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Mod_jk Connector

2005-11-09 Thread Kaushal Shriyan
I have downloaded the following application

httpd-2.0.49.tar.gz
jakarta-tomcat-4.1.31.tar.gz
jakarta-tomcat-connectors-1.2.15-src.tar.gz

I am able to check http://localhost:8080/index.jsp
and http://localhost

But when I do  http://localhost/examples it says

Not Found

The requested URL /examples was not found on this server.
Apache/2.0.49 (Unix) mod_jk/1.2.15 Server at localhost Port 80

Please help me to resolve this issue

Thanks and regards

Kaushal Shriyan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]