cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Messina Andrea <a.mess...@reply.it>
Subject Re: {Disarmed} Re: Apache CXF_2_6_9 errors
Date Tue, 03 Sep 2013 16:33:02 GMT
OK Dan. You were very clear.

Thanks again,
Andrea

Daniel Kulp <dkulp@apache.org> wrote:



On Sep 3, 2013, at 12:15 PM, Messina Andrea <a.messina@reply.it<mailto:a.messina@reply.it>>
wrote:

Hi Daniel.

Spring is version 2.5.0.
Why should a minor version update (from 2_6_7 to 2_6_9) require a Spring major version upgrade?

Technically, CXF stopped supporting and testing with Spring 2.5.x a very long time ago.  
We've kind of taken the approach of "if it still works, fine, but not something we officially
support".    If 2.6.7 worked with 2.5.0, you were lucky.

That said, a log on the file in your stack traces doesn't show any changes for a very long
time, so I'm not sure how it was even working with 2.6.7.   Something else must be different
to have it heading into that code path with 2.6.9 compared to 2.6.7.   Not sure what that
is yet.

Dan




Andrea




Andrea Messina

Blue Reply
Via Cardinal Massaia, 83
10147 - Torino - ITALY
phone: +39 011 29100
a.messina@reply.it
www.reply.it

<blue.png>


From: Daniel Kulp [mailto:dkulp@apache.org<http://apache.org>]
Sent: martedì 3 settembre 2013 18:10
To: dev@cxf.apache.org<mailto:dev@cxf.apache.org>; Messina Andrea
Subject: {Disarmed} Re: Apache CXF_2_6_9 errors


What version of Spring jars are you picking up?  You don't list that in your dependencies.
   This looks like you have an older version of Spring.     I think CXF would need a 3.0 version
or better.

Dan




On Sep 3, 2013, at 12:03 PM, Messina Andrea <a.messina@reply.it<mailto:a.messina@reply.it>>
wrote:


Hi.

I’m obtaining a startup error with the 2_6_9 update of Apache CXF (my application works
well with 2_6_7 version of the framework)
Im my case, it’s integrated within a spring-managed Java application.

I get the following error from the runtime:

ERROR 03-09-13 17:40:48,484    StandardContext,3799 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 'contactUsService':
Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.springframework.context.ApplicationContext.getBean(Ljava/lang/Class;)Ljava/lang/Object;
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1362)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:540)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)
       at java.security.AccessController.doPrivileged(Native Method)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
       at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
       at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)
       at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
       at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)
       at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:413)
       at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:735)
       at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)
       at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:251)
       at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)
       at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3795)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
       at org.apache.catalina.core.StandardService.start(StandardService.java:448)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:592)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.NoSuchMethodError: org.springframework.context.ApplicationContext.getBean(Ljava/lang/Class;)Ljava/lang/Object;
       at org.apache.cxf.bus.spring.BusApplicationContextResourceResolver.resolve(BusApplicationContextResourceResolver.java:72)
       at org.apache.cxf.resource.DefaultResourceManager.findResource(DefaultResourceManager.java:113)
       at org.apache.cxf.resource.DefaultResourceManager.resolveResource(DefaultResourceManager.java:62)
       at org.apache.cxf.common.injection.ResourceInjector.resolveResource(ResourceInjector.java:442)
       at org.apache.cxf.common.injection.ResourceInjector.visitMethod(ResourceInjector.java:229)
       at org.apache.cxf.common.annotation.AnnotationProcessor.processMethods(AnnotationProcessor.java:89)
       at org.apache.cxf.common.annotation.AnnotationProcessor.accept(AnnotationProcessor.java:72)
       at org.apache.cxf.common.injection.ResourceInjector.inject(ResourceInjector.java:118)
       at org.apache.cxf.common.injection.ResourceInjector.inject(ResourceInjector.java:112)
       at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:226)
       at org.apache.cxf.bus.extension.ExtensionManagerImpl.getBeansOfType(ExtensionManagerImpl.java:306)
       at org.apache.cxf.bus.spring.SpringBeanLocator.getBeansOfType(SpringBeanLocator.java:163)
       at org.apache.cxf.bus.CXFBusImpl.getExtension(CXFBusImpl.java:108)
       at org.apache.cxf.binding.soap.SoapBindingFactory.createSoapBinding(SoapBindingFactory.java:209)
       at org.apache.cxf.binding.soap.SoapBindingFactory.createBindingInfo(SoapBindingFactory.java:197)
       at org.apache.cxf.binding.AbstractBaseBindingFactory.createBindingInfo(AbstractBaseBindingFactory.java:85)
       at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:340)
       at org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServerFactoryBean.java:182)
       at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointInfo(AbstractWSDLBasedEndpointFactory.java:258)
       at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:143)
       at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
       at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
       at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:453)
       at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:333)
       at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:250)
       at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:536)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:592)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1427)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1396)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1359)
       ... 29 more


This is a screenshot of the two libraries lists for comparing:



Thanks in advance,
Andrea





Andrea Messina

Blue Reply
Via Cardinal Massaia, 83
10147 - Torino - ITALY
phone: +39 011 29100
a.messina@reply.it
www.reply.it







Andrea Messina

Blue Reply
Via Cardinal Massaia, 83
10147 - Torino - ITALY
phone: +39 011 29100
a.messina@reply.it
www.reply.it

[Blue Reply]


________________________________

--
The information transmitted is intended for the person or entity to which it is addressed
and may contain confidential and/or privileged material. Any review, retransmission, dissemination
or other use of, or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received this in error, please
contact the sender and delete the material from any computer.

--
Daniel Kulp
dkulp@apache.org<mailto:dkulp@apache.org> - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com<http://coders.talend.com/>


________________________________

--
The information transmitted is intended for the person or entity to which it is addressed
and may contain confidential and/or privileged material. Any review, retransmission, dissemination
or other use of, or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received this in error, please
contact the sender and delete the material from any computer.

--
Daniel Kulp
dkulp@apache.org<mailto:dkulp@apache.org> - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com<http://coders.talend.com/>


________________________________

--
The information transmitted is intended for the person or entity to which it is addressed
and may contain confidential and/or privileged material. Any review, retransmission, dissemination
or other use of, or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received this in error, please
contact the sender and delete the material from any computer.

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message