JSF应用程序出错

时间:2013-09-02 06:45:50

标签: java web

我是JSF的新人。我正在创建一个JSF项目,但我遇到了一些问题。

获得的错误如下:

  

SEVERE:配置类的应用程序侦听器时出错   org.springframework.web.context.ContextLoaderListener

如果有人有这个错误的解决方案,如果你能分享,将不胜感激。感谢。

错误如下: SEVERE:将上下文初始化事件发送到类org.springframework.web.context.ContextLoaderListener的侦听器实例的异常 org.springframework.beans.factory.parsing.BeanDefinitionParsingException:配置问题:无法从URL位置导入bean定义[classpath:hr_demo-security-context.xml] 违规资源:ServletContext资源[/WEB-INF/applicationContext.xml];嵌套异常是org.springframework.beans.factory.BeanDefinitionStoreException:IOException从类路径资源[hr_demo-security-context.xml]解析XML文档;嵌套异常是java.io.FileNotFoundException:无法打开类路径资源[hr_demo-security-context.xml],因为它不存在     在org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)     在org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)     在org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)     在org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:246)     在org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:197)     在org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:182)     在org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:139)     在org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:108)     在org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)     在org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)     在org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)     在org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)     在org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)     at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)     at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)     在org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)     在org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)     at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)     在org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)     在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)     在org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)     在org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)     在org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)     在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)     在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1559)     在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1549)     at java.util.concurrent.FutureTask $ Sync.innerRun(FutureTask.java:303)     在java.util.concurrent.FutureTask.run(FutureTask.java:138)     at java.util.concurrent.ThreadPoolExecutor $ Worker.runTask(ThreadPoolExecutor.java:886)     at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:908)     在java.lang.Thread.run(Thread.java:619) 引起:org.springframework.beans.factory.BeanDefinitionStoreException:IOException从类路径资源[hr_demo-security-context.xml]解析XML文档;嵌套异常是java.io.FileNotFoundException:无法打开类路径资源[hr_demo-security-context.xml],因为它不存在     在org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)     在org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)     在org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)     at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)     在org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:240)     ......还有29个 引起:java.io.FileNotFoundException:无法打开类路径资源[hr_demo-security-context.xml],因为它不存在     在org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:157)     在org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)

0 个答案:

没有答案