Install WildFly on Ubuntu 12.04 LTS and Ubuntu 12.10

WildFly = JBoss

Install JBoss 7.0.2 Application Server on on Ubuntu 12.04 LTS and Ubuntu 12.10 Ubuntu 11.10 or Ubuntu 11.04 or Ubuntu 10.10 or Ubuntu 10.04 LTS

Application Server vs. Web Server

Application Server vs. Web Server

Application Servers in Java, .net and PHP

Application Servers in Java, .net and PHP

Application Server is a framework that provides execution environment for application written in specific Programming Language.

JBoss is an Open Source Java EE based Application server developed by Redhat which operates on Cross Platform. It supports Servlet Specification 3.3 and JSP specification of 2.2.

JBoss Application Server (Source: JBoss)

JBoss Application Server (Source: JBoss)

Before you install JBoss you’ll want to make sure that you’ve installed Java.

Use Synaptic Package Manager to install Java.

Use Synaptic Package Manager to install Java

Use Synaptic Package Manager to install Java

Synaptic Package Manager installing Java

Synaptic Package Manager installing Java

java -version

java -version

java -version

java -version

Licensing

JBoss is distributed under LGPL; LGPL is a free software license published by the Free Software Foundation (FSF). It was designed as a compromise between the strong-copyleft GNU General Public License or GPL and permissive licenses such as the BSD licenses and the MIT License.

Red Hat charges to provide a support service for:

Features

  • ·Java Server Pages
  • ·Java Servlet
  • ·JBoss Web ServicesS
  • ·JDBC
  • ·Load balancing
  • ·Aspect-oriented programming (AOP) support
  • ·Clustering
  • ·Deployment API
  • ·Distributed caching (using JBoss Cache, a standalone product)
  • ·Distributed deployment (farming)
  • ·Enterprise JavaBeans versions 3 and 2.1
  • ·Failover (including sessions)
  • ·Hibernate integration
  • ·Java Authentication and Authorization Service (JAAS)
  • ·Java EE Connector Architecture (JCA) integration
  • ·Java Management Extensions
  • ·Management API
  • ·OSGi framework
  • ·RMI-IIOP
  • ·SOAP with Attachments API for Java
  • ·Teiid data virtualization system- Teiid is a data virtualization system that allows applications to use data from multiple, heterogeneous data stores.

Requirements

Java SE 6 or later

Download

http://www.jboss.org/jbossas/downloads/

Download JBoss

Download JBoss

Extract the file into usr/share/

Extract files from JBoss Archive

Extract files from JBoss Archive

Extracting files from JBoss Archive

Extracting files from JBoss Archive

Extracted files for JBoss Standalone installation

Extracted files for JBoss Standalone installation

Now, Lets Test it…If we haven’t installed Java then we will get an ERROR.

Java not Found Error in JBoss installation

Java not Found Error in JBoss installation

JBoss Running

JBoss Running

Now lets open Jboss in Web Browser

JBoss Application Server 7

JBoss Application Server 7

Lets Verify the Admin Console

JBoss Application Server 7 Admin Console

JBoss Application Server 7 Admin Console

Start JBoss 7 as a service on Ubuntu

Previous versions of JBoss included a scripts (like jboss_init_redhat.sh) that could be copied to /etc/init.d in order to add it as a service – so it would start on boot up. I can’t seem to find any similar scripts in JBoss 7.

If you have copied from other editor or any web page then you will find some unwanted character in the file which will give you error when you will try to run the script.

Error: Bad Interpreter…

Verify Interpreter by “which sh” command in console

Result will be /bin/sh

Then verify the script openining it in VI editor.

Error: JBoss 7 as a service on Ubuntu

Error: JBoss 7 as a service on Ubuntu

Remove all unwanted Characters

JBoss 7 as a service on Ubuntu

JBoss 7 as a service on Ubuntu

Save it

JBoss 7 as a service on Ubuntu - Save Changes

JBoss 7 as a service on Ubuntu – Save Changes

Restart the Machine and try following

Restart JBoss Service

Restart JBoss Service

Done!!!

References

http://en.wikipedia.org/wiki/JBoss_application_server

http://en.wikipedia.org/wiki/Comparison_of_application_servers

http://en.wikipedia.org/wiki/Application_Server

http://stackoverflow.com/questions/6880902/start-jboss-7-as-a-service-on-linux

One thought on “Install WildFly on Ubuntu 12.04 LTS and Ubuntu 12.10”

Leave a Reply