答复: [Tomcat] Error page not work for 400 error.

2018-08-05 Thread Leonard Afeng
Thanks Mark, 1. The web.xml is defind in the {$TOMCAT_HOME} /conf , not in application. 2. I add some walk around code in the ErrorPageSupport.java 3. public ErrorPage find(int statusCode) { 4. log.info("before find, the length of statusPages is:"+statusPages.size()); 5.

Re: o.a.tomcat.util.scan.StandardJarScanner : Failed to scan [file:/C:/Users//.m2/repository/org/glassfish/hk2/hk2/2.5.0-b42/javax.inject.jar] from classloader hierarchy

2018-08-05 Thread Mark Thomas
On 05/08/2018 08:51, Karen Goh wrote: Hi all, I have a Spring Boot web app which gives me an error which is related to Tomcat, specifically embedded Tomcat. There is nothing related in the internet related to this problem so I am hoping someone in this group would be able to provide me wit

Re: [Tomcat] Error page not work for 400 error.

2018-08-05 Thread Mark Thomas
On 05/08/2018 04:13, Leonard Afeng wrote: Dear all, I custom the error page in web.xml as below: And I added some log action in org.apache.catalina.util.ErrorPageSupport and found out that in some case the 400 error page not working but the default error page. 20:02:59.674 INFO [http

o.a.tomcat.util.scan.StandardJarScanner : Failed to scan [file:/C:/Users//.m2/repository/org/glassfish/hk2/hk2/2.5.0-b42/javax.inject.jar] from classloader hierarchy

2018-08-05 Thread Karen Goh
Hi all, I have a Spring Boot web app which gives me an error which is related to Tomcat, specifically embedded Tomcat. There is nothing related in the internet related to this problem so I am hoping someone in this group would be able to provide me with the solutions. This is the error stack :