【发布时间】:2015-08-21 19:12:24
【问题描述】:
开始: - 我是 J2e 的初学者,这个组合对于一个强大的应用程序来说几乎是完美的,但对于一个 J2e 入门者来说也是完美的。 - 我搜索了很多答案,但没有一个更正。
就这么简单: - 我在 Netbeans 8 和 Eclipse Mars 之间重复创建应用程序 8 次,我有所有依赖项。问题在于 Servlet-Context。 Tomcat 抛出 FileNotFound 错误,一旦我删除它:
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<listener>
<listener-class>
org.springframework.web.context.request.RequestContextListener
</listener-class>
</listener>
它可以工作,但不显示来自数据库的数据,(我的整个应用程序现在是关于在数据库上显示 id = 1 的用户 id。)
Tomcat 中的错误:
org.apache.catalina.core.StandardContext.listenerStart Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
有人可以帮忙吗?
【问题讨论】:
标签: java spring hibernate maven netbeans-8