Re: Error during startup

2022-08-03 Thread Han Li
Hi Mohan,

You can open CATALINA_BASE/conf/catalina.policy file, add following statement 
within  “grant” section:

permission java.lang.RuntimePermission "getenv.*";

Han


> 2022年8月4日 11:33,Mohan T  写道:
> 
> Dear All,
> 
> We are using tomcat 8.5 on suse linux 7.
> 
> We are invoking Catalina.sh in java security enabled mode.
> 
> Kindly help me in resolving this .
> 
> Thanks
> 
> Mohan
> 
> Exception:
> Error in Full Agent Registration Info Resolver reading environment 
> variable/system property
> java.security.AccessControlException: access denied 
> ("java.lang.RuntimePermission" "getenv.")
>at 
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
>at 
> java.security.AccessController.checkPermission(AccessController.java:884)
>at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
>at java.lang.System.getenv(System.java:894)
> 
> DISCLAIMER: This communication contains information which is confidential and 
> the copyright of Ramco Systems Ltd, its subsidiaries or a third party 
> ("Ramco"). This email may also contain legally privileged information. 
> Confidentiality and legal privilege attached to this communication are not 
> waived or lost by reason of mistaken delivery to you.This email is intended 
> to be read or used by the addressee only. If you are not the intended 
> recipient, any use, distribution, disclosure or copying of this email is 
> strictly prohibited without the express written approval of Ramco. Please 
> delete and destroy all copies and email Ramco at le...@ramco.com immediately. 
> Any views expressed in this communication are those of the individual sender, 
> except where the sender specifically states them to be the views of Ramco. 
> Except as required by law, Ramco does not represent, warrant and/or guarantee 
> that the integrity of this communication has been maintained nor that the 
> communication is free of errors, virus, interception or interference. If you 
> do not wish to receive such communications, please forward this communication 
> to market...@ramco.com and express your wish not to receive such 
> communications henceforth.



Error during startup

2022-08-03 Thread Mohan T
Dear All,

We are using tomcat 8.5 on suse linux 7.

We are invoking Catalina.sh in java security enabled mode.

Kindly help me in resolving this .

Thanks

Mohan

Exception:
Error in Full Agent Registration Info Resolver reading environment 
variable/system property
java.security.AccessControlException: access denied 
("java.lang.RuntimePermission" "getenv.")
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at 
java.security.AccessController.checkPermission(AccessController.java:884)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.System.getenv(System.java:894)

DISCLAIMER: This communication contains information which is confidential and 
the copyright of Ramco Systems Ltd, its subsidiaries or a third party 
("Ramco"). This email may also contain legally privileged information. 
Confidentiality and legal privilege attached to this communication are not 
waived or lost by reason of mistaken delivery to you.This email is intended to 
be read or used by the addressee only. If you are not the intended recipient, 
any use, distribution, disclosure or copying of this email is strictly 
prohibited without the express written approval of Ramco. Please delete and 
destroy all copies and email Ramco at le...@ramco.com immediately. Any views 
expressed in this communication are those of the individual sender, except 
where the sender specifically states them to be the views of Ramco. Except as 
required by law, Ramco does not represent, warrant and/or guarantee that the 
integrity of this communication has been maintained nor that the communication 
is free of errors, virus, interception or interference. If you do not wish to 
receive such communications, please forward this communication to 
market...@ramco.com and express your wish not to receive such communications 
henceforth.


Re: Tomcat is Automatically Getting Stopped Frequently

2022-08-03 Thread Christopher Schultz

Prasenjit,

On 8/3/22 11:43, Prasenjit Dey wrote:
Can you please tell us which OS logs in Ubuntu I need to check. I am new 
to this. Please help!


Look at CATALINA_BASE/logs/catalina.out and /var/log/messages. You may 
have to check other /var/log/* files, as each Linux distro tends to put 
certain things in other places. Might be /var/log/dmesg or 
/var/log/daemon or whatever.


-chris


*From: *Mark Thomas 
*Sent: *Wednesday, August 3, 2022 4:55 PM
*To: *users@tomcat.apache.org 
*Subject: *Re: Tomcat is Automatically Getting Stopped Frequently

Tomcat won't be shutting itself down. Something external must be
stopping the process.

Check the OS logs. This sounds like the Linux OOM killer.

Note: Attachments rarely make it to the list. If you need to share
attachments, use a file sharing service.

Mark


On 03/08/2022 09:12, Prasenjit Dey wrote:
 > Tomcat Version: 8.5.81.0
 >
 > Operating System: Ubuntu 20.04 LTS
 >
 > RAM: 8gb
 >
 > Java Version: 1.8.0_312
 >
 > Architecture: 64Bit
 >
 > Hi,
 >
 > I am facing a problem regarding our application hosted in Tomcat. Our
 > infrastructure is on Azure Cloud. We have hosted our application in
 > Tomcat on a virtual machine deployed from Azure. After few hours of
 > usage, we are experiencing that the Tomcat is going down automatically
 > and we are not able to browse the application. From the memory point of
 > view we have seen that when the problem is occurring then Tomcat service
 > is using 1.4GB of memory. Attaching the Tomcat logs and server.xml for
 > your reference. Please feel free to connect with us if you need any
 > additional information.
 >
 > *Thanks & Regards,*
 >
 > *Prasenjit Dey | Team Leader - Testing | Kovair Software*
 >
 > *Ph: +91.33. 40657016 Ext. 240 | **prasanjit...@kovair.com*
 > >
 >
 > *URL:**http://www.kovair.com*
 > 
>

 >
 > PPlease consider the environment before printing this email
 >
 >
 >
 > -
 > 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: Tomcat is Automatically Getting Stopped Frequently

2022-08-03 Thread Christopher Schultz

Prasenjit,

On 8/3/22 03:19, Prasenjit Dey wrote:

Tomcat Version: 8.5.81.0
Operating System: Ubuntu 20.04 LTS
RAM: 8gb
Java Version: 1.8.0_312
Architecture: 64Bit

Hi,

I am facing a problem regarding our application hosted in Tomcat. Our 
infrastructure is on Azure Cloud. We have hosted our application in 
Tomcat on a virtual machine deployed from Azure. After few hours of 
usage, we are experiencing that the Tomcat is going down automatically 
and we are not able to browse the application. From the memory point of 
view we have seen that when the problem is occurring then Tomcat service 
is using 1.4GB of memory. Attaching the Tomcat logs and server.xml for 
your reference. Please feel free to connect with us if you need any 
additional information. We are awaiting for your reply.


Do you have anything in the Tomcat logs about the shutdown? Or does the 
process just disappear? Have you looked at /var/log/messages to see if 
the OOME killer is killing your application?


What are the parameters you use to launch Tomcat? (Specifically, your 
heap-related parameters)?


-chris

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



RE: Tomcat is Automatically Getting Stopped Frequently

2022-08-03 Thread Prasenjit Dey
Hi Mark,

Thanks for your reply.

Can you please tell us which OS logs in Ubuntu I need to check. I am new to 
this. Please help!


Thanks & Regards,

Prasenjit Dey | Team Leader - Testing | Kovair Software

Ph: +91.33. 40657016 Ext. 240 | 
prasanjit...@kovair.com

URL: 
http://www.kovair.com

[cid:image001.png@01D7F68F.3E0A5620]

P Please consider the environment before printing this email

From: Mark Thomas
Sent: Wednesday, August 3, 2022 4:55 PM
To: users@tomcat.apache.org
Subject: Re: Tomcat is Automatically Getting Stopped Frequently

Tomcat won't be shutting itself down. Something external must be
stopping the process.

Check the OS logs. This sounds like the Linux OOM killer.

Note: Attachments rarely make it to the list. If you need to share
attachments, use a file sharing service.

Mark


On 03/08/2022 09:12, Prasenjit Dey wrote:
> Tomcat Version: 8.5.81.0
>
> Operating System: Ubuntu 20.04 LTS
>
> RAM: 8gb
>
> Java Version: 1.8.0_312
>
> Architecture: 64Bit
>
> Hi,
>
> I am facing a problem regarding our application hosted in Tomcat. Our
> infrastructure is on Azure Cloud. We have hosted our application in
> Tomcat on a virtual machine deployed from Azure. After few hours of
> usage, we are experiencing that the Tomcat is going down automatically
> and we are not able to browse the application. From the memory point of
> view we have seen that when the problem is occurring then Tomcat service
> is using 1.4GB of memory. Attaching the Tomcat logs and server.xml for
> your reference. Please feel free to connect with us if you need any
> additional information.
>
> *Thanks & Regards,*
>
> *Prasenjit Dey | Team Leader - Testing | Kovair Software*
>
> *Ph: +91.33. 40657016 Ext. 240 | **prasanjit...@kovair.com*
> 
>
> *URL:**http://www.kovair.com*
> 
>
> PPlease consider the environment before printing this email
>
>
>
> -
> 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: Regarding IPv6 support

2022-08-03 Thread Nitish Chitta
Thanks for all the responses.

Regards,
Nitish

On Wed, Aug 3, 2022 at 2:58 PM Konstantin Kolinko 
wrote:

> ср, 3 авг. 2022 г. в 10:19, Nitish Chitta :
> >
> > Hello Team,
> > I wanted to know if Tomcat 7 supports requests with IPv6 addresses in the
> > URL as I am getting an HTTP 404 error when trying to hit the server with
> an
> > IPv6 address.
>
> 1. Tomcat 7 has reached  End of Life and is no longer supported.
>
> 2. If the server answers with 404 it means that it does work and can
> answer.
>
> Check your access logs (as generated by AccessLogValve) to see
>
> a.. that the server receives the requests
> b. what is the actual IP address of your client, as seen by the server.
>
> Best regards,
> Konstantin Kolinko
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Tomcat is Automatically Getting Stopped Frequently

2022-08-03 Thread Mark Thomas
Tomcat won't be shutting itself down. Something external must be 
stopping the process.


Check the OS logs. This sounds like the Linux OOM killer.

Note: Attachments rarely make it to the list. If you need to share 
attachments, use a file sharing service.


Mark


On 03/08/2022 09:12, Prasenjit Dey wrote:

Tomcat Version: 8.5.81.0

Operating System: Ubuntu 20.04 LTS

RAM: 8gb

Java Version: 1.8.0_312

Architecture: 64Bit

Hi,

I am facing a problem regarding our application hosted in Tomcat. Our 
infrastructure is on Azure Cloud. We have hosted our application in 
Tomcat on a virtual machine deployed from Azure. After few hours of 
usage, we are experiencing that the Tomcat is going down automatically 
and we are not able to browse the application. From the memory point of 
view we have seen that when the problem is occurring then Tomcat service 
is using 1.4GB of memory. Attaching the Tomcat logs and server.xml for 
your reference. Please feel free to connect with us if you need any 
additional information.


*Thanks & Regards,*

*Prasenjit Dey | Team Leader - Testing | Kovair Software*

*Ph: +91.33. 40657016 Ext. 240 | **prasanjit...@kovair.com* 



*URL:**http://www.kovair.com* 



PPlease consider the environment before printing this email



-
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: Regarding IPv6 support

2022-08-03 Thread Konstantin Kolinko
ср, 3 авг. 2022 г. в 10:19, Nitish Chitta :
>
> Hello Team,
> I wanted to know if Tomcat 7 supports requests with IPv6 addresses in the
> URL as I am getting an HTTP 404 error when trying to hit the server with an
> IPv6 address.

1. Tomcat 7 has reached  End of Life and is no longer supported.

2. If the server answers with 404 it means that it does work and can answer.

Check your access logs (as generated by AccessLogValve) to see

a.. that the server receives the requests
b. what is the actual IP address of your client, as seen by the server.

Best regards,
Konstantin Kolinko

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



Tomcat is Automatically Getting Stopped Frequently

2022-08-03 Thread Prasenjit Dey
Tomcat Version: 8.5.81.0
Operating System: Ubuntu 20.04 LTS
RAM: 8gb
Java Version: 1.8.0_312
Architecture: 64Bit

Hi,

I am facing a problem regarding our application hosted in Tomcat. Our 
infrastructure is on Azure Cloud. We have hosted our application in Tomcat on a 
virtual machine deployed from Azure. After few hours of usage, we are 
experiencing that the Tomcat is going down automatically and we are not able to 
browse the application. From the memory point of view we have seen that when 
the problem is occurring then Tomcat service is using 1.4GB of memory. 
Attaching the Tomcat logs and server.xml for your reference. Please feel free 
to connect with us if you need any additional information.




Thanks & Regards,

Prasenjit Dey | Team Leader - Testing | Kovair Software

Ph: +91.33. 40657016 Ext. 240 | 
prasanjit...@kovair.com

URL: 
http://www.kovair.com

[cid:image001.png@01D7F68F.3E0A5620]

P Please consider the environment before printing this email





  
  
  
  
  
  
  
  

  
  


  

  
  


























  
  

  
  


  

  







  

  


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

Re: JSF NULL-String is coercing to NULL instead of empty String

2022-08-03 Thread Han Li
You can read Mark’s comment, I hope it will help you.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66161#c3

> 2022年8月3日 16:04,König, Andreas, NM-HVD  写道:
> 
> Tomcat Version: 9.0.60
> Primefaces: 11.0.5
> 
> Hello,
> recently we updated our environment from Tomcat Version 9.0.59 to 9.0.60.
> Since the update, we are having issues with some views because NULL-Strings 
> are no longer coerced to Empty-Strings.
> I know the current behaviour is compliant to the EL specification and the 
> former behaviour was not.
> But this update has caused some trouble, because we didn't expect such a 
> change in a minor version.
> 
> The NPE is thrown when we use String.concat method in expression language,  
> e.g. .concat(hist.newValue)
> Currently we fixed it with implementing NULL-Checks.
> 
> But is there a possibility to configure the former behaviour?
> 
> Thank you in advance.
> Best regards,
> Andreas König


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



JSF NULL-String is coercing to NULL instead of empty String

2022-08-03 Thread König , Andreas , NM-HVD
Tomcat Version: 9.0.60
Primefaces: 11.0.5

Hello,
recently we updated our environment from Tomcat Version 9.0.59 to 9.0.60.
Since the update, we are having issues with some views because NULL-Strings are 
no longer coerced to Empty-Strings.
I know the current behaviour is compliant to the EL specification and the 
former behaviour was not.
But this update has caused some trouble, because we didn't expect such a change 
in a minor version.

The NPE is thrown when we use String.concat method in expression language,  
e.g. .concat(hist.newValue)
Currently we fixed it with implementing NULL-Checks.

But is there a possibility to configure the former behaviour?

Thank you in advance.
Best regards,
Andreas König


Re: Regarding IPv6 support

2022-08-03 Thread Jason Wee
check if tomcat is listening on ipv6, using ss or netstat command.
need more details about your environment, how requests are pass to
container, etc...

On Wed, Aug 3, 2022 at 3:26 PM Nitish Chitta  wrote:
>
> I have done the required changes i.e added the IPv6 address to the
> connector that the server should listen on. Do I have to add any other
> property or am I missing something?
>
> On Wed, Aug 3, 2022 at 12:51 PM Jason Wee  wrote:
>
> > yes, it should, read here
> > https://tomcat.apache.org/tomcat-7.0-doc/config/http.html
> >
> > On Wed, Aug 3, 2022 at 3:19 PM Nitish Chitta 
> > wrote:
> > >
> > > Hello Team,
> > > I wanted to know if Tomcat 7 supports requests with IPv6 addresses in the
> > > URL as I am getting an HTTP 404 error when trying to hit the server with
> > an
> > > IPv6 address.
> > >
> > > Thanks & Regards,
> > > Nitish
> >
> > -
> > 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: Regarding IPv6 support

2022-08-03 Thread Han Li



> 2022年8月3日 15:18,Nitish Chitta  写道:
> 
> Hello Team,
> I wanted to know if Tomcat 7 supports requests with IPv6 addresses in the
> URL as I am getting an HTTP 404 error when trying to hit the server with an
> IPv6 address.

Don’t you get a 404 error when you use an IPV4 address?

> 
> Thanks & Regards,
> Nitish


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



Re: Regarding IPv6 support

2022-08-03 Thread Nitish Chitta
I have done the required changes i.e added the IPv6 address to the
connector that the server should listen on. Do I have to add any other
property or am I missing something?

On Wed, Aug 3, 2022 at 12:51 PM Jason Wee  wrote:

> yes, it should, read here
> https://tomcat.apache.org/tomcat-7.0-doc/config/http.html
>
> On Wed, Aug 3, 2022 at 3:19 PM Nitish Chitta 
> wrote:
> >
> > Hello Team,
> > I wanted to know if Tomcat 7 supports requests with IPv6 addresses in the
> > URL as I am getting an HTTP 404 error when trying to hit the server with
> an
> > IPv6 address.
> >
> > Thanks & Regards,
> > Nitish
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Regarding IPv6 support

2022-08-03 Thread Jason Wee
yes, it should, read here
https://tomcat.apache.org/tomcat-7.0-doc/config/http.html

On Wed, Aug 3, 2022 at 3:19 PM Nitish Chitta  wrote:
>
> Hello Team,
> I wanted to know if Tomcat 7 supports requests with IPv6 addresses in the
> URL as I am getting an HTTP 404 error when trying to hit the server with an
> IPv6 address.
>
> Thanks & Regards,
> Nitish

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



Tomcat is Automatically Getting Stopped Frequently

2022-08-03 Thread Prasenjit Dey
Tomcat Version: 8.5.81.0
Operating System: Ubuntu 20.04 LTS
RAM: 8gb
Java Version: 1.8.0_312
Architecture: 64Bit

Hi,

I am facing a problem regarding our application hosted in Tomcat. Our 
infrastructure is on Azure Cloud. We have hosted our application in Tomcat on a 
virtual machine deployed from Azure. After few hours of usage, we are 
experiencing that the Tomcat is going down automatically and we are not able to 
browse the application. From the memory point of view we have seen that when 
the problem is occurring then Tomcat service is using 1.4GB of memory. 
Attaching the Tomcat logs and server.xml for your reference. Please feel free 
to connect with us if you need any additional information. We are awaiting for 
your reply.


Thanks & Regards,

Prasenjit Dey | Team Leader - Testing | Kovair Software

Ph: +91.33. 40657016 Ext. 240 | 
prasanjit...@kovair.com

URL: 
http://www.kovair.com

[cid:image001.png@01D7F68F.3E0A5620]

P Please consider the environment before printing this email





  
  
  
  
  
  
  
  

  
  


  

  
  


























  
  

  
  


  

  







  

  


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

Regarding IPv6 support

2022-08-03 Thread Nitish Chitta
Hello Team,
I wanted to know if Tomcat 7 supports requests with IPv6 addresses in the
URL as I am getting an HTTP 404 error when trying to hit the server with an
IPv6 address.

Thanks & Regards,
Nitish