cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 方名 (JIRA) <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-7283) jaxrs:server
Date Wed, 15 Mar 2017 02:09:41 GMT

    [ https://issues.apache.org/jira/browse/CXF-7283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15925415#comment-15925415
] 

方名 edited comment on CXF-7283 at 3/15/17 2:09 AM:
--------------------------------------------------

Sorry,this is the first time I have reported this issue.I don't know if I shoud report at
the users list,I'll change it later,thanks.



was (Author: fangms):
Sorry,this is the first time I have reported this issue.


> jaxrs:server
> ------------
>
>                 Key: CXF-7283
>                 URL: https://issues.apache.org/jira/browse/CXF-7283
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.1.10
>         Environment: <cxf.version>3.1.10</cxf.version>
> <spring.version>4.1.9.RELEASE</spring.version>
>            Reporter: 方名
>             Fix For: 3.1.10
>
>
> f I set the CXF version is 2.7.0 and spring.version is 3.1.1.RELEASE,it is run OK. I
want to upgrade the CXF and the Spring to the newer version. The following is the terminal
output error message:
> [org.springframework.web.context.support.XmlWebApplicationContext]Exception encountered
during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'server': Error setting property values; nested exception is
org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (2)
are:
> PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property
'serviceBeans' threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.cxf.jaxrs.JAXRSServerFactoryBean.addToBeans(Ljava/util/Collection;Ljava/lang/Object;)V
> PropertyAccessException 2: org.springframework.beans.MethodInvocationException: Property
'providers' threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.addToBeans(Ljava/util/Collection;Ljava/lang/Object;)V
> [org.springframework.web.context.ContextLoader]Context initialization failed
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'server': Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException;
nested PropertyAccessExceptions (2) are:
> PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property
'serviceBeans' threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.cxf.jaxrs.JAXRSServerFactoryBean.addToBeans(Ljava/util/Collection;Ljava/lang/Object;)V
> PropertyAccessException 2: org.springframework.beans.MethodInvocationException: Property
'providers' threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.addToBeans(Ljava/util/Collection;Ljava/lang/Object;)V
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1512)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1220)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
> 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
> 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
> 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
> 	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:434)
> 	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:4797)
> 	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> 	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> 	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> 	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:745)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message