cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kazuki Shimizu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-6428) JAX-WS of XCF 3.1.0 does not work with Spring 4.1 on Tomcat (UnsupportedOperationException)
Date Sat, 30 May 2015 03:13:17 GMT
Kazuki Shimizu created CXF-6428:
-----------------------------------

             Summary: JAX-WS of XCF 3.1.0 does not work with Spring 4.1 on Tomcat (UnsupportedOperationException)
                 Key: CXF-6428
                 URL: https://issues.apache.org/jira/browse/CXF-6428
             Project: CXF
          Issue Type: Bug
    Affects Versions: 3.1.0
         Environment: Java : Oracle JDK 1.8.0_45
Application Server : Tomcat 7.0.57 using tomcat7-maven-plugin
Application Server : Tomcat 8.0.22 using IDEA
CXF : 3.1.0
Spring : 4.1.4.RELEASE
Bean Validation : 1.1 (Hibernate Validator 5.1.3.Final)
            Reporter: Kazuki Shimizu
            Priority: Critical


The JAX-WS of CXF 3.1.0 does not work with Spring Framework 4.1.4.RELEASE on Tomcat 7 or 8.
version 3.0.5 is worked !

*[Demo application for 3.1.0 (Not work)]*
https://github.com/kazuki43zoo/soap-sample/tree/cxf3.1.0/soap-spring-with-cxf

*[Demo application for 3.0.5 (Work)]*
https://github.com/kazuki43zoo/soap-sample/tree/master/soap-spring-with-cxf

*[Demo application architecture overview]*
https://github.com/kazuki43zoo/soap-sample#the-sample-application-using-apache-cxf

*[How to start a application]*
mvn clean tomcat7:run

*[Stack trace on tomcat7]*

{code}
date:2015-05-30 11:54:57        thread:localhost-startStop-1    X-Track:        level:WARN
     logger:o.s.web.context.support.XmlWebApplicationContext message:Exception encountered
during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'todoWebEndpoint':
Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: java.lang.UnsupportedOperationException
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1566)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
~[spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
~[spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE]
        at org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:151)
[cxf-rt-transports-http-3.1.0.jar:3.1.0]
        at org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74) [cxf-rt-transports-http-3.1.0.jar:3.1.0]
        at org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:76)
[cxf-rt-transports-http-3.1.0.jar:3.1.0]
        at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
[tomcat-embed-core-7.0.57.jar:7.0.57]
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
[tomcat-embed-core-7.0.57.jar:7.0.57]
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087) [tomcat-embed-core-7.0.57.jar:7.0.57]
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5231)
[tomcat-embed-core-7.0.57.jar:7.0.57]
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5518)
[tomcat-embed-core-7.0.57.jar:7.0.57]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-7.0.57.jar:7.0.57]
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
[tomcat-embed-core-7.0.57.jar:7.0.57]
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
[tomcat-embed-core-7.0.57.jar:7.0.57]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_45]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[na:1.8.0_45]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[na:1.8.0_45]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
Caused by: javax.xml.ws.WebServiceException: java.lang.UnsupportedOperationException
        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:375) ~[cxf-rt-frontend-jaxws-3.1.0.jar:3.1.0]
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:255) ~[cxf-rt-frontend-jaxws-3.1.0.jar:3.1.0]
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:543) ~[cxf-rt-frontend-jaxws-3.1.0.jar:3.1.0]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_45]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_45]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.8.0_45]
        at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_45]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1694)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1562)
~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
        ... 24 common frames omitted
Caused by: java.lang.UnsupportedOperationException: null
        at java.util.AbstractMap.put(AbstractMap.java:209) ~[na:1.8.0_45]
        at org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:310)
~[cxf-rt-databinding-jaxb-3.1.0.jar:3.1.0]
        at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:233)
~[cxf-rt-databinding-jaxb-3.1.0.jar:3.1.0]
        at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:223)
~[cxf-rt-databinding-jaxb-3.1.0.jar:3.1.0]
        at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:241)
~[cxf-rt-databinding-jaxb-3.1.0.jar:3.1.0]
        at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:223)
~[cxf-rt-databinding-jaxb-3.1.0.jar:3.1.0]
        at org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:401)
~[cxf-rt-databinding-jaxb-3.1.0.jar:3.1.0]
        at org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:386)
~[cxf-rt-databinding-jaxb-3.1.0.jar:3.1.0]
        at org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:299)
~[cxf-rt-databinding-jaxb-3.1.0.jar:3.1.0]
        at org.apache.cxf.jaxb.JAXBContextInitializer.begin(JAXBContextInitializer.java:184)
~[cxf-rt-databinding-jaxb-3.1.0.jar:3.1.0]
        at org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisitor.java:120)
~[cxf-core-3.1.0.jar:3.1.0]
        at org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.java:74) ~[cxf-core-3.1.0.jar:3.1.0]
        at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:315) ~[cxf-rt-databinding-jaxb-3.1.0.jar:3.1.0]
        at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
~[cxf-core-3.1.0.jar:3.1.0]
        at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:467)
~[cxf-rt-wsdl-3.1.0.jar:3.1.0]
        at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:696)
~[cxf-rt-frontend-jaxws-3.1.0.jar:3.1.0]
        at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:527)
~[cxf-rt-wsdl-3.1.0.jar:3.1.0]
        at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:261)
~[cxf-rt-wsdl-3.1.0.jar:3.1.0]
        at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:199)
~[cxf-rt-frontend-jaxws-3.1.0.jar:3.1.0]
        at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
~[cxf-rt-frontend-simple-3.1.0.jar:3.1.0]
        at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:168) ~[cxf-rt-frontend-simple-3.1.0.jar:3.1.0]
        at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
~[cxf-rt-frontend-jaxws-3.1.0.jar:3.1.0]
        at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:460) ~[cxf-rt-frontend-jaxws-3.1.0.jar:3.1.0]
        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:338) ~[cxf-rt-frontend-jaxws-3.1.0.jar:3.1.0]
        ... 33 common frames omitted
{code}





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message