RE: Embedded and Standalone Tomcat

2020-08-21 Thread S Abirami
Thanks Mark Thomas.

-Original Message-
From: Mark Thomas  
Sent: Friday, August 21, 2020 4:03 PM
To: users@tomcat.apache.org
Subject: Re: Embedded and Standalone Tomcat

On 21/08/2020 11:27, S Abirami wrote:
> Hi All,
> 
> In our application, we used to create embedded tomcat instance by taking a 
> copy of lib jars from the Deployable Tomcat.
> It's working properly. I have noticed that there is some jars in Embed 
> package
> 
> https://protect2.fireeye.com/v1/url?k=59001efe-07a0fe6a-59005e65-86d21
> 14eab2f-6f1627f578d88cc1=1=1dc0b8cc-378f-4476-8415-edc9465d29f9=
> https%3A%2F%2Fmirrors.estointernet.in%2Fapache%2Ftomcat%2Ftomcat-9%2Fv
> 9.0.37%2Fbin%2Fembed%2Fapache-tomcat-9.0.37-embed.tar.gz
> 
> Please let me know the difference between the jars in Core archive and Embed 
> archive.

The classes are the same. The embedded option just packages them in fewer JARs.

Mark

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


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



Embedded and Standalone Tomcat

2020-08-21 Thread S Abirami
Hi All,

In our application, we used to create embedded tomcat instance by taking a copy 
of lib jars from the Deployable Tomcat.
It's working properly. I have noticed that there is some jars in Embed package

https://mirrors.estointernet.in/apache/tomcat/tomcat-9/v9.0.37/bin/embed/apache-tomcat-9.0.37-embed.tar.gz

Please let me know the difference between the jars in Core archive and Embed 
archive.


Regards,
Abirami.S


RE: SameSite attribute handling

2020-07-06 Thread S Abirami
Hi Christopher,

I have used setHeader, addCookie for that also  it is getting twice
Only after, disabling cookie false in context.xml  setHeader for cookie is 
working.

I tried option also


Regards,
Abirami.S

-Original Message-
From: Christopher Schultz  
Sent: Thursday, July 2, 2020 11:07 PM
To: Tomcat Users List 
Subject: Re: SameSite attribute handling

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Abirami,

On 7/1/20 03:06, S Abirami wrote:
> We can add the samesite attribute in set-cookie header through 
> context.xml entry in tomcat. Is there any other way, can we add 
> samesite attribute in response of set-cookie header.
Not for Tomcat-generated cookies, and not for cookies added to the response 
like this:

  response.addCookie(myCookie);

This is because the Servlet API hasn't yet caught up with state-of-the-art.

You can, however, craft your own Set-Cookie response header like this:

  response.addHeader("Set-Cookie", "CookieName=value; SameSite=Strict");

Remember that there are rules about the composition of the cookie's name, 
value, etc. that Tomcat enforces for you that you will have to handel yourself.

> I tried with filter by using setHeader but it is sending two 
> set-Cookie header.

Correct: you will have to use *either* setCookie() or setHeader().

- -chris
-BEGIN PGP SIGNATURE-
Comment: Using GnuPG with Thunderbird - 
https://protect2.fireeye.com/v1/url?k=e0a38852-be03323c-e0a3c8c9-86b1886cfa64-a04f2de4a687fd81=1=a3c49822-9bd3-43bd-ab88-cf37edfe243e=https%3A%2F%2Fwww.enigmail.net%2F

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl7+GyYACgkQHPApP6U8
pFiSqBAAhG9IHJXD4ec6TQD1F2o9CIbRyHSkVYrAl0miT5cz6BkhuqG7uEnpUw66
8m3oe6CCG1syEliyyHM3A7ySXGEYm54otp4A0GRkcK64kd+RwQKKV5JsSp0xFxtG
dqKRtPGKJL7sQ+kaa4Qo2KqAa7ntQFTRVhg44Lofj8usiu/az5Kg6y8gSgQ/3I2Y
n75PCchaMHsilvSIm3sztR6MpoeRXevv7/93LfI1xzyN6Rg1mE0xivKReQfryMeT
sySwz3S1kZgOb3y+xUgSdL0HNSzT+IoKX58UTrMnmnWRS1hnJ30Fu21Nki+ygyZi
iikJCYi8Fv2SjkvQh+klgVMsr/QxYvYIBKof0Tf4n8/gU6ABy9ZVUdiTeezATytT
Kh5r2C6I+nk9/Osl9s9pHauqzQ/evwjPe/d0eJXkHILam09KB6wqnJ4m3Gq9NcYc
S9f5vjTuScncrVn9+GTvr29onrhI8gh7BRTmYehgHaqt7Hl7alLeNV7ccIOjjYOY
qqC+qXDydaHUBBgappAnZnHepNPSKn0kjKhi63gsjoBVXnLmgR7mYUWwmvoPb+/t
E3T5PL73/cjxBNPk/THao0JI+3UoDlQG4rsZL/wxo7q1ZGzbtrbUrr+7Q7pDBY+y
3YhzVFu68xHkH0Tch3UxFn2qvPXToPHNCzSXDi9Dm5IuGf49UKc=
=97wq
-END PGP SIGNATURE-

-
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



SameSite attribute handling

2020-07-01 Thread S Abirami
Hi All,

We can add the samesite attribute in set-cookie header through context.xml 
entry in tomcat.
Is there any other way, can we add samesite attribute in response of set-cookie 
header.

Context changes reflecting issue in tenable vulnerable. Hence looking for any 
other way.
I tried with filter by using setHeader but it is sending two set-Cookie header.

Regards,
Abirami.S


RE: context.xml under META-INF was not working

2020-06-11 Thread S Abirami
Hi Mark,

We don't have concern regarding the restart of tomcat for the changes in 
context.xml. As our web application is mainly used to launch only the 
standalone application.
I have updated Cookieprocessor entry under the context tag in server.xml 
specific to the application context path and it is working fine.

But, I could see that tenable detects that all other web application also has 
the SameSite attribute even though I have mentioned only in the specific 
application context.
It is really surprising me . But,  contrast ZAP tool reports for other 
application it doesn't have SameSite attribute.


Regards,
Abirami.S

-Original Message-
From: Mark Thomas  
Sent: Thursday, June 11, 2020 8:19 PM
To: Tomcat Users List 
Subject: RE: context.xml under META-INF was not working

On June 11, 2020 2:32:51 PM UTC, S Abirami  
wrote:
>Hi Mark,
>
>We are using Apache Tomcat 9.0.33.
>I am not seeing any exception regarding it.

That isn't what I asked. I asked for the log messages .

Fortunately, you have provided the information I was looking for below.

>In our application the web-application will not be located under the 
>CATALINA_HOME/webapps location.
>We placed in other location and mentioned the path in context tag with 
>attributes path and docBase in server.xml .

It is strongly recommended you don't define Context elements in server.xml as 
they only way to change them us to restart Tomcat.

> Here ,we mentioned the
>deployOnStartUp as false.
>Hence, I have created META-INF directory under the App_folder and 
>created the context.xml and MANIFEST.MF files.

That won't work. The Context element in server.xml will be used. Either edit 
the Context in server.xml or, better, move the Context definitions to 
$CATALINA_BASE/conf///

Mark

>
>Regarding logs, I could see only the below messages
>
>WARNING: Match [Server/Service/Engine/Host/Context] failed to set 
>property [antiJARLocking] to [false]
>WARNING: Match [Context/Manager] failed to set property [randomClass] 
>to [java.security.SecureRandom]
>SEVERE: Unknown default host [localhost] for service 
>[StandardService[Catalina]]. Tomcat will not be able process HTTP/1.0 
>requests that do not specify a host name.
>
>
>Regards,
>Abirami.S
>
>-Original Message-
>From: Mark Thomas 
>Sent: Thursday, June 11, 2020 7:27 PM
>To: users@tomcat.apache.org
>Subject: Re: context.xml under META-INF was not working
>
>On 11/06/2020 12:46, S Abirami wrote:
>> Hi Mark,
>> 
>> The below is the content of the context.xml
>> 
>>   > sameSiteCookies="strict"/> 
>
>That looks OK.
>
>What Tomcat version are you using?
>
>What do the logs say when the application is deployed? That will tell 
>you where it is being deployed from which might suggest why that file 
>isn't taking effect.
>
>Mark
>
>
>> 
>> Regards,
>> Abirami.S
>> -----Original Message-
>> From: Mark Thomas 
>> Sent: Thursday, June 11, 2020 5:12 PM
>> To: users@tomcat.apache.org
>> Subject: Re: context.xml under META-INF was not working
>> 
>> On 11/06/2020 11:42, S Abirami wrote:
>>> Hi All,
>>>
>>> I want to configure SameSite attribute to the specific
>web-application.
>>> For that, I have updated the context.xml of specific web application
>
>>> located in /META-INF/context.xml
>>>
>>> 
>>>
>>>
>>> It is not working. Only the changes in global context.xml is
>working. Please guide to solve the issue.
>> 
>> What is the full contents of /META-INF/context.xml
>> 
>> Mark
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>> 
>
>
>-
>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: context.xml under META-INF was not working

2020-06-11 Thread S Abirami
Hi Mark,

We are using Apache Tomcat 9.0.33.
I am not seeing any exception regarding it.

In our application the web-application will not be located under the 
CATALINA_HOME/webapps location.
We placed in other location and mentioned the path in context tag with 
attributes path and docBase in server.xml .Here ,we mentioned the 
deployOnStartUp as false.
Hence, I have created META-INF directory under the App_folder and created the 
context.xml and MANIFEST.MF files.

Regarding logs, I could see only the below messages

WARNING: Match [Server/Service/Engine/Host/Context] failed to set property 
[antiJARLocking] to [false]
WARNING: Match [Context/Manager] failed to set property [randomClass] to 
[java.security.SecureRandom]
SEVERE: Unknown default host [localhost] for service 
[StandardService[Catalina]]. Tomcat will not be able process HTTP/1.0 requests 
that do not specify a host name.


Regards,
Abirami.S

-Original Message-
From: Mark Thomas  
Sent: Thursday, June 11, 2020 7:27 PM
To: users@tomcat.apache.org
Subject: Re: context.xml under META-INF was not working

On 11/06/2020 12:46, S Abirami wrote:
> Hi Mark,
> 
> The below is the content of the context.xml
> 
>sameSiteCookies="strict"/> 

That looks OK.

What Tomcat version are you using?

What do the logs say when the application is deployed? That will tell you where 
it is being deployed from which might suggest why that file isn't taking effect.

Mark


> 
> Regards,
> Abirami.S
> -Original Message-
> From: Mark Thomas 
> Sent: Thursday, June 11, 2020 5:12 PM
> To: users@tomcat.apache.org
> Subject: Re: context.xml under META-INF was not working
> 
> On 11/06/2020 11:42, S Abirami wrote:
>> Hi All,
>>
>> I want to configure SameSite attribute to the specific web-application.
>> For that, I have updated the context.xml of specific web application 
>> located in /META-INF/context.xml
>>
>> 
>>
>>
>> It is not working. Only the changes in global context.xml is working. Please 
>> guide to solve the issue.
> 
> What is the full contents of /META-INF/context.xml
> 
> Mark
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


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



RE: context.xml under META-INF was not working

2020-06-11 Thread S Abirami
Hi Mark,

The below is the content of the context.xml






Regards,
Abirami.S
-Original Message-
From: Mark Thomas  
Sent: Thursday, June 11, 2020 5:12 PM
To: users@tomcat.apache.org
Subject: Re: context.xml under META-INF was not working

On 11/06/2020 11:42, S Abirami wrote:
> Hi All,
> 
> I want to configure SameSite attribute to the specific web-application.
> For that, I have updated the context.xml of specific web application located 
> in /META-INF/context.xml
> 
> 
> 
> 
> It is not working. Only the changes in global context.xml is working. Please 
> guide to solve the issue.

What is the full contents of /META-INF/context.xml

Mark

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


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



RE: context.xml under META-INF was not working

2020-06-11 Thread S Abirami
Hi All,

I want to configure SameSite attribute to the specific web-application.
For that, I have updated the context.xml of specific web application located in 
/META-INF/context.xml




It is not working. Only the changes in global context.xml is working. Please 
guide to solve the issue.

Regards,
Abirami.S


RE: Regarding context.xml changes impact other web service not deployed

2020-06-09 Thread S Abirami
Hi Mark Thomas,

Thanks a lot for the information.
Answers for your question

In which context.xml file? The global one, the host one or a web application 
specific one?
I have changed in global context.xml which is located in conf/context.xml.

Regards,
Abirami.S
-Original Message-
From: Mark Thomas  
Sent: Tuesday, June 9, 2020 1:50 PM
To: users@tomcat.apache.org
Subject: Re: Regarding context.xml changes impact other web service not deployed

On 09/06/2020 06:59, S Abirami wrote:
> Hi Team,
> 
>  In our product to address security vulnerability in context.xml, 
> we have introduced following entry
> 
>  

In which context.xml file? The global one, the host one or a web application 
specific one?

> After introducing the above line, I noticed few rest service which is not 
> deployed in that Tomcat also getting impact.

I'd guess not a web application specific one the

> Deployment Details
> 
> Deployed :RHEL
> Tomcat Installation format :  tar.gz
> 
> Hence,  interested to know about the internal implementation of the context 
> in Tomcat to understand the impact.

Global web.xml provides defaults for all web applications.

Host level provides defaults for all web applications in a given host.

Web application provides settings for just that web application.

Don't add  elements to server.xml

Settings in more specific files take priority.

Mark

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


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



RE: Regarding context.xml changes impact other web service not deployed

2020-06-09 Thread S Abirami
Hi Luis,

Thanks for the information.

My question is mainly whether the changes in context.xml will impact the web 
application, which is not deployed in the Tomcat.

From Mark reply, I understood that the changes in context.xml will impact the 
web application even though it is not deployed in Tomcat.

Regards,
Abirami.S

-Original Message-
From: Luis Rodríguez Fernández  
Sent: Tuesday, June 9, 2020 12:33 PM
To: Tomcat Users List 
Subject: Re: Regarding context.xml changes impact other web service not deployed

Hello Abirami,

Well, strict does what it promises, so if those third-party rest services were 
expecting some cookies that now are not being sent by the browser, it is normal 
that they do not work as expected.

Internal implementation: sure! You can always have a look at the code of the 
different CookieProcessors [1] & [2]

Hope it helps,

Luis

[1]
https://protect2.fireeye.com/v1/url?k=05de6036-5b7ea273-05de20ad-86b568293eb5-4944602a8cd168fc=1=1f87817f-d293-4635-8855-bd59ff97ee4b=https%3A%2F%2Fgithub.com%2Fapache%2Ftomcat%2Fblob%2Ff3c9fdd40bdbc3dc22b512596954e2bc6d424d5a%2Fjava%2Forg%2Fapache%2Ftomcat%2Futil%2Fhttp%2FRfc6265CookieProcessor.java
[2]
https://protect2.fireeye.com/v1/url?k=1f48aa13-41e86856-1f48ea88-86b568293eb5-6b24c935f0126d6d=1=1f87817f-d293-4635-8855-bd59ff97ee4b=https%3A%2F%2Fgithub.com%2Fapache%2Ftomcat%2Fblob%2F623b2c9d0997481f1c5229135fa2f92e24303e47%2Fjava%2Forg%2Fapache%2Ftomcat%2Futil%2Fhttp%2FLegacyCookieProcessor.java



El mar., 9 jun. 2020 a las 7:59, S Abirami ()
escribió:

> Hi Team,
>
>  In our product to address security vulnerability in context.xml, 
> we have introduced following entry
>
>  
>
>
> After introducing the above line, I noticed few rest service which is 
> not deployed in that Tomcat also getting impact.
>
> Deployment Details
>
> Deployed :RHEL
> Tomcat Installation format :  tar.gz
>
> Hence,  interested to know about the internal implementation of the 
> context in Tomcat to understand the impact.
>
> Thanks in advance for the support.
>
> Regards,
> Abirami.S
>
>
>
>
>
>

-- 

"Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better."

- Samuel Beckett


Regarding context.xml changes impact other web service not deployed

2020-06-09 Thread S Abirami
Hi Team,

 In our product to address security vulnerability in context.xml, we have 
introduced following entry

 


After introducing the above line, I noticed few rest service which is not 
deployed in that Tomcat also getting impact.

Deployment Details

Deployed :RHEL
Tomcat Installation format :  tar.gz

Hence,  interested to know about the internal implementation of the context in 
Tomcat to understand the impact.

Thanks in advance for the support.

Regards,
Abirami.S







RE: HTTP/2 SETTINGS Parameters and WINDOW_UPDATE : Tomcat:9.0.11

2018-10-30 Thread S Abirami
Hi Thomas,

Thanks for your response still now.
It helped me lot. As in earlier mail , I have partial reply .  Hence sent both 
user alias and individual to get the response.

I hope ,I sent in a wrong time where your mail expose your mood. I will check 
on the package org.apache.coyote.http2.
I hope we have payed support also. I will check  on that aspect  also.
Sorry if my individual mail troubles you.

Regards,
Abirami.S
-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Monday, October 29, 2018 11:37 PM
To: users@tomcat.apache.org
Subject: Re: HTTP/2 SETTINGS Parameters and WINDOW_UPDATE : Tomcat:9.0.11

Sending a private email to an individual to try and elicit a response is not 
viewed as acceptable behaviour on this list.

Speaking personally, it will not cause me to answer a question any faster. At 
best, I'll answer when I'm ready. Catch me in a bad mood and I may choose not 
to answer at all.

If you want replies to questions provided in specific timescales, you'll need 
to find and pay for commercial support.

Given that Tomcat is open source, have you considered looking at the source 
code?
Hint: org.apache.coyote.http2

Mark


On 29/10/2018 12:36, S Abirami wrote:
> Hi Mark,
> 
> Thanks for response .
> 
> Please confirm whether
> 
> Windows_Update has Window Size Increment (31) is configurable in Tomcat.
> SETTINGS_MAX_FRAME_SIZE  : Whether this param is configurable in Tomcat and 
> what is the default value.
> 
> Regards,
> Abirami.S
> 
> -Original Message-
> From: Mark Thomas [mailto:ma...@apache.org]
> Sent: Monday, October 29, 2018 5:53 PM
> To: users@tomcat.apache.org
> Subject: Re: HTTP/2 SETTINGS Parameters and WINDOW_UPDATE : 
> Tomcat:9.0.11
> 
> On 29/10/18 06:21, S Abirami wrote:
>> Hi Mark Thomas,
>>
>> Thanks for response.
>>
>> Need input on the below param
>>
>> SETTINGS_MAX_FRAME_SIZE  :
>>   Windows_Update has Window Size Increment (31) ,please share the default 
>> value in Tomcat.
> 
> 16k
> 
>> Please confirm the below of my assumption for the Setting parameter 
>> and Windows_Update is correct
>>
>> SETTINGS_MAX_CONCURRENT_STREAMS   :  We can use  " 
>> maxConcurrentStreamExecution"
> 
> Correct.
> 
>> SETTINGS_MAX_HEADER_LIST_SIZE  :  maxHeaderSize
> 
> Incorrect. Defaults to unlimited. Not configurable. Note that Tomcat will 
> apply other limits, not related to the protocol including maxHeaderSize.
> 
>> SETTINGS_INITIAL_WINDOW_SIZE   :  initialWindowSize
> 
> Correct.
> 
> Mark
> 
> 
>>
>>
>> Regards,
>> Abirami.S
>> -Original Message-
>> From: Mark Thomas [mailto:ma...@apache.org]
>> Sent: Saturday, October 27, 2018 11:24 PM
>> To: users@tomcat.apache.org
>> Subject: Re: HTTP/2 SETTINGS Parameters and WINDOW_UPDATE :
>> Tomcat:9.0.11
>>
>> On 27/10/18 17:27, S Abirami wrote:
>>> Hi All,
>>>
>>>  I want your guidance how to set the below Setting Parameters and 
>>> Wndows_Update using  Tomcat.
>>> SETTINGS_HEADER_TABLE_SIZE,
>>
>> Defaults to 4k. Not configurable.
>>
>>> SETTINGS_ENABLE_PUSH,
>>
>> Defaults to true. Not configurable.
>>
>>> SETTINGS_INITIAL_WINDOW_SIZE
>>
>> See http://tomcat.apache.org/tomcat-9.0-doc/config/http2.html
>>
>>> etc which is mentioned 6.5.2 section in RFC 7540
>>>
>>> Similarly How to set the Windows_Update using Tomcat which is mentioned in 
>>> the 6.9 section in RFC 7540.
>>
>> You don't. Tomcat handles that.
>>
>> Mark
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
> 
> 
> -
> 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: HTTP/2 SETTINGS Parameters and WINDOW_UPDATE : Tomcat:9.0.11

2018-10-29 Thread S Abirami
Hi Mark,

Thanks for response .

Please confirm whether 

Windows_Update has Window Size Increment (31) is configurable in Tomcat.
SETTINGS_MAX_FRAME_SIZE  : Whether this param is configurable in Tomcat and 
what is the default value.

Regards,
Abirami.S

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Monday, October 29, 2018 5:53 PM
To: users@tomcat.apache.org
Subject: Re: HTTP/2 SETTINGS Parameters and WINDOW_UPDATE : Tomcat:9.0.11

On 29/10/18 06:21, S Abirami wrote:
> Hi Mark Thomas,
> 
> Thanks for response.
> 
> Need input on the below param
> 
> SETTINGS_MAX_FRAME_SIZE  :
>  Windows_Update has Window Size Increment (31) ,please share the default 
> value in Tomcat.

16k

> Please confirm the below of my assumption for the Setting parameter 
> and Windows_Update is correct
> 
> SETTINGS_MAX_CONCURRENT_STREAMS   :  We can use  " 
> maxConcurrentStreamExecution"

Correct.

> SETTINGS_MAX_HEADER_LIST_SIZE  :  maxHeaderSize

Incorrect. Defaults to unlimited. Not configurable. Note that Tomcat will apply 
other limits, not related to the protocol including maxHeaderSize.

> SETTINGS_INITIAL_WINDOW_SIZE   :  initialWindowSize

Correct.

Mark


> 
> 
> Regards,
> Abirami.S
> -Original Message-
> From: Mark Thomas [mailto:ma...@apache.org]
> Sent: Saturday, October 27, 2018 11:24 PM
> To: users@tomcat.apache.org
> Subject: Re: HTTP/2 SETTINGS Parameters and WINDOW_UPDATE : 
> Tomcat:9.0.11
> 
> On 27/10/18 17:27, S Abirami wrote:
>> Hi All,
>>
>> I want your guidance how to set the below Setting Parameters and 
>> Wndows_Update using  Tomcat.
>> SETTINGS_HEADER_TABLE_SIZE,
> 
> Defaults to 4k. Not configurable.
> 
>> SETTINGS_ENABLE_PUSH,
> 
> Defaults to true. Not configurable.
> 
>> SETTINGS_INITIAL_WINDOW_SIZE
> 
> See http://tomcat.apache.org/tomcat-9.0-doc/config/http2.html
> 
>> etc which is mentioned 6.5.2 section in RFC 7540
>>
>> Similarly How to set the Windows_Update using Tomcat which is mentioned in 
>> the 6.9 section in RFC 7540.
> 
> You don't. Tomcat handles that.
> 
> Mark
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


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



RE: HTTP/2 SETTINGS Parameters and WINDOW_UPDATE : Tomcat:9.0.11

2018-10-29 Thread S Abirami
Hi Mark Thomas,

Thanks for response.

Need input on the below param

SETTINGS_MAX_FRAME_SIZE  :
 Windows_Update has Window Size Increment (31) ,please share the default value 
in Tomcat.

Please confirm the below of my assumption for the Setting parameter and 
Windows_Update is correct

SETTINGS_MAX_CONCURRENT_STREAMS   :  We can use  " maxConcurrentStreamExecution"
SETTINGS_MAX_HEADER_LIST_SIZE  :  maxHeaderSize
SETTINGS_INITIAL_WINDOW_SIZE   :  initialWindowSize


Regards,
Abirami.S
-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Saturday, October 27, 2018 11:24 PM
To: users@tomcat.apache.org
Subject: Re: HTTP/2 SETTINGS Parameters and WINDOW_UPDATE : Tomcat:9.0.11

On 27/10/18 17:27, S Abirami wrote:
> Hi All,
> 
> I want your guidance how to set the below Setting Parameters and 
> Wndows_Update using  Tomcat.
> SETTINGS_HEADER_TABLE_SIZE,

Defaults to 4k. Not configurable.

> SETTINGS_ENABLE_PUSH,

Defaults to true. Not configurable.

> SETTINGS_INITIAL_WINDOW_SIZE

See http://tomcat.apache.org/tomcat-9.0-doc/config/http2.html

> etc which is mentioned 6.5.2 section in RFC 7540
> 
> Similarly How to set the Windows_Update using Tomcat which is mentioned in 
> the 6.9 section in RFC 7540.

You don't. Tomcat handles that.

Mark

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


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



HTTP/2 SETTINGS Parameters and WINDOW_UPDATE : Tomcat:9.0.11

2018-10-27 Thread S Abirami
Hi All,

I want your guidance how to set the below Setting Parameters and 
Wndows_Update using  Tomcat.
SETTINGS_HEADER_TABLE_SIZE, SETTINGS_ENABLE_PUSH, SETTINGS_INITIAL_WINDOW_SIZE 
etc which is mentioned 6.5.2 section in RFC 7540

Similarly How to set the Windows_Update using Tomcat which is mentioned in the 
6.9 section in RFC 7540.
We are using jdk 1.8u181 for java.

Please help me here.

Regards,
Abirami.S

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



Embedded Tomcat 9.0.11 : Already port in use

2018-10-11 Thread S Abirami
Hi All,

I have checked the port is not in use before allocating to the connector 
and started the tomcat.
During start , it's mentioning that Port already in use. It is going and 
binding to the Application Server where this app is deployed.

  SERVER  --  > Ran Embedded tomcat server in that SERVER App.

Please help me here.

Regards,
Abirami.S



RE: Encrypt Keystore password in server.xml 8.0.45

2017-09-11 Thread S Abirami
Hi Mark,

I followed the below steps as you stated

https://wiki.apache.org/tomcat/FAQ/Password

still getting the same exception in log. Here also  property 
${keystore.password} decrypted successfully from encrypted password saved in 
catalina.properties.
 but it is giving the same exception and server not started .I have attached 
the exception for your consideration

connector tag as below



Setenv.sh
  Export CATALINA_OPTS=-Dorg.apache.tomcat.util.digester.PROPERTY_SOURCE=< 
CLASS_NAME  which  implements IntrospectionUtils.PropertySource >

Catalina.properties 
 
Keystore.password=

Please share your input.


Regards,
Abirami.S

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Monday, September 11, 2017 4:03 PM
To: Tomcat Users List
Subject: Re: Encrypt Keystore password in server.xml 8.0.45

On 11/09/17 10:11, S Abirami wrote:
> 
> Hi All,
> 
>   I have to encrypt keystore password in server.xml.

https://wiki.apache.org/tomcat/FAQ/Password

Mark

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

Sep 11, 2017 7:34:28 PM org.apache.catalina.core.StandardService initInternal
SEVERE: Failed to initialize connector [Connector[HTTP/1.1-2309]]
org.apache.catalina.LifecycleException: Failed to initialize component 
[Connector[HTTP/1.1-2309]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at 
org.apache.catalina.core.StandardService.initInternal(StandardService.java:568)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at 
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:871)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:581)
at org.apache.catalina.startup.Catalina.load(Catalina.java:604)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)
Caused by: org.apache.catalina.LifecycleException: Protocol handler 
initialization failed
at 
org.apache.catalina.connector.Connector.initInternal(Connector.java:962)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
... 12 more

java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:780)
at 
sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)
at 
sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
at 
sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)
at java.security.KeyStore.load(KeyStore.java:1445)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:449)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:353)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:606)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:546)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:370)
at 
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:810)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:476)
at 
org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:120)
at 
org.apache.catalina.connector.Connector.initInternal(Connector.java:960)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at 
org.apache.catalina.core.StandardService.initInternal(StandardService.java:568)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at 
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:871)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:581)
at org.apache.catalina.startup.Catalina.load(Catalina.java:604)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invo

RE: Encrypt Keystore password in server.xml 8.0.45

2017-09-11 Thread S Abirami
Hi Thomas,

I have encrypted the keystore password using openssl and hardcoded in 
server.xml.
For decrypting , Http11Nio2ProtocolDecryptProp extends Http11Nio2Protocol]  and 
mentioned as below in server.xml

mailto:ma...@apache.org] 
Sent: Monday, September 11, 2017 4:03 PM
To: Tomcat Users List
Subject: Re: Encrypt Keystore password in server.xml 8.0.45

On 11/09/17 10:11, S Abirami wrote:
> 
> Hi All,
> 
>   I have to encrypt keystore password in server.xml.

https://wiki.apache.org/tomcat/FAQ/Password

Mark

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



RE: Encrypt Keystore password in server.xml 8.0.45

2017-09-11 Thread S Abirami

Hi All,

  I have to encrypt keystore password in server.xml. For decrypting ,I have 
inherited the class Http11Nio2Protocol[Http11Nio2ProtocolDecryptProp extends 
Http11Nio2Protocol] and decrypted in setKeyStorePass overridden method then set 
that to endpoint keystorePass and super class setKeyStorePass .I could see the 
encryption happened successfully. But I am getting following error and server 
is not opening

@Override
   public void setKeystorePass(String s)
   {  try{
 System.out.println( "This method called" + s );
 byte[] encrypted = s.getBytes();
 byte[] data = OpenSSL.decrypt( "aes-256-cbc", key, 
encrypted );
 super.setKeystorePass( new String( data, "UTF-8" ) );
  super.endpoint.setKeystorePass( new String( data, "UTF-8" ) );


  }

Please share your input

Sep 11, 2017 10:51:16 AM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler 
["http-nio2-2309"]
java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:780)
at 
sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)
at 
sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
at 
sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)
   at java.security.KeyStore.load(KeyStore.java:1445)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:449)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:353)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:606)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:546)
at org.apache.tomcat.util.net.Nio2Endpoint.bind(Nio2Endpoint.java:313)
at 
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:810)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:476)
at 
org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:120)
at 
org.apache.catalina.connector.Connector.initInternal(Connector.java:960)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at 
org.apache.catalina.core.StandardService.initInternal(StandardService.java:568)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at 
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:871)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:581)
at org.apache.catalina.startup.Catalina.load(Catalina.java:604)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)
Caused by: java.security.UnrecoverableKeyException: Password verification failed
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:778)
... 26 more

Sep 11, 2017 10:51:16 AM org.apache.catalina.core.StandardService initInternal
SEVERE: Failed to initialize connector 
[Connector[com.ericsson.http.protocol.Http11Nio2ProtocolDecryptProp-2309]]
org.apache.catalina.LifecycleException: Failed to initialize component 
[Connector[com.ericsson.http.protocol.Http11Nio2ProtocolDecryptProp-2309]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at 
org.apache.catalina.core.StandardService.initInternal(StandardService.java:568)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at 
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:871)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

-
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



Encrypt Keystore password in server.xml 8.0.45

2017-09-11 Thread S Abirami
Hi All,

  I have to encrypt keystore password in server.xml. For decrypting ,I have 
inherited the class Http11Nio2Protocol[Http11Nio2ProtocolDecryptProp extends 
Http11Nio2Protocol] and decrypted in setKeyStorePass overridden method then set 
that to endpoint keystorePass and super class setKeyStorePass .I could see the 
encryption happened successfully. But I am getting following error and server 
is not opening

@Override
   public void setKeystorePass(String s)
   {  try{
 System.out.println( "This method called" + s );
 byte[] encrypted = s.getBytes();
 byte[] data = OpenSSL.decrypt( "aes-256-cbc", key, 
encrypted );
 super.setKeystorePass( new String( data, "UTF-8" ) );
  super.endpoint.setKeystorePass( new String( data, "UTF-8" ) );


  }

Please share your input

Sep 11, 2017 10:51:16 AM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler 
["http-nio2-2309"]
java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:780)
at 
sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)
at 
sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
at 
sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)
   at java.security.KeyStore.load(KeyStore.java:1445)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:449)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:353)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:606)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:546)
at org.apache.tomcat.util.net.Nio2Endpoint.bind(Nio2Endpoint.java:313)
at 
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:810)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:476)
at 
org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:120)
at 
org.apache.catalina.connector.Connector.initInternal(Connector.java:960)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at 
org.apache.catalina.core.StandardService.initInternal(StandardService.java:568)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at 
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:871)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:581)
at org.apache.catalina.startup.Catalina.load(Catalina.java:604)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)
Caused by: java.security.UnrecoverableKeyException: Password verification failed
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:778)
... 26 more

Sep 11, 2017 10:51:16 AM org.apache.catalina.core.StandardService initInternal
SEVERE: Failed to initialize connector 
[Connector[com.ericsson.http.protocol.Http11Nio2ProtocolDecryptProp-2309]]
org.apache.catalina.LifecycleException: Failed to initialize component 
[Connector[com.ericsson.http.protocol.Http11Nio2ProtocolDecryptProp-2309]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at 
org.apache.catalina.core.StandardService.initInternal(StandardService.java:568)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at 
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:871)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

-
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



Encrypt Keystore password in server.xml 8.0.45

2017-09-11 Thread S Abirami

Hi All,

  I have to encrypt keystore password in server.xml. For decrypting ,I have 
inherited the class Http11Nio2Protocol[Http11Nio2ProtocolDecryptProp extends 
Http11Nio2Protocol] and decrypted in setKeyStorePass overridden method then set 
that to endpoint keystorePass and super class setKeyStorePass .I could see the 
encryption happened successfully. But I am getting following error and server 
is not opening

@Override
   public void setKeystorePass(String s)
   {  try{
 System.out.println( "This method called" + s );
 byte[] encrypted = s.getBytes();
 byte[] data = OpenSSL.decrypt( "aes-256-cbc", key, 
encrypted );
 super.setKeystorePass( new String( data, "UTF-8" ) );
  super.endpoint.setKeystorePass( new String( data, "UTF-8" ) );


  }

Please share your input

Sep 11, 2017 10:51:16 AM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler 
["http-nio2-2309"]
java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:780)
at 
sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)
at 
sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
at 
sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)
   at java.security.KeyStore.load(KeyStore.java:1445)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:449)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:353)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:606)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:546)
at org.apache.tomcat.util.net.Nio2Endpoint.bind(Nio2Endpoint.java:313)
at 
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:810)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:476)
at 
org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:120)
at 
org.apache.catalina.connector.Connector.initInternal(Connector.java:960)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at 
org.apache.catalina.core.StandardService.initInternal(StandardService.java:568)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at 
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:871)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:581)
at org.apache.catalina.startup.Catalina.load(Catalina.java:604)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)
Caused by: java.security.UnrecoverableKeyException: Password verification failed
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:778)
... 26 more

Sep 11, 2017 10:51:16 AM org.apache.catalina.core.StandardService initInternal
SEVERE: Failed to initialize connector 
[Connector[com.ericsson.http.protocol.Http11Nio2ProtocolDecryptProp-2309]]
org.apache.catalina.LifecycleException: Failed to initialize component 
[Connector[com.ericsson.http.protocol.Http11Nio2ProtocolDecryptProp-2309]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at 
org.apache.catalina.core.StandardService.initInternal(StandardService.java:568)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at 
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:871)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

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



Encrypt Keystore password in server.xml

2017-09-11 Thread S Abirami
Hi All,

  I have to encrypt keystore password in server.xml. For decrypting ,I have 
inherited the class Http11Nio2Protocol[Http11Nio2ProtocolDecryptProp extends 
Http11Nio2Protocol] and decrypted in setKeyStorePass overridden method then set 
that to endpoint keystorePass and super class setKeyStorePass .I could see the 
encryption happened successfully. But I am getting following error and server 
is not opening

@Override
   public void setKeystorePass(String s)
   {  try{
 System.out.println( "This method called" + s );
 byte[] encrypted = s.getBytes();
 byte[] data = OpenSSL.decrypt( "aes-256-cbc", key, 
encrypted );
 super.setKeystorePass( new String( data, "UTF-8" ) );
  super.endpoint.setKeystorePass( new String( data, "UTF-8" ) );


  }

Please share your input

Sep 11, 2017 10:51:16 AM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler 
["http-nio2-2309"]
java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:780)
at 
sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)
at 
sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
at 
sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)
   at java.security.KeyStore.load(KeyStore.java:1445)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:449)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:353)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:606)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:546)
at org.apache.tomcat.util.net.Nio2Endpoint.bind(Nio2Endpoint.java:313)
at 
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:810)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:476)
at 
org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:120)
at 
org.apache.catalina.connector.Connector.initInternal(Connector.java:960)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at 
org.apache.catalina.core.StandardService.initInternal(StandardService.java:568)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at 
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:871)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:581)
at org.apache.catalina.startup.Catalina.load(Catalina.java:604)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)
Caused by: java.security.UnrecoverableKeyException: Password verification failed
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:778)
... 26 more

Sep 11, 2017 10:51:16 AM org.apache.catalina.core.StandardService initInternal
SEVERE: Failed to initialize connector 
[Connector[com.ericsson.http.protocol.Http11Nio2ProtocolDecryptProp-2309]]
org.apache.catalina.LifecycleException: Failed to initialize component 
[Connector[com.ericsson.http.protocol.Http11Nio2ProtocolDecryptProp-2309]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at 
org.apache.catalina.core.StandardService.initInternal(StandardService.java:568)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at 
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:871)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)


RE: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x

2017-08-04 Thread S Abirami
Hi Thomas,

Thanks for the response.
It worked for me.

Regards,
Abirami.S

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org]
Sent: Friday, August 04, 2017 3:30 PM
To: users >> Tomcat Users List
Subject: Re: Embedded Tomcat throws FileNotFoundException for TldScanner 
upgrade from 8.0.x to 8.0.x

On 04/08/17 10:49, S Abirami wrote:



> but the method call of = Tomcat.addwebapp(contextpath,docpath); itself 
> triggering this exception.
> So whatever I need to do before addwebapp.

From the Javadoc:
This is equivalent to adding a web application to Tomcat's webapps directory. 
The equivalent of the default web.xml will be applied to the web application 
and any WEB-INF/web.xml and META-INF/context.xml packaged with the application 
will be processed normally. Normal web fragment and 
javax.servlet.ServletContainerInitializer processing will be applied.

It looks like you either want:
To specify more config in META-INF/context.xml

which is exactly what you'd do if running on a standard Tomact instance or use:

addWebapp(Host, String, String, LifecycleListener)

which will give you more control over the configuration because you can provide 
the LifecycleListener or you want one of the addContext() methods which won't 
do anything automatically and requires you to set everything programmatically.

Mark

> 
> Regards,
> Abirami.S
> -Original Message-
> From: S Abirami
> Sent: Friday, August 04, 2017 3:08 PM
> To: Tomcat Users List
> Subject: RE: Embedded Tomcat throws FileNotFoundException for 
> TldScanner upgrade from 8.0.x to 8.0.x
> 
> Hi
> 
> I tried that also .Still it's giving the same error msg. Please help me to 
> solve the issue.
> 
> Regards,
> Abirami.S
> 
> -Original Message-
> From: M. Manna [mailto:manme...@gmail.com]
> Sent: Friday, August 04, 2017 2:24 PM
> To: Tomcat Users List
> Subject: Re: Embedded Tomcat throws FileNotFoundException for 
> TldScanner upgrade from 8.0.x to 8.0.x
> 
> So if you don't want to scan jar, do you still need that Jar scanner in the 
> context? All you have done in the code above, is disabled the jar scanner.
> 
> Do you want to try without adding the jarscanner to the context? Or 
> try the
> following:
> 
> JarScanner jsc = new JarScanner() {
>  public void scan(ServletContext arg0, ClassLoader arg1,
> JarScannerCallback arg2, Set arg3) {
> // DUMMY NOTHING
> }
> };
> context.setJarScanner(jsc);
> 
> 
> On 4 August 2017 at 09:35, S Abirami <s.abir...@ericsson.com> wrote:
> 
>> Hi ,
>>
>> It is contextPath is a String which used to mention my Webapp location.
>> Also I don’t want to scan any jar files.
>> I want to disable Jarscanner.
>>
>> Regards,
>> Abirami.S
>>
>> -Original Message-
>> From: M. Manna [mailto:manme...@gmail.com]
>> Sent: Friday, August 04, 2017 1:26 PM
>> To: Tomcat Users List
>> Subject: Re: Embedded Tomcat throws FileNotFoundException for 
>> TldScanner upgrade from 8.0.x to 8.0.x
>>
>> Okay, where are you getting your contextPath from? The code you 
>> posted is
>> below:
>>
>>
>> 3)Context context= Tomcat.addwebapp(contextpath,docpath);
>> StandardJarScanner scanner=new StandardJarScanner(); 
>> scanner.setScanClassPath( false ); scanner.setScanManifest( false ); 
>> context.setJarScanner(scanner);
>>
>> Also, setScanClassPath(false) you sure this is should not be "true"?
>> bootstrap scanner is set to "False" by default so I'm not sure if 
>> this is supposed to work properly.
>>
>> https://tomcat.apache.org/tomcat-8.0-doc/config/jar-scanner.html
>>
>> Please update.
>>
>> Regards,
>>
>> On 4 August 2017 at 08:50, S Abirami <s.abir...@ericsson.com> wrote:
>>
>>> Hi,
>>>
>>>  I am trying to create EmbeddedTomcat  so no context.xml created.
>>> Tomcat t=new Tomcat();
>>> Everything through object creation.
>>>
>>> Regards,
>>> Abirami.S
>>>
>>> -Original Message-
>>> From: M. Manna [mailto:manme...@gmail.com]
>>> Sent: Friday, August 04, 2017 1:18 PM
>>> To: Tomcat Users List
>>> Subject: Re: Embedded Tomcat throws FileNotFoundException for 
>>> TldScanner upgrade from 8.0.x to 8.0.x
>>>
>>> Hi,
>>>
>>> What is in your context.xml file? You can find it in conf directory.
>>>
>>> Regards,
>>>
>>> On 4 August 2017 at 08:43, S Abirami <s.abir...@ericsson.com> wrote:
>>>
>>>> Hi ,
>>>>
>>>>   I am usi

RE: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x

2017-08-04 Thread S Abirami
HI Thomas,

Thanks for the response.
It worked for me.

Regards,
Abirami.S

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Friday, August 04, 2017 3:30 PM
To: users >> Tomcat Users List
Subject: Re: Embedded Tomcat throws FileNotFoundException for TldScanner 
upgrade from 8.0.x to 8.0.x

On 04/08/17 10:49, S Abirami wrote:



> but the method call of = Tomcat.addwebapp(contextpath,docpath); itself 
> triggering this exception.
> So whatever I need to do before addwebapp.

From the Javadoc:
This is equivalent to adding a web application to Tomcat's webapps directory. 
The equivalent of the default web.xml will be applied to the web application 
and any WEB-INF/web.xml and META-INF/context.xml packaged with the application 
will be processed normally. Normal web fragment and 
javax.servlet.ServletContainerInitializer processing will be applied.

It looks like you either want:
To specify more config in META-INF/context.xml

which is exactly what you'd do if running on a standard Tomact instance or use:

addWebapp(Host, String, String, LifecycleListener)

which will give you more control over the configuration because you can provide 
the LifecycleListener or you want one of the addContext() methods which won't 
do anything automatically and requires you to set everything programmatically.

Mark

> 
> Regards,
> Abirami.S
> -Original Message-
> From: S Abirami
> Sent: Friday, August 04, 2017 3:08 PM
> To: Tomcat Users List
> Subject: RE: Embedded Tomcat throws FileNotFoundException for 
> TldScanner upgrade from 8.0.x to 8.0.x
> 
> Hi
> 
> I tried that also .Still it's giving the same error msg. Please help me to 
> solve the issue.
> 
> Regards,
> Abirami.S
> 
> -Original Message-
> From: M. Manna [mailto:manme...@gmail.com]
> Sent: Friday, August 04, 2017 2:24 PM
> To: Tomcat Users List
> Subject: Re: Embedded Tomcat throws FileNotFoundException for 
> TldScanner upgrade from 8.0.x to 8.0.x
> 
> So if you don't want to scan jar, do you still need that Jar scanner in the 
> context? All you have done in the code above, is disabled the jar scanner.
> 
> Do you want to try without adding the jarscanner to the context? Or 
> try the
> following:
> 
> JarScanner jsc = new JarScanner() {
>  public void scan(ServletContext arg0, ClassLoader arg1,
> JarScannerCallback arg2, Set arg3) {
> // DUMMY NOTHING
> }
> };
> context.setJarScanner(jsc);
> 
> 
> On 4 August 2017 at 09:35, S Abirami <s.abir...@ericsson.com> wrote:
> 
>> Hi ,
>>
>> It is contextPath is a String which used to mention my Webapp location.
>> Also I don’t want to scan any jar files.
>> I want to disable Jarscanner.
>>
>> Regards,
>> Abirami.S
>>
>> -Original Message-
>> From: M. Manna [mailto:manme...@gmail.com]
>> Sent: Friday, August 04, 2017 1:26 PM
>> To: Tomcat Users List
>> Subject: Re: Embedded Tomcat throws FileNotFoundException for 
>> TldScanner upgrade from 8.0.x to 8.0.x
>>
>> Okay, where are you getting your contextPath from? The code you 
>> posted is
>> below:
>>
>>
>> 3)Context context= Tomcat.addwebapp(contextpath,docpath);
>> StandardJarScanner scanner=new StandardJarScanner(); 
>> scanner.setScanClassPath( false ); scanner.setScanManifest( false ); 
>> context.setJarScanner(scanner);
>>
>> Also, setScanClassPath(false) you sure this is should not be "true"?
>> bootstrap scanner is set to "False" by default so I'm not sure if 
>> this is supposed to work properly.
>>
>> https://tomcat.apache.org/tomcat-8.0-doc/config/jar-scanner.html
>>
>> Please update.
>>
>> Regards,
>>
>> On 4 August 2017 at 08:50, S Abirami <s.abir...@ericsson.com> wrote:
>>
>>> Hi,
>>>
>>>  I am trying to create EmbeddedTomcat  so no context.xml created.
>>> Tomcat t=new Tomcat();
>>> Everything through object creation.
>>>
>>> Regards,
>>> Abirami.S
>>>
>>> -Original Message-
>>> From: M. Manna [mailto:manme...@gmail.com]
>>> Sent: Friday, August 04, 2017 1:18 PM
>>> To: Tomcat Users List
>>> Subject: Re: Embedded Tomcat throws FileNotFoundException for 
>>> TldScanner upgrade from 8.0.x to 8.0.x
>>>
>>> Hi,
>>>
>>> What is in your context.xml file? You can find it in conf directory.
>>>
>>> Regards,
>>>
>>> On 4 August 2017 at 08:43, S Abirami <s.abir...@ericsson.com> wrote:
>>>
>>>> Hi ,
>>>>
>>>>   I am usi

RE: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x

2017-08-04 Thread S Abirami
Hi ,

To be more clear

Context context= Tomcat.addwebapp(contextpath,docpath);

JarScanner jsc = new JarScanner() {
 public void scan(ServletContext arg0, ClassLoader arg1,
JarScannerCallback arg2, Set arg3) {
// DUMMY NOTHING
}
};
context.setJarScanner(jsc);



but the method call of = Tomcat.addwebapp(contextpath,docpath); itself 
triggering this exception.
So whatever I need to do before addwebapp.

Regards,
Abirami.S
-Original Message-
From: S Abirami 
Sent: Friday, August 04, 2017 3:08 PM
To: Tomcat Users List
Subject: RE: Embedded Tomcat throws FileNotFoundException for TldScanner 
upgrade from 8.0.x to 8.0.x

Hi

I tried that also .Still it's giving the same error msg. Please help me to 
solve the issue.

Regards,
Abirami.S

-Original Message-
From: M. Manna [mailto:manme...@gmail.com]
Sent: Friday, August 04, 2017 2:24 PM
To: Tomcat Users List
Subject: Re: Embedded Tomcat throws FileNotFoundException for TldScanner 
upgrade from 8.0.x to 8.0.x

So if you don't want to scan jar, do you still need that Jar scanner in the 
context? All you have done in the code above, is disabled the jar scanner.

Do you want to try without adding the jarscanner to the context? Or try the
following:

JarScanner jsc = new JarScanner() {
 public void scan(ServletContext arg0, ClassLoader arg1,
JarScannerCallback arg2, Set arg3) {
// DUMMY NOTHING
}
};
context.setJarScanner(jsc);


On 4 August 2017 at 09:35, S Abirami <s.abir...@ericsson.com> wrote:

> Hi ,
>
> It is contextPath is a String which used to mention my Webapp location.
> Also I don’t want to scan any jar files.
> I want to disable Jarscanner.
>
> Regards,
> Abirami.S
>
> -Original Message-
> From: M. Manna [mailto:manme...@gmail.com]
> Sent: Friday, August 04, 2017 1:26 PM
> To: Tomcat Users List
> Subject: Re: Embedded Tomcat throws FileNotFoundException for 
> TldScanner upgrade from 8.0.x to 8.0.x
>
> Okay, where are you getting your contextPath from? The code you posted 
> is
> below:
>
>
> 3)Context context= Tomcat.addwebapp(contextpath,docpath);
> StandardJarScanner scanner=new StandardJarScanner(); 
> scanner.setScanClassPath( false ); scanner.setScanManifest( false ); 
> context.setJarScanner(scanner);
>
> Also, setScanClassPath(false) you sure this is should not be "true"?
> bootstrap scanner is set to "False" by default so I'm not sure if this 
> is supposed to work properly.
>
> https://tomcat.apache.org/tomcat-8.0-doc/config/jar-scanner.html
>
> Please update.
>
> Regards,
>
> On 4 August 2017 at 08:50, S Abirami <s.abir...@ericsson.com> wrote:
>
> > Hi,
> >
> >  I am trying to create EmbeddedTomcat  so no context.xml created.
> > Tomcat t=new Tomcat();
> > Everything through object creation.
> >
> > Regards,
> > Abirami.S
> >
> > -Original Message-
> > From: M. Manna [mailto:manme...@gmail.com]
> > Sent: Friday, August 04, 2017 1:18 PM
> > To: Tomcat Users List
> > Subject: Re: Embedded Tomcat throws FileNotFoundException for 
> > TldScanner upgrade from 8.0.x to 8.0.x
> >
> > Hi,
> >
> > What is in your context.xml file? You can find it in conf directory.
> >
> > Regards,
> >
> > On 4 August 2017 at 08:43, S Abirami <s.abir...@ericsson.com> wrote:
> >
> > > Hi ,
> > >
> > >   I am using Embedded tomcat to create webapp. when I am 
> > > trying to add web app it is throwing the following exception but 
> > > Server started successfully.
> > > However,I need to eradicate this exception from the log.
> > >
> > > java.io.FileNotFoundException: /var/lib/jide-grids.jar (No such 
> > > file or
> > > directory)
> > > at java.util.zip.ZipFile.open(Native Method)
> > > at java.util.zip.ZipFile.(ZipFile.java:219)
> > > at java.util.zip.ZipFile.(ZipFile.java:149)
> > > at java.util.jar.JarFile.(JarFile.java:166)
> > > at java.util.jar.JarFile.(JarFile.java:130)
> > > at org.apache.tomcat.util.scan.JarFileUrlJar.(
> > > JarFileUrlJar.java:60)
> > > at org.apache.tomcat.util.scan.JarFactory.newInstance(
> > > JarFactory.java:49)
> > > at org.apache.tomcat.util.scan.StandardJarScanner.process(
> > > StandardJarScanner.java:334)
> > > at org.apache.tomcat.util.scan.StandardJarScanner.scan(
> > > StandardJarScanner.java:284)
> > > at org.apache.jasper.servlet.TldScanner.scanJars(
> > > TldScanner.java:262)
> > > at org.apache.jasper.servlet.TldScanner.scan(TldSc

RE: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x

2017-08-04 Thread S Abirami
Hi

I tried that also .Still it's giving the same error msg. Please help me to 
solve the issue.

Regards,
Abirami.S

-Original Message-
From: M. Manna [mailto:manme...@gmail.com] 
Sent: Friday, August 04, 2017 2:24 PM
To: Tomcat Users List
Subject: Re: Embedded Tomcat throws FileNotFoundException for TldScanner 
upgrade from 8.0.x to 8.0.x

So if you don't want to scan jar, do you still need that Jar scanner in the 
context? All you have done in the code above, is disabled the jar scanner.

Do you want to try without adding the jarscanner to the context? Or try the
following:

JarScanner jsc = new JarScanner() {
 public void scan(ServletContext arg0, ClassLoader arg1,
JarScannerCallback arg2, Set arg3) {
// DUMMY NOTHING
}
};
context.setJarScanner(jsc);


On 4 August 2017 at 09:35, S Abirami <s.abir...@ericsson.com> wrote:

> Hi ,
>
> It is contextPath is a String which used to mention my Webapp location.
> Also I don’t want to scan any jar files.
> I want to disable Jarscanner.
>
> Regards,
> Abirami.S
>
> -Original Message-
> From: M. Manna [mailto:manme...@gmail.com]
> Sent: Friday, August 04, 2017 1:26 PM
> To: Tomcat Users List
> Subject: Re: Embedded Tomcat throws FileNotFoundException for 
> TldScanner upgrade from 8.0.x to 8.0.x
>
> Okay, where are you getting your contextPath from? The code you posted 
> is
> below:
>
>
> 3)Context context= Tomcat.addwebapp(contextpath,docpath);
> StandardJarScanner scanner=new StandardJarScanner(); 
> scanner.setScanClassPath( false ); scanner.setScanManifest( false ); 
> context.setJarScanner(scanner);
>
> Also, setScanClassPath(false) you sure this is should not be "true"?
> bootstrap scanner is set to "False" by default so I'm not sure if this 
> is supposed to work properly.
>
> https://tomcat.apache.org/tomcat-8.0-doc/config/jar-scanner.html
>
> Please update.
>
> Regards,
>
> On 4 August 2017 at 08:50, S Abirami <s.abir...@ericsson.com> wrote:
>
> > Hi,
> >
> >  I am trying to create EmbeddedTomcat  so no context.xml created.
> > Tomcat t=new Tomcat();
> > Everything through object creation.
> >
> > Regards,
> > Abirami.S
> >
> > -Original Message-
> > From: M. Manna [mailto:manme...@gmail.com]
> > Sent: Friday, August 04, 2017 1:18 PM
> > To: Tomcat Users List
> > Subject: Re: Embedded Tomcat throws FileNotFoundException for 
> > TldScanner upgrade from 8.0.x to 8.0.x
> >
> > Hi,
> >
> > What is in your context.xml file? You can find it in conf directory.
> >
> > Regards,
> >
> > On 4 August 2017 at 08:43, S Abirami <s.abir...@ericsson.com> wrote:
> >
> > > Hi ,
> > >
> > >   I am using Embedded tomcat to create webapp. when I am 
> > > trying to add web app it is throwing the following exception but 
> > > Server started successfully.
> > > However,I need to eradicate this exception from the log.
> > >
> > > java.io.FileNotFoundException: /var/lib/jide-grids.jar (No such 
> > > file or
> > > directory)
> > > at java.util.zip.ZipFile.open(Native Method)
> > > at java.util.zip.ZipFile.(ZipFile.java:219)
> > > at java.util.zip.ZipFile.(ZipFile.java:149)
> > > at java.util.jar.JarFile.(JarFile.java:166)
> > > at java.util.jar.JarFile.(JarFile.java:130)
> > > at org.apache.tomcat.util.scan.JarFileUrlJar.(
> > > JarFileUrlJar.java:60)
> > > at org.apache.tomcat.util.scan.JarFactory.newInstance(
> > > JarFactory.java:49)
> > > at org.apache.tomcat.util.scan.StandardJarScanner.process(
> > > StandardJarScanner.java:334)
> > > at org.apache.tomcat.util.scan.StandardJarScanner.scan(
> > > StandardJarScanner.java:284)
> > > at org.apache.jasper.servlet.TldScanner.scanJars(
> > > TldScanner.java:262)
> > > at org.apache.jasper.servlet.TldScanner.scan(TldScanner.
> > java:106)
> > > at org.apache.jasper.servlet.JasperInitializer.onStartup(
> > > JasperInitializer.java:101)
> > > at org.apache.catalina.core.StandardContext.startInternal(
> > > StandardContext.java:5303)
> > > at org.apache.catalina.util.LifecycleBase.start(
> > > LifecycleBase.java:145)
> > > at 
> > > org.apache.catalina.core.ContainerBase.addChildInternal(
> > > ContainerBase.java:753)
> > > at org.apache.catalina.core.ContainerBase.addChild(
> > > ContainerBase.java:729)
> > > 

RE: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x

2017-08-04 Thread S Abirami
Hi ,

It is contextPath is a String which used to mention my Webapp location.
Also I don’t want to scan any jar files.
I want to disable Jarscanner.

Regards,
Abirami.S

-Original Message-
From: M. Manna [mailto:manme...@gmail.com] 
Sent: Friday, August 04, 2017 1:26 PM
To: Tomcat Users List
Subject: Re: Embedded Tomcat throws FileNotFoundException for TldScanner 
upgrade from 8.0.x to 8.0.x

Okay, where are you getting your contextPath from? The code you posted is
below:


3)Context context= Tomcat.addwebapp(contextpath,docpath);
StandardJarScanner scanner=new StandardJarScanner(); scanner.setScanClassPath( 
false ); scanner.setScanManifest( false ); context.setJarScanner(scanner);

Also, setScanClassPath(false) you sure this is should not be "true"?
bootstrap scanner is set to "False" by default so I'm not sure if this is 
supposed to work properly.

https://tomcat.apache.org/tomcat-8.0-doc/config/jar-scanner.html

Please update.

Regards,

On 4 August 2017 at 08:50, S Abirami <s.abir...@ericsson.com> wrote:

> Hi,
>
>  I am trying to create EmbeddedTomcat  so no context.xml created.
> Tomcat t=new Tomcat();
> Everything through object creation.
>
> Regards,
> Abirami.S
>
> -Original Message-
> From: M. Manna [mailto:manme...@gmail.com]
> Sent: Friday, August 04, 2017 1:18 PM
> To: Tomcat Users List
> Subject: Re: Embedded Tomcat throws FileNotFoundException for 
> TldScanner upgrade from 8.0.x to 8.0.x
>
> Hi,
>
> What is in your context.xml file? You can find it in conf directory.
>
> Regards,
>
> On 4 August 2017 at 08:43, S Abirami <s.abir...@ericsson.com> wrote:
>
> > Hi ,
> >
> >   I am using Embedded tomcat to create webapp. when I am trying 
> > to add web app it is throwing the following exception but Server 
> > started successfully.
> > However,I need to eradicate this exception from the log.
> >
> > java.io.FileNotFoundException: /var/lib/jide-grids.jar (No such file 
> > or
> > directory)
> > at java.util.zip.ZipFile.open(Native Method)
> > at java.util.zip.ZipFile.(ZipFile.java:219)
> > at java.util.zip.ZipFile.(ZipFile.java:149)
> > at java.util.jar.JarFile.(JarFile.java:166)
> > at java.util.jar.JarFile.(JarFile.java:130)
> > at org.apache.tomcat.util.scan.JarFileUrlJar.(
> > JarFileUrlJar.java:60)
> > at org.apache.tomcat.util.scan.JarFactory.newInstance(
> > JarFactory.java:49)
> > at org.apache.tomcat.util.scan.StandardJarScanner.process(
> > StandardJarScanner.java:334)
> > at org.apache.tomcat.util.scan.StandardJarScanner.scan(
> > StandardJarScanner.java:284)
> > at org.apache.jasper.servlet.TldScanner.scanJars(
> > TldScanner.java:262)
> > at org.apache.jasper.servlet.TldScanner.scan(TldScanner.
> java:106)
> > at org.apache.jasper.servlet.JasperInitializer.onStartup(
> > JasperInitializer.java:101)
> > at org.apache.catalina.core.StandardContext.startInternal(
> > StandardContext.java:5303)
> > at org.apache.catalina.util.LifecycleBase.start(
> > LifecycleBase.java:145)
> > at org.apache.catalina.core.ContainerBase.addChildInternal(
> > ContainerBase.java:753)
> > at org.apache.catalina.core.ContainerBase.addChild(
> > ContainerBase.java:729)
> > at org.apache.catalina.core.StandardHost.addChild(
> > StandardHost.java:717)
> >
> >
> > The above exception I am getting nearly for 10 jars in that some of 
> > the jars already have with version in name  (Eg: jide-grids-3.3.jar) 
> > I tried to disable the scan by following steps but none worked out.
> >
> > 1)tomcat.util.scan.StandardJarScanFilter.jarsToSkip = sonic_*.jarin
> > conf/exclusion.list
> >
> > 2) ContextConfig contextConfig = new ContextConfig() {
> > private boolean invoked = false;
> >
> > @Override
> > public void lifecycleEvent(LifecycleEvent event) {
> > if (!invoked) {
> > StandardJarScanner scanner = new
> StandardJarScanner();
> > scanner.setScanClassPath(false);
> > scanner.setScanManifest(false);
> > ((Context) event.getLifecycle()).
> > setJarScanner(scanner);
> > invoked = true;
> > }
> > super.lifecycleEvent(event);
> > }
> > };
> > Tomcat.getServer().addLifecycleListener(contextconfig);
> > Tomcat.addwebapp(contextpath,docpath)
> >
> > 3)Context context= Tomcat.addwebapp(contextpath,docpath);
> > StandardJarScanner scanner=new StandardJarScanner(); 
> > scanner.setScanClassPath( false ); scanner.setScanManifest( false ); 
> > context.setJarScanner(scanner);
> >
> >
> > Please help me here to resolve the problem.
> >
> > Regards,
> > Abirami.S
> >
>


RE: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x

2017-08-04 Thread S Abirami
Hi,

 I am trying to create EmbeddedTomcat  so no context.xml created.
Tomcat t=new Tomcat();
Everything through object creation.

Regards,
Abirami.S

-Original Message-
From: M. Manna [mailto:manme...@gmail.com] 
Sent: Friday, August 04, 2017 1:18 PM
To: Tomcat Users List
Subject: Re: Embedded Tomcat throws FileNotFoundException for TldScanner 
upgrade from 8.0.x to 8.0.x

Hi,

What is in your context.xml file? You can find it in conf directory.

Regards,

On 4 August 2017 at 08:43, S Abirami <s.abir...@ericsson.com> wrote:

> Hi ,
>
>   I am using Embedded tomcat to create webapp. when I am trying to 
> add web app it is throwing the following exception but Server started 
> successfully.
> However,I need to eradicate this exception from the log.
>
> java.io.FileNotFoundException: /var/lib/jide-grids.jar (No such file 
> or
> directory)
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.(ZipFile.java:219)
> at java.util.zip.ZipFile.(ZipFile.java:149)
> at java.util.jar.JarFile.(JarFile.java:166)
> at java.util.jar.JarFile.(JarFile.java:130)
> at org.apache.tomcat.util.scan.JarFileUrlJar.(
> JarFileUrlJar.java:60)
> at org.apache.tomcat.util.scan.JarFactory.newInstance(
> JarFactory.java:49)
> at org.apache.tomcat.util.scan.StandardJarScanner.process(
> StandardJarScanner.java:334)
> at org.apache.tomcat.util.scan.StandardJarScanner.scan(
> StandardJarScanner.java:284)
> at org.apache.jasper.servlet.TldScanner.scanJars(
> TldScanner.java:262)
> at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:106)
> at org.apache.jasper.servlet.JasperInitializer.onStartup(
> JasperInitializer.java:101)
> at org.apache.catalina.core.StandardContext.startInternal(
> StandardContext.java:5303)
> at org.apache.catalina.util.LifecycleBase.start(
> LifecycleBase.java:145)
> at org.apache.catalina.core.ContainerBase.addChildInternal(
> ContainerBase.java:753)
> at org.apache.catalina.core.ContainerBase.addChild(
> ContainerBase.java:729)
> at org.apache.catalina.core.StandardHost.addChild(
> StandardHost.java:717)
>
>
> The above exception I am getting nearly for 10 jars in that some of 
> the jars already have with version in name  (Eg: jide-grids-3.3.jar) I 
> tried to disable the scan by following steps but none worked out.
>
> 1)tomcat.util.scan.StandardJarScanFilter.jarsToSkip = sonic_*.jarin
> conf/exclusion.list
>
> 2) ContextConfig contextConfig = new ContextConfig() {
> private boolean invoked = false;
>
> @Override
> public void lifecycleEvent(LifecycleEvent event) {
> if (!invoked) {
> StandardJarScanner scanner = new StandardJarScanner();
> scanner.setScanClassPath(false);
> scanner.setScanManifest(false);
> ((Context) event.getLifecycle()).
> setJarScanner(scanner);
> invoked = true;
> }
> super.lifecycleEvent(event);
> }
> };
> Tomcat.getServer().addLifecycleListener(contextconfig);
> Tomcat.addwebapp(contextpath,docpath)
>
> 3)Context context= Tomcat.addwebapp(contextpath,docpath);
> StandardJarScanner scanner=new StandardJarScanner(); 
> scanner.setScanClassPath( false ); scanner.setScanManifest( false ); 
> context.setJarScanner(scanner);
>
>
> Please help me here to resolve the problem.
>
> Regards,
> Abirami.S
>


Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x

2017-08-04 Thread S Abirami
Hi ,

  I am using Embedded tomcat to create webapp. when I am trying to add web 
app it is throwing the following exception but Server started successfully.
However,I need to eradicate this exception from the log.

java.io.FileNotFoundException: /var/lib/jide-grids.jar (No such file or 
directory)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:219)
at java.util.zip.ZipFile.(ZipFile.java:149)
at java.util.jar.JarFile.(JarFile.java:166)
at java.util.jar.JarFile.(JarFile.java:130)
at 
org.apache.tomcat.util.scan.JarFileUrlJar.(JarFileUrlJar.java:60)
at 
org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:49)
at 
org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:334)
at 
org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:284)
at org.apache.jasper.servlet.TldScanner.scanJars(TldScanner.java:262)
at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:106)
at 
org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:101)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)


The above exception I am getting nearly for 10 jars in that some of the jars 
already have with version in name  (Eg: jide-grids-3.3.jar)
I tried to disable the scan by following steps but none worked out.

1)tomcat.util.scan.StandardJarScanFilter.jarsToSkip = sonic_*.jarin 
conf/exclusion.list

2) ContextConfig contextConfig = new ContextConfig() {
private boolean invoked = false;

@Override
public void lifecycleEvent(LifecycleEvent event) {
if (!invoked) {
StandardJarScanner scanner = new StandardJarScanner();
scanner.setScanClassPath(false);
scanner.setScanManifest(false);
((Context) event.getLifecycle()).setJarScanner(scanner);
invoked = true;
}
super.lifecycleEvent(event);
}
};
Tomcat.getServer().addLifecycleListener(contextconfig);
Tomcat.addwebapp(contextpath,docpath)

3)Context context= Tomcat.addwebapp(contextpath,docpath);
StandardJarScanner scanner=new StandardJarScanner();
scanner.setScanClassPath( false );
scanner.setScanManifest( false );
context.setJarScanner(scanner);


Please help me here to resolve the problem.

Regards,
Abirami.S