Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CD09378DD for ; Tue, 20 Sep 2011 14:52:30 +0000 (UTC) Received: (qmail 64991 invoked by uid 500); 20 Sep 2011 14:52:30 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 64965 invoked by uid 500); 20 Sep 2011 14:52:30 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 64957 invoked by uid 99); 20 Sep 2011 14:52:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Sep 2011 14:52:30 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Sep 2011 14:52:29 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3CECCA4BE5 for ; Tue, 20 Sep 2011 14:52:09 +0000 (UTC) Date: Tue, 20 Sep 2011 14:52:09 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: dev@camel.apache.org Message-ID: <1109482089.46383.1316530329246.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1161234740.15164.1312755027180.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CAMEL-4312) Print reason for XSL stylesheet compile failure 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/CAMEL-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108754#comment-13108754 ] Claus Ibsen commented on CAMEL-4312: ------------------------------------ Ioannis thanks for the patch. Could you read about building with checkstyle here: http://camel.apache.org/building.html As the source code in Camel should pass the checkstyle. So I had to refine a bit in your patch. > Print reason for XSL stylesheet compile failure > ------------------------------------------------ > > Key: CAMEL-4312 > URL: https://issues.apache.org/jira/browse/CAMEL-4312 > Project: Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 2.6.0 > Environment: ServiceMix 4.3.1-fuse-01-22 > Reporter: Michael Smith > Assignee: Ioannis Canellos > Priority: Minor > Fix For: 2.9.0 > > Attachments: CAMEL-4312-patch.txt > > > Failure to compile a resource in an xslt:// URL leads to this error message: > org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route route39 at: >>> To[xslt://foo.xslt] <<< in route: Route[[From[direct:foo]] -> [To[xslt://foo.xslt... because of Failed to resolve endpoint: xslt://foo.xslt due to: > Could not compile stylesheet class path resource [foo.xslt] > ... > Caused by: javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet > at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:877)[:] > at org.apache.camel.builder.xml.XsltBuilder.setTransformerSource(XsltBuilder.java:252)[68:org.apache.camel.camel-core:2.6.0.fuse-01-22] > at org.apache.camel.builder.xml.XsltBuilder.setTransformerInputStream(XsltBuilder.java:282)[68:org.apache.camel.camel-core:2.6.0.fuse-01-22] > at org.apache.camel.component.xslt.XsltComponent.loadResource(XsltComponent.java:156)[75:org.apache.camel.camel-spring:2.6.0.fuse-01-22] > ... 33 more > Which is completely correct, but doesn't provide much of a hint as to how to fix my stylesheet :) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira