I asked a similar question since I hit such errors including the missing *ContextLoaderListener *which was configured in web.xml file when using 2.5.2 but I was following an example from the book - http://www.packtpub.com/apache-cxf-web-service-development/book .
The spring-web-3.0.6.RELEASE.jar is not incl in the 2.6.0 distribution where the spring jars are now all at "3.0.7.RELEASE" ... What was a bit confusing is that the* java_first_jaxws* sample (if you run the Maven build) in 2.6.0 distribution results in this being created: web.xml - note the removal of the ContextLoaderListener .... <?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <display-name>cxf</display-name> <servlet> <servlet-name>cxf</servlet-name> <display-name>cxf</display-name> <description>Apache CXF Endpoint</description> <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>cxf</servlet-name> <url-pattern>/services/*</url-pattern> </servlet-mapping> <session-config> <session-timeout>60</session-timeout> </session-config> </web-app> And then this cxf-servlet.xml: (uses Spring) <?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:soap="http://cxf.apache.org/bindings/soap" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> <jaxws:server id="jaxwsService" serviceClass="demo.hw.server.HelloWorld" address="/hello_world"> <jaxws:serviceBean> <bean class="demo.hw.server.HelloWorldImpl" /> </jaxws:serviceBean> </jaxws:server> </beans> But when you look at the WAR file it created, it has the spring-xxx-*3.0.7*.RELEASE.jars BUT still pulls in the ONE spring-web-*3.0.6*.RELEASE.jar. I know there were migration notes published. It's still a bit confusing in terms of what to change and/or get rid of especially if you're not using Maven - and at the moment - we are not. We were building with Ant and it was all working fine until our build picked up these 2.6.0 jars and then things broke - primarily around the web.xml having this ContextLoaderListener which I guess is really not required anymore. Mark On Apr 26, 2012 8:41 AM, "imiten" <[email protected]> wrote: > Hi, > > You were right as I did mvn clean install the error disappeared. Also can > you guide me to spring reference where I can learn this new usage where in > instead of bean and property injections/setter we see jsp tags sort of > nesting. > > <jaxws:endpoint > id="myProductRest" > implementor="#myRestService" > address="/rest" > bindingUri="http://apache.org/cxf/binding/http"> > > <jaxws:serviceFactory > > <bean class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean"> > <property name="wrapped" value="false" /> > </bean> > </jaxws:serviceFactory > > </jaxws:endpoint > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/cxf-2-5-2-to-cxf-2-6-0-java-lang-NoSuchMethodError-org-apache-cxf-jaxws-support-JaxWsServiceFactoryBV-tp5665143p5667473.html > Sent from the cxf-user mailing list archive at Nabble.com. >
