简体   繁体   English

JBoss模块的示例module.xml给出了解析错误

[英]Example module.xml for JBoss module gives parse errors

I'm trying to deploy the jaybird jdbc driver as a JBoss module very simply. 我正在尝试非常简单地将jaybird jdbc驱动程序部署为JBoss模块。 I wrote a very simple module.xml for it here: 我在这里为此编写了一个非常简单的module.xml:

<?xml version="1.0" encoding="UTF-8"?>

<module xmlns="urn:jboss:module:1.6" name="org.firebirdsql.jdbc.jaybird-jdk18" version="3.0.1">
    <resources>
        <resource-root path="jaybird-jdk18-3.0.1.jar"/>
    </resources>
</module>

But when I load the module that depends on it I get an error with the line: 但是,当我加载依赖它的模块时,出现以下错误:

Caused by: org.jboss.modules.xml.XmlPullParserException: Unknown attribute \"version\" from namespace \"\" (position: START_TAG seen ...le:1.6\" name=\"org.firebirdsql.jdbc.jaybird-jdk18\" version=\"3.0.1\">... @3:96) "}}}}

I don't understand the error since the documentation at https://jboss-modules.github.io/jboss-modules/manual/#module-descriptors says the version attribute exists from version 1.6. 我不明白该错误,因为https://jboss-modules.github.io/jboss-modules/manual/#module-descriptors上的文档说version属性存在于1.6版本中。 In fact if I just copy and paste the example XML from that page I still get the same parse error. 实际上,如果仅从该页面复制并粘贴示例XML,我仍然会遇到相同的解析错误。

It seems like it must be using the wrong schema but I can't see anything in the documentation to explain why that would be. 似乎必须使用了错误的架构,但是我看不到文档中的任何内容来解释为什么会这样。

I don't know the version of your jboss. 我不知道您的jboss版本。 But you could check the schema under: $JBOSS_HOME/docs/schema, there is module-1_0.xsd, module1_1.xsd and so on. 但是您可以检查以下模式:$ JBOSS_HOME / docs / schema,其中有module-1_0.xsd,module1_1.xsd等。 If there isn't a file like module-1_6.xsd, then your JBoss doesn't support this schema. 如果没有类似module-1_6.xsd的文件,则您的JBoss不支持该模式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM