Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-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 36B1C17245 for ; Wed, 13 May 2015 18:25:33 +0000 (UTC) Received: (qmail 28180 invoked by uid 500); 13 May 2015 18:25:32 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 28137 invoked by uid 500); 13 May 2015 18:25:32 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 28061 invoked by uid 99); 13 May 2015 18:25:32 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 May 2015 18:25:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B0FD8C48AE for ; Wed, 13 May 2015 18:25:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.01 X-Spam-Level: X-Spam-Status: No, score=-0.01 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Mcm7hupXO0m0 for ; Wed, 13 May 2015 18:25:21 +0000 (UTC) Received: from si-mailout04.si.edu (si-mailout04.si.edu [160.111.103.178]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id 23EE921784 for ; Wed, 13 May 2015 18:25:20 +0000 (UTC) Received: from SI-MSECHT01.US.SINET.SI.EDU (si-msecht01.us.sinet.si.edu [160.111.49.153]) by si-mailout04.si.edu (Postfix) with ESMTP id D8F02E624F for ; Wed, 13 May 2015 14:25:13 -0400 (EDT) Received: from SI-MSEDAG01.US.SINET.SI.EDU ([169.254.1.21]) by SI-MSECHT01.US.SINET.SI.EDU ([160.111.49.153]) with mapi id 14.03.0224.002; Wed, 13 May 2015 14:25:13 -0400 From: "Davis, Daniel" To: "users@camel.apache.org" Subject: Re: Schematron component: Not supported: http://saxon.sf.net/feature/linenumbering Thread-Topic: Schematron component: Not supported: http://saxon.sf.net/feature/linenumbering Thread-Index: AdCJpyB4jrKGZ/33TTuWrY/+TkvqhQ== Date: Wed, 13 May 2015 18:25:12 +0000 Message-ID: References: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [160.111.49.170] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 I tried with this Java DSL route. My code is showing a dependency on=0A= Saxon in ServiceMIx but I gather the camel-schematron component is doing=0A= its own binding to Xalan. So it results in the same exception when=0A= trying to start the route.=0A= =0A= http://pastie.org/10187203 (Java and POM)=0A= =0A= --=0A= Dan Davis=0A= =0A= On 05/13/2015 11:28 AM, Davis, Daniel wrote:=0A= > I have included the XML DSL version. I am working up a better Java DSL= =0A= > version. I can provoke the issue in a default ServiceMix 5.4.0 install= =0A= > with only the camel-schematron feature added. I have tried it with the= =0A= > Apache Saxon-He bundle installed too. In the ServiceMix log, the route= =0A= > fails to start with an exception that points to ServiceMix finding Xalan= =0A= > and never finding Saxon (snippet below). The Schematron rules run=0A= > correctly in Oxygen. My running theory is that the camel-schematron=0A= > component version needs Saxon for the linenumbering feature but does not= =0A= > have it set as a required import, but I am still learning about the=0A= > camel-schematron component. I am trying to get it working in the Java=0A= > DSL by resolving the Saxon dependencies in that code but that is not=0A= > done yet.=0A= >=0A= > Thank you for looking at this.=0A= >=0A= > --=0A= > Dan Davis=0A= >=0A= > http://pastie.org/10186857 (Contains test XML DSL route, Schematron=0A= > rules, and test xml file)=0A= >=0A= > Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to=0A= > resolve endpoint:=0A= > schematron:///opt/sidora/servicemix/Input/schemas/DeploymentManifest2014.= sch=0A= > due to: Not supported: http://saxon.sf.net/feature/linenumbering=0A= > at=0A= > org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext= .java:547)[116:org.apache.camel.camel-core:2.14.1]=0A= > at=0A= > org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContex= tHelper.java:72)[116:org.apache.camel.camel-core:2.14.1]=0A= > at=0A= > org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.ja= va:202)[116:org.apache.camel.camel-core:2.14.1]=0A= > at=0A= > org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteCon= text.java:107)[116:org.apache.camel.camel-core:2.14.1]=0A= > at=0A= > org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteCon= text.java:113)[116:org.apache.camel.camel-core:2.14.1]=0A= > at=0A= > org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java= :61)[116:org.apache.camel.camel-core:2.14.1]=0A= > at=0A= > org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java= :55)[116:org.apache.camel.camel-core:2.14.1]=0A= > at=0A= > org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinit= ion.java:500)[116:org.apache.camel.camel-core:2.14.1]=0A= > at=0A= > org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.= java:213)[116:org.apache.camel.camel-core:2.14.1]=0A= > at=0A= > org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:942= )[116:org.apache.camel.camel-core:2.14.1]=0A= > ... 38 more=0A= > Caused by: java.lang.IllegalArgumentException: Not supported:=0A= > http://saxon.sf.net/feature/linenumbering=0A= > at=0A= > org.apache.xalan.processor.TransformerFactoryImpl.setAttribute(Transforme= rFactoryImpl.java:571)[:]=0A= > at=0A= > org.apache.camel.component.schematron.processor.TemplatesFactory.newTempl= ates(TemplatesFactory.java:68)[260:org.apache.camel.camel-schematron:2.14.1= ]=0A= > at=0A= > org.apache.camel.component.schematron.SchematronEndpoint.doStart(Schematr= onEndpoint.java:103)[260:org.apache.camel.camel-schematron:2.14.1]=0A= > at=0A= > org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)[116= :org.apache.camel.camel-core:2.14.1]=0A= > at=0A= > org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContex= t.java:2148)[116:org.apache.camel.camel-core:2.14.1]=0A= > at=0A= > org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContex= t.java:1032)[116:org.apache.camel.camel-core:2.14.1]=0A= > at=0A= > org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.= java:993)[116:org.apache.camel.camel-core:2.14.1]=0A= > at=0A= > org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.= java:989)[116:org.apache.camel.camel-core:2.14.1]=0A= > at=0A= > org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext= .java:543)[116:org.apache.camel.camel-core:2.14.1]=0A= > ... 47 more=0A= >=0A= > --=0A= > Dan Davis=0A= >=0A= > On 05/13/2015 07:21 AM, Ayache Khettar wrote:=0A= >> Hi Daniel=0A= >>=0A= >> I will try to get a working example deployed into SMX this evening and s= ee=0A= >> if I can reproduce the error. Could you include the source code of your= =0A= >> working example so I could have a look?=0A= >>=0A= >> Regards,=0A= >>=0A= >> Ayache=0A= >> On 12 May 2015 at 23:49, Davis, Daniel wrote:=0A= >>=0A= >>> An update. I got rid of camel-saxon and the Saxon bundles. Then=0A= >>> created a Java DSL route packaged with Saxon-HE-9.6.0-5.jar. Same erro= r=0A= >>> message.=0A= >>>=0A= >>> In smx, it looks like camel-schematron is looking for parsers from the= =0A= >>> OSGI framework like - javax.xml.parsers,version=3D0.0.0=0A= >>> from org.apache.felix.framework (0)=0A= >>>=0A= >>> I presume if it find Xalan first this is going to be a problem. Onward= =0A= >>> and upward.=0A= >>>=0A= >>> --=0A= >>> Dan=0A= >>>=0A= >>> On 05/12/2015 04:49 PM, Davis, Daniel wrote:=0A= >>>> =0A= >>>>> + net.sf.saxon=0A= >>>>> + Saxon-HE=0A= >>>>> + ${saxon-version}=0A= >>>>> + =0A= >>>>>=0A= >=0A= =0A=