我正在学习如何使用Eclipse(Kepler)和Tomcat / 7.0.40创建Web应用程序。我以前的项目使用Spring并且没有错误地工作。现在,当我创建一个全新的动态Web项目(WebProjectNoSpring)时,它说
> INFO: Starting Servlet Engine: Apache Tomcat/7.0.40
> окт 23, 2013 2:58:49 PM org.apache.catalina.core.ApplicationContext log
> INFO: No Spring WebApplicationInitializer types detected on classpath
> окт 23, 2013 2:58:49 PM org.apache.catalina.core.ApplicationContext
> log INFO: Initializing Spring root WebApplicationContext
> окт 23, 2013 2:58:49 PM org.springframework.web.context.ContextLoader initWebApplicationContext
> INFO: Root WebApplicationContext: initialization started
> окт 23, 2013 2:58:49 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
> INFO: Refreshing Root WebApplicationContext: startup date [Wed Oct 23 14:58:49 GMT+07:00 2013]; root of context hierarchy
> окт 23, 2013 2:58:49 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> **INFO: Loading XML bean definitions from URL [file:/D:/Programming/running/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SpringProject1/WEB-INF/classes/applicationContext.xml]**
> окт 23, 2013 2:58:49 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
> INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@18be9f2: defining beans [myBean]; root of factory hierarchy
> окт 23, 2013 2:58:49 PM org.springframework.web.context.ContextLoader initWebApplicationContext
> INFO: Root WebApplicationContext: initialization completed in 613 ms
因此,它尝试从另一个项目加载XML bean定义(文件applicationContext.xml),最后给出错误:“请求的资源不可用”。我还没有使用Spring,在这个项目中我不需要它。删除Tomcat v7.0并创建新的本地服务器没有帮助。
我做错了什么?任何建议都会很棒。