Announcement Announcement Module
Collapse
No announcement yet.
SOAP web service with Spring 3 and Apache cxf 2.5 Not working Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SOAP web service with Spring 3 and Apache cxf 2.5 Not working

    Hi all

    i m new to web services and creating code-first soap web service (hello world actually weatherService from tutorials)
    using Apache Cxf on spring 3 on tomcat 6 with java 6.
    I have reached till web service client yet and just trying to run web service on tomcat and see wsdl But i get exception when i run tomcat.

    Code:
    SEVERE: Servlet /fmr_soap_ws threw load() exception
    java.lang.NoSuchFieldError: QUALIFIED
    	at org.apache.cxf.service.model.SchemaInfo.setSchema(SchemaInfo.java:146)
    	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.getOrCreateSchema(ReflectionServiceFactoryBean.java:1412)
    	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createWrappedSchema(ReflectionServiceFactoryBean.java:1089)
    	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWrappedSchema(ReflectionServiceFactoryBean.java:989)
    	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:449)
    	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:682)
    	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:508)
    	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:242)
    	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:159)
    	at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:204)
    	at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:437)
    	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:324)
    	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:241)
    	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:515)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574)
    	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
    	at org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:119)
    	at org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:57)
    	at org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:64)
    	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172)
    	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
    	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
    	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    	at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

    My cxf-servlet file is :
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <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"
    	xmlns:simple="http://cxf.apache.org/simple"
    	xmlns:jaxrs="http://cxf.apache.org/jaxrs"
    	
    	xsi:schemaLocation="
    	http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
    	http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
    	http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd
    	http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd
    	http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd">
    
    	<import resource="classpath:META-INF/cxf/cxf.xml" />
    	<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
    <!--  	<import resource="classpath:META-INF/cxf/cxf-extension-jaxws.xml" />-->
    	<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
    	 
      
    	<jaxws:endpoint 
    	  id="weatherService" 
    	  implementor="com.ws.endpoints.WeatherServiceImpl" 
    	  address="/ws" >
    
    	  
    	  </jaxws:endpoint>
    	  
    </beans>

    i have all the possible jars that i know in my workspace. Please suggest me what could be the reason or some tutorials to help me.
Working...
X