How to deploy JBoss7.2 on OpenShift
Tech-Today

How to deploy JBoss7.2 on OpenShift


The following tutorial is a rough steps on how you can setup a custom server such as JBoss7.2 on OpenShift.

Prerequisite, clone and checkout JBoss7.2 tag
//clone the jboss repo
>git clone https://github.com/jbossas/jboss-as.git

//list the tags
>git tag -l

//checkout the 7.2 release
>git checkout tags/7.2.0.Final

Steps:
1.) Follow this blog first: http://stianst.blogspot.com/2013/06/run-wildfly-on-openshift-using-diy.html

2.) Unfortunately you will encounter a problem starting the server, this is because each openshift's DIY cartridge has there own IP so:
  a.) SSH to your OpenShift server and type env, and look for OPENSHIFT_DIY_IP, so instead of 127.0.0.1 you need to use this IP in step 1.

3.) Commit and push your repo and your good to go :-).

4.) If that doesn't work, you need to manually start the JBoss server within SSH.

Warning:
Beware of windows, the pushed files are not executable by default so standalone.sh will not run. You need to manually chmod this file every push so that means auto server restart will not work. At least on my case.




- How To Run A Wildfly Server Inside Docker
Before we begin you must configure docker, I am using Ubuntu so I followed the guide here: https://docs.docker.com/engine/installation/linux/ubuntulinux/. Choose the appropriate OS that applies to you. Let's do this in sequence: Checkout and...

- Javaee Development
JavaEE6How to create a javaee6 web app using jboss maven war archetypeCreate a simple javaee6 web app with maven, glassfish and postgresqlHow to validate a JavaEE6 Bean in a jobHow to add JavaEE 6 archetypes in eclipse keplerHow to create a custom bean...

- Git: How To Have 2 Local Branch Pushing To 2 Different Remote Repositories So That You Can Merge Code
This tutorial will explain how to create 2 local branches with the same code base, each linked to different repository. The purpose is that you can share code between repositories. For example in a multi-module project, it's possible that 1 project...

- How To Solve Git Permission Denied
I've encountered this GIT permission denied several times before each time I always come up with a different solution. This time from a friend of mine: Copy your private and public keys from c:\users\yourAccount\.ssh to where you install git. Normally...

- How To Clone A Project From Github And Import In Eclipse
This page will teach us how to clone a project from GitHub to your local repository and import in eclipse. Prerequisites: 1.) Windows/Ubuntu with JDK6/7. 2.) eclipse (I'm using Juno) with egit, m2eclipse, m2e-egit plugin (from eclipse marketplace)....



Tech-Today








.