spring-项目在eclipse上运行报错,在myeclipse上没有问题

问题描述

项目在eclipse上运行报错,在myeclipse上没有问题

2015-04-28 11:16:55.704 |05KXN3W7T8U842C| [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eChannel': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420) ~[org.springframework.beans-3.1.0.M1.jar:3.1.0.M1]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) ~[org.springframework.beans-3.1.0.M1.jar:3.1.0.M1]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) ~[org.springframework.beans-3.1.0.M1.jar:3.1.0.M1]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295) ~[org.springframework.beans-3.1.0.M1.jar:3.1.0.M1]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[org.springframework.beans-3.1.0.M1.jar:3.1.0.M1]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) ~[org.springframework.beans-3.1.0.M1.jar:3.1.0.M1]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[org.springframework.beans-3.1.0.M1.jar:3.1.0.M1]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580) ~[org.springframework.beans-3.1.0.M1.jar:3.1.0.M1]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:900) ~[org.springframework.context-3.1.0.M1.jar:3.1.0.M1]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:455) ~[org.springframework.context-3.1.0.M1.jar:3.1.0.M1]
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:294) ~[org.springframework.web-3.1.0.M1.jar:3.1.0.M1]
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:215) ~[org.springframework.web-3.1.0.M1.jar:3.1.0.M1]
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) [org.springframework.web-3.1.0.M1.jar:3.1.0.M1]
at com.google.code.lightssh.project.web.listener.StartupListener.contextInitialized(StartupListener.java:36) [StartupListener.class:na]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830) [catalina.jar:na]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337) [catalina.jar:na]
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) [catalina.jar:na]
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) [catalina.jar:na]
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) [catalina.jar:na]
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) [catalina.jar:na]
at org.apache.catalina.core.StandardService.start(StandardService.java:516) [catalina.jar:na]
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) [catalina.jar:na]
at org.apache.catalina.startup.Catalina.start(Catalina.java:566) [catalina.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_07]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_07]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_07]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_07]
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) [bootstrap.jar:na]
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) [bootstrap.jar:na]
Caused by: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:343) ~[cxf-2.3.7.jar:2.3.7]
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:239) ~[cxf-2.3.7.jar:2.3.7]
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:489) ~[cxf-2.3.7.jar:2.3.7]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_07]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_07]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_07]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_07]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1546) ~[org.springframework.beans-3.1.0.M1.jar:3.1.0.M1]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1487) ~[org.springframework.beans-3.1.0.M1.jar:3.1.0.M1]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417) ~[org.springframework.beans-3.1.0.M1.jar:3.1.0.M1]
... 28 common frames omitted
Caused by: org.apache.cxf.service.factory.ServiceConstructionException: null
at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:341) ~[cxf-2.3.7.jar:2.3.7]
at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86) ~[cxf-2.3.7.jar:2.3.7]
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:442) ~[cxf-2.3.7.jar:2.3.7]
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:682) ~[cxf-2.3.7.jar:2.3.7]
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:505) ~[cxf-2.3.7.jar:2.3.7]
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:242) ~[cxf-2.3.7.jar:2.3.7]
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:202) ~[cxf-2.3.7.jar:2.3.7]
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101) ~[cxf-2.3.7.jar:2.3.7]
at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:148) ~[cxf-2.3.7.jar:2.3.7]
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:183) ~[cxf-2.3.7.jar:2.3.7]
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:415) ~[cxf-2.3.7.jar:2.3.7]
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:315) ~[cxf-2.3.7.jar:2.3.7]
... 37 common frames omitted
Caused by: javax.xml.bind.JAXBException: null
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:195) ~[na:na]
at javax.xml.bind.ContextFinder.find(ContextFinder.java:381) ~[na:na]
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574) ~[na:na]
at org.apache.cxf.jaxb.JAXBDataBinding.createContext(JAXBDataBinding.java:557) ~[cxf-2.3.7.jar:2.3.7]
at org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBinding.java:497) ~[cxf-2.3.7.jar:2.3.7]
at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:324) ~[cxf-2.3.7.jar:2.3.7]
... 48 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358) ~[catalina.jar:na]
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204) ~[catalina.jar:na]
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:191) ~[na:na]
... 53 common frames omitted

解决方案

ERROR org.springframework.web.context.ContextLoader - Context initialization failed ,这个错报的貌似好像是JAR的问题的错,应该是JAR包冲突的问题

时间: 2024-12-31 19:30:50

spring-项目在eclipse上运行报错,在myeclipse上没有问题的相关文章

eclipse tomcat运行报错

问题描述 eclipse tomcat运行报错 eclipse的tomcat是不是只需启动一次啊!我启动它却报端口占用 解决方案 那就是有其他的端口被占用了,双击server,改一下端口号就行了 解决方案二: 因为你原来的程序占着端口.(如果第一次启动没有成功,说明端口被占)当你再次想运行时,记得关闭程序,再运行程序,这样就不会报错了 解决方案三: 改端口,或者直接重启eclipse 解决方案四: 确定没有其他的占用这个端口??那可以在进程中将javaw.exe干掉 解决方案五: 估计是启动了2

java web-javaweb程序放在resin上运行报错,具体错误如下

问题描述 javaweb程序放在resin上运行报错,具体错误如下 javax.servlet.ServletException: Unable to load configuration. - bean - jar:file:/e:/qingniusoftware/Payment/WebRoot/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72 at com.caucho.server.dispatch.FilterM

jar-Jar在spark-shell上运行报错:主类找不到

问题描述 Jar在spark-shell上运行报错:主类找不到 scala IntelliJ的项目,sbt打好包在spark-shell上运行后报错:主类找不到:使用了两个中文分词包(ansj_seg-2.0.8.jar,nlp-lang-0.3.jar),但是已经加入到 External libraries里去了:打包没问题,运行报错 ![ spark-shell 提交命令: [gaohui@hadoop-1-2 test]$ spark-submit --master yarn --driv

tomcat运行报错 重装myeclipse后出项这个问题

问题描述 tomcat运行报错 重装myeclipse后出项这个问题 2015-4-22 16:20:56 org.apache.catalina.core.StandardContext startInternal 严重: Error listenerStart 2015-4-22 16:20:56 org.apache.catalina.core.StandardContext startInternal 严重: Context [/djwconsole] startup failed du

oa部署上服务器报错-OA部署上服务器报错,求大神指点!

问题描述 OA部署上服务器报错,求大神指点! 日志名称: Application来源: Application Error日期: 2015/10/23 8:11:36事件 ID: 1000任务类别: (100)级别: 错误关键字: 经典用户: 暂缺计算机: OAWEB描述:错误应用程序名称: apache.exe,版本: 2.2.22.0,时间戳: 0x4f242d7a错误模块名称: ntdll.dll,版本: 6.1.7601.17514,时间戳: 0x4ce7ba58异常代码: 0xc000

关于webService部署在weblogic上运行报错问题?高分求教!

问题描述 最近将一个Tomcat的项目移植到weblogic上运行,发现以前使用的基于JAX-WS框架创建的webService无法运行,我查了很多资料说是内库加载问题,于是我就在项目的WEB-INFO下加入了个weblogic.xml文件.配置如下:<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEweblogic-web-appPUBLIC"-//BEASystems,Inc.//DTDWebA

nutch 2.2.1 运行报错InjectorJob: java.lang.RuntimeException: job failed: name=inject

问题描述 在windows下的eclipse中运行报错,如下,求各位大神帮帮忙,本人小白一个,急急急急InjectorJob:startingat2014-06-2615:45:36InjectorJob:InjectingurlDir:urlsInjectorJob:Usingclassorg.apache.gora.memory.store.MemStoreastheGorastorageclass.****file:/D:/workspace/nutchTest/urlsInjectorJ

web项目在eclipse中运行正常 部署到tomcat中运行报spring context错误

问题描述 web项目在eclipse中运行正常 部署到tomcat中运行报spring context错误 20C 解决方案 quatrz配置有问题参考:http://blog.csdn.net/kingzuo/article/details/12572881http://www.cnblogs.com/kay/archive/2007/11/02/947372.html

链接地址或参数错误!(C# aspx web项目本地测试正常,上传到服务器运行报错)

问题描述 链接地址或参数错误!(C#aspxweb项目本地测试正常,上传到服务器运行报错)这个问题困扰了我好久,求大神们指导~~ 解决方案 解决方案二:太空洞了.解决方案三:可能是浏览器兼容问题,可能是32位服务器问题,可能是webconfig配置问题...也可能是正式服的数据库与测试服的数据库不同步的问题...反正出这个问题的原因很多....请拿出错误的页面提示,自己f12调试也是可以看看的