wildfly does not run on Power8 hardware
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wildfly (Juju Charms Collection) |
Fix Committed
|
Low
|
Unassigned |
Bug Description
I am doing testing on power pc architecture and I noticed that the wildfly charm does not run on that platform.
Here is the error message from the charm unit logs:
2014-08-06 17:56:32 INFO juju-log Starting wildfly apllication server
2014-08-06 17:56:32 INFO config-changed * Starting WildFly Application Server wildfly
2014-08-06 17:57:03 INFO config-changed ...fail!
2014-08-06 17:57:03 INFO config-changed * WildFly Application Server hasn't started within the timeout allowed
2014-08-06 17:57:03 INFO config-changed * please review file /var/log/
/var/log/
=======
JBoss Bootstrap Environment
JBOSS_HOME: /opt/wildfly
JAVA: /usr/lib/
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MaxPermSize
=======
/opt/wildfly/
7191
I did some digging and I see that the /etc/init.d/wildfly file hardcodes "amd64" for JAVA_HOME. This is the reason that wildfly does not work on ppc64el architecture. When I chagned amd64 to ppc64el I got wildfly to come up. This file is based on the templates/
We need to set the JAVA_HOME in a more architecture independent way. The way I came up with is using the readlink command on the /etc/alterative
JAVA_HOME=
tags: | added: ppc64le |
tags: | added: ppc64el |
tags: | removed: ppc64le |
Changed in wildfly (Juju Charms Collection): | |
status: | New → Fix Committed |
Changed in wildfly (Juju Charms Collection): | |
status: | New → Fix Committed |
Hi Matt,
I have done the code change to fix this bug and have raised a merge proposal of the recent code to the upstream charm.
Thanks,
Saurabh