Showing posts with label Wildfly. Show all posts
Showing posts with label Wildfly. Show all posts

Wednesday, November 2, 2016

Run Docker JBoss Wildfly image on AWS ECS

Install Docker on AWS ECS
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html


       __|  __|_  )
       _|  (     /   Amazon Linux AMI
      ___|\___|___|

https://aws.amazon.com/amazon-linux-ami/2016.09-release-notes/
[ec2-user@ip-172-31-31-199 ~]$ sudo yum update -y
Loaded plugins: priorities, update-motd, upgrade-helper
No packages marked for update
[ec2-user@ip-172-31-31-199 ~]$  sudo yum install -y docker
Loaded plugins: priorities, update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 0:1.11.2-1.6.amzn1 will be installed
--> Processing Dependency: xfsprogs for package: docker-1.11.2-1.6.amzn1.x86_64
--> Running transaction check
---> Package xfsprogs.x86_64 0:3.2.2-2.20.amzn1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package         Arch          Version                   Repository        Size
================================================================================
Installing:
 docker          x86_64        1.11.2-1.6.amzn1          amzn-main         17 M
Installing for dependencies:
 xfsprogs        x86_64        3.2.2-2.20.amzn1          amzn-main        1.7 M

Transaction Summary
================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 18 M
Installed size: 59 M
Downloading packages:
(1/2): docker-1.11.2-1.6.amzn1.x86_64.rpm                |  17 MB     00:00     
(2/2): xfsprogs-3.2.2-2.20.amzn1.x86_64.rpm              | 1.7 MB     00:00     
--------------------------------------------------------------------------------
Total                                               21 MB/s |  18 MB  00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : xfsprogs-3.2.2-2.20.amzn1.x86_64                             1/2 
  Installing : docker-1.11.2-1.6.amzn1.x86_64                                                        2/2 
  Verifying  : docker-1.11.2-1.6.amzn1.x86_64                                                        1/2 
  Verifying  : xfsprogs-3.2.2-2.20.amzn1.x86_64                                                      2/2 

Installed:
  docker.x86_64 0:1.11.2-1.6.amzn1                                                                       

Dependency Installed:
  xfsprogs.x86_64 0:3.2.2-2.20.amzn1                                                                     

Complete!
[ec2-user@ip-172-31-31-199 ~]$ sudo service docker start
Starting cgconfig service:                                 [  OK  ]
Starting docker:    .                                  [  OK  ]
[ec2-user@ip-172-31-31-199 ~]$ sudo usermod -a -G docker ec2-user
[ec2-user@ip-172-31-31-199 ~]$ 

Verify Docker status

[ec2-user@ip-172-31-31-199 ~]$ docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 1.11.2
Storage Driver: devicemapper
 Pool Name: docker-202:1-394626-pool
 Pool Blocksize: 65.54 kB
 Base Device Size: 10.74 GB
 Backing Filesystem: xfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 11.8 MB
 Data Space Total: 107.4 GB
 Data Space Available: 7.223 GB
 Metadata Space Used: 581.6 kB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.147 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Deferred Deletion Enabled: false
 Deferred Deleted Device Count: 0
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 WARNING: Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true` to suppress this warning.
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.93-RHEL7 (2015-01-28)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins: 
 Volume: local
 Network: null host bridge
Kernel Version: 4.4.23-31.54.amzn1.x86_64
Operating System: Amazon Linux AMI 2016.09
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 995.4 MiB
Name: ip-172-31-31-199
ID: IEGJ:BLTG:7DGR:PNN7:SDZS:3M7H:L6LR:CB3M:52IV:SG2R:O3KF:NZPI
Docker Root Dir: /var/lib/docker
Debug mode (client): false
Debug mode (server): false
Registry: https://index.docker.io/v1/
[ec2-user@ip-172-31-31-199 ~]$ 


Run JBoss Wildfly Docker image

[ec2-user@ip-172-31-31-199 ~]$ docker run -it -p 8080:8080 jboss/wildfly 
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /opt/jboss/wildfly

  JAVA: /usr/lib/jvm/java/bin/java

  JAVA_OPTS:  -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true

=========================================================================

21:14:22,924 INFO  [org.jboss.modules] (main) JBoss Modules version 1.5.2.Final
21:14:23,279 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
21:14:23,368 INFO  [org.jboss.as] (MSC service thread 1-1) WFLYSRV0049: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) starting


List Docker processes

[ec2-user@ip-172-31-31-199 ~]$ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
0a5959e5cd9e        jboss/wildfly       "/opt/jboss/wildfly/b"   9 minutes ago       Up 9 minutes        0.0.0.0:8080->8080/tcp   adoring_allen


Connect to Wildfly with links browser from other shell

Install links and connect to http:localhost:8080



[ec2-user@ip-172-31-31-199 ~]$ yum install links

[ec2-user@ip-172-31-31-199 ~]$ links http://localhost:8080




Tuesday, November 1, 2016

Install Java EE7 application using JBoss Wildfly Docker image


Docker and WildFly Part 1 - Deployment via Docker volumes 

 
Docker and WildFly Part 2 - Deployment over management API


https://github.com/goldmann/wildfly-docker-deployment-example

Download JBoss Wildfly image
https://hub.docker.com/r/jboss/wildfly/


[dave@localhost wildfly]$ docker run -it jboss/wildfly
Unable to find image 'jboss/wildfly:latest' locally
latest: Pulling from jboss/wildfly

8d30e94188e7: Pull complete 
183bb107e46a: Pull complete 
9ea1527ac190: Pull complete 
d632efeddd98: Pull complete 
11af01a2d795: Pull complete 
Digest: sha256:2bed1e7a68245509de5837435b6250491efe61a86533f5ce6bf94927814076fb
Status: Downloaded newer image for jboss/wildfly:latest
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /opt/jboss/wildfly

  JAVA: /usr/lib/jvm/java/bin/java

  JAVA_OPTS:  -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true

=========================================================================


Use port redirect to see Wildfly running in the browser

[dave@localhost wildfly]$ docker run -it -p 8080:8080 jboss/wildfly 

Wildfly home page
Add access to console using own Dockerfile

[dave@localhost wildfly]$ more Dockerfile 
FROM jboss/wildfly:latest

USER jboss
RUN /opt/jboss/wildfly/bin/add-user.sh admin MY_PASSWORD_TO_ACCESS --silent
CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0"]


Build the Docker image

[dave@localhost wildfly]$ docker build --tag=wildfly-mgmt .
Sending build context to Docker daemon 2.048 kB
Step 1 : FROM jboss/wildfly:latest
 ---> 4c99bd2cd264
Step 2 : USER jboss
 ---> Running in de10054221e5
 ---> f3b3e54e823b
Removing intermediate container de10054221e5
Step 3 : RUN /opt/jboss/wildfly/bin/add-user.sh admin MY_PASSWORD_TO_ACCESS --silent
 ---> Running in 9af7cd245555
 ---> 5a29ccf7bef0
Removing intermediate container 9af7cd245555
Step 4 : CMD /opt/jboss/wildfly/bin/standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0
 ---> Running in 642784343b49
 ---> 3ea63bcef45a
Removing intermediate container 642784343b49
Successfully built 3ea63bcef45a


Start with port 8080 and 9990 redirected

[dave@localhost wildfly]$ docker run -it -p 8080:8080 -p 9990:9990  wildfly-mgmt

Check the console access via browser on 9990


Deploy Java EE7 app using Maven

Source code for the application GitHub https://github.com/dveselka/wildfly/tree/master/dave-java-ee7-wildfly-full

[dave@localhost dave-java-ee7-wildfly-full]$  mvn clean package wildfly:deploy
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] dave-java-ee7-wildfly-full
[INFO] dave-java-ee7-wildfly-full: EJB Module
[INFO] dave-java-ee7-wildfly-full: WAR Module
[INFO] dave-java-ee7-wildfly-full: EAR Module
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building dave-java-ee7-wildfly-full 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ dave-java-ee7-wildfly-full ---
[INFO] 
[INFO] >>> wildfly-maven-plugin:1.0.2.Final:deploy (default-cli) > package @ dave-java-ee7-wildfly-full >>>
[INFO] 
[INFO] <<< wildfly-maven-plugin:1.0.2.Final:deploy (default-cli) < package @ dave-java-ee7-wildfly-full <<<
[INFO] 
[INFO] --- wildfly-maven-plugin:1.0.2.Final:deploy (default-cli) @ dave-java-ee7-wildfly-full ---

Deployment in Docker Widlfy

05:32:38,366 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) started in 4639ms - Started 331 of 577 services (393 services are lazy, passive or on-demand)
05:43:49,778 INFO  [org.jboss.as.repository] (management-handler-thread - 1) WFLYDR0001: Content added at location /opt/jboss/wildfly/standalone/data/content/a1/58abbd7beeb79e23f10486bbefb72f55dc5368/content
05:43:49,861 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0027: Starting deployment of "dave-java-ee7-wildfly-full-ear.ear" (runtime-name: "dave-java-ee7-wildfly-full-ear.ear")
05:43:50,006 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0207: Starting subdeployment (runtime-name: "dave-java-ee7-wildfly-full-web.war")
05:43:50,006 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0207: Starting subdeployment (runtime-name: "dave-java-ee7-wildfly-full-ejb.jar")
05:43:50,168 WARN  [org.jboss.as.connector] (MSC service thread 1-1) WFLYJCA0091: -ds.xml file deployments are deprecated. Support may be removed in a future version.
05:43:50,620 INFO  [org.jboss.as.jpa] (MSC service thread 1-5) WFLYJPA0002: Read persistence.xml for primary
05:43:50,900 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) WFLYJCA0001: Bound data source [java:jboss/datasources/dave-java-ee7-wildfly-fullDS]
05:43:50,966 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 69) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'dave-java-ee7-wildfly-full-ear.ear/dave-java-ee7-wildfly-full-ejb.jar#primary'
05:43:50,977 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) WFLYWELD0003: Processing weld deployment dave-java-ee7-wildfly-full-ear.ear
05:43:51,095 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 69) HHH000204: Processing PersistenceUnitInfo [
    name: primary
    ...]
05:43:51,494 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-1) HV000001: Hibernate Validator 5.2.4.Final
05:43:51,653 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 69) HHH000412: Hibernate Core {5.0.10.Final}
05:43:51,655 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 69) HHH000206: hibernate.properties not found
05:43:51,664 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 69) HHH000021: Bytecode provider name : javassist
05:43:51,864 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 69) HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
05:43:52,082 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) WFLYWELD0003: Processing weld deployment dave-java-ee7-wildfly-full-ejb.jar
05:43:52,090 INFO  [org.jboss.weld.deployer] (MSC service thread 1-5) WFLYWELD0003: Processing weld deployment dave-java-ee7-wildfly-full-web.war
05:43:52,120 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-1) WFLYEJB0473: JNDI bindings for session bean named 'MemberRegistration' in deployment unit 'subdeployment "dave-java-ee7-wildfly-full-ejb.jar" of deployment "dave-java-ee7-wildfly-full-ear.ear"' are as follows:

    java:global/dave-java-ee7-wildfly-full-ear/dave-java-ee7-wildfly-full-ejb/MemberRegistration!dave.service.MemberRegistration
    java:app/dave-java-ee7-wildfly-full-ejb/MemberRegistration!dave.service.MemberRegistration
    java:module/MemberRegistration!dave.service.MemberRegistration
    java:global/dave-java-ee7-wildfly-full-ear/dave-java-ee7-wildfly-full-ejb/MemberRegistration
    java:app/dave-java-ee7-wildfly-full-ejb/MemberRegistration
    java:module/MemberRegistration


Check the application in the browser

Tuesday, October 25, 2016

Run Arquillian test on JBoss EAP 7/ Wildfly 10 using Arquillian Chameleon Container

Arqullian

http://arquillian.org/guides/getting_started/

Arquillian Chameleon Container

 https://github.com/arquillian/arquillian-container-chameleon

 http://discuss.arquillian.org/t/proxy-container-for-all-jboss-as-jboss-eap-wildfly/124/7

 Add Maven dependency ( check for latest version )

<dependency>
    <groupId>org.arquillian.container</groupId>
    <artifactId>arquillian-container-chameleon</artifactId>
    <version>1.0.0.Alpha7</version>
</dependency>

Add container configuration into arquillian.xml file

<arquillian xmlns="http://jboss.org/schema/arquillian"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
    
     <container qualifier="chameleon" default="true">
        <configuration>
            <property name="chameleonTarget">jboss eap:7.0.1:remote</property>
            <property name="managementAddress">localhost</property>
            <property name="managementPort">9990</property>
            <property name="username">${jboss.admin.user}</property>
            <property name="password">${jboss.admin.password}!</property>
        </configuration>
    </container>
   
</arquillian>


Add Maven dependencies in multi-module project using shrinkwrap-resolver-impl-maven http://stackoverflow.com/questions/13001371/adding-all-maven-dependencies-to-arquillian

https://github.com/shrinkwrap/resolver


Add Chameleon container dependency ( using runTests profile )

<profile>
            <id>runTests</id>
            <activation>
                <property>
                    <name>runTests</name>
                    <value>true</value>
                </property>
            </activation>
            <dependencies>
                <dependency>
                     <groupId>org.arquillian.container</groupId>
                     <artifactId>arquillian-container-chameleon</artifactId>
                 </dependency>
            </dependencies>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>
                            <skipTests>false</skipTests>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>

Run the single test using Maven command line

$ mvn clean install -PrunTests  -Dtest=ArqTestCase

Tuesday, March 8, 2016

Openshift - deploy Java EE7 application onto Wildlfy10

OpenShift  Wildfly  https://developers.openshift.com/en/wildfly-getting-started.html

 Create OpenShift account https://openshift.redhat.com/app/account/new?then=%2Fapp%2Faccount

Install RedHat RHC  client tools  https://developers.openshift.com/en/managing-client-tools.html


sudo yum install rubygems
rhc setup

Create application via web console or using RHC tools

Write down admin password to access cloud via SSH

Open application URL in browser http://ee7full-testjavaee.rhcloud.com/




[dave@localhost ee7full.git]$ rhc apps
ee7full @ http://ee7full-testjavaee.rhcloud.com/ (uuid: 56d97e36454545636454540026f)
---------------------------------------------------------------------------------
  Domain:          testjavaee
  Created:         Mar 04  1:23 PM
  Gears:           1 (defaults to small)
  Git URL:         ssh://5645454545367a00026f@ee7full-testjavaee.rhcloud.com/~/git/ee7full.git/
  Initial Git URL: https://github.com/dveselka/wildfly/#master
  SSH:             5645454545367a00026f@ee7full-testjavaee.rhcloud.com
  Deployment:      auto (on git push)

  jboss-wildfly-10 (WildFly Application Server 10)
  ------------------------------------------------
    From:    https://raw.github.com/openshift-cartridges/openshift-wildfly-cartridge/wildfly-10/metadata/manifest.yml
    Website: http://www.wildfly.org
    Gears:   1 small

You have access to 1 application.
[dave@localhost ee7full.git]$ 


Initial source code is taken from existing GitHub code https://github.com/dveselka/wildfly


Clone Git Repository

git clone ssh://56d93434343445456f@ee7full-testjavaee.rhcloud.com/~/git/ee7full.git/


Forward ports to local host https://developers.openshift.com/en/managing-port-forwarding.html

[dave@localhost openshift]$ rhc port-forward -a ee7full
Checking available ports ... done
Forwarding ports ...

To connect to a service running on OpenShift, use the Local address

Service Local               OpenShift
------- -------------- ---- -----------------
java    127.0.0.1:3528  =>  127.5.77.129:3528
java    127.0.0.1:3529  =>  127.5.77.129:3529
java    127.0.0.1:8080  =>  127.5.37.129:8080
java    127.0.0.1:9990  =>  127.5.77.129:9990

Press CTRL-C to terminate port forwarding



Deploy application using Maven deploy plugin

dave@localhost dave-java-ee7-wildfly-full]$ pwd
/home/dave/openshift/ee7full.git/dave-java-ee7-wildfly-full
[dave@localhost dave-java-ee7-wildfly-full]$ mvn clean package wildfly:deploy


[INFO] --- wildfly-maven-plugin:1.0.2.Final:deploy (default-cli) @ dave-java-ee7-wildfly-full-ear ---
Mar 08, 2016 7:49:14 AM org.xnio.Xnio <clinit>
INFO: XNIO version 3.2.2.Final
Mar 08, 2016 7:49:14 AM org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.2.2.Final
Mar 08, 2016 7:49:14 AM org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 4.0.3.Final
Authenticating against security realm: ManagementRealm
Username:


Check application server logs

2016-03-08 01:52:43,915 INFO  [org.jboss.as.repository] (management-handler-thread - 5) WFLYDR0001: Content added at location /var/lib/openshift/56d9454545450026f/wildfly/standalone/data/content/62/75d7af5656565656573/content
2016-03-08 01:52:43,934 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0027: Starting deployment of "dave-java-ee7-wildfly-full-ear.ear" (runtime-name: "dave-java-ee7-wildfly-full-ear.ear")
2016-03-08 01:52:44,090 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0207: Starting subdeployment (runtime-name: "dave-java-ee7-wildfly-full-ejb.jar")
2016-03-08 01:52:44,091 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0207: Starting subdeployment (runtime-name: "dave-java-ee7-wildfly-full-web.war")
2



Access application via browser using public URL  http://ee7full-testjavaee.rhcloud.com/dave-java-ee7-wildfly-full-web/



Thursday, July 3, 2014

Install IDE and AS for Java EE7 - Eclipse Luna 4.4 , JBoss WildFly 8.1


See the guide here
https://github.com/wildfly/quickstart/tree/master/guide 

Download Wildfly quickstarts  https://github.com/wildfly/quickstart

 Install latest Oracle JDK

 yum localinstall /home/dave/Downloads/jdk-7u60-linux-x64.rpm   


 Fedora uses OpenJDK by default, to use Oracle JDK  JAVA_HOME must be properly set

 [dave@localhost ~]$ java -version  
 java version "1.7.0_55"  
 OpenJDK Runtime Environment (fedora-2.4.7.0.fc20-x86_64 u55-b13)  
 OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)  
  vi ~/.bash_profile  
 # User specific environment and startup programs  
 JAVA_HOME=/usr/java/jdk1.7.0_60  
 export JAVA_HOME  
 PATH=$JAVA_HOME/bin:$PATH:$HOME/.local/bin:$HOME/bin  
 export PATH  
 source ~/.bash_profile  
 [dave@localhost Downloads]$ java -version  
 java version "1.7.0_60"  
 Java(TM) SE Runtime Environment (build 1.7.0_60-b19)  
 Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)  



Download and install latest Eclipse Luna 4.4.

  tar xzvf eclipse-jee-luna-RC3-linux-gtk-x86_64.tar.gz   


Eclipse configuration

 *** Date: Thursday, July 3, 2014 at 10:29:39 PM Central European Summer Time  
 *** Platform Details:  
 *** System properties:  
 applicationXMI=org.eclipse.ui.workbench/LegacyIDE.e4xmi  
 awt.toolkit=sun.awt.X11.XToolkit  
 eclipse.application=org.eclipse.ui.ide.workbench  
 eclipse.buildId=4.4.0.I20140528-2000  
 eclipse.commands=-os  
 linux  
 -ws  
 gtk  
 -arch  
 x86_64  
 -showsplash  
 /home/app/eclipse//plugins/org.eclipse.platform_4.4.0.v20140528-2000/splash.bmp  
 -launcher  
 /home/app/eclipse/eclipse  
 -name  
 Eclipse  
 --launcher.library  
 /home/app/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140521-1744/eclipse_1605.so  
 -startup  
 /home/app/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar  
 --launcher.appendVmargs  
 -exitdata  
 f8010  
 -product  
 org.eclipse.epp.package.jee.product  
 -vm  
 /usr/java/jdk1.7.0_60/bin/java  
 eclipse.home.location=file:/home/app/eclipse/  
 eclipse.launcher=/home/app/eclipse/eclipse  
 eclipse.launcher.name=Eclipse  
 eclipse.p2.data.area=@config.dir/../p2  
 eclipse.p2.profile=epp.package.jee  
 eclipse.product=org.eclipse.epp.package.jee.product  
 eclipse.startTime=1404419236393  
 eclipse.stateSaveDelayInterval=30000  
 eclipse.vm=/usr/java/jdk1.7.0_60/bin/java  
 eclipse.vmargs=-Dosgi.requiredJavaVersion=1.6  
 -XX:MaxPermSize=256m  
 -Xms40m  
 -Xmx512m  
 -jar  
 /home/app/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar  
 equinox.use.ds=true  
 file.encoding=UTF-8  
 file.encoding.pkg=sun.io  
 file.separator=/  
 gosh.args=--nointeractive  
 guice.disable.misplaced.annotation.check=true  
 java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment  
 java.awt.printerjob=sun.print.PSPrinterJob  
 java.class.path=/home/app/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar  
 java.class.version=51.0  
 java.endorsed.dirs=/usr/java/jdk1.7.0_60/jre/lib/endorsed  
 java.ext.dirs=/usr/java/jdk1.7.0_60/jre/lib/ext:/usr/java/packages/lib/ext  
 java.home=/usr/java/jdk1.7.0_60/jre  
 java.io.tmpdir=/tmp  
 java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib  
 java.runtime.name=Java(TM) SE Runtime Environment  
 java.runtime.version=1.7.0_60-b19  
 java.specification.name=Java Platform API Specification  
 java.specification.vendor=Oracle Corporation  
 java.specification.version=1.7  
 java.vendor=Oracle Corporation  
 java.vendor.url=http://java.oracle.com/  
 java.vendor.url.bug=http://bugreport.sun.com/bugreport/  
 java.version=1.7.0_60  
 java.vm.info=mixed mode  
 java.vm.name=Java HotSpot(TM) 64-Bit Server VM  
 java.vm.specification.name=Java Virtual Machine Specification  
 java.vm.specification.vendor=Oracle Corporation  
 java.vm.specification.version=1.7  
 java.vm.vendor=Oracle Corporation  
 java.vm.version=24.60-b09  
 line.separator=  
 org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog  
 org.eclipse.debug.ui.breakpoints.toggleFactoriesUsed=false  
 org.eclipse.equinox.launcher.splash.location=/home/app/eclipse//plugins/org.eclipse.platform_4.4.0.v20140528-2000/splash.bmp  
 org.eclipse.equinox.simpleconfigurator.configUrl=file:org.eclipse.equinox.simpleconfigurator/bundles.info  
 org.eclipse.m2e.log.dir=/home/dave/workspace/.metadata/.plugins/org.eclipse.m2e.logback.configuration  
 org.eclipse.swt.internal.gtk.useCairo=true  
 org.eclipse.update.reconcile=false  
 org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,OSGi/Minimum-1.2,JRE-1.1,J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5,JavaSE-1.6,JavaSE-1.7  
 org.osgi.framework.language=en  
 org.osgi.framework.os.name=Linux  
 org.osgi.framework.os.version=3.14.4.fc20  
 org.osgi.framework.processor=x86-64  
 org.osgi.framework.system.capabilities=osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0, 1.1, 1.2",osgi.ee; osgi.ee="JRE"; version:List<Version>="1.0, 1.1",osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7"  
 org.osgi.framework.system.packages=javax.accessibility,javax.activation,javax.activity,javax.annotation,javax.annotation.processing,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.jws,javax.jws.soap,javax.lang.model,javax.lang.model.element,javax.lang.model.type,javax.lang.model.util,javax.management,javax.management.loading,javax.management.modelmbean,javax.management.monitor,javax.management.openmbean,javax.management.relation,javax.management.remote,javax.management.remote.rmi,javax.management.timer,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.script,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,javax.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.swing.border,javax.swing.colorchooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swing.plaf.multi,javax.swing.plaf.nimbus,javax.swing.plaf.synth,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.parser,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.tools,javax.transaction,javax.transaction.xa,javax.xml,javax.xml.bind,javax.xml.bind.annotation,javax.xml.bind.annotation.adapters,javax.xml.bind.attachment,javax.xml.bind.helpers,javax.xml.bind.util,javax.xml.crypto,javax.xml.crypto.dom,javax.xml.crypto.dsig,javax.xml.crypto.dsig.dom,javax.xml.crypto.dsig.keyinfo,javax.xml.crypto.dsig.spec,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.soap,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stax,javax.xml.transform.stream,javax.xml.validation,javax.xml.ws,javax.xml.ws.handler,javax.xml.ws.handler.soap,javax.xml.ws.http,javax.xml.ws.soap,javax.xml.ws.spi,javax.xml.ws.spi.http,javax.xml.ws.wsaddressing,javax.xml.xpath,org.ietf.jgss,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg.CORBA.portable,org.omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentPackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.portable,org.omg.PortableServer.ServantLocatorPackage,org.omg.SendingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.bootstrap,org.w3c.dom.css,org.w3c.dom.events,org.w3c.dom.html,org.w3c.dom.ls,org.w3c.dom.ranges,org.w3c.dom.stylesheets,org.w3c.dom.traversal,org.w3c.dom.views,org.w3c.dom.xpath,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers  
 org.osgi.framework.uuid=b07b3d6d-f002-0014-1d84-801f434fe7a4  
 org.osgi.framework.vendor=Eclipse  
 org.osgi.framework.version=1.8.0  
 org.osgi.supports.framework.extension=true  
 org.osgi.supports.framework.fragment=true  
 org.osgi.supports.framework.requirebundle=true  
 os.arch=amd64  
 os.name=Linux  
 os.version=3.14.4-200.fc20.x86_64  
 osgi.arch=x86_64  
 osgi.bundles=reference:file:org.eclipse.osgi.compatibility.state_1.0.0.v20140403-1907.jar,reference:file:org.eclipse.equinox.simpleconfigurator_1.1.0.v20131217-1203.jar@1:start  
 osgi.bundles.defaultStartLevel=4  
 osgi.compatibility.bootdelegation=true  
 osgi.configuration.area=file:/home/app/eclipse/configuration/  
 osgi.framework=file:/home/app/eclipse/plugins/org.eclipse.osgi_3.10.0.v20140528-2014.jar  
 osgi.framework.extensions=reference:file:org.eclipse.osgi.compatibility.state_1.0.0.v20140403-1907.jar  
 osgi.framework.shape=jar  
 osgi.framework.useSystemProperties=true  
 osgi.frameworkClassPath=., file:/home/app/eclipse/plugins/org.eclipse.osgi.compatibility.state_1.0.0.v20140403-1907.jar  
 osgi.install.area=file:/home/app/eclipse/  
 osgi.instance.area=file:/home/dave/workspace/  
 osgi.instance.area.default=file:/home/dave/workspace/  
 osgi.logfile=/home/dave/workspace/.metadata/.log  
 osgi.nl=en_US  
 osgi.os=linux  
 osgi.requiredJavaVersion=1.6  
 osgi.splashLocation=/home/app/eclipse//plugins/org.eclipse.platform_4.4.0.v20140528-2000/splash.bmp  
 osgi.splashPath=platform:/base/plugins/org.eclipse.platform  
 osgi.syspath=/home/app/eclipse/plugins  
 osgi.tracefile=/home/dave/workspace/.metadata/trace.log  
 osgi.ws=gtk  
 path.separator=:  
 securerandom.source=file:/dev/./urandom  
 sun.arch.data.model=64  
 sun.boot.class.path=/usr/java/jdk1.7.0_60/jre/lib/resources.jar:/usr/java/jdk1.7.0_60/jre/lib/rt.jar:/usr/java/jdk1.7.0_60/jre/lib/sunrsasign.jar:/usr/java/jdk1.7.0_60/jre/lib/jsse.jar:/usr/java/jdk1.7.0_60/jre/lib/jce.jar:/usr/java/jdk1.7.0_60/jre/lib/charsets.jar:/usr/java/jdk1.7.0_60/jre/lib/jfr.jar:/usr/java/jdk1.7.0_60/jre/classes  
 sun.boot.library.path=/usr/java/jdk1.7.0_60/jre/lib/amd64  
 sun.cpu.endian=little  
 sun.cpu.isalist=  
 sun.desktop=gnome  
 sun.io.unicode.encoding=UnicodeLittle  
 sun.java.command=/home/app/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar -os linux -ws gtk -arch x86_64 -showsplash /home/app/eclipse//plugins/org.eclipse.platform_4.4.0.v20140528-2000/splash.bmp -launcher /home/app/eclipse/eclipse -name Eclipse --launcher.library /home/app/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140521-1744/eclipse_1605.so -startup /home/app/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar --launcher.appendVmargs -exitdata f8010 -product org.eclipse.epp.package.jee.product -vm /usr/java/jdk1.7.0_60/bin/java -vmargs -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar /home/app/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar  
 sun.java.launcher=SUN_STANDARD  
 sun.jnu.encoding=UTF-8  
 sun.management.compiler=HotSpot 64-Bit Tiered Compilers  
 sun.os.patch.level=unknown  
 user.country=US  
 user.dir=/home/app/eclipse  
 user.home=/home/dave  
 user.language=en  
 user.name=dave  
 user.timezone=Europe/Prague  
 
 



Install Java EE 7 certified JBoss WildFly application server
http://www.wildfly.org/

 8.1.0.Final     2014-05-30     Java EE7 Full & Web Distribution     LGPL  

 tar xzvf wildfly-8.1.0.Final.tar.gz   


Start JBoss AS
 [dave@localhost bin]$ pwd  
 /app/wildfly-8.1.0.Final/bin  
 [dave@localhost bin]$ ./standalone.sh  -c standalone-full.xml


 =========================================================================  
  JBoss Bootstrap Environment  
  JBOSS_HOME: /app/wildfly-8.1.0.Final  
  JAVA: /usr/java/jdk1.7.0_60/bin/java  
  JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true  
 =========================================================================  


To deploy sample from command line  run this in directory with sample code

 [dave@localhost jboss-helloworld]$ mvn install wildfly:deploy 


Install Eclipse JBoss Tools

Install WildFly server

Install JBoss helloworld example


Fix Maven setup for JBoss AS

Use WildFly Maven plugin
https://docs.jboss.org/wildfly/plugins/maven/latest/examples/deployment-example.html



Run deploy from command line
 [dave@localhost jboss-helloworld]$ mvn install wildfly:deploy 



Run example on server