首页 新闻 搜索 专区 学院

CXF webservice 与SSH整合报错

0
悬赏园豆:20 [待解决问题]
  1. 信息: Loading XML bean definitions from file [E:\install\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\GenSSH\WEB-INF\classes\applicationContext-server.xml]
  2. 八月 05, 2014 9:35:39 上午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
  3. 信息: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
  4. 八月 05, 2014 9:35:39 上午 org.springframework.web.context.ContextLoader initWebApplicationContext
  5. 严重: Context initialization failed
  6. org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:META-INF/cxf/cxf.xml]
  7. Offending resource: file [E:\install\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\GenSSH\WEB-INF\classes\applicationContext-server.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [META-INF/cxf/cxf.xml]; nested exception is java.io.FileNotFoundException: class path resource [META-INF/cxf/cxf.xml] cannot be opened because it does not exist
  8.     at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
  9.     at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
  10.     at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
  11.     at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:248)
  12.     at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:199)
  13.     at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:184)
  14.     at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:141)
  15.     at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:110)
  16.     at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
  17.     at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
  18.     at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)
  19.     at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
  20.     at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
  21.     at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216)
  22.     at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:187)
  23.     at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
  24.     at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
  25.     at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
  26.     at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:540)
  27.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454)
  28.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
  29.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
  30.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
  31.     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
  32.     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
  33.     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  34.     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
  35.     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
  36.     at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
  37.     at java.util.concurrent.FutureTask.run(Unknown Source)
  38.     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  39.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  40.     at java.lang.Thread.run(Unknown Source)
问题补充:

讨论说是CXF导入jar包问题,我是spring4的jar和  cxf2.6.1.jar

biu bo的主页 biu bo | 初学一级 | 园豆:147
提问于:2014-08-05 09:52
< >
分享
所有回答(3)
0

不是提示找不到文件吗

乐享程序员 | 园豆:930 (小虾三级) | 2014-08-05 22:05
0

jar包对应的版本不对?  

ζ  简单ヾ° | 园豆:93 (初学一级) | 2014-08-28 11:54
0

是不是加载胚子文件有问题

little_sun | 园豆:208 (菜鸟二级) | 2016-10-13 22:30
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册