On 03/01/2019 20:00, John Larsen wrote:
> How can I surpress it if its not an error?

With difficulty. Tomcat always sets that system property and there is no
way (short of editing the scripts which is generally a bad idea) to stop
it. The JVM always generates that log message to stderr (as far as I am
aware).

> Problem I have is the output
> causes the script thinks its an error.

The immediate solution is probably to update the script.

A fix on the Tomcat side is going to be trickier. We might be able to
skip setting those properties on shutdown (or more likely clear it if
stop is called). That would need some testing.

Mark

> 
> Thanks,
> 
> John
> 
> On Thu, Jan 3, 2019 at 12:51 PM Mark Thomas <ma...@apache.org> wrote:
> 
>> On 31/12/2018 15:12, John Larsen wrote:
>>> Hello,
>>>
>>> Ever since we started using jdk10 and up we get this error message
>> whenever
>>> we do ./shutdown.sh.
>>>
>>> NOTE: Picked up JDK_JAVA_OPTIONS:
>>> --add-opens=java.base/java.lang=ALL-UNNAMED
>>> --add-opens=java.base/java.io=ALL-UNNAMED
>>> --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
>>
>> That is not an error message.
>>
>>> We need to fix the issue or surpress the output. Any suggestions?
>>
>> What issue?
>>
>> That output is generated by the JVM. The options the message refers to
>> are set automatically by Tomcat when running on Java 9 or later to
>> prevent various features failing (mostly around memory leak detection
>> and prevention) due to the additional restrictions added in Java 9.
>>
>> Mark
>>
>>
>>>
>>> There is nothing in catalina.out about this either:
>>>
>>> 31-Dec-2018 15:09:52.058 INFO [main]
>>> org.apache.catalina.core.StandardServer.await A valid shutdown command
>> was
>>> received via the shutdown port. Stopping the Server instance.
>>> 31-Dec-2018 15:09:52.059 INFO [main]
>>> org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
>>> ["http-nio-8080"]
>>> 31-Dec-2018 15:09:52.066 INFO [main]
>>> org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
>>> ["ajp-nio-8009"]
>>> 31-Dec-2018 15:09:52.071 INFO [main]
>>> org.apache.catalina.core.StandardService.stopInternal Stopping service
>>> [Catalina]
>>> 31-Dec-2018 15:09:52.081 INFO [main]
>>> org.apache.catalina.core.ApplicationContext.log SessionListener:
>>> contextDestroyed()
>>> 31-Dec-2018 15:09:52.081 INFO [main]
>>> org.apache.catalina.core.ApplicationContext.log ContextListener:
>>> contextDestroyed()
>>> 31-Dec-2018 15:09:52.090 INFO [main]
>>> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
>>> ["http-nio-8080"]
>>> 31-Dec-2018 15:09:52.092 INFO [main]
>>> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
>>> ["ajp-nio-8009"]
>>> 31-Dec-2018 15:09:52.094 INFO [main]
>>> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
>>> ["http-nio-8080"]
>>> 31-Dec-2018 15:09:52.094 INFO [main]
>>> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
>>> ["ajp-nio-8009"]
>>>
>>> Thanks,
>>>
>>> John
>>>
>>
>>
>> ---------------------------------------------------------------------
>> 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

Reply via email to