Run J2EE Sample

Run J2EE Sample and deploy to server glassfish.

First clone project from github, this is the link https://github.com/javaee-samples/javaee7-samples.git
open your command line. in my chase i use ubuntu fro clone the project, for example

git clone https://github.com/javaee-samples/javaee7-samples.git

after that you can open the maven project to ypur IDE, i use Netbeans 8.2 like this


And then after that you can build your maven project

from command or netebeans whatever you want

mvn clean install -Dmaven.skip.test=true
or
you can just choose 1 sample project if you want

for exmple i want run sub module jsf/radio-buttons
mvn clean install

After that you can check the war in path ../jsf/radio-buttons/target radio-buttons.war


Deploy in your server
back again you can deploy from browser after start-domain glassfish in localhost:4848

or

deploy from command from like this

my path default glassfish ubuntu


and run command for deploy like this


./asadmin deploy /your_war_path

you can check appliacation succesfull deploy or not you can login lcalhost:4848


then launch the sample localhost:8080/jsf-radio-buttons/faces/details.xhtml


if you want learn the project open in you best IDE free, you open in netbeans, eclipse, or just text editor maybe for learn the sample j2ee


My resource from learn

J2SE : https://docs.oracle.com/javase/tutorial/
J2EE : https://docs.oracle.com/javaee/7/tutorial/

NB: i'm sorry if my english langue BAD, b'cos i'm not learning english for the office like conversation or writing.

No comments:

Post a Comment