Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 83165 invoked from network); 21 Dec 2007 23:04:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Dec 2007 23:04:16 -0000 Received: (qmail 74729 invoked by uid 500); 21 Dec 2007 23:04:05 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 74715 invoked by uid 500); 21 Dec 2007 23:04:05 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 74706 invoked by uid 99); 21 Dec 2007 23:04:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Dec 2007 15:04:05 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Dec 2007 23:03:43 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5B738714045 for ; Fri, 21 Dec 2007 15:03:46 -0800 (PST) Message-ID: <6441587.1198278226371.JavaMail.jira@brutus> Date: Fri, 21 Dec 2007 15:03:46 -0800 (PST) From: "Eugene Gavrilov (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Commented: (CXF-507) Spring Config of portName and serviceName does not work In-Reply-To: <24158520.1175266705284.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554059 ] Eugene Gavrilov commented on CXF-507: ------------------------------------- I'm facing the same issue with 2.0.3. As the sample is mentioned in documentation so it's very strange to see this defect opened for 9 months. It's the first issue I found right after start with CXF. What are the suggested workarounds? > Spring Config of portName and serviceName does not work > ------------------------------------------------------- > > Key: CXF-507 > URL: https://issues.apache.org/jira/browse/CXF-507 > Project: CXF > Issue Type: Bug > Components: Configuration, JAX-WS Runtime > Affects Versions: 2.0-RC > Environment: Using 2.0-RC SNAPSHOT > Reporter: Chris Moesel > Assignee: Dan Diephouse > > The documentation at the following page indicates that a portName and serviceName can be specified as attributes in in the spring config file: > http://cwiki.apache.org/CXF20DOC/jax-ws-configuration.html > There are two issues: > 1) If the portName and serviceName are specified as recommended in the documentation, Spring does not properly parse the config file, due to the following exception: > org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '{http://mycompany.com/products/webservice}MyServicePort' is not a valid value for 'QName'. > I was able to get it to parse by adding the following to the root beans element: > xmlns:mws="http://mycompany.com/products/webservice" > And then specifying the portName like so: "mws:MyServicePort" > 2) Once you've gotten past #1 above, you get the following error: > org.springframework.beans.NotWritablePropertyException: Invalid property 'portName' of bean class [org.apache.cxf.jaxws.spring.EndpointFactoryBean]: Bean property 'portName' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? > Looking at the source code, it appears there are no setters for portName or serviceName: > http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spring/EndpointFactoryBean.java?view=markup -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.