You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2008/03/21 02:59:24 UTC

[jira] Commented: (CXF-1483) Startup Exception: java.lang.NoSuchMethodError: org.apache.cxf.service.model.ServiceInfo.getSchemas()Ljava/util/Collection;

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

Benson Margulies commented on CXF-1483:
---------------------------------------

This just about has to be the result of your somehow combining two incompatible CXF JAR files. The missing method is just an ordinary method.

It was just very recently modified to return a List<> instead of a Collection<>, so I think that you've got an old JAR file with a caller in it.

If you can find a reference to the Collection<> returning version in the current snapshot, then something went wrong with its construction in a big way.


> Startup Exception: java.lang.NoSuchMethodError: org.apache.cxf.service.model.ServiceInfo.getSchemas()Ljava/util/Collection;
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1483
>                 URL: https://issues.apache.org/jira/browse/CXF-1483
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1
>         Environment: Glassfish App Server
>            Reporter: Javier Delgadillo
>
> I tried using the Mar 19 Snapshot build of CXF to see an issue had been resolved with the Mar 14 snapshot build had been resolved (http://issues.apache.org/jira/browse/CXF-1482) and got an error on startup.  The same configuration files successfully launched using the Mar 14 snapshot build.
> We use the Spring 2 syntax to configure our beans as follows:
>   <simple:server id="cxf.find" serviceClass="com.esri.aws.services.Foo" address="/soap/Foo">
>       <simple:serviceBean><ref bean="fooBean" /></simple:serviceBean>
>       <simple:dataBinding><ref bean="cxf.aegisBinding" /></simple:dataBinding>
>       <simple:serviceFactory><ref bean="cxf.serviceFactory" /></simple:serviceFactory>
>    </simple:server>
> Error creating bean with name 'cx.find': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.apache.cxf.service.model.ServiceInfo.getSchemas()Ljava/util/Collection;
> Caused by: java.lang.NoSuchMethodError: org.apache.cxf.service.model.ServiceInfo.getSchemas()Ljava/util/Collection;
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWrappedSchema(ReflectionServiceFactoryBean.java:793)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:347)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:392)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:180)
> 	at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:79)
> 	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:113)
> 	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:597)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1240)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1205)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
> 	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
> 	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
> 	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
> 	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236)
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4760)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.