0

我试图在 war 文件中部署一个 Apache Camel 应用程序。Webapp结构如下:

webapp
..WEB-INF
...folder1
....event.xsl

下面的代码不起作用,我收到错误“在类路径中找不到资源”

    <route>
        <from uri="seda:trade2confirmation" />
        <to uri="xslt:/WEB-INF/folder1/event.xsl" />
        <to uri="log:output?showAll=true" />
    </route>

访问 event.xsl 文件的正确方法是什么?

4

1 回答 1

1

你使用什么网络容器?什么骆驼版本?

你有没有试过没有前导/斜线。

<to uri="xslt:WEB-INF/folder1/event.xsl" />
于 2012-11-05T08:14:53.760 回答