-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to load module for org.postgresql #49
Comments
FROM jboss/wildfly ENV JBOSS_HOME /opt/jboss/wildfly USER root RUN set -x ADD module.xml /opt/jboss/wildfly/modules/org/postgres/main/ ADD standalone-zplatform.xml /opt/jboss/wildfly/standalone/configuration/ ADD com.zafin.zplatform.web-standard.war /opt/jboss/wildfly/standalone/deployments/ RUN chown -R jboss:0 /opt/jboss/wildfly/modules/org USER jboss CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-c", "standalone-zplatform.xml", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0"] |
@zafinxueqian - did you ever get this resolved? I'm facing the same issue, and this seems to work fine for natively installed wildfly |
I have the same issue. This is driving me nuts. |
This worked in my case:
|
have a look at your permissions on folder /opt/jboss/wildfly/modules/system/layers/base/org/postgresql/. they should be the same as all other module permissions |
check the postgres driver jar file is not corrupted and a can be read by the java process |
I created module.xml in
/opt/jboss/wildfly/modules/org/postgres/main and downloaded postgresql-9.4.1212.jar in the same folder.
Then I used my customer configuration file. I added datasource and postgres driver in it. But finally I got error:
ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 33) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "datasources"),
("jdbc-driver" => "postgresql")
]) - failure description: "WFLYJCA0041: Failed to load module for driver [org.postgresql]"
I think is a bug for adding postgresql driver, thanks
The text was updated successfully, but these errors were encountered: