Tuesday, May 1, 2012

Configuration of Liferay with JBOSS-7 Application server



Configuration of Liferay with JBOSS-7 Application server is bit tricky than tomcat. After searching on internet for the same issue, I got confused that how to configure Liferay with JBOSS from scratch.

Then I came up with a good solution for it.  You will find below post very helpful which will guide you in a way by which you can run Liferay-JBOSS portal easily.

Step 1: To setup machine for Liferay development first of all you will need to download and install all required software as described below.


Step 2: Now set environment variables in your machine.
       Set JAVA_HOME

  
    
  
   
    Set JBOSS_HOME

 
       
     
  
  
    Set LIFERAY_HOME

 
    
  
   

    Set ANT_HOME

 
   
  
   
     
Step 3: Open Eclipse and install Liferay IDE.
Go to Help -> Eclipse Marketplace
    Search for "Liferay".

 
   



    Install Liferay IDE and restart eclipse.

     Step 4: To configure Liferay Plugin-SDK
    Go to Window -> Preferences -> Liferay


 
   





    Add Liferay Plugin-SDK 
     
 
        



 
       


     Here you will option to update build.<username>.properties file. Select
     prompt.


     That's it your system is ready with development environment for Liferay.
       
     Step 6: In Liferay Plugin-SDK folder there will be a file called
     build.username.properties

     Set path of server to refer JBOSS directory.
     

 
    
   


  Step 7:Create new Liferay Plugin Project.
  Inside that Create New Portlet Project.

 
         
    

   Select Liferay Portal Runtime as Tomcat, because Eclipse doesn't provide
   runtime for JBOSS Application server so use some tricky way to deal with it.



    After clicking on finish it will ask for updating build.<username>.properties file.
    Select "No" option.

    Okay Now you are done with project creation and Setting  deployment server
    as JBOSS.


    Step 8: Deploy Liferay Portlet Project.

 
   
  
    Step 9: Run standalone.bat from bin directory of JBOSS  

    Step 10: From your browser type http://localhost:8080/
   

2 comments:

  1. Great blog helpful in our new project develop in jboss

    ReplyDelete
  2. Hello, we are having a style problem, and it seems that this guide could help us, but the images are not visible. There are settings that are seen in the images. Would there be a way to re-upload these images?
    Thanks!

    ReplyDelete