Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2112

Cannot use CXF with endpoint API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • jbossws-cxf
    • None

      [tdiesler@tddell trunk]$ ant -Dtest=jaxws/endpoint test

      tests-run-internal:
      [junit] Running org.jboss.test.ws.jaxws.endpoint.EndpointTestCase
      [junit] Retrieving document at 'http://localhost:8080/jaxws-endpoint?wsdl'.
      [junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed: 4.628 sec
      [junit] Test org.jboss.test.ws.jaxws.endpoint.EndpointTestCase FAILED

      java.lang.ClassNotFoundException: org.apache.cxf.binding.soap.SoapBindingFactory
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
      at org.springframework.util.ClassUtils.forName(ClassUtils.java:229)
      at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:327)
      at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1073)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:348)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
      at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:757)
      at org.apache.cxf.configuration.spring.AbstractSpringBeanMap.get(AbstractSpringBeanMap.java:136)
      at org.apache.cxf.configuration.spring.AbstractSpringBeanMap$SpringBeanMapWrapper.get(AbstractSpringBeanMap.java:236)
      at org.apache.cxf.binding.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:80)
      at org.apache.cxf.wsdl11.WSDLServiceUtils.getBindingFactory(WSDLServiceUtils.java:44)
      at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildBinding(WSDLServiceBuilder.java:379)
      at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:271)
      at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:153)
      at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:117)
      at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:136)
      at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:127)
      at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:55)
      at javax.xml.ws.Service.<init>(Service.java:57)
      at javax.xml.ws.Service.create(Service.java:302)
      at org.jboss.test.ws.jaxws.endpoint.EndpointServlet.doGet(EndpointServlet.java:87)

      [tdiesler@tddell jboss-4.2.2.GA]$ find . -name "*.jar" | xargs grep SoapBindingFactory
      Binary file ./client/cxf-2.0.5-incubator.jar matches
      Binary file ./server/default/deploy/jbossws.sar/cxf-2.0.5-incubator.jar matches
      Binary file ./server/default/tmp/deploy/tmp20619cxf-2.0.5-incubator.jar matches

      This seems to be a classloading issue

              Unassigned Unassigned
              tdiesler@redhat.com Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: