On 23/09/17 16:10, Rainer Jung wrote: > Thanks Mark! > > You might also want to look at r1809434 as a candidate and check whether > that workaround looks OK for you.
Looks good to me. I've added to the list of J9 back-port candidates. It does beg the question whether or not we want to look at switching to multi-release JARs for all of the compatibility code. WDYT? > Wishing you a nice and successful TomcatCon! Thanks! Mark > > Regards, > > Rainer > > Am 23.09.2017 um 17:01 schrieb Mark Thomas: >> On 23/09/17 15:55, Rainer Jung wrote: >>> Hi all, >>> >>> when running TC 8.5.21 (9.0 should be the same) with Java 9 I get the >>> following warnings on STDOUT during shutdown: >> >> Tomcat 9 has the Java 9 fixes. 8.5.x doesn't. I've put together a list >> of the Java 9 commits that need to be back-ported. Now that Java 9 is >> final those back-ports need to happen. >> >> This is on my TODO list for after TomcatCon London on Tuesday. >> >> Mark >> >> >>> >>> WARNING: An illegal reflective access operation has occurred >>> WARNING: Illegal reflective access by >>> org.apache.catalina.loader.WebappClassLoaderBase >>> (file:/.../lib/catalina.jar) to field java.lang.Thread.threadLocals >>> WARNING: Please consider reporting this to the maintainers of >>> org.apache.catalina.loader.WebappClassLoaderBase >>> WARNING: Use --illegal-access=warn to enable warnings of further illegal >>> reflective access operations >>> WARNING: All illegal access operations will be denied in a future >>> release >>> >>> >>> If I add the mentioned flag, I get more such lines, all referring to >>> org.apache.catalina.loader.WebappClassLoaderBase and then: >>> >>> field java.lang.Thread.threadLocals >>> field java.lang.Thread.inheritableThreadLocals >>> field java.lang.ThreadLocal$ThreadLocalMap.table >>> method java.lang.ThreadLocal$ThreadLocalMap.expungeStaleEntries() >>> field java.lang.ThreadLocal$ThreadLocalMap$Entry.value >>> field sun.rmi.transport.Target.ccl >>> field sun.rmi.transport.Target.stub >>> field sun.rmi.transport.ObjectTable.objTable >>> field sun.rmi.transport.ObjectTable.implTable >>> >>> Details may vary depending on the cleanup flags set in the loader, but >>> this is 8.5 with default settings. >>> >>> Regards, >>> >>> Rainer > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org > For additional commands, e-mail: dev-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org