Tomcat网站返回空白页面

时间:2015-07-24 18:43:09

标签: spring-mvc tomcat7 web-deployment catalina.out

自从上周尝试部署tomcat7网站以来,我一直在努力。我正在使用JDK8。

我检查了我的catalina out文件,这是我看到的唯一错误。也许它与正在使用的JDK8有关?

Jul 24, 2015 4:17:03 PM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already.  Could not load java.util.concurrent.ScheduledFuture.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1612)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)

最后,当我转到我的网址时,它正在接收流量,但没有呈现任何内容。我们内置了Spring安全性,因此当您点击安全页面时,它实际上会重定向到登录页面。但是,当它进入没有安全性的页面或登录页面时,您会在Chrome中收到“400 Bad Request”消息,并且" 401 Unauthorized"接下来是" 404 Not Found"在Firefox中。任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:1)

这对我来说是一个愚蠢的错误。我使用Spring Profiles来扩展WebMvcConfigurerAdapter的Spring组件。由于我没有设置spring配置文件,因此忽略了这个类,因此从不为ViewResolver或我的Apache Tiles配置器创建bean。