0

自上周以来,我一直在努力部署一个 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)

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

4

1 回答 1

1

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

于 2015-07-24T20:47:07.273 回答