Skip to main content

Liferay Portal

18 replies [Last post]
Anonymous

Hello,

has anyone a running liferay under glassfish?
I found one tutorial for this topic with my favoured searchengine, but
it seems that it is for an old version of liferay and my try to install
it failed.

Liferay offers an bundle glassfish+liferay, but it is only for windows,
not for linux.

Thanks for your help,

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
John Clingan

I had the same problem yesterday (MAC OS build).

On Jan 29, 2008, at 12:22 PM, Michael Post wrote:

> Hello Listusers,
>
> Raju Uppalapati wrote:
>> The following are the steps for installing the bundle:
>> o Execute java -Xmx256m -jar liferay-glassfish-
.jar
>> o Change [basedir]/glassfish
>> o Execute ant -f setup.xml
>> o Change directory to [basedir]/glassfish/bin
>> o Execute ./asadmin start-domain
>>
>> Wait for a minute for the appserver to initialize liferay
>> Upon startup access http://localhost:8080/
>> The first request will take a while (30sec) to respond since the
>> database schema etc are loaded.
>>
>> Will request the liferay team to add these steps on their download
>> page.
> yes. This is clear.
> I got a blank page, but i got some failures in the log.
>
> I work on it.
>
> Thanks for your help.
>
> Michael
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

bchan_liferay
Offline
Joined: 2008-02-06

The instructions are pretty simple.

java -jar -Xmx300m liferay-portal-glassfish-...jar (the 4.4.0 bundle for your OS)

cd glassfish

ant -f setup.xml

cd bin

asadmin.bat start-domain domain1 (or ./asadmin.sh start-domain domain1)

Everything is deployed for you automatically.

--
Brian Chan
Chief Software Architect
Liferay, Inc.
Enterprise. Open Source. For Life.

Message was edited by: bchan_liferay

Alexander Wallace

Two things worth noting, if you are running this on a Mac:

1 - the portal fails to load if running JDK 1.6 from Apple on OS X
1.4 since it is a developers release.
2 - if you try SoyLatte (for a 1.6 impl that works), SoyLatte rports
'Darwin' as the OS Name, and setup.xml doesn't have a condition to
deal with that OS, and thus it thinks it is a regular *NIX and tries
to unpack 'non mac' stuff which is not present in the bundle, and
setup fails... If you add the condition, then it works... (aprox
line 95 if you want to replace the Mac OS condition)...

On Feb 6, 2008, at 6:30 PM, glassfish@javadesktop.org wrote:

> The instructions are pretty simple.
>
> java -jar -Xmx300m liferay-portal-glassfish-...jar (the 4.4.0
> bundle for your OS)
>
> cd glassfish
>
> ant -f setup.xml
>
> cd bin
>
> asadmin.bat start-domain domain1 (or ./asadmin.sh start-domain
> domain1)
>
> Everything is deployed for you automatically.
> [Message sent by forum member 'bchan_liferay' (bchan_liferay)]
>
> http://forums.java.net/jive/thread.jspa?messageID=257768
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

kdeanddd
Offline
Joined: 2008-01-25

For the sake of completeness, I've revised my earlier documentation for Liferay 4.4.0. Here it is again:

Liferay v4 installation and configuration with Glassfish v2

This document has been tested against Glassfish v2ur1 and Liferay 4.4.0. Earlier versions of Liferay had some integration issues with Glassfish that have since been resolved, so this document cannot be used as a reference for anything prior to Liferay 4.4.0.

Downloads

1. Create a directory into which to store and extract the download files (e.g. C:\Liferay).
2. Go to http://www.liferay.com/web/guest/downloads/additional.
3. Download the Liferay Portal 4.X.Y WAR file for Servlet 2.4 to the directory (e.g. C:\Liferay).
4. Download the Liferay Portal 4.X.Y Dependencies file and unzip to the dependencies subdirectory (e.g. C:\Liferay\dependencies).
5. Download the Liferay Portal 4.X.Y SQL Scripts file and unzip to the sql subdirectory (e.g. C:\Liferay\sql).
6. Download the Liferay Plugins SDK 4.X.Y file and unzip to the sdk subdirectory (e.g. C:\Liferay\sdk).
7. Download the Liferay Portal 4.X.Y Web Services Client and unzip to the ws-client subdirectory (e.g. C:\Liferay\ws-client).
8. Download the Liferay Portal 4.X.Y JavaDocs and unzip to the doc subdirectory (e.g. C:\Liferay\doc).

Database configuration

1. Login as the administrator to the database of your choice.
2. Select either the minimal installation (scripts in the sql/create-minimal subdirectory) or the full example installation (scripts in the sql/create subdirectory) and run the script for your database server (e.g. create-mysql.sql). The default database created by the script is called lportal.
3. Recommended security: Create a separate Liferay database user and grant it SELECT, INSERT, UPDATE, and DELETE permissions on all tables in the lportal database.

Glassfish configuration

1. Stop Glassfish if it is running.
2. Copy the Liferay dependencies to the Glassfish domains/
/lib subdirectory.
3. Copy the xercesImpl.jar file from the Liferay sdk/lib subdirectory to the Glassfish domains/
/lib subdirectory.
4. Copy any required bridges (e.g. jsf-portlet.jar) to the Glassfish domains/
/lib subdirectory.
5. Copy the JDBC driver for your database to the domains/
/lib directory.
6. Start Glassfish and login to the Admin Console.
7. Go to Resources/JDBC/Connection Pools and create a connection pool to connect to the lportal database.
8. Go to Resources/JDBC/JDBC Resources, create a JDBC resource with the name jdbc/LiferayPool, and associate it with the connection pool created in the previous step.
9. Go to Resources/JavaMail Sessions and create a JavaMail resource with the name mail/MailSession.
10. Deploy the Liferay WAR file to the server with the context root /.
a. If the application server is running locally, set the upload option to false (if using the asadmin command-line tool) or use the Local packaged file or directory that is accessible from the Application Server option in the Admin Console.
b. For faster application load times, precompile the JSPs (this will take several minutes).
c. Do not run the verifier, as the sun-web.xml file does not match its DTD and will cause a deployment failure.

Liferay configuration

1. Go to the Liferay portal (http://localhost:8080/ if running locally under Glassfish).
2. Sign in as the administrator (test@liferay.com).
3. Add the “Plugin Installer” portlet if not present.
4. Go to the “Configuration” tab of the “Plugin Installer”.
a. Change the “Deploy Directory” to the deployment directory of your choice.
b. Press “Save”.

Leonard Sitongia

Michael Post wrote:
> Hello,
>
> has anyone a running liferay under glassfish?
> I found one tutorial for this topic with my favoured searchengine, but
> it seems that it is for an old version of liferay and my try to install
> it failed.
>
> Liferay offers an bundle glassfish+liferay, but it is only for windows,
> not for linux.
>
Yes, I run them on a couple of servers, Linux and Mac OS X. There are
postings in the forum about running on Glassfish. I don't know what
they have about it in their wiki at this point.

--
==Leonard E. Sitongia
High Altitude Observatory
National Center for Atmospheric Research
P.O. Box 3000 Boulder CO 80307 USA
sitongia@ucar.edu voice: (303)497-2454 fax: (303)497-1589

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

kdeanddd
Offline
Joined: 2008-01-25

Here's a document I put together in the last couple of weeks. Very much a use-at-your-own-risk.

Liferay 4.3.X installation and configuration with Glassfish v2

This document assumes that Glassfish v2 has been installed per its documentation. It also assumes that you are familiar with Glassfish administration.

Downloads

1. Create a directory into which to store and extract the download files (e.g. C:\Liferay).
2. Go to http://www.liferay.com/web/guest/downloads/additional.
3. Download the Liferay Portal 4.3.X WAR file for Servlet 2.4 to the directory (e.g. C:\Liferay).
4. Download the Liferay Portal 4.3.X Dependencies file and unzip to the dependencies subdirectory (e.g. C:\Liferay\dependencies).
5. Download the Liferay Portal 4.3.X SQL Scripts file and unzip to the sql subdirectory (e.g. C:\Liferay\sql).
6. Download the Liferay Plugins SDK 4.3.X file and unzip to the sdk subdirectory (e.g. C:\Liferay\sdk).
7. Download the Liferay Portal 4.3.X Web Services Client and unzip to the ws-client subdirectory (e.g. C:\Liferay\ws-client).
8. Download the Liferay Portal 4.3.X JavaDocs and unzip to the doc subdirectory (e.g. C:\Liferay\doc).

Liferay patch

1. Create the subdirectory WEB-INF/lib from the Liferay directory (e.g. C:\Liferay\WEB-INF\lib).
2. Copy the xercesImpl.jar file from the sdk/lib subdirectory to the WEB-INF/lib subdirectory.
3. Add the file xercesImpl.jar to the Liferay distribution’s WEB-INF/lib subdirectory using the command jar -uvf liferay-portal-4.3.X.war WEB-INF/lib/xercesImpl.jar.
4. Delete the WEB-INF/lib subdirectory.

Database configuration

1. Login as the administrator to the database of your choice.
2. Select either the minimal installation (scripts in the sql/create-minimal subdirectory) or the full example installation (scripts in the sql/create subdirectory) and run the script for your database server (e.g. create-mysql.sql). The default database created by the script is called lportal.
3. Recommended security: Create a database user and grant it SELECT, INSERT, UPDATE, and DELETE permissions on all tables in the lportal database.

Glassfish configuration

1. Stop Glassfish if it is running.
2. Copy the Liferay dependencies to the domains/
/lib directory.
3. Copy the JDBC driver for your database to the domains/
/lib/ext directory.
4. Start Glassfish and login to the Admin Console.
5. Go to Application Server/JVM Settings/JVM Options and add the option Dcom.sun.enterprise.server.ss.ASQuickStartup=false.
6. Go to Resources/JDBC/Connection Pools and create a connection pool to connect to the lportal database.
7. Go to Resources/JDBC/JDBC Resources, create a JDBC resource with the name jdbc/LiferayPool, and associate it with the connection pool created in the previous step.
8. Go to Resources/JavaMail Sessions and create a JavaMail resource with the name mail/MailSession.
9. Deploy the Liferay WAR file to the server with the context root /.
a. If the application server is running locally, set the upload option to false (if using the asadmin command-line tool) or use the Local packaged file or directory that is accessible from the Application Server option in the Admin Console.
b. For faster application load times, precompile the JSPs (this will take several minutes).
c. Do not run the verifier, as the sun-web.xml file does not match its DTD and will cause a deployment failure.

Liferay configuration

1. Go to the Liferay portal (http://localhost:8080/ if running locally under Glassfish).
2. Sign in as the administrator (test@liferay.com).
3. Add the “Plugin Installer” portlet if not present.
4. Go to the “Configuration” tab of the “Plugin Installer”.
a. Change the “Deploy Directory” to the deployment directory of your choice.
b. Change the “Destination Directory” to “../autodeploy”.
c. Press “Save”.

Raju Uppalapati

Yes. We have got Liferay working on Glassfish V2. I tried Liferay 4.3.2.
Infact I created a Glassfish Addon for Liferay and contributed the addon
code into the Liferay trunk.
The code contribution allows liferay to create Liferay Glassfish bundles for
all OS platforms supported by Glassfish.

_raju

On Jan 25, 2008 2:13 AM, Michael Post wrote:

> Hello,
>
> has anyone a running liferay under glassfish?
> I found one tutorial for this topic with my favoured searchengine, but
> it seems that it is for an old version of liferay and my try to install
> it failed.
>
> Liferay offers an bundle glassfish+liferay, but it is only for windows,
> not for linux.
>
> Thanks for your help,
>
> Michael
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
[att1.html]

John Clingan

There are multiple Liferay 4.4.0 w/GlassFish bundles available from
their download page (AIX, Linux, Windows, OSX, Solaris). I belive this
latest bundle was posted a day or two ago:
http://www.liferay.com/web/guest/downloads/portal

On Jan 25, 2008, at 6:22 AM, Raju Uppalapati wrote:

> Yes. We have got Liferay working on Glassfish V2. I tried Liferay
> 4.3.2.
> Infact I created a Glassfish Addon for Liferay and contributed the
> addon code into the Liferay trunk.
> The code contribution allows liferay to create Liferay Glassfish
> bundles for all OS platforms supported by Glassfish.
>
> _raju
>
> On Jan 25, 2008 2:13 AM, Michael Post wrote:
> Hello,
>
> has anyone a running liferay under glassfish?
> I found one tutorial for this topic with my favoured searchengine, but
> it seems that it is for an old version of liferay and my try to
> install
> it failed.
>
> Liferay offers an bundle glassfish+liferay, but it is only for
> windows,
> not for linux.
>
> Thanks for your help,
>
> Michael
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

[att1.html]

Michael Post

Hello John,

thanks for your advice.

John Clingan wrote:
> There are multiple Liferay 4.4.0 w/GlassFish bundles available from
> their download page (AIX, Linux, Windows, OSX, Solaris). I belive this
> latest bundle was posted a day or two ago:
> http://www.liferay.com/web/guest/downloads/portal
>
i downloaded it and execute the .jar-file with java -jar
lifery-portal-glassfish-linux-4.4.0.jar.
The license-dialog popped up and i accept it. Now the sources are
extracted and i got the message that the extract procedure is completed.

And now? What should i do now? I can not find any documentation for the
4.4.0 on the liferay website or in the wiki.

Any idea how i can create a domain with the liferay portal?

Thanks for your help.

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Peter Fabian

Michael Post wrote:
> Hello John,
>
> thanks for your advice.
>
> John Clingan wrote:
>
>> There are multiple Liferay 4.4.0 w/GlassFish bundles available from
>> their download page (AIX, Linux, Windows, OSX, Solaris). I belive this
>> latest bundle was posted a day or two ago:
>> http://www.liferay.com/web/guest/downloads/portal
>>
>>
> i downloaded it and execute the .jar-file with java -jar
> lifery-portal-glassfish-linux-4.4.0.jar.
> The license-dialog popped up and i accept it. Now the sources are
> extracted and i got the message that the extract procedure is completed.
>
> And now? What should i do now? I can not find any documentation for the
> 4.4.0 on the liferay website or in the wiki.
>
> Any idea how i can create a domain with the liferay portal?
>
eg start glassfish with asadmint start-domain. liferay is bundled and
deployed
P

--
Peter Fabian
Sun Software

AIM/skype:fabianpetergabor
Sun corp IM:pf120168@sun.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Michael Post

Hello Peter,

thanks for your answer.

Peter Fabian wrote:
> Michael Post wrote:
> eg start glassfish with asadmint start-domain. liferay is bundled and
> deployed
> P
>
my computer can not find this command. Same without the t at the end.

The files in my directory are this:

3RD-PARTY-LICENSE.txt
CDDLv1.0.txt
CDDLGPLHeader.txt
COPYRIGHT
docs
imq
javadb
jbi
lib
LICENSE.txt
passfile
registry.properties
registry.xml
setup-cluster.xml
setup.xml
updatecenter

Searching this directory for any file named asadmin cannot find
anything. Whats wrong? Sorry for my stupid questions.

Thanks for your help.

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Peter Fabian

Michael Post wrote:
> Hello Peter,
>
> thanks for your answer.
>
> Peter Fabian wrote:
>
>> Michael Post wrote:
>> eg start glassfish with asadmint start-domain. liferay is bundled and
>> deployed
>> P
>>
>>
> my computer can not find this command. Same without the t at the end.
>
> The files in my directory are this:
>
> 3RD-PARTY-LICENSE.txt
> CDDLv1.0.txt
> CDDLGPLHeader.txt
> COPYRIGHT
> docs
> imq
> javadb
> jbi
> lib
> LICENSE.txt
> passfile
> registry.properties
> registry.xml
> setup-cluster.xml
> setup.xml
> updatecenter
>
>
> Searching this directory for any file named asadmin cannot find
> anything. Whats wrong? Sorry for my stupid questions.
>
>

stupid me. you need to install glassfish first, sorry for the wrong info
you need ant on your machine and you should run ant -f setup.xml or -f
setup-cluster.xml if you want to enable the cluster profile
then you will have the asadmin to start glassfish :)

--
Peter Fabian
Sun Software

AIM/skype:fabianpetergabor
Sun corp IM:pf120168@sun.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Michael Post

Hi Peter,

Peter Fabian wrote:
> Michael Post wrote:
>
> stupid me. you need to install glassfish first, sorry for the wrong info
> you need ant on your machine and you should run ant -f setup.xml or -f
> setup-cluster.xml if you want to enable the cluster profile
> then you will have the asadmin to start glassfish :)
>

aarrgghh .... this is the first step on every glassfish tutorial. :-(

Sorry. Now its clear ;-)

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Raju Uppalapati

The following are the steps for installing the bundle:
o Execute java -Xmx256m -jar liferay-glassfish-
.jar
o Change [basedir]/glassfish
o Execute ant -f setup.xml
o Change directory to [basedir]/glassfish/bin
o Execute ./asadmin start-domain

Wait for a minute for the appserver to initialize liferay
Upon startup access http://localhost:8080/
The first request will take a while (30sec) to respond since the database
schema etc are loaded.

Will request the liferay team to add these steps on their download page.

thanks,
_raju

On Jan 29, 2008 6:22 AM, Michael Post wrote:

> Hi Peter,
>
> Peter Fabian wrote:
> > Michael Post wrote:
> >
> > stupid me. you need to install glassfish first, sorry for the wrong info
> > you need ant on your machine and you should run ant -f setup.xml or -f
> > setup-cluster.xml if you want to enable the cluster profile
> > then you will have the asadmin to start glassfish :)
> >
>
> aarrgghh .... this is the first step on every glassfish tutorial. :-(
>
> Sorry. Now its clear ;-)
>
> Michael
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
[att1.html]

Michael Post

Hello Listusers,

Raju Uppalapati wrote:
> The following are the steps for installing the bundle:
> o Execute java -Xmx256m -jar liferay-glassfish-
.jar
> o Change [basedir]/glassfish
> o Execute ant -f setup.xml
> o Change directory to [basedir]/glassfish/bin
> o Execute ./asadmin start-domain
>
> Wait for a minute for the appserver to initialize liferay
> Upon startup access http://localhost:8080/
> The first request will take a while (30sec) to respond since the
> database schema etc are loaded.
>
> Will request the liferay team to add these steps on their download page.
yes. This is clear.
I got a blank page, but i got some failures in the log.

I work on it.

Thanks for your help.

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Peter Fabian

Michael Post wrote:
> Hello Listusers,
>
> Raju Uppalapati wrote:
>
>> The following are the steps for installing the bundle:
>> o Execute java -Xmx256m -jar liferay-glassfish-
.jar
>> o Change [basedir]/glassfish
>> o Execute ant -f setup.xml
>> o Change directory to [basedir]/glassfish/bin
>> o Execute ./asadmin start-domain
>>
>> Wait for a minute for the appserver to initialize liferay
>> Upon startup access http://localhost:8080/
>> The first request will take a while (30sec) to respond since the
>> database schema etc are loaded.
>>
>> Will request the liferay team to add these steps on their download page.
>>
> yes. This is clear.
> I got a blank page, but i got some failures in the log.
>
> I work on it.
>
>
did U change anything like the database perhaps or all stuff is default
P

--
Peter Fabian
Sun Software

AIM/skype:fabianpetergabor
Sun corp IM:pf120168@sun.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Michael Post

Hello Peter,
> did U change anything like the database perhaps or all stuff is default
as written yesterday i change my database to postgresql and now it's
working as desired.

Thanks for your support.
Please contact the package-builder with this information about my
occured problem.

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Peter Fabian

Michael Post wrote:
> Hello Peter,
>
>> did U change anything like the database perhaps or all stuff is default
>>
> as written yesterday i change my database to postgresql and now it's
> working as desired.
>
> Thanks for your support.
> Please contact the package-builder with this information about my
> occured problem.
>
>
already done :)
many thanx for the feedback
P

--
Peter Fabian
Sun Software

AIM/skype:fabianpetergabor
Sun corp IM:pf120168@sun.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net