Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Warning messages always generated for initParam(s)

Any further thoughts on this? I could patch the source I guess to print out what the values actually have?

Thanks

 

On 13.11.2015 20:46, Jonathan Cook wrote:

Hi,

Thanks for the reply. We aren't overriding this file in anyway so it should be what is inside the jar right which is used? f that is the case, fork has a value of false so why would we see invalid value being reported. Likewise keepgenerated isn't configured in that file so I would expect it to be null?

Thanks for any more pointers.

Jon

On 13/11/2015 20:19, Joakim Erdfelt wrote:
Those values arrive via the jsp servlet configuration.
That's just a webdefault.xml file found configured in the WebAppContext.setDefaultsDescriptor()
Example of the webdefault.xml .. 

Joakim Erdfelt / joakim@xxxxxxxxxxx

On Fri, Nov 13, 2015 at 9:47 AM, Jonathan Cook <jonathan.cook@xxxxxxxxxxxxxx> wrote:
Hi,

I'm using an embedded instance of Jetty Server with version 9.2.12 and recently upgraded from an old version 6. Everything seems to be behaving as expected but I see some warnings when starting the server:

WARNING: Warning: Invalid value for the initParam keepgenerated. Will use the default value of "false"
WARNING: Warning: Invalid value for the initParam fork. Will use the default value of "true"

These can eventually be traced down to the class EmbeddedServletOptions.java and the getBoolean method. But what is most puzzling is that this method implies that the values have some value other than null, true or false. If I set the init parameter values explicitly it makes no difference and if I print out the contents of the params before the server starts it either gives me the values I have specified (when set) or null (when not set) which somehow must be lost or ignored later in the chain.

How can I make these warnings go away and ensure the parameters are either set or not set.

Thank you for any help.
Jonathan


_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users


_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

 

 

Back to the top