更新时间:2021-07-24 22:16:30
因此,我可以再次向我的愚蠢致敬.
除了在module.xml
文件中有错别字外,我所做的一切都没错.
请注意,在上面的代码中,某些单词之间没有空格(")-不知何故它们迷路了.
但是更糟糕的是,显然这些模块文件没有被jboss验证,这就是为什么我从未意识到这一点.无论如何,这里是没有错别字的正确配置...
So once more I can pay tribute to my stupidity.
I did everything right except I had typos in my module.xml
file.
Notice that in the code above are no blanks (" ") between some words - somehow they got lost.
But what's even worse is that apparantly these module-files are not validated by jboss, that's why I never realized it. Anyway here's the correct config without the typos...
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.mysql">
<resources>
<resource-root path="mysql-connector-java-5.1.26-bin.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
</dependencies>
</module>