Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F30B10484 for ; Fri, 24 Oct 2014 03:51:34 +0000 (UTC) Received: (qmail 87857 invoked by uid 500); 24 Oct 2014 03:51:34 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 87825 invoked by uid 500); 24 Oct 2014 03:51:34 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 87814 invoked by uid 99); 24 Oct 2014 03:51:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Oct 2014 03:51:33 +0000 Date: Fri, 24 Oct 2014 03:51:33 +0000 (UTC) From: "Freeman Fang (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-6061) The publish attribute on jaxws:endpoint doesn't support placeholder in spring configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-6061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14182397#comment-14182397 ] Freeman Fang commented on CXF-6061: ----------------------------------- Hi, Property placeholder doesn't work for attribute/element if its type defined in schema isn't "string" is a known issue for spring/spring-dm. This should be fixed at spring side IMO, something like do the substitute first then do the validation. Here is a workaround anyway, add a file in your bundle /src/main/resources/META-INF/spring.schemas and the content in this file is http\://cxf.apache.org/schemas/jaxws.xsd=jaxws.xsd so this bundle will use local jaxws.xsd, and in the local jaxws.xsd, just change from to so that the placeholder is working for "publish". As I mentioned real problem is in Spring, so I will close this issue now. Freeman > The publish attribute on jaxws:endpoint doesn't support placeholder in spring configuration > ------------------------------------------------------------------------------------------- > > Key: CXF-6061 > URL: https://issues.apache.org/jira/browse/CXF-6061 > Project: CXF > Issue Type: Bug > Components: JAX-WS Runtime > Affects Versions: 2.7.12 > Reporter: Xilai Dai > > Given this jaxws:endpoint configuration in spring: > {code} > > false > /MonitoringServiceSOAP > ...... > > > implementor="#MonitoringServiceWrapper" > address="${monitoringServiceUrl}"> > ...... > > {code} > then the SAXParseException will be thrown when deploy this jaxws service. > {code} > 11:10:20,112 | ERROR | ExtenderThread-9 | BundleApplicationContextListener 50 | 94 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=my-server, config=osgibundle:/META-INF/spring/*.xml)) > org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 56 in XML document from URL [bundleentry://266.fwk1315137858/META-INF/spring/server-osgi.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '${startMonitoringService}' is not a valid value for 'boolean'. > at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)[87:org.springframework.beans:3.2.4.RELEASE] > at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[87:org.springframework.beans:3.2.4.RELEASE] > at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[87:org.springframework.beans:3.2.4.RELEASE] > at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)[87:org.springframework.beans:3.2.4.RELEASE] > at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)[87:org.springframework.beans:3.2.4.RELEASE] > at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)[87:org.springframework.beans:3.2.4.RELEASE] > at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164)[93:org.springframework.osgi.core:1.2.1] > at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136)[93:org.springframework.osgi.core:1.2.1] > at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[89:org.springframework.context:3.2.4.RELEASE] > at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)[89:org.springframework.context:3.2.4.RELEASE] > at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[93:org.springframework.osgi.core:1.2.1] > at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[93:org.springframework.osgi.core:1.2.1] > at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[93:org.springframework.osgi.core:1.2.1] > at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[93:org.springframework.osgi.core:1.2.1] > at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214)[94:org.springframework.osgi.extender:1.2.1] > at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)[94:org.springframework.osgi.extender:1.2.1] > at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[93:org.springframework.osgi.core:1.2.1] > at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)[94:org.springframework.osgi.extender:1.2.1] > at java.lang.Thread.run(Thread.java:744)[:1.7.0_51] > Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '${startMonitoringService}' is not a valid value for 'boolean'. > at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)[:] > at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)[:] > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)[:] > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)[:] > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)[:] > at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)[:] > at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)[:] > at org.apache.xerces.impl.xs.XMLSchemaValidator.processOneAttribute(Unknown Source)[:] > at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source)[:] > at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)[:] > at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)[:] > at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)[:] > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)[:] > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)[:] > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[:] > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[:] > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)[:] > at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)[:] > at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)[:] > at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)[87:org.springframework.beans:3.2.4.RELEASE] > at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)[87:org.springframework.beans:3.2.4.RELEASE] > ... 18 more > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)