Re: Apache Tomcat 9 | Tomcat starting issue

2021-08-23 Thread Piyush Sharma
On Mon, Aug 23, 2021 at 8:29 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > Piyush, > > On 8/22/21 03:54, Piyush Sharma wrote: > > On Fri, Aug 20, 2021 at 10:40 PM Christopher Schultz < > > ch...@christopherschultz.net> wrote: > > > >> Piyush, > >> > >> On 8/20/21 06:36, Piyush Sh

Re: clearReferencesThreads issues warning about 2 threads, spawned by JDK in printing components

2021-08-23 Thread Christopher Schultz
Mark, On 8/23/21 04:05, Mark Thomas wrote: On 23/08/2021 08:10, Thomas Hoffmann (Speed4Trade GmbH) wrote: Is there anything, the application can prevent this? Yes. Call Thread.setContextClassLoader(ClassLoader) before calling the code that creates those threads, passing the common class l

Re: Apache Tomcat 9 | Tomcat starting issue

2021-08-23 Thread Christopher Schultz
Piyush, On 8/22/21 03:54, Piyush Sharma wrote: On Fri, Aug 20, 2021 at 10:40 PM Christopher Schultz < ch...@christopherschultz.net> wrote: Piyush, On 8/20/21 06:36, Piyush Sharma wrote: Hello, I am using Apache Tomcat 9.0.46 version on docker container. There is a problem, where the base

Re: Apache Tomcat 9 | Tomcat starting issue

2021-08-23 Thread Peter Chamberlain
On Sun, 22 Aug 2021 at 08:55, Piyush Sharma wrote: > > On Fri, Aug 20, 2021 at 10:40 PM Christopher Schultz < > ch...@christopherschultz.net> wrote: > > > Piyush, > > > > On 8/20/21 06:36, Piyush Sharma wrote: > > >> > > >> Hello, > > >> > > >> I am using Apache Tomcat 9.0.46 version on docker con

AW: clearReferencesThreads issues warning about 2 threads, spawned by JDK in printing components

2021-08-23 Thread Thomas Hoffmann (Speed4Trade GmbH)
> Is there anything, the application can prevent this? Yes. Call Thread.setContextClassLoader(ClassLoader) before calling the code that creates those threads, passing the common class loader. Afterwards, reset the TCCL back to the web application class loader. > Should Tomcat maybe skip the wa

Re: clearReferencesThreads issues warning about 2 threads, spawned by JDK in printing components

2021-08-23 Thread Mark Thomas
On 23/08/2021 08:10, Thomas Hoffmann (Speed4Trade GmbH) wrote: Is there anything, the application can prevent this? Yes. Call Thread.setContextClassLoader(ClassLoader) before calling the code that creates those threads, passing the common class loader. Afterwards, reset the TCCL back to th

clearReferencesThreads issues warning about 2 threads, spawned by JDK in printing components

2021-08-23 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello, we have an internal application which also supports printing. For this reason, we use the following code snippet: DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PRINTABLE; PrintRequestAttributeSet patts = new HashPrintRequestAttributeSet(); PrintServiceLookup.lookupPrintServices(flavor, pa