Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F18B8B49C for ; Sun, 22 Jan 2012 07:43:59 +0000 (UTC) Received: (qmail 20460 invoked by uid 500); 22 Jan 2012 07:43:58 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 20090 invoked by uid 500); 22 Jan 2012 07:43:52 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 20077 invoked by uid 99); 22 Jan 2012 07:43:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2012 07:43:45 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [74.50.49.35] (HELO sosnoski.com) (74.50.49.35) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2012 07:43:38 +0000 Received: from [192.168.0.65] (ip-58-28-158-218.static-xdsl.xnet.co.nz [58.28.158.218]) (authenticated bits=0) by sosnoski.com (8.12.10/8.12.10) with ESMTP id q0M7hDs2013781 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 22 Jan 2012 02:43:16 -0500 Message-ID: <4F1BBE64.5030703@sosnoski.com> Date: Sun, 22 Jan 2012 20:44:36 +1300 From: Dennis Sosnoski User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: users@cxf.apache.org Subject: Invalid property 'bus' of bean class error Spring problem Content-Type: multipart/alternative; boundary="------------070807090407010100070302" --------------070807090407010100070302 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I'm trying to put together a maven build for a JAX-WS CXF client using WS-Security (with policy configured from WSDL), but I'm getting the error from the subject line. I haven't tried using CXF WS-Security from Maven before, so I suspect my problem is somehow in my Maven configuration. Here are my Maven dependencies: 2.5.1 3.0.6.RELEASE UTF-8 org.apache.cxf cxf-rt-core ${cxf.version} org.apache.cxf cxf-rt-ws-security ${cxf.version} org.apache.cxf cxf-rt-ws-addr ${cxf.version} org.apache.cxf cxf-rt-ws-policy ${cxf.version} org.apache.cxf cxf-rt-transports-http ${cxf.version} org.apache.cxf cxf-rt-frontend-jaxws ${cxf.version} org.apache.cxf cxf-common-utilities ${cxf.version} org.springframework spring-core ${spring.version} org.springframework spring-beans ${spring.version} org.springframework spring-context ${spring.version} org.springframework spring-web ${spring.version} javax.xml.bind jaxb-api 2.1 com.sun.xml.bind jaxb-impl 2.1.3 org.apache.ws.security wss4j 1.6.4 Here's my cxf.xml file: When I run in Eclipse I can see the full stack trace: INFO: Creating Service {urn:xxx:xxxservice:3.0.0}XxxService3 from WSDL: file:/secure/dennis/projects/minedu/wcf-test/common/src/main/resources/model/XxxService.svc.xml Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name '{urn:xxx:xxxservice:3.0.0}XxxService3': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'bus' of bean class [org.apache.cxf.service.ServiceImpl]: Bean property 'bus' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1361) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.configureBean(AbstractAutowireCapableBeanFactory.java:314) at org.springframework.beans.factory.wiring.BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:146) at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:151) at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:115) at org.apache.cxf.jaxws.ServiceImpl.configureObject(ServiceImpl.java:548) at org.apache.cxf.jaxws.ServiceImpl.configureObject(ServiceImpl.java:542) at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:478) at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:332) at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:319) at javax.xml.ws.Service.getPort(Service.java:92) at xxx.XxxService3.getCustomBindingIServices(XxxService3.java:58) at xxx.XxxService3.main(Xxx3Client.java:33) Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'bus' of bean class [org.apache.cxf.service.ServiceImpl]: Bean property 'bus' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1052) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:921) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:76) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1358) Anyone have any suggestions about what I'm doing wrong? Thanks! - Dennis -- Dennis M. Sosnoski Java SOA and Web Services Consulting CXF and Web Services Security Training Web Services Jump-Start --------------070807090407010100070302--