spring+cxf发布WebService启动tomcat出现问题

问题描述

spring+cxf发布WebService启动tomcat出现问题

启动tomcat是出现异常
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'auction': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaCollection.read(Lorg/w3c/dom/Document;Ljava/lang/String;)Lorg/apache/ws/commons/schema/XmlSchema;
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1568)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:540)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5490)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaCollection.read(Lorg/w3c/dom/Document;Ljava/lang/String;)Lorg/apache/ws/commons/schema/XmlSchema;
at org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection.java:130)
at org.apache.cxf.databinding.AbstractDataBinding.addSchemaDocument(AbstractDataBinding.java:177)
at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:344)
at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:438)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:680)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:501)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:241)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:202)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:157)
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:192)
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:433)
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:322)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:239)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:509)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1696)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1635)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1564)
... 25 more

时间: 2024-12-29 21:31:04

spring+cxf发布WebService启动tomcat出现问题的相关文章

我使用cxf和spring整合发布WebService,tomcat上没有报错但是就不访问wsdl

问题描述 我使用cxf和spring整合发布WebService,tomcat上没有报错但是就不访问wsdl No cxf.xml configuration file detected, relying on defaults.在运行tomcat时报这个

CXF发布webservice服务,浏览器里报错404--not found

问题描述 CXF发布webservice服务,浏览器里报错404--not found 解决方案 python报错code for hash md5 was not found解决方案启动HIVE 服务报错 HWI WAR file not found树莓派安装mysql-srver报错 404 not found!

spring cxf 创建webservice 报无方法

问题描述 spring cxf 创建webservice 报无方法 spring cxf 创建webservice 报无方法,但是在测试工具下没有问题,求解

cxf 发布webservice , Endpoint address中有的显示ip,有的却显示localhost

问题描述 cxf发布webservice,Endpointaddress:http://xx:xx:xx:xx:8080/XXXX/XXXWS,有的显示实例ip地址有的却显示localhost,请问是什么原因? 解决方案 解决方案二:应该是你addresss设置的问题吧.解决方案三:引用1楼fangmingshijie的回复: 应该是你addresss设置的问题吧. 在哪儿进行设置呢,为什么有的显示正常有的显示不正常呢!我重启一下服务器,有时会都正常,有时又会出现其他的服务address异常,而

spring和hibernate整合启动tomcat遇到的问题

问题描述 今天做了个springmvc和hibernate整合的小例子,启动tomcat会发警告,但是功能可以正常使用,报错信息如下,希望各位大神帮忙解决下:警告:Couldnotobtainconnectionmetadatajava.sql.SQLException:不支持的特性atoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)atoracle.jdbc.dbaccess.DBError.throwSqlExc

基于Spring和CXF的webservice开发环境搭建

使用CXF发布webservice服务时,规范的做法是先书写一个接口,用以声明服务类型. 基于Spring和CXF开发web service的框架搭建 一.创建web项目 Eclipse中新建一个dynamic webproject,命名为:CXFTest 二.导入需要的jar包 把下载的CXF项目的解压缩文件中lib文件夹下的所有jar包拷贝到WebContent->WEB-INF->lib文件夹下 三.创建服务接口 在Java resource->src目录下新建package包:c

spring-Spring整合xfire webservice 启动不报错 访问报错

问题描述 Spring整合xfire webservice 启动不报错 访问报错 七月 13, 2015 1:56:59 下午 org.apache.catalina.core.StandardWrapperValve invoke 严重: Allocate exception for servlet XFireServlet org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configurati

ssh整合-myeclipse整合框架启动tomcat时太慢了

问题描述 myeclipse整合框架启动tomcat时太慢了 信息: Initializing Spring root WebApplicationContext.启动tomcat,执行到这一步的时候,真的是太慢了,受不鸟了,有谁可以解决下?网上什么删掉一些没用的包之类的试过了,没什么用:另外单独启动tomcat的话,不习惯:菜鸟一枚,求指教. 解决方案 1.改成生产模式启动 2.换个高配的本子

cxf 3.1.5 spring 发布webservice ,不打印客户端的请求日志

问题描述 cxf 3.1.5 spring 发布webservice ,不打印客户端的请求日志 cxf 3.1.5 spring 发布webservice ,不打印客户端的请求日志, jaxws:endpoint 发布方式,怎么配置?非常感谢