WildFly 37.0.0.Final Management Console Bug

45 views
Skip to first unread message

Osman Balci

unread,
Aug 29, 2025, 7:21:02 PM (7 days ago) Aug 29
to WildFly
The following module.xml file:
-----
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.9">
    <resources>
        <resource-root path="mysql-connector-j-9.4.0.jar"/>
    </resources>
    <dependencies>
        <module name="jakarta.api"/>
        <module name="jakarta.transaction.api"/>
        <module name="jakarta.xml.bind.api"/>
    </dependencies>
</module>
------
is placed in /Installation Folder/wildfly/modules/system/layers/base/com/mysql/main/
directory together with mysql-connector-j-9.4.0.jar

When added using the management console, it produces:
WFLYJCA0041: Failed to load module for driver [com.mysql]
WFLYJCA0115: Module for driver [com.mysql] or one of its dependencies is missing: [jakarta.api]

As a workaround, I inserted the following code in the standalone.xml configuration file, which fixed the problem.
                    <driver name="mysql" module="com.mysql">
                        <driver-class>com.mysql.cj.jdbc.Driver</driver-class>
                        <xa-datasource-class>com.mysql.cj.jdbc.MysqlXADataSource</xa-datasource-class>
                    </driver>

This tells me that the management console has a bug and is unable to add the JDBC driver as a module.

Bartosz Baranowski

unread,
Sep 1, 2025, 4:45:42 AM (5 days ago) Sep 1
to WildFly
By management console you mean CLI or HAL?

As to error message it does not make much sense without above context or exact steps you performed. Can you provide exact step-by-step guide how to reproduce?

Osman Balci

unread,
Sep 1, 2025, 9:50:33 AM (4 days ago) Sep 1
to WildFly
Here are the instructions for my students to open the Management Console:

Screenshot.png

Bartosz Baranowski

unread,
8:04 AM (10 hours ago) 8:04 AM
to WildFly
✘-INT ~/redhat/git/wildfly/ee-dist/target/wildfly-38.0.0.Beta1-SNAPSHOT [master|⚑ 6]  
13:46 $ ll modules/system/layers/base/jakarta/
total 96K
drwxrwxr-x 24 baranowb baranowb 4,0K wrz  5 13:17 ./
drwxrwxr-x 17 baranowb baranowb 4,0K wrz  5 13:17 ../
drwxrwxr-x  3 baranowb baranowb 4,0K wrz  5 13:17 activation/
drwxrwxr-x  3 baranowb baranowb 4,0K wrz  5 13:17 annotation/
drwxrwxr-x  3 baranowb baranowb 4,0K wrz  5 13:17 batch/
drwxrwxr-x  3 baranowb baranowb 4,0K wrz  5 13:17 data/
drwxrwxr-x  3 baranowb baranowb 4,0K wrz  5 13:17 ejb/
drwxrwxr-x  3 baranowb baranowb 4,0K wrz  5 13:17 el/
drwxrwxr-x  4 baranowb baranowb 4,0K wrz  5 13:17 enterprise/
drwxrwxr-x  4 baranowb baranowb 4,0K wrz  5 13:17 faces/
drwxrwxr-x  3 baranowb baranowb 4,0K wrz  5 13:17 inject/
drwxrwxr-x  3 baranowb baranowb 4,0K wrz  5 13:17 interceptor/
drwxrwxr-x  3 baranowb baranowb 4,0K wrz  5 13:17 jms/
drwxrwxr-x  4 baranowb baranowb 4,0K wrz  5 13:17 json/
drwxrwxr-x  3 baranowb baranowb 4,0K wrz  5 13:17 mail/
drwxrwxr-x  3 baranowb baranowb 4,0K wrz  5 13:17 persistence/
drwxrwxr-x  3 baranowb baranowb 4,0K wrz  5 13:17 resource/
drwxrwxr-x  5 baranowb baranowb 4,0K wrz  5 13:17 security/
drwxrwxr-x  5 baranowb baranowb 4,0K wrz  5 13:17 servlet/
drwxrwxr-x  3 baranowb baranowb 4,0K wrz  5 13:17 transaction/
drwxrwxr-x  3 baranowb baranowb 4,0K wrz  5 13:17 validation/
drwxrwxr-x  3 baranowb baranowb 4,0K wrz  5 13:17 websocket/
drwxrwxr-x  3 baranowb baranowb 4,0K wrz  5 13:17 ws/
drwxrwxr-x  5 baranowb baranowb 4,0K wrz  5 13:17 xml/


Also, Im fairly sure you wont get as far as missing jakarta.api, since module.xml is missing "name" attribute in "module" tag.  IF server does not explode when you put that piece of XML than there is a bug or feature elsewhere.


This should do the trick:

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.9" name="com.mysql">

    <resources>
        <resource-root path="mysql-connector-j-9.4.0.jar"/>
    </resources>
    <dependencies>
        <module name="javax.api"/>
        <module name="javax.transaction.api"/>

        <module name="jakarta.xml.bind.api"/>
       
    </dependencies>
</module>

Reply all
Reply to author
Forward
0 new messages