Eclipse与Tomcat 8和maven仅在1分钟后崩溃

时间:2015-12-30 21:04:43

标签: eclipse tomcat

我可以使用Eclipse neon在Tomcat 8上编译和运行我的项目。 该项目使用maven和Spring MVC构建。但是只有在不到一分钟后我才能再次编译并运行项目。我收到以下错误:

 Dec 30, 2015 9:38:10 PM org.apache.catalina.core.StandardContext reload
 INFO: Reloading Context with name [/test] has started
 Dec 30, 2015 9:38:10 PM org.apache.catalina.core.ApplicationContext log
 INFO: Destroying Spring FrameworkServlet 'dispatcher'
 Dec 30, 2015 9:38:10 PM  org.springframework.context.support.AbstractApplicationContext doClose
 INFO: Closing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Wed Dec 30 21:37:27 CET 2015]; parent: Root WebApplicationContext
 Dec 30, 2015 9:38:10 PM org.apache.catalina.core.ApplicationContext log
 INFO: Closing Spring root WebApplicationContext
 Dec 30, 2015 9:38:10 PM org.springframework.context.support.AbstractApplicationContext doClose
INFO: Closing Root WebApplicationContext: startup date [Wed Dec 30 21:37:23     CET 2015]; root of context hierarchy
 Dec 30, 2015 9:38:10 PM   org.springframework.orm.jpa.AbstractEntityManagerFactoryBean destroy
 INFO: Closing JPA EntityManagerFactory for persistence unit 'guarding'
Dec 30, 2015 9:38:12 PM org.apache.catalina.core.ApplicationContext log
 INFO: No Spring WebApplicationInitializer types detected on classpath
 Dec 30, 2015 9:38:12 PM org.apache.catalina.core.StandardContext reload
 INFO: Reloading Context with name [/test] is completed

任何人都可以理解为什么以及取决于什么? 祝每一个人新年快乐!

1 个答案:

答案 0 :(得分:0)

解决

感谢JB Nizet。

1)在Eclipse中双击服务器 2)在发布时选择了第一个替代方案(从不自动公开) 3)保存更改。

全部谢谢!