You may need to change '\' to '/' proprly encode windows path as URI. This may require to use a lot of /, e.g. file:////, but I dont remember exact number.
Best regards, Vitalii Tymchyshyn Пт, 30 вер. 2016 17:02 користувач David Hoffer <dhoff...@gmail.com> пише: > I have a Camel xslt uri defined as: > > <to > > uri="xslt:file://{{gangplank.home}}/config/xslt/EphemerisIngestRequest.xsl"/> > > which works fine if {{gangplank.home}} is a local path. However now > gangplank.home points to a network share so it looks something like > \\jmsshares\Utility\gangplank > > Now camel fails to resolve with: > > INFO|5848/0|Service Gangplank Server|16-09-30 20:55:39|Caused by: > org.apache.camel.RuntimeCamelException: > org.apache.camel.FailedToCreateRouteException: Failed to create route > to_ephemerisIngest at: >>> > > To[xslt:file://\\jmsshares\Utility\gangplank/config/xslt/EphemerisIngestRequest.xsl] > <<< in route: > Route(to_ephemerisIngest)[[From[file://\\jmsshares\Utility\g... because of > Failed to resolve endpoint: > > xslt://file://%5C%5Cjmsshares%5CUtility%5Cgangplank/config/xslt/EphemerisIngestRequest.xsl > due to: java.io.FileNotFoundException: > \jmsshares\Utility\gangplank\config\xslt\EphemerisIngestRequest.xsl (The > system cannot find the path specified) > > How can I specify an xslt URI that is on a network share? > > Also I see the FileNotFoundException message that it has removed one of the > leading \ characters but not sure if that's an issue. Also I see that it > URL encodes the path so \ becomes %5C but here too not sure if relevant. > > -Dave >