You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by ge...@apache.org on 2018/03/08 14:54:24 UTC
[1/2] brooklyn-library git commit: Fix issue with JBoss 7 installation
Repository: brooklyn-library
Updated Branches:
refs/heads/master 77f898433 -> a2814bba2
Fix issue with JBoss 7 installation
Project: http://git-wip-us.apache.org/repos/asf/brooklyn-library/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-library/commit/c69336c2
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-library/tree/c69336c2
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-library/diff/c69336c2
Branch: refs/heads/master
Commit: c69336c23015a1b08acf3182b6f9437b0e0a2a1e
Parents: 77f8984
Author: Thomas Bouron <th...@cloudsoftcorp.com>
Authored: Thu Mar 8 12:55:17 2018 +0000
Committer: Thomas Bouron <th...@cloudsoftcorp.com>
Committed: Thu Mar 8 12:55:17 2018 +0000
----------------------------------------------------------------------
.../entity/webapp/jboss/JBoss7SshDriver.java | 26 ++++++++++++++++----
1 file changed, 21 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/brooklyn-library/blob/c69336c2/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/jboss/JBoss7SshDriver.java
----------------------------------------------------------------------
diff --git a/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/jboss/JBoss7SshDriver.java b/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/jboss/JBoss7SshDriver.java
index 081cd11..3627c27 100644
--- a/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/jboss/JBoss7SshDriver.java
+++ b/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/jboss/JBoss7SshDriver.java
@@ -123,15 +123,31 @@ public class JBoss7SshDriver extends JavaWebAppSshDriver implements JBoss7Driver
List<String> urls = resolver.getTargets();
String saveAs = resolver.getFilename();
- List<String> commands = new LinkedList<String>();
- commands.addAll(BashCommands.commandsToDownloadUrlsAs(urls, saveAs));
- commands.add(BashCommands.INSTALL_TAR);
- commands.add("tar xzfv " + saveAs);
+ List<String> installCommands = new LinkedList<String>();
+ installCommands.addAll(BashCommands.commandsToDownloadUrlsAs(urls, saveAs));
+ installCommands.add(BashCommands.INSTALL_TAR);
+ installCommands.add("tar xzfv " + saveAs);
newScript(INSTALLING)
// don't set vars yet -- it resolves dependencies (e.g. DB) which we don't want until we start
.environmentVariablesReset()
- .body.append(commands)
+ .body.append(installCommands)
+ .execute();
+
+ // The jboss-modules.jar that comes with jBoss 7.1.1 is of version 1.1.1.GA. However, this has issue on initialisation.
+ // Hopefully, version 1.1.5.GA fixes the init issue. However, as jBoss 7.1.1 is EOF, we need to download and replace
+ // this jar before starting up the server
+ // see: https://stackoverflow.com/questions/48403832/javax-xml-parsers-factoryconfigurationerror-running-jboss-as-7-1-with-java-7-upd
+ String installDir = getExpandedInstallDir();
+ List<String> fixBugCommands = new LinkedList<String>();
+ fixBugCommands.add(BashCommands.INSTALL_WGET);
+ fixBugCommands.add(format("rm %s/jboss-modules.jar", installDir));
+ fixBugCommands.add(format("wget http://repo1.maven.org/maven2/org/jboss/modules/jboss-modules/1.1.5.GA/jboss-modules-1.1.5.GA.jar -O %s/jboss-modules.jar", installDir));
+
+ newScript("fix JBoss 7.1.1 init bug")
+ // don't set vars yet -- it resolves dependencies (e.g. DB) which we don't want until we start
+ .environmentVariablesReset()
+ .body.append(fixBugCommands)
.execute();
}
[2/2] brooklyn-library git commit: Closes #148
Posted by ge...@apache.org.
Closes #148
Fix issue with JBoss 7 installation
The `jboss-modules.jar` that comes with jBoss 7.1.1 is of version `1.1.1.GA`. However, this has issue on initialisation when one launches the server.
Hopefully, version `1.1.5.GA` fixes the init issue. As jBoss 7.1.1 is EOF, we need to download and replace
this jar before starting up the server.
Project: http://git-wip-us.apache.org/repos/asf/brooklyn-library/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-library/commit/a2814bba
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-library/tree/a2814bba
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-library/diff/a2814bba
Branch: refs/heads/master
Commit: a2814bba2341264b4cb32c9418312d429d5bd69f
Parents: 77f8984 c69336c
Author: Geoff Macartney <ge...@cloudsoftcorp.com>
Authored: Thu Mar 8 14:54:08 2018 +0000
Committer: Geoff Macartney <ge...@cloudsoftcorp.com>
Committed: Thu Mar 8 14:54:08 2018 +0000
----------------------------------------------------------------------
.../entity/webapp/jboss/JBoss7SshDriver.java | 26 ++++++++++++++++----
1 file changed, 21 insertions(+), 5 deletions(-)
----------------------------------------------------------------------