Now the real thing...

Go to Liferay.com and download the Entreprise release (extension must be .ear) and get it in a safe place on your computer.

Make a copy of it in a tmp dir and launch a DOS prompt. Go to this tmp dir and enter jar -xvf liferay-portal-4.0.0.ear

This is going to explode you ear file in the tmp dir, then check for portal-ejb.jar file and just explode it too (jar -xvf portal-ejb.jar) in order to get the portal.properties file. Once you located this file move it to /AppServer/domains/domains1/lib/classes (this has been a very important hint for me given by someone from Sun)


The last check list:

1. Glassfish setup and working
2. database ok and tables populated
3. liferay 4.0 ear file downloaded and portal.properties at the right place

Now, let's rock and roll: installing the ear file. I did it via Glassfish admin interface (never tested it using the autodeploy dir). Go to Entreprise Applications and select Deploy then browse to the .ear file and start the loading process.

One thing to do before the final go is to rename path into something like /liferay instead of /liferay-portal-4

At this point you'll have to restart Glassfish after what you should see the Liferay Portal Public home page when pointing at http://localhost:8080/

NOTA 1: If you have downloaded Liferay from SVN then just go to portal-ejb folder and copy the portal.properties file to the right folder under Glassfish

9 commentaires

  1. James // 7:18 PM  

    Great! Thanks for the detailed instructions.

    It troubles me though that we need to put the portal.properties file in /AppServer/domains/domains1/lib/classes .

    Obviously it gives an error when you try to deploy without this, but did your contact from Sun tell you exactly why this had to be done?

  2. Stef // 11:42 PM  

    No and I never asked...

    Actually I think that it is for some read/write and access reasons.

    I think that a goog thing would be to have a look at the Sun AS server doc to see how all these folders are used.

  3. Spaceman_spiff // 9:51 PM  

    Hi Stef. Thanks for the guide. You should publish it on the Liferay wiki.

    I went through all your steps (and then double-checked each), but when I get to the deploy stage, I get the following:

    Deploying application in domain failed; Error loading deployment descriptors for module [liferay] -- com/liferay/lock/service/LockService Error loading deployment descriptors for module [liferay] -- com/liferay/lock/service/LockService

    The only difference I can think of is that this is SJAS 9. Any ideas?

  4. Jignesh // 1:11 AM  

    Hi Stef,

    Can you please help me sort out this problem :
    I am getting the following error when deploying the

    liferay-portal-4.2.2.ear from the admin console :

    Deploying application in domain failed; Error loading deployment descriptors for module [liferay] -- com/liferay/documentlibrary/service/DLLocalService Error loading deployment descriptors for module [liferay] -- com/liferay/documentlibrary/service/DLLocalService

    Also when i click on the OK tab after specifying the path to ear file it prompts me the following thing:

    Selected application does not match application type.

    What does this indicate and how to resolve the problem??

    Thanks

  5. Adbeel // 3:01 AM  

    i copied dependencies(available in http://downloads.sourceforge.net/lportal/liferay-portal-dependencies-4.2.2.zip?download) to domains/domain1/lib/ext and worked good.

  6. Marcello // 6:08 PM  

    Hi, i had just try to deploy the 4.3.3 version of liferay is a war(i haven't found the ear) but following all the instruction liferay cannot start... do you know how can do it?


    TNX from Italy

  7. Ravneet // 7:27 AM  

    Hi I followed all the instructions specified in "Liferay & Glassfish part 3:COnfiguring Liferay"
    I changed the path from liferay-portal-4.0.0.ear to liferay.ear but on deploying the ear file i get the following error


    Deploying application in domain failed; Error loading deployment descriptors for module [liferay] -- com/liferay/portal/service/DataTrackerLocalService Error loading deployment descriptors for module [liferay] -- com/liferay/portal/service/DataTrackerLocalService

    Can anybody please assist me in the same?

  8. Sandeep Kumar // 11:15 AM  

    how much you earn money from your blog in a month

  9. Sandeep Kumar // 11:18 AM  

    You may reply me on my email-id

    sandeep15284@gmail.com

    i have created a blog: http://javasks.blogspot.com


    i want to earn money from my blog like you please reply me.