【问题标题】:How to use xml-apis in web application that will be running under JBoss 5.1?如何在 JBoss 5.1 下运行的 Web 应用程序中使用 xml-apis?
【发布时间】:2009-10-20 12:19:29
【问题描述】:

我们需要在 AIX 上 JBoss 下的 Web 应用程序中使用 jasper 报告。

今天我们尝试将xml-apis 添加到WEB-INF/lib 时遇到问题 - JBoss 根本没有启动。

我们应该怎么做才能在 JBoss 下使用xml-apis

PS。 据我所知,我们需要 org.w3c.dom.xpath.XPathEvaluator 和 org.w3c.dom.svg.*

【问题讨论】:

    标签: java jboss


    【解决方案1】:

    你确定需要吗? JBoss 已经在其标准库集中拥有这些 API,您的 WAR 应该可以自动访问它们。尝试从您的 WEB-INF/lib 中删除 JAR。

    替换 JBoss 的那个 JAR 副本的唯一方法是将它放在顶级 JBoss lib/endorsed 目录中,并确保它不会冲突。不过,这将影响整个 JBoss 服务器,因此您需要非常确定自己知道自己在做什么。 JBoss 本身使用这些库。

    【讨论】:

    • 据我所知,我们需要 org.w3c.dom.xpath.XPathEvaluator 和 org.w3c.dom.svg.*
    猜你喜欢
    • 1970-01-01
    • 2021-03-21
    • 2013-01-02
    • 1970-01-01
    • 2011-10-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多