List Info

Thread: Commented: (JBWS-2112) Cannot use CXF with endpoint API




Commented: (JBWS-2112) Cannot use CXF with endpoint API
country flaguser name
United States
2008-04-10 03:28:04
    [ http://jira.jboss.com/jira/browse/JBWS-
2112?page=comments#action_12408031 ] 
            
Jim Ma commented on JBWS-2112:
------------------------------

I tried this test and get different error message:
java.io.FileNotFoundException: This file was not found: http://loca
lhost:8080/jaxws-endpoint?wsdl

It seems the TestService is not published successfully . The
code used to publish implementor in this test does not work
in CXF :

      HttpContext context =
httpServer.createContext("/jaxws-endpoint");
      endpoint.publish(context);

CXF EndpointImpl does not support publishing with a server
context .  So it's an issue/unsupported in CXF.  


  








> Cannot use CXF with endpoint API
> --------------------------------
>
>                 Key: JBWS-2112
>                 URL: http://ji
ra.jboss.com/jira/browse/JBWS-2112
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: jbossws-cxf
>            Reporter: Thomas Diesler
>
> [tdieslertddell trunk]$ ant -Dtest=jaxws/endpoint
test
> tests-run-internal:
>     [junit] Running
org.jboss.test.ws.jaxws.endpoint.EndpointTestCase
>     [junit] Retrieving document at 'http://loca
lhost: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(Webap
pClassLoader.java:1358)
>         at
org.apache.catalina.loader.WebappClassLoader.loadClass(Webap
pClassLoader.java:1204)
>         at
org.springframework.util.ClassUtils.forName(ClassUtils.java:
229)
>         at
org.springframework.beans.factory.support.AbstractBeanDefini
tion.resolveBeanClass(AbstractBeanDefinition.java:327)
>         at
org.springframework.beans.factory.support.AbstractBeanFactor
y.resolveBeanClass(AbstractBeanFactory.java:1073)
>         at
org.springframework.beans.factory.support.AbstractAutowireCa
pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto
ry.java:348)
>         at
org.springframework.beans.factory.support.AbstractBeanFactor
y$1.getObject(AbstractBeanFactory.java:249)
>         at
org.springframework.beans.factory.support.DefaultSingletonBe
anRegistry.getSingleton(DefaultSingletonBeanRegistry.java:15
5)
>         at
org.springframework.beans.factory.support.AbstractBeanFactor
y.getBean(AbstractBeanFactory.java:246)
>         at
org.springframework.beans.factory.support.AbstractBeanFactor
y.getBean(AbstractBeanFactory.java:160)
>         at
org.springframework.context.support.AbstractApplicationConte
xt.getBean(AbstractApplicationContext.java:757)
>         at
org.apache.cxf.configuration.spring.AbstractSpringBeanMap.ge
t(AbstractSpringBeanMap.java:136)
>         at
org.apache.cxf.configuration.spring.AbstractSpringBeanMap$Sp
ringBeanMapWrapper.get(AbstractSpringBeanMap.java:236)
>         at
org.apache.cxf.binding.BindingFactoryManagerImpl.getBindingF
actory(BindingFactoryManagerImpl.java:80)
>         at
org.apache.cxf.wsdl11.WSDLServiceUtils.getBindingFactory(WSD
LServiceUtils.java:44)
>         at
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildBinding(WSDLSe
rviceBuilder.java:379)
>         at
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLS
erviceBuilder.java:271)
>         at
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLS
erviceBuilder.java:153)
>         at
org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceF
actory.java:117)
>         at
org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl
.java:136)
>         at
org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.ja
va: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(Endpo
intServlet.java:87)
> [tdieslertddell 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the
administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atl
assian.com/software/jira

        
_______________________________________________
jbossws-issues mailing list
jbossws-issueslists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbossws-issues

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )