Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Liferay 6.0: Installing Liferay on an Existing Application Server

PopeyeTheSailorDec 4 2010 — edited May 6 2011
Dear Java EE SDK Forum :
3980

I'm looking at Liferay 6.0 "Docs & Resources"
http://www.liferay.com/documentation/liferay-portal/6.0/community-resources

Under the section labeled "Administration",
there is the "Portal Administrator's Guide, 4th Edition"...
which provides a link to the document (pdf file)...
http://cdn.docs.liferay.com/portal/6.0/official/liferay-administrator-guide-6.0.pdf

Page 30 has a section entitled...
"Installing Liferay on an Existing Application Server" / " Installing Liferay in 10 Easy Steps "

I've executed this procedure and it seems to fail.
Has anyone executed this procedure successfully?

I've posted to the Liferay Forum: Installation: " 6.0.5 GlassFish Install ".
What follows is the same post ( here on the " Java EE SDK Forum " ).

This post includes my...
What I Did ( installation choices )
GlassFish Java EE 6 SDK Server.log Observations & Anomalies
system information, JSE 6 Version, JEE Version and Liferay Version.

WHAT I DID ( INSTALLATION CHOICES )
Uninstalled "Java EE 6 SDK" .
Installed "Java EE 6 SDK" via java_ee_sdk-6u-windows.exe .
Checked for updates and found 3 ( pkg-java, javaee-tutorial, sdk-branding-full ) and installed .
Then I followed Liferay Administrative Guide, Page 30,
"Installing Liferay on an Existing Application Server" / " Installing Liferay in 10 Easy Steps "

1. Obtain the Liferay .war file and the dependencies archive.
WHAT I DID...
I downloaded 2 files: liferay-portal-6.0.5.war , liferay-portal-dependencies-6.0.5.zip

2. Make sure you do not have an application listening at the root (/) of
your server. If you do, move it to a different context or undeploy it.
WHAT I DID...
asadmin start-domain
http://localhost:8080
Verified Response is "HTTP Status Code 404", "Requested Resource Not Available"

3a) Decide whether you want to use your application server's data
sources or if you want to use the one included with Liferay.
WHAT I DID...
I choose "use the one (jdbc resource / data source) included with Liferay"
Did NOT create of portal-ext.properties file.

3b) If you want to use your application server's data source, create a data
source for Liferay called jdbc/LiferayPool.
WHAT I DID...
Not Applicable. Did NOT create of portal-ext.properties file.

4. Decide whether you want to use your application server's mail
session or if you want to use the one included with Liferay. If you
want to use your application server's mail session, create one called
mail/MailSession.
WHAT I DID...
I choose " use the one (mail session) included with Liferay ".
Did NOT create of portal-ext.properties file.

5. Shut your application server down.
WHAT I DID...
asadmin stop-domain

6. Extract the dependencies to a location on your server's global class
path. This allows both Liferay and plugins to access these
dependencies.
WHAT I DID...
I copied the (downloaded) liferay-portal-dependencies-6.0.5.zip to domain1/lib and
the right clicked and selected "Extract All".

7a) Create a portal-ext.properties file and place it in the Liferay Home folder.
WHAT I DID...
Did NOT create of portal-ext.properties file.

7b) See the notes on specific application servers below for
the location of this folder for your application server.
WHAT I DID...
Per Admin Guide, page 32 Steps 1 and 2
changed config/domain.xml jvm option to " Xmx1024m "

Per Admin Guide, page 32 Steps 3...
ADDED config/domain.xml jvm option to " -XX:MaxPermSize=256m "
OBSERVATION: The resultng file now includes 2 entries (lines) setting this jvm option.

Per Admin Guide, page 32 Steps 4...
deleted file domain1/docroot/index.html

Per Admin Guide, page 32 Steps 5a...
"5. Extract the Liferay dependencies archive into your domain's lib folder. "
Did that.

Per Admin Guide, page 32 Steps 5b...
" Extract your database's JDBC driver here as well. "
Skipped.

8. Add either the JNDI name of your data source or the JDBC
parameters above to connect Liferay to your database.
WHAT I DID...
Did NOT create of portal-ext.properties file.
NOTE: Liferay Administrative Guide page 222... "JDBC"
"Set the JNDI name to lookup the JDBC data source.
If none is set, then the portal will attempt to create the JDBC data source based on the properties
prefixed with jdbc.default.

9. Add either the JNDI name of your mail session or the mail
parameters above to connect Liferay to your mail server.
WHAT I DID...
Did NOT create of portal-ext.properties file.

10. Start your application server, deploy the Liferay .war file, and start it.
WHAT I DID...
I copied the (downloaded) liferay-portal-6.0.5.war to domain1/lib .
asadmin start-domain
Verify / observe server.log.
Deploy the liferay war file (but do not enable).
Verify / observe the server.log.
Enable liferay war.
Verify / observe the server.log


GLASSFISH "Java EE 6 SDK" SERVER.LOG OBSERVATIONS & ANOMALIES :
1) asadmin start-domain " produces 1 "WARNING"...
"[#|2010-12-01T21:44:30.550-0600|WARNING|glassfish3.0.1|null|_ThreadID=24;_ThreadName=Thread-1;|
Resource not found: com/sun/enterprise/v3/admin/adapter/theme/com/sun/webui/jsf/suntheme/images/masthead/masthead_button_over.gif|#]

2) Deploy produces 1 "WARNING"...
"[#|2010-12-01T21:46:08.034-0600|WARNING|glassfish3.0.1|org.apache.catalina.connector.Request|_ThreadID=29;_ThreadName=Thread-1;|
PWC4011: Unable to set request character encoding to UTF-8 from context , because request parameters have already been read, or ServletRequest.getReader() has already been called|#]

3) "liferay-portal-6.0.5 was successfully deployed in 90,191 milliseconds.|#]"

4) Enable produces "WARN"...
"WARN [DialectDetector:84] Liferay is configured to use Hypersonic as its database.
Do NOT use Hypersonic in production.
Hypersonic is an embedded database useful for development and demo'ing purposes.
The database settings can be changed in portal.properties."

5) Enable produces "WARNING"...
"[#|2010-12-01T21:49:14.012-0600|WARNING|glassfish3.0.1|javax.enterprise.system.core.security|_ThreadID=30;_ThreadName=Thread-1;|
No Principals mapped to Role [users].|#]

6) Enable produces "SEVERE"...
"[#|2010-12-01T21:49:29.089-0600|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=30;_ThreadName=Thread-1;|
(Location of error unknown)java.lang.IllegalArgumentException: name
|#]

7) Enable produces "ERROR"...
[#|2010-12-01T21:49:41.432-0600|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=30;_ThreadName=Thread-1;|21:49:41,425 ERROR
com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.PropertyAccessException: Exception occurred inside getter of com.liferay.portal.model.impl.UserImpl.digest
at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:189)
at com.liferay.portal.service.persistence.UserPersistenceImpl.updateImpl(UserPersistenceImpl.java:561)
at com.liferay.portal.service.persistence.UserPersistenceImpl.updateImpl(UserPersistenceImpl.java:1)
at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:255)
at com.liferay.portal.service.impl.CompanyLocalServiceImpl.checkCompany(CompanyLocalServiceImpl.java:257 [PortalInstances:354] com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.PropertyAccessException: Exception occurred inside getter of com.liferay.portal.model.impl.UserImpl.digest)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)

8) Launch produces "ERROR"...
[#|2010-12-01T21:50:17.757-0600|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=32;_ThreadName=Thread-1;|21:50:17,752 ERROR [PortalInstances:194] com.liferay.portal.NoSuchGroupException: No Group exists with the key {companyId=10901, name=Guest}
com.liferay.portal.NoSuchGroupException: No Group exists with the key {companyId=10901, name=Guest}
at com.liferay.portal.service.persistence.GroupPersistenceImpl.findByC_N(GroupPersistenceImpl.java:1281)
at com.liferay.portal.service.impl.GroupLocalServiceImpl.getGroup(GroupLocalServiceImpl.java:528)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)


SYSTEM INFORMATION
C:\> systeminfo
OS Name: Microsoft Windows 7 Home Premium
OS Version: 6.1.7600 N/A Build 7600
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
System Manufacturer: Compaq-Presario
System Model: NY540AA-ABA CQ5210F
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: AMD64 Family 16 Model 6 Stepping 2 AuthenticAMD ~2700 Mhz

JSE 6 VERSION...
java -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b17, mixed mode)

JEE 6 GLASSFISH (software development kit) VERSION...
asadmin version
Version = GlassFish Server Open Source Edition 3.0.1 (build 22)

3 GLASSFISH UPDATES AVAILABLE & INSTALLED...
C:\glassfishv3\bin>pkg list -a
NAME (PUBLISHER) VERSION STATE UFIX
javaee-tutorial 6.0.5-1 installed ----
pkg-java 1.122-38.2791 installed ----
sdk-branding-full 3.0.1-22 installed ----

LIFERAY VERSION...
dir li*
11/23/2010 08:43 PM 124,328,033 liferay-portal-6.0.5.war
11/23/2010 08:45 PM 4,053,810 liferay-portal-dependencies-6.0.5.zip
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 3 2011
Added on Dec 4 2010
1 comment
3,135 views