Wednesday, September 27, 2017

Create Java Project running on JBoss using Eclipse

Pre-requisition:
How to start JBoss Server using Eclipse

Create Java Project running on JBoss using Eclipse:
  1. Start Eclipse, and click “File > New > Other…”.
  2. Click “File > New > Other…”.
  3. Select “Web > Dynamic Web Project”, and click “Next”.
  4. Enter “HelloWorld” as Project Name, and click “Finish”.
  5. Create “index.html” in WebContent folder.
  6. Edit index.html and fill up.<p>HelloWorld!!!</p>.
  7. Right click index.html, select “Run As > 1 Run on Server” to preview.
  8. You can preview using this URL, http://localhost:8080/HelloWorld/index.html.

How to start JBoss Server using Eclipse

Software:
How to start JBoss Server using Eclipse:  
  1. Extract to D:\Program Files\jboss-5.1.0.GA
  2. Start Eclipse. 3. Click on “File > New > Other …”.
  3. Select “Server > Server”, and click “Next”.
  4. Select “JBoss > JBoss v5.0”, and click “Next”.
  5. Fill up below information and click “Finish”.
  6. Open “Server” view. Right click and select “Start”.
  7. Console will show server starting.
  8. Browse http://localhost:8080/, and you see JBoss Server started.
Others:
How to start JBoss Server using command line.
http://hiplab.mc.vanderbilt.edu/projects/soempi/jboss_startstop.html