Yes. --illegal-access=warn It doesn't stop the JVM. I misunderstood.
But --illegal-access=deny shows the Spring violation first. While 'warn' showed Tomcat's first. So I assumed that 'deny' will first show Tomcat's messages again. Why does 'deny' not show Tomcat's messages first like 'warn' does ? How does 'deny' go ahead and try to load Spring when Tomcat's classloaders have a problem ? Thanks, Mohan On Sat, 8 Dec 2018 at 22:53, Christopher Schultz < ch...@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Mohan, > > On 12/8/18 08:39, Mohan Radhakrishnan wrote: > > Hi, When I use --illegal-access-warn I see these. > > > > WARNING: Illegal reflective access by > > org.apache.catalina.loader.WebappClassLoaderBase > > (file:/C:/Users/476458/.m2/repository/org/apache/tomcat/embed/tomcat-e > mbed-core/8.5.34/tomcat-embed-core-8.5.34.jar) > > > > > to field java.io.ObjectStreamClass$Caches.localDescs > > > > but when I use --illegal-access-deny I see messages originating > > from Spring. java.lang.reflect.InvocationTargetException at > > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native > > > > > Method) > > at > > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeM > ethodAccessorImpl.java:62) > > > > > at > > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Del > egatingMethodAccessorImpl.java:43) > > > > > at java.base/java.lang.reflect.Method.invoke(Method.java:566) > > at > > org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run(Abstra > ctRunMojo.java:558) > > > > > at java.base/java.lang.Thread.run(Thread.java:834) > > Caused by: java.lang.IllegalStateException: Cannot load > > configuration class: > > org.springframework.boot.autoconfigure.context.PropertyPlaceholderAuto > Configuration > > > > I thought Tomcats's messages would stop the JVM. Why does this > > happen ? > > This will just throw an exception. It doesn't kill the JVM. > > Also, I think it's --illegal-access=warn, not --illegal-access-warn... > right? > > - -chris > -----BEGIN PGP SIGNATURE----- > Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ > > iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlwL/iQACgkQHPApP6U8 > pFg2Mg//YG83Y9J44TF1pTRsMKijIpy1iYGWZfXPWPlIDKgnNzMYVVCeqs8pctGG > Tg7v7tiartWEWdcos1GC3PJnckLWzL/Yh4k3cCUgkmedLj15aPNQ6PUeIkjPBNct > OhTNRTLP0HMtPo0VCl6CtVpo0eYKxL0KlpLKUfZLuVcs/X+D5ABbA9HbcHsyOvjR > RcIEfYq+r1u5sWr1LKsf0uG/DeMHT5suqU4yHrh7RG16BIbIdHl2/s+9aglEY8pw > Y9eAYZ+G8olsGvMpoBbxYkO1WUiXPLDgSGBriH5LtgSidr1GzQlIdXgX1G/XrlM5 > Smk/YWgdy7PQ5GHJ9Curg26b2AY3E3QX75EgvNgIR0vACT15S+2M+ML9iTWc1JEk > cTOVU29sPAZqhvhCE7jcxbNczfHb9IIJa4cNyO7WqygTCEYWgJtd3YK+wQMtXU27 > 3p5JplLNL5N6ixuMf5k+K2l/eOTitnirtErRnEhUcwgWKPkHE4HTnlfS0cJmfIJ5 > Jt5uxMVnybif2s3Sio5NFNkot9jEYvgvQclwybop3g4bBt4V4xhCcpaSogi/voii > QlwMbgc8F9toXbsmg+e4Y0mhIBGzPZXfNDQK7zsnUkNzHlLY5I+3Hz+ghMpH+puc > ggQgETDZEzmsu2+4mvUxPUESFJTp2fpgNG1vrYgp/WBfzTLLMYk= > =xg7p > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >