[jira] [Created] (CXF-6174) MoxyJaxbContextResolved example is outdated
Vjacheslav Borisov created CXF-6174: --- Summary: MoxyJaxbContextResolved example is outdated Key: CXF-6174 URL: https://issues.apache.org/jira/browse/CXF-6174 Project: CXF Issue Type: Bug Components: Documentation Reporter: Vjacheslav Borisov Priority: Trivial http://cxf.apache.org/docs/jax-rs-data-bindings.html#JAX-RSDataBindings-JAXBandMoxy MoxyJaxbContextResolved example is outdated this is working : {code:title=MoxyJaxbContextResolver java|borderStyle=solid} public class MoxyJaxbContextResolver implements ContextResolver { @Override public JAXBContext getContext(Class cls) { try { return JAXBContextFactory.createContext(new Class[] {cls},null); } catch (JAXBException ex) { throw new RuntimeException(ex); } } } {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (CXF-6173) Unable to configure CXF StAX properties on a per-endpoint/client basis if a JAX-WS handler is configured
Kyle Lape created CXF-6173: -- Summary: Unable to configure CXF StAX properties on a per-endpoint/client basis if a JAX-WS handler is configured Key: CXF-6173 URL: https://issues.apache.org/jira/browse/CXF-6173 Project: CXF Issue Type: Improvement Components: Soap Binding Reporter: Kyle Lape {noformat} Caused by: org.apache.cxf.staxutils.DepthExceededStaxException: reach the innerElementCountThreshold:5 at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:726) at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:223) at org.apache.cxf.jaxws.handler.soap.SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:78) at org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.createProtocolMessageContext(SOAPHandlerInterceptor.java:257) at org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessageInternal(SOAPHandlerInterceptor.java:161) at org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessage(SOAPHandlerInterceptor.java:124) at org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessage(SOAPHandlerInterceptor.java:71) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272) at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:845) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1624) {noformat} This happens because the {{SAAJInInterceptor}} invokes {{StaxUtils.copy()}} with the value of the fourth argument as {{true}}, which means {{StaxUtils}} uses its static properties to check {{innerElementLevelThreshold}} and {{innerElementCountThreshold}}. If the {{XMLStreamReader}} passed in to the method has custom values for these properties, they are ignored. I'm not sure if this behavior is intentional or not, but if it's not, then it would be nice to allow the properties on the {{XMLStreamReader}} to take precedence. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CXF-6170) Demo jax_rs/spring_security throws exception
[ https://issues.apache.org/jira/browse/CXF-6170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14255955#comment-14255955 ] Guopu Wu commented on CXF-6170: --- That's grand .. Thanks Sergey. Didnt check trunk .. > Demo jax_rs/spring_security throws exception > > > Key: CXF-6170 > URL: https://issues.apache.org/jira/browse/CXF-6170 > Project: CXF > Issue Type: Bug > Components: Samples >Affects Versions: 3.0.3 > Environment: Maven 3.2.3, JDK 6, Win 7 >Reporter: Guopu Wu >Assignee: Sergey Beryozkin > Fix For: 3.0.4 > > > Dec 18, 2014 12:38:40 PM org.eclipse.jetty.server.Server doStart > INFO: jetty-8.1.15.v20140411 > Dec 18, 2014 12:38:40 PM org.eclipse.jetty.webapp.WebInfConfiguration unpack > INFO: Extract > jar:file:/D:/svn_work/artix_product_cxf301/artix_esb/test/kit/target/Progress_Artix/samples/cxf/jax_rs/spring_security/target/JAXRSSpringSecurity.war!/ > to > D:\svn_work\artix_product_cxf301\artix_esb\test\kit\target\Progress_Artix\samples\cxf\jax_rs\spring_security\target\JAXRSSpringSecurity > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in > [jar:file:/D:/svn_work/artix_product_cxf301/artix_esb/test/kit/target/Progress_Artix/samples/cxf/jax_rs/spring_security/target/JAXRSSpringSecurity/WEB-INF/lib/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in > [jar:file:/C:/Users/GuopuW/.m2/repository/org/slf4j/slf4j-jdk14/1.7.7/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > explanation. > SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory] > Dec 18, 2014 12:38:42 PM org.eclipse.jetty.webapp.StandardDescriptorProcessor > visitServlet > INFO: NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet > Dec 18, 2014 12:38:42 PM > org.eclipse.jetty.server.handler.ContextHandler$Context log > INFO: Initializing Spring root WebApplicationContext > Dec 18, 2014 12:38:42 PM org.springframework.web.context.ContextLoader > initWebApplicationContext > INFO: Root WebApplicationContext: initialization started > Dec 18, 2014 12:38:42 PM > org.springframework.context.support.AbstractApplicationContext prepareRefresh > INFO: Refreshing Root WebApplicationContext: startup date [Thu Dec 18 > 12:38:42 GMT 2014]; root of context hierarchy > Dec 18, 2014 12:38:42 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from ServletContext resource > [/WEB-INF/beans.xml] > Dec 18, 2014 12:38:43 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/cxf/cxf.xml] > Dec 18, 2014 12:38:44 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/cxf/cxf-servlet.xml] > Dec 18, 2014 12:38:44 PM org.springframework.web.context.ContextLoader > initWebApplicationContext > SEVERE: Context initialization failed > org.springframework.beans.factory.parsing.BeanDefinitionParsingException: > Configuration problem: Unable to locate Spring NamespaceHandler for XML > schema namespace [http://www.springframework.org/schema/security] > Offending resource: ServletContext resource [/WEB-INF/beans.xml] > at > org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) > at > org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) > at > org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:318) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1435) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:195) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:139) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:108) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493) > at > org.springframework.
[jira] [Commented] (CXF-6170) Demo jax_rs/spring_security throws exception
[ https://issues.apache.org/jira/browse/CXF-6170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14255938#comment-14255938 ] Sergey Beryozkin commented on CXF-6170: --- Patch applied, thanks Guopu. FYI, it was laready fixed on the trunk I just missed back-merging it to 3.0.x but I thought I'd not close this issue as a duplicate... Cheers, Sergey > Demo jax_rs/spring_security throws exception > > > Key: CXF-6170 > URL: https://issues.apache.org/jira/browse/CXF-6170 > Project: CXF > Issue Type: Bug > Components: Samples >Affects Versions: 3.0.3 > Environment: Maven 3.2.3, JDK 6, Win 7 >Reporter: Guopu Wu > Fix For: 3.0.4 > > > Dec 18, 2014 12:38:40 PM org.eclipse.jetty.server.Server doStart > INFO: jetty-8.1.15.v20140411 > Dec 18, 2014 12:38:40 PM org.eclipse.jetty.webapp.WebInfConfiguration unpack > INFO: Extract > jar:file:/D:/svn_work/artix_product_cxf301/artix_esb/test/kit/target/Progress_Artix/samples/cxf/jax_rs/spring_security/target/JAXRSSpringSecurity.war!/ > to > D:\svn_work\artix_product_cxf301\artix_esb\test\kit\target\Progress_Artix\samples\cxf\jax_rs\spring_security\target\JAXRSSpringSecurity > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in > [jar:file:/D:/svn_work/artix_product_cxf301/artix_esb/test/kit/target/Progress_Artix/samples/cxf/jax_rs/spring_security/target/JAXRSSpringSecurity/WEB-INF/lib/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in > [jar:file:/C:/Users/GuopuW/.m2/repository/org/slf4j/slf4j-jdk14/1.7.7/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > explanation. > SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory] > Dec 18, 2014 12:38:42 PM org.eclipse.jetty.webapp.StandardDescriptorProcessor > visitServlet > INFO: NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet > Dec 18, 2014 12:38:42 PM > org.eclipse.jetty.server.handler.ContextHandler$Context log > INFO: Initializing Spring root WebApplicationContext > Dec 18, 2014 12:38:42 PM org.springframework.web.context.ContextLoader > initWebApplicationContext > INFO: Root WebApplicationContext: initialization started > Dec 18, 2014 12:38:42 PM > org.springframework.context.support.AbstractApplicationContext prepareRefresh > INFO: Refreshing Root WebApplicationContext: startup date [Thu Dec 18 > 12:38:42 GMT 2014]; root of context hierarchy > Dec 18, 2014 12:38:42 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from ServletContext resource > [/WEB-INF/beans.xml] > Dec 18, 2014 12:38:43 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/cxf/cxf.xml] > Dec 18, 2014 12:38:44 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/cxf/cxf-servlet.xml] > Dec 18, 2014 12:38:44 PM org.springframework.web.context.ContextLoader > initWebApplicationContext > SEVERE: Context initialization failed > org.springframework.beans.factory.parsing.BeanDefinitionParsingException: > Configuration problem: Unable to locate Spring NamespaceHandler for XML > schema namespace [http://www.springframework.org/schema/security] > Offending resource: ServletContext resource [/WEB-INF/beans.xml] > at > org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) > at > org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) > at > org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:318) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1435) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:195) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:139) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:108) > at > org.springframework.beans.factory.xml.XmlBeanDef
[jira] [Resolved] (CXF-6170) Demo jax_rs/spring_security throws exception
[ https://issues.apache.org/jira/browse/CXF-6170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Beryozkin resolved CXF-6170. --- Resolution: Fixed Fix Version/s: 3.0.4 Assignee: Sergey Beryozkin > Demo jax_rs/spring_security throws exception > > > Key: CXF-6170 > URL: https://issues.apache.org/jira/browse/CXF-6170 > Project: CXF > Issue Type: Bug > Components: Samples >Affects Versions: 3.0.3 > Environment: Maven 3.2.3, JDK 6, Win 7 >Reporter: Guopu Wu >Assignee: Sergey Beryozkin > Fix For: 3.0.4 > > > Dec 18, 2014 12:38:40 PM org.eclipse.jetty.server.Server doStart > INFO: jetty-8.1.15.v20140411 > Dec 18, 2014 12:38:40 PM org.eclipse.jetty.webapp.WebInfConfiguration unpack > INFO: Extract > jar:file:/D:/svn_work/artix_product_cxf301/artix_esb/test/kit/target/Progress_Artix/samples/cxf/jax_rs/spring_security/target/JAXRSSpringSecurity.war!/ > to > D:\svn_work\artix_product_cxf301\artix_esb\test\kit\target\Progress_Artix\samples\cxf\jax_rs\spring_security\target\JAXRSSpringSecurity > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in > [jar:file:/D:/svn_work/artix_product_cxf301/artix_esb/test/kit/target/Progress_Artix/samples/cxf/jax_rs/spring_security/target/JAXRSSpringSecurity/WEB-INF/lib/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in > [jar:file:/C:/Users/GuopuW/.m2/repository/org/slf4j/slf4j-jdk14/1.7.7/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > explanation. > SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory] > Dec 18, 2014 12:38:42 PM org.eclipse.jetty.webapp.StandardDescriptorProcessor > visitServlet > INFO: NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet > Dec 18, 2014 12:38:42 PM > org.eclipse.jetty.server.handler.ContextHandler$Context log > INFO: Initializing Spring root WebApplicationContext > Dec 18, 2014 12:38:42 PM org.springframework.web.context.ContextLoader > initWebApplicationContext > INFO: Root WebApplicationContext: initialization started > Dec 18, 2014 12:38:42 PM > org.springframework.context.support.AbstractApplicationContext prepareRefresh > INFO: Refreshing Root WebApplicationContext: startup date [Thu Dec 18 > 12:38:42 GMT 2014]; root of context hierarchy > Dec 18, 2014 12:38:42 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from ServletContext resource > [/WEB-INF/beans.xml] > Dec 18, 2014 12:38:43 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/cxf/cxf.xml] > Dec 18, 2014 12:38:44 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/cxf/cxf-servlet.xml] > Dec 18, 2014 12:38:44 PM org.springframework.web.context.ContextLoader > initWebApplicationContext > SEVERE: Context initialization failed > org.springframework.beans.factory.parsing.BeanDefinitionParsingException: > Configuration problem: Unable to locate Spring NamespaceHandler for XML > schema namespace [http://www.springframework.org/schema/security] > Offending resource: ServletContext resource [/WEB-INF/beans.xml] > at > org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) > at > org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) > at > org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:318) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1435) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:195) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:139) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:108) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493) > at > org.springframework.beans.
[jira] [Created] (CXF-6172) WS-Discovery should work also in IPv6 only environment
Jan Blizňák created CXF-6172: Summary: WS-Discovery should work also in IPv6 only environment Key: CXF-6172 URL: https://issues.apache.org/jira/browse/CXF-6172 Project: CXF Issue Type: Bug Components: Services Affects Versions: 2.7.14, 3.0.3 Reporter: Jan Blizňák In current implementation of {{WSDiscoveryServiceImpl}}, endpoint is published with hardcoded IPv4 multicast address: {code}udpEndpoint.publish("soap.udp://239.255.255.250:3702");{code} There is no reason to support only IPv4. Also current implementation does not support WS-Discovery in IPv6 network when IPv4 is not available at all. Programatically determining network environment and switching the profile might not be the best option (network might be temporarily at the moment of trying down etc.), so at least I would suggest something like .. to allow to choose IPv4/IPv6 profile by system property, with IPv4 as default. This would also allow testing IPv6 on dualstack networks. In {{WSDiscoveryClient}}, although address can be altered by setter or constructor, the default one can be still switched by proposed system property. Multicast IPv4 and IPv6 addreses in [WS-Discovery spec, section 3.1.1|http://docs.oasis-open.org/ws-dd/discovery/1.1/os/wsdd-discovery-1.1-spec-os.html#_Toc234231817] -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CXF-6170) Demo jax_rs/spring_security throws exception
[ https://issues.apache.org/jira/browse/CXF-6170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14255745#comment-14255745 ] Guopu Wu commented on CXF-6170: --- The fix on the PR is updating configurations to newer spring-security schema version 3.1 > Demo jax_rs/spring_security throws exception > > > Key: CXF-6170 > URL: https://issues.apache.org/jira/browse/CXF-6170 > Project: CXF > Issue Type: Bug > Components: Samples >Affects Versions: 3.0.3 > Environment: Maven 3.2.3, JDK 6, Win 7 >Reporter: Guopu Wu > > Dec 18, 2014 12:38:40 PM org.eclipse.jetty.server.Server doStart > INFO: jetty-8.1.15.v20140411 > Dec 18, 2014 12:38:40 PM org.eclipse.jetty.webapp.WebInfConfiguration unpack > INFO: Extract > jar:file:/D:/svn_work/artix_product_cxf301/artix_esb/test/kit/target/Progress_Artix/samples/cxf/jax_rs/spring_security/target/JAXRSSpringSecurity.war!/ > to > D:\svn_work\artix_product_cxf301\artix_esb\test\kit\target\Progress_Artix\samples\cxf\jax_rs\spring_security\target\JAXRSSpringSecurity > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in > [jar:file:/D:/svn_work/artix_product_cxf301/artix_esb/test/kit/target/Progress_Artix/samples/cxf/jax_rs/spring_security/target/JAXRSSpringSecurity/WEB-INF/lib/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in > [jar:file:/C:/Users/GuopuW/.m2/repository/org/slf4j/slf4j-jdk14/1.7.7/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > explanation. > SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory] > Dec 18, 2014 12:38:42 PM org.eclipse.jetty.webapp.StandardDescriptorProcessor > visitServlet > INFO: NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet > Dec 18, 2014 12:38:42 PM > org.eclipse.jetty.server.handler.ContextHandler$Context log > INFO: Initializing Spring root WebApplicationContext > Dec 18, 2014 12:38:42 PM org.springframework.web.context.ContextLoader > initWebApplicationContext > INFO: Root WebApplicationContext: initialization started > Dec 18, 2014 12:38:42 PM > org.springframework.context.support.AbstractApplicationContext prepareRefresh > INFO: Refreshing Root WebApplicationContext: startup date [Thu Dec 18 > 12:38:42 GMT 2014]; root of context hierarchy > Dec 18, 2014 12:38:42 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from ServletContext resource > [/WEB-INF/beans.xml] > Dec 18, 2014 12:38:43 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/cxf/cxf.xml] > Dec 18, 2014 12:38:44 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/cxf/cxf-servlet.xml] > Dec 18, 2014 12:38:44 PM org.springframework.web.context.ContextLoader > initWebApplicationContext > SEVERE: Context initialization failed > org.springframework.beans.factory.parsing.BeanDefinitionParsingException: > Configuration problem: Unable to locate Spring NamespaceHandler for XML > schema namespace [http://www.springframework.org/schema/security] > Offending resource: ServletContext resource [/WEB-INF/beans.xml] > at > org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) > at > org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) > at > org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:318) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1435) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:195) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:139) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:108) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493) > at > org.springframework.beans.factory.xml.XmlBeanDefiniti
[jira] [Issue Comment Deleted] (CXF-6170) Demo jax_rs/spring_security throws exception
[ https://issues.apache.org/jira/browse/CXF-6170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guopu Wu updated CXF-6170: -- Comment: was deleted (was: The fix on the PR is updating config to newer spring-security ) > Demo jax_rs/spring_security throws exception > > > Key: CXF-6170 > URL: https://issues.apache.org/jira/browse/CXF-6170 > Project: CXF > Issue Type: Bug > Components: Samples >Affects Versions: 3.0.3 > Environment: Maven 3.2.3, JDK 6, Win 7 >Reporter: Guopu Wu > > Dec 18, 2014 12:38:40 PM org.eclipse.jetty.server.Server doStart > INFO: jetty-8.1.15.v20140411 > Dec 18, 2014 12:38:40 PM org.eclipse.jetty.webapp.WebInfConfiguration unpack > INFO: Extract > jar:file:/D:/svn_work/artix_product_cxf301/artix_esb/test/kit/target/Progress_Artix/samples/cxf/jax_rs/spring_security/target/JAXRSSpringSecurity.war!/ > to > D:\svn_work\artix_product_cxf301\artix_esb\test\kit\target\Progress_Artix\samples\cxf\jax_rs\spring_security\target\JAXRSSpringSecurity > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in > [jar:file:/D:/svn_work/artix_product_cxf301/artix_esb/test/kit/target/Progress_Artix/samples/cxf/jax_rs/spring_security/target/JAXRSSpringSecurity/WEB-INF/lib/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in > [jar:file:/C:/Users/GuopuW/.m2/repository/org/slf4j/slf4j-jdk14/1.7.7/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > explanation. > SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory] > Dec 18, 2014 12:38:42 PM org.eclipse.jetty.webapp.StandardDescriptorProcessor > visitServlet > INFO: NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet > Dec 18, 2014 12:38:42 PM > org.eclipse.jetty.server.handler.ContextHandler$Context log > INFO: Initializing Spring root WebApplicationContext > Dec 18, 2014 12:38:42 PM org.springframework.web.context.ContextLoader > initWebApplicationContext > INFO: Root WebApplicationContext: initialization started > Dec 18, 2014 12:38:42 PM > org.springframework.context.support.AbstractApplicationContext prepareRefresh > INFO: Refreshing Root WebApplicationContext: startup date [Thu Dec 18 > 12:38:42 GMT 2014]; root of context hierarchy > Dec 18, 2014 12:38:42 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from ServletContext resource > [/WEB-INF/beans.xml] > Dec 18, 2014 12:38:43 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/cxf/cxf.xml] > Dec 18, 2014 12:38:44 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/cxf/cxf-servlet.xml] > Dec 18, 2014 12:38:44 PM org.springframework.web.context.ContextLoader > initWebApplicationContext > SEVERE: Context initialization failed > org.springframework.beans.factory.parsing.BeanDefinitionParsingException: > Configuration problem: Unable to locate Spring NamespaceHandler for XML > schema namespace [http://www.springframework.org/schema/security] > Offending resource: ServletContext resource [/WEB-INF/beans.xml] > at > org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) > at > org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) > at > org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:318) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1435) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:195) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:139) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:108) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionRead
[jira] [Commented] (CXF-6170) Demo jax_rs/spring_security throws exception
[ https://issues.apache.org/jira/browse/CXF-6170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14255733#comment-14255733 ] Guopu Wu commented on CXF-6170: --- The fix on the PR is updating config to newer spring-security > Demo jax_rs/spring_security throws exception > > > Key: CXF-6170 > URL: https://issues.apache.org/jira/browse/CXF-6170 > Project: CXF > Issue Type: Bug > Components: Samples >Affects Versions: 3.0.3 > Environment: Maven 3.2.3, JDK 6, Win 7 >Reporter: Guopu Wu > > Dec 18, 2014 12:38:40 PM org.eclipse.jetty.server.Server doStart > INFO: jetty-8.1.15.v20140411 > Dec 18, 2014 12:38:40 PM org.eclipse.jetty.webapp.WebInfConfiguration unpack > INFO: Extract > jar:file:/D:/svn_work/artix_product_cxf301/artix_esb/test/kit/target/Progress_Artix/samples/cxf/jax_rs/spring_security/target/JAXRSSpringSecurity.war!/ > to > D:\svn_work\artix_product_cxf301\artix_esb\test\kit\target\Progress_Artix\samples\cxf\jax_rs\spring_security\target\JAXRSSpringSecurity > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in > [jar:file:/D:/svn_work/artix_product_cxf301/artix_esb/test/kit/target/Progress_Artix/samples/cxf/jax_rs/spring_security/target/JAXRSSpringSecurity/WEB-INF/lib/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in > [jar:file:/C:/Users/GuopuW/.m2/repository/org/slf4j/slf4j-jdk14/1.7.7/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > explanation. > SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory] > Dec 18, 2014 12:38:42 PM org.eclipse.jetty.webapp.StandardDescriptorProcessor > visitServlet > INFO: NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet > Dec 18, 2014 12:38:42 PM > org.eclipse.jetty.server.handler.ContextHandler$Context log > INFO: Initializing Spring root WebApplicationContext > Dec 18, 2014 12:38:42 PM org.springframework.web.context.ContextLoader > initWebApplicationContext > INFO: Root WebApplicationContext: initialization started > Dec 18, 2014 12:38:42 PM > org.springframework.context.support.AbstractApplicationContext prepareRefresh > INFO: Refreshing Root WebApplicationContext: startup date [Thu Dec 18 > 12:38:42 GMT 2014]; root of context hierarchy > Dec 18, 2014 12:38:42 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from ServletContext resource > [/WEB-INF/beans.xml] > Dec 18, 2014 12:38:43 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/cxf/cxf.xml] > Dec 18, 2014 12:38:44 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/cxf/cxf-servlet.xml] > Dec 18, 2014 12:38:44 PM org.springframework.web.context.ContextLoader > initWebApplicationContext > SEVERE: Context initialization failed > org.springframework.beans.factory.parsing.BeanDefinitionParsingException: > Configuration problem: Unable to locate Spring NamespaceHandler for XML > schema namespace [http://www.springframework.org/schema/security] > Offending resource: ServletContext resource [/WEB-INF/beans.xml] > at > org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) > at > org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) > at > org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:318) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1435) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:195) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:139) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:108) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefiniti
[jira] [Commented] (CXF-6170) Demo jax_rs/spring_security throws exception
[ https://issues.apache.org/jira/browse/CXF-6170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14255728#comment-14255728 ] ASF GitHub Bot commented on CXF-6170: - GitHub user gwuireland opened a pull request: https://github.com/apache/cxf/pull/48 [CXF-6170] Demo jax_rs/spring_security throws exception You can merge this pull request into a Git repository by running: $ git pull https://github.com/gwuireland/cxf gwu-cxf-6170 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cxf/pull/48.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #48 commit fea724526915763f2bde5113135ab89e44a3dbc4 Author: gwuireland Date: 2014-12-22T13:24:22Z [CXF-6170] Demo jax_rs/spring_security throws exception > Demo jax_rs/spring_security throws exception > > > Key: CXF-6170 > URL: https://issues.apache.org/jira/browse/CXF-6170 > Project: CXF > Issue Type: Bug > Components: Samples >Affects Versions: 3.0.3 > Environment: Maven 3.2.3, JDK 6, Win 7 >Reporter: Guopu Wu > > Dec 18, 2014 12:38:40 PM org.eclipse.jetty.server.Server doStart > INFO: jetty-8.1.15.v20140411 > Dec 18, 2014 12:38:40 PM org.eclipse.jetty.webapp.WebInfConfiguration unpack > INFO: Extract > jar:file:/D:/svn_work/artix_product_cxf301/artix_esb/test/kit/target/Progress_Artix/samples/cxf/jax_rs/spring_security/target/JAXRSSpringSecurity.war!/ > to > D:\svn_work\artix_product_cxf301\artix_esb\test\kit\target\Progress_Artix\samples\cxf\jax_rs\spring_security\target\JAXRSSpringSecurity > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in > [jar:file:/D:/svn_work/artix_product_cxf301/artix_esb/test/kit/target/Progress_Artix/samples/cxf/jax_rs/spring_security/target/JAXRSSpringSecurity/WEB-INF/lib/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in > [jar:file:/C:/Users/GuopuW/.m2/repository/org/slf4j/slf4j-jdk14/1.7.7/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > explanation. > SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory] > Dec 18, 2014 12:38:42 PM org.eclipse.jetty.webapp.StandardDescriptorProcessor > visitServlet > INFO: NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet > Dec 18, 2014 12:38:42 PM > org.eclipse.jetty.server.handler.ContextHandler$Context log > INFO: Initializing Spring root WebApplicationContext > Dec 18, 2014 12:38:42 PM org.springframework.web.context.ContextLoader > initWebApplicationContext > INFO: Root WebApplicationContext: initialization started > Dec 18, 2014 12:38:42 PM > org.springframework.context.support.AbstractApplicationContext prepareRefresh > INFO: Refreshing Root WebApplicationContext: startup date [Thu Dec 18 > 12:38:42 GMT 2014]; root of context hierarchy > Dec 18, 2014 12:38:42 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from ServletContext resource > [/WEB-INF/beans.xml] > Dec 18, 2014 12:38:43 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/cxf/cxf.xml] > Dec 18, 2014 12:38:44 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/cxf/cxf-servlet.xml] > Dec 18, 2014 12:38:44 PM org.springframework.web.context.ContextLoader > initWebApplicationContext > SEVERE: Context initialization failed > org.springframework.beans.factory.parsing.BeanDefinitionParsingException: > Configuration problem: Unable to locate Spring NamespaceHandler for XML > schema namespace [http://www.springframework.org/schema/security] > Offending resource: ServletContext resource [/WEB-INF/beans.xml] > at > org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) > at > org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) > at > org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:318) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1435) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428) > at > org.springfr
[jira] [Created] (CXF-6171) JAX-RS JAXB provider should check XmlElementWrapper when working with collections
Sergey Beryozkin created CXF-6171: - Summary: JAX-RS JAXB provider should check XmlElementWrapper when working with collections Key: CXF-6171 URL: https://issues.apache.org/jira/browse/CXF-6171 Project: CXF Issue Type: Improvement Components: JAX-RS Reporter: Sergey Beryozkin Priority: Minor Fix For: 3.0.4, 3.1.0 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Issue Comment Deleted] (CXF-5525) Client - UntrustedURLConnectionIOException even the HTTPS established with client certificate auth
[ https://issues.apache.org/jira/browse/CXF-5525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Istvan Kis updated CXF-5525: Comment: was deleted (was: Is there any verified solution for this?) > Client - UntrustedURLConnectionIOException even the HTTPS established with > client certificate auth > -- > > Key: CXF-5525 > URL: https://issues.apache.org/jira/browse/CXF-5525 > Project: CXF > Issue Type: Bug > Environment: java 1.6.0_45 and 1.7.0_45 on Windows 8, CXF version > 2.7.6 >Reporter: Jakub Neubauer > > Hi, > I'm facing issue with CXF client. I have a Java client generated from WSDL. > The WSDL contains RequireClientCertificate="true" in the Policy. I'm calling > a web service over HTTPS with client certificate authentication. Although > HTTPS connection is established and with client certificate authentication > (ensured with -Djavax.net.debug=all), calling a WS method throws exception. > The strange thing is, that the first call succeeded and the second and all > other calls, fail with this exception (!). The other calls can be done with > the same client object or can create new, no matter. The client object is > created as follows: > {code} > // our custom ssl settings, with client cert auth in this case. > SSLSocketFactory sslSockF = > createSSLSocketFactoryFromProperties(_properties); > ProductionService service = new ProductionService( > new URL(myURL), > new QName("http://mycompany.com/api/productionService";, > "ProductionService")); > port = service.getBasicHttpBindingIProductionService(); > Client client = ClientProxy.getClient(port); > HTTPConduit http = (HTTPConduit) client.getConduit(); > TLSClientParameters tlsParams = new TLSClientParameters(); > tlsParams.setDisableCNCheck(true); > tlsParams.setSSLSocketFactory(sslSockF); > http.setTlsClientParameters(tlsParams); > return port; > {code} > The exception: > {noformat} > - > etc... > Caused by: org.apache.cxf.transport.http.UntrustedURLConnectionIOException: > UntrustedURLConnectionIOException invoking > https://192.168.101.14/myApplication/services/ProductionService.svc: > RequireClientCertificate is set, but no local certificates were negotiated. > Is the server set to ask for client authorization? > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) > at java.lang.reflect.Constructor.newInstance(Unknown Source) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1334) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1318) > at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) > at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:623) > at > org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271) > at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:541) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:474) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:377) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:330) > at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) > at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134) > ... 14 more > Caused by: org.apache.cxf.transport.http.UntrustedURLConnectionIOException: > RequireClientCertificate is set, but no local certificates were negotiated. > Is the server set to ask for client authorization? > at > org.apache.cxf.ws.security.policy.interceptors.HttpsTokenInterceptorProvider$HttpsTokenOutInterceptor$1.establishTrust(HttpsTokenInterceptorProvider.java:117) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.makeTrustDecision(HTTPConduit.java:1680) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1264) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1234) > at > org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.onFirstWrite(URLConnectionHTTPConduit.java:195) > at > org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:47) > at > org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:12
[jira] [Commented] (CXF-5525) Client - UntrustedURLConnectionIOException even the HTTPS established with client certificate auth
[ https://issues.apache.org/jira/browse/CXF-5525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14255645#comment-14255645 ] Istvan Kis commented on CXF-5525: - Is there any verified workaround for this? > Client - UntrustedURLConnectionIOException even the HTTPS established with > client certificate auth > -- > > Key: CXF-5525 > URL: https://issues.apache.org/jira/browse/CXF-5525 > Project: CXF > Issue Type: Bug > Environment: java 1.6.0_45 and 1.7.0_45 on Windows 8, CXF version > 2.7.6 >Reporter: Jakub Neubauer > > Hi, > I'm facing issue with CXF client. I have a Java client generated from WSDL. > The WSDL contains RequireClientCertificate="true" in the Policy. I'm calling > a web service over HTTPS with client certificate authentication. Although > HTTPS connection is established and with client certificate authentication > (ensured with -Djavax.net.debug=all), calling a WS method throws exception. > The strange thing is, that the first call succeeded and the second and all > other calls, fail with this exception (!). The other calls can be done with > the same client object or can create new, no matter. The client object is > created as follows: > {code} > // our custom ssl settings, with client cert auth in this case. > SSLSocketFactory sslSockF = > createSSLSocketFactoryFromProperties(_properties); > ProductionService service = new ProductionService( > new URL(myURL), > new QName("http://mycompany.com/api/productionService";, > "ProductionService")); > port = service.getBasicHttpBindingIProductionService(); > Client client = ClientProxy.getClient(port); > HTTPConduit http = (HTTPConduit) client.getConduit(); > TLSClientParameters tlsParams = new TLSClientParameters(); > tlsParams.setDisableCNCheck(true); > tlsParams.setSSLSocketFactory(sslSockF); > http.setTlsClientParameters(tlsParams); > return port; > {code} > The exception: > {noformat} > - > etc... > Caused by: org.apache.cxf.transport.http.UntrustedURLConnectionIOException: > UntrustedURLConnectionIOException invoking > https://192.168.101.14/myApplication/services/ProductionService.svc: > RequireClientCertificate is set, but no local certificates were negotiated. > Is the server set to ask for client authorization? > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) > at java.lang.reflect.Constructor.newInstance(Unknown Source) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1334) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1318) > at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) > at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:623) > at > org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271) > at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:541) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:474) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:377) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:330) > at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) > at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134) > ... 14 more > Caused by: org.apache.cxf.transport.http.UntrustedURLConnectionIOException: > RequireClientCertificate is set, but no local certificates were negotiated. > Is the server set to ask for client authorization? > at > org.apache.cxf.ws.security.policy.interceptors.HttpsTokenInterceptorProvider$HttpsTokenOutInterceptor$1.establishTrust(HttpsTokenInterceptorProvider.java:117) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.makeTrustDecision(HTTPConduit.java:1680) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1264) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1234) > at > org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.onFirstWrite(URLConnectionHTTPConduit.java:195) > at > org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:47) > at > org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStrea
[jira] [Commented] (CXF-5525) Client - UntrustedURLConnectionIOException even the HTTPS established with client certificate auth
[ https://issues.apache.org/jira/browse/CXF-5525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14255644#comment-14255644 ] Istvan Kis commented on CXF-5525: - Is there any verified solution for this? > Client - UntrustedURLConnectionIOException even the HTTPS established with > client certificate auth > -- > > Key: CXF-5525 > URL: https://issues.apache.org/jira/browse/CXF-5525 > Project: CXF > Issue Type: Bug > Environment: java 1.6.0_45 and 1.7.0_45 on Windows 8, CXF version > 2.7.6 >Reporter: Jakub Neubauer > > Hi, > I'm facing issue with CXF client. I have a Java client generated from WSDL. > The WSDL contains RequireClientCertificate="true" in the Policy. I'm calling > a web service over HTTPS with client certificate authentication. Although > HTTPS connection is established and with client certificate authentication > (ensured with -Djavax.net.debug=all), calling a WS method throws exception. > The strange thing is, that the first call succeeded and the second and all > other calls, fail with this exception (!). The other calls can be done with > the same client object or can create new, no matter. The client object is > created as follows: > {code} > // our custom ssl settings, with client cert auth in this case. > SSLSocketFactory sslSockF = > createSSLSocketFactoryFromProperties(_properties); > ProductionService service = new ProductionService( > new URL(myURL), > new QName("http://mycompany.com/api/productionService";, > "ProductionService")); > port = service.getBasicHttpBindingIProductionService(); > Client client = ClientProxy.getClient(port); > HTTPConduit http = (HTTPConduit) client.getConduit(); > TLSClientParameters tlsParams = new TLSClientParameters(); > tlsParams.setDisableCNCheck(true); > tlsParams.setSSLSocketFactory(sslSockF); > http.setTlsClientParameters(tlsParams); > return port; > {code} > The exception: > {noformat} > - > etc... > Caused by: org.apache.cxf.transport.http.UntrustedURLConnectionIOException: > UntrustedURLConnectionIOException invoking > https://192.168.101.14/myApplication/services/ProductionService.svc: > RequireClientCertificate is set, but no local certificates were negotiated. > Is the server set to ask for client authorization? > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) > at java.lang.reflect.Constructor.newInstance(Unknown Source) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1334) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1318) > at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) > at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:623) > at > org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271) > at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:541) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:474) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:377) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:330) > at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) > at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134) > ... 14 more > Caused by: org.apache.cxf.transport.http.UntrustedURLConnectionIOException: > RequireClientCertificate is set, but no local certificates were negotiated. > Is the server set to ask for client authorization? > at > org.apache.cxf.ws.security.policy.interceptors.HttpsTokenInterceptorProvider$HttpsTokenOutInterceptor$1.establishTrust(HttpsTokenInterceptorProvider.java:117) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.makeTrustDecision(HTTPConduit.java:1680) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1264) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1234) > at > org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.onFirstWrite(URLConnectionHTTPConduit.java:195) > at > org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:47) > at > org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.
[jira] [Commented] (CXF-6170) Demo jax_rs/spring_security throws exception
[ https://issues.apache.org/jira/browse/CXF-6170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14255619#comment-14255619 ] Guopu Wu commented on CXF-6170: --- Proposed fix will be added through a PR > Demo jax_rs/spring_security throws exception > > > Key: CXF-6170 > URL: https://issues.apache.org/jira/browse/CXF-6170 > Project: CXF > Issue Type: Bug > Components: Samples >Affects Versions: 3.0.3 > Environment: Maven 3.2.3, JDK 6, Win 7 >Reporter: Guopu Wu > > Dec 18, 2014 12:38:40 PM org.eclipse.jetty.server.Server doStart > INFO: jetty-8.1.15.v20140411 > Dec 18, 2014 12:38:40 PM org.eclipse.jetty.webapp.WebInfConfiguration unpack > INFO: Extract > jar:file:/D:/svn_work/artix_product_cxf301/artix_esb/test/kit/target/Progress_Artix/samples/cxf/jax_rs/spring_security/target/JAXRSSpringSecurity.war!/ > to > D:\svn_work\artix_product_cxf301\artix_esb\test\kit\target\Progress_Artix\samples\cxf\jax_rs\spring_security\target\JAXRSSpringSecurity > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in > [jar:file:/D:/svn_work/artix_product_cxf301/artix_esb/test/kit/target/Progress_Artix/samples/cxf/jax_rs/spring_security/target/JAXRSSpringSecurity/WEB-INF/lib/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in > [jar:file:/C:/Users/GuopuW/.m2/repository/org/slf4j/slf4j-jdk14/1.7.7/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > explanation. > SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory] > Dec 18, 2014 12:38:42 PM org.eclipse.jetty.webapp.StandardDescriptorProcessor > visitServlet > INFO: NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet > Dec 18, 2014 12:38:42 PM > org.eclipse.jetty.server.handler.ContextHandler$Context log > INFO: Initializing Spring root WebApplicationContext > Dec 18, 2014 12:38:42 PM org.springframework.web.context.ContextLoader > initWebApplicationContext > INFO: Root WebApplicationContext: initialization started > Dec 18, 2014 12:38:42 PM > org.springframework.context.support.AbstractApplicationContext prepareRefresh > INFO: Refreshing Root WebApplicationContext: startup date [Thu Dec 18 > 12:38:42 GMT 2014]; root of context hierarchy > Dec 18, 2014 12:38:42 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from ServletContext resource > [/WEB-INF/beans.xml] > Dec 18, 2014 12:38:43 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/cxf/cxf.xml] > Dec 18, 2014 12:38:44 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/cxf/cxf-servlet.xml] > Dec 18, 2014 12:38:44 PM org.springframework.web.context.ContextLoader > initWebApplicationContext > SEVERE: Context initialization failed > org.springframework.beans.factory.parsing.BeanDefinitionParsingException: > Configuration problem: Unable to locate Spring NamespaceHandler for XML > schema namespace [http://www.springframework.org/schema/security] > Offending resource: ServletContext resource [/WEB-INF/beans.xml] > at > org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) > at > org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) > at > org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:318) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1435) > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:195) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:139) > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:108) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionRe
[jira] [Created] (CXF-6170) Demo jax_rs/spring_security throws exception
Guopu Wu created CXF-6170: - Summary: Demo jax_rs/spring_security throws exception Key: CXF-6170 URL: https://issues.apache.org/jira/browse/CXF-6170 Project: CXF Issue Type: Bug Components: Samples Affects Versions: 3.0.3 Environment: Maven 3.2.3, JDK 6, Win 7 Reporter: Guopu Wu Dec 18, 2014 12:38:40 PM org.eclipse.jetty.server.Server doStart INFO: jetty-8.1.15.v20140411 Dec 18, 2014 12:38:40 PM org.eclipse.jetty.webapp.WebInfConfiguration unpack INFO: Extract jar:file:/D:/svn_work/artix_product_cxf301/artix_esb/test/kit/target/Progress_Artix/samples/cxf/jax_rs/spring_security/target/JAXRSSpringSecurity.war!/ to D:\svn_work\artix_product_cxf301\artix_esb\test\kit\target\Progress_Artix\samples\cxf\jax_rs\spring_security\target\JAXRSSpringSecurity SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/D:/svn_work/artix_product_cxf301/artix_esb/test/kit/target/Progress_Artix/samples/cxf/jax_rs/spring_security/target/JAXRSSpringSecurity/WEB-INF/lib/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/Users/GuopuW/.m2/repository/org/slf4j/slf4j-jdk14/1.7.7/slf4j-jdk14-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory] Dec 18, 2014 12:38:42 PM org.eclipse.jetty.webapp.StandardDescriptorProcessor visitServlet INFO: NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet Dec 18, 2014 12:38:42 PM org.eclipse.jetty.server.handler.ContextHandler$Context log INFO: Initializing Spring root WebApplicationContext Dec 18, 2014 12:38:42 PM org.springframework.web.context.ContextLoader initWebApplicationContext INFO: Root WebApplicationContext: initialization started Dec 18, 2014 12:38:42 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh INFO: Refreshing Root WebApplicationContext: startup date [Thu Dec 18 12:38:42 GMT 2014]; root of context hierarchy Dec 18, 2014 12:38:42 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/beans.xml] Dec 18, 2014 12:38:43 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml] Dec 18, 2014 12:38:44 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-servlet.xml] Dec 18, 2014 12:38:44 PM org.springframework.web.context.ContextLoader initWebApplicationContext SEVERE: Context initialization failed org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security] Offending resource: ServletContext resource [/WEB-INF/beans.xml] at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:318) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1435) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:195) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:139) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:108) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:1
Issues with Attachments: week of 2014-12-22
CXF - Monday, December 22, 2014 4 Issues with Attachments (sorted oldest to newest) [CXF-6050] NullPointerException while creating custom exception in CXF client - Created: 2014-10-14 - Updated: 2014-11-25 - Type: Bug - Fix Versions: [] - Reporter: Vladimir Plizga - Assigned: Unassigned - Attachments: [Fault.java, Fault_Exception.java, cxf-test.zip] - https://issues.apache.org/jira/browse/CXF-6050 [CXF-6085] JWE JSON Serialization - Created: 2014-11-05 - Updated: 2014-12-02 - Type: New Feature - Fix Versions: [] - Reporter: Daniel Torkian - Assigned: Unassigned - Attachments: [initJSONJWE.txt] - https://issues.apache.org/jira/browse/CXF-6085 [CXF-6116] memory leak in web service client with WS Addressing feature - Created: 2014-11-25 - Updated: 2014-11-25 - Type: Bug - Fix Versions: [] - Reporter: Levente Kiss - Assigned: Unassigned - Attachments: [heapdump_classes.PNG, heapdump_reference.PNG, memory_usage.PNG] - https://issues.apache.org/jira/browse/CXF-6116 [CXF-6166] Parsing Bug in org.apache.cxf.jaxrs.provider.json.JsonMapObjectReaderWriter - Created: 2014-12-18 - Updated: 2014-12-19 - Type: Bug - Fix Versions: [] - Reporter: Daniel Torkian - Assigned: Unassigned - Attachments: [bugJsonMapObjectReaderWriter.txt] - https://issues.apache.org/jira/browse/CXF-6166