Combination View Flat View Tree View
Threads [ Previous | Next ]
Lorenzo Zimolo
[HOWTO] Liferay on Websphere
July 14, 2008 1:29 AM
Answer

Lorenzo Zimolo

Rank: New Member

Posts: 8

Join Date: July 14, 2008

Recent Posts

Hello community,

in this period I'm playing with LR and trying to install it on Websphere.
After many tries, and of course the help of this forum, I've installed LR 4.4.2 (not 5.0.1) on WAS 6.1.
Since the official guide didn't work for me, I've written a tutorial about the installation process I've followed.

Hope this can help someone.

Cheers,
Lorenzo
Attachments: Liferay on WAS howto.pdf (86.2k)
Vahan Harput
RE: [HOWTO] Liferay on Websphere
July 14, 2008 7:45 AM
Answer

Vahan Harput

Rank: New Member

Posts: 3

Join Date: July 14, 2008

Recent Posts

Hello,

I tried to install a theme on LR 5.0.1 with WAS 6.1 using the procedure described in the chapter 2.8. Unfortunately I am getting an error during the installation of the theme WAR file (using the envision-theme):

AppDeploymentException: java.lang.ClassCastException: org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl incompatible with org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile

Has anybody succeeded in installing a theme with LR 5.0.1 on WS 6.0.1??

Thanks in advance.

Best regards,
Vahan Harput
pepitogrillo grillo
RE: [HOWTO] Liferay on Websphere
July 14, 2008 7:53 AM
Answer

pepitogrillo grillo

Rank: New Member

Posts: 10

Join Date: July 9, 2008

Recent Posts

Thanks a lot for your tutorial!

Can you install any portlet on websphere for Liferay?
The other post about installing portlets are not correct because there is only one that explains how to install portlets, is the jsp portlet and needs to be altered some jsp. If you could do some manual explains it would be great.
Thanks!
Lorenzo Zimolo
RE: [HOWTO] Liferay on Websphere
July 15, 2008 8:41 AM
Answer

Lorenzo Zimolo

Rank: New Member

Posts: 8

Join Date: July 14, 2008

Recent Posts

I had the same problem today, with LR 5.0.1, trying to install marketplace theme 5.0.0.1.
It shoud disappear if you add to the WEB-INF folder of the WAR a file named web.xml with the following content:

1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
3
4<web-app>
5</web-app>


Anyway, even following the procudure I've described in the document, the theme doesn't appear in the portlet. Maybe you'll be more lucky ! emoticon

Lorenzo
Lorenzo Zimolo
RE: [HOWTO] Liferay on Websphere
July 17, 2008 3:30 AM
Answer

Lorenzo Zimolo

Rank: New Member

Posts: 8

Join Date: July 14, 2008

Recent Posts

I post an updated version of the document covering:
- LR 5.0.1
- portlet deploy
- other minor changes
- some open issue

If someone reads it, please send me some comment and/or corrections.

Lorenzo
Attachments: Liferay on WAS howto.pdf (126.1k)
jeff gerbracht
RE: [HOWTO] Liferay on Websphere
August 21, 2008 6:51 AM
Answer

jeff gerbracht

Rank: Junior Member

Posts: 64

Join Date: June 5, 2008

Recent Posts

Lorenzo,
Thanks for producing this, it's a big help for those of us trying to use Liferay in RAD and Websphere. I'm however running into an issue getting the sample portlets to work in RAD. I've placed the sample portlet in the same EAR as Liferay and updated the files in the samples WEB-INF with changes I pulled from a tomcat install I also have. Both start up fine but the sample portlets are not appearing in the "Add Applications" popup. Do you have any ideas on how to make Liferay 5.1.1 aware of the sample portlet?
Thanks,
Jeff
Lorenzo Zimolo
RE: [HOWTO] Liferay on Websphere
August 25, 2008 7:55 AM
Answer

Lorenzo Zimolo

Rank: New Member

Posts: 8

Join Date: July 14, 2008

Recent Posts

Hi Jeff.

Excuse me for the delay I answer you, but I had a three weeks holiday emoticon

Coming to your problem, I've not yet installed LR 51.1., but I guess its the same of the older versions.
I've not a ready answer for your problem, but I seggest you to:
- check the logs of Websphere looking for the portlet startup: is it there?
- have you done step 3.2.3 ?

Please uninstall the module from WAS console. Then instead of overwrite the files with the tomcat installation, di the following:
- deploy the portlet in Tomcat
- be sure to see it in the "Add applciation"
- extract the portlet WAR from Tomcat
- modify the files as in the document
- zip the folder and rename it to .war
- deploy with WAS console
- restart all.

Hope this help.

Ciao,
Lorenzo
jeff gerbracht
RE: [HOWTO] Liferay on Websphere
August 25, 2008 8:09 AM
Answer

jeff gerbracht

Rank: Junior Member

Posts: 64

Join Date: June 5, 2008

Recent Posts

Lorenzo,
I had followed all those steps and was successful in the war starting in the ear. I had put both LR and the portlet in the same ear. They weren't sharing libraries which ended up being the issue. The solution, which would be a good addition to your document, was to go to the deployments tab in the ear (application.xml) and under the Application section change the WAR classloader policy to APPLICATION instead of MODULE. This enabled both wars to utilize the same instance of common libraries which solved the problem.
Cheers,
Jeff
Lorenzo Zimolo
RE: [HOWTO] Liferay on Websphere
August 27, 2008 12:13 AM
Answer

Lorenzo Zimolo

Rank: New Member

Posts: 8

Join Date: July 14, 2008

Recent Posts

Jeff,

have you figured out what are the involved libraries to share ?

I would prefere to include them at application level by the WAS shared library mechanism instead of changing the classloader policy of WARs.

Anyway thank you very much for your suggestion: I'll add it in a new version of the document.

Ciao,
Lorenzo
jeff gerbracht
RE: [HOWTO] Liferay on Websphere
August 27, 2008 7:17 AM
Answer

jeff gerbracht

Rank: Junior Member

Posts: 64

Join Date: June 5, 2008

Recent Posts

I believe that portal-client.jar is the main one.
Faisal K
RE: [HOWTO] Liferay on Websphere
September 6, 2008 11:26 PM
Answer

Faisal K

Rank: Regular Member

Posts: 138

Join Date: January 9, 2008

Recent Posts

Hi Lorenzo ,

One of our client have set upped liferay-5.0.1 in Websphere community Edition server, now I want to deploy a struts portlet, would you please help me what are the changes I have to make in the war file which is working fine in tomcat.
Lorenzo Zimolo
RE: [HOWTO] Liferay on Websphere
October 20, 2008 1:11 AM
Answer

Lorenzo Zimolo

Rank: New Member

Posts: 8

Join Date: July 14, 2008

Recent Posts

Hi community.

The new version (0.9.2) of the document is attached.
Still have problems with portlet installation, even with LR 5.1.2.
See LPS-34 and, please, vote for it.

Cheers,
Lorenzo
Attachments: Liferay on WAS howto.pdf (160.3k)
Wahid Bashirazad
RE: [HOWTO] Liferay on Websphere
October 23, 2008 6:33 AM
Answer

Wahid Bashirazad

Rank: New Member

Posts: 8

Join Date: August 12, 2008

Recent Posts

Hi Lorenzo.

I was able to run Liferay 5.1.2 on Websphere 6.1 even on an IBM z/OS server. In addition to the steps in your documentation, it was necessary to do the followings:

I got some exceptions because of the incompatibility with the IBM class com.ibm.ws.management.PlatformMBeanServerBuilder
The workaround was to set the property “locateExistingServerIfPossible” in the file META-INF/management-spring.xml inside of portal-impl.jar to false. Additionally I set the JVM-Parameter -Djavax.management.builder.initial= .

I also removed all the jar files from WEB-INF/lib and defined them as Shared libraries. The volume of the Liferay WAR file was reduced on 5mb and the deployment time was drastically reduced.

What is your opinion about these steps?
Lorenzo Zimolo
RE: [HOWTO] Liferay on Websphere
October 28, 2008 9:08 AM
Answer

Lorenzo Zimolo

Rank: New Member

Posts: 8

Join Date: July 14, 2008

Recent Posts

Hi Wahid,

Wahid Bashirazad:

I was able to run Liferay 5.1.2 on Websphere 6.1 even on an IBM z/OS server. In addition to the steps in your documentation, it was necessary to do the followings:

I got some exceptions because of the incompatibility with the IBM class com.ibm.ws.management.PlatformMBeanServerBuilder
The workaround was to set the property “locateExistingServerIfPossible” in the file META-INF/management-spring.xml inside of portal-impl.jar to false. Additionally I set the JVM-Parameter -Djavax.management.builder.initial= .


Don't understand exactly what was your problem: if you still have them, post the stack traces... Are these z/OS related issues?

Wahid Bashirazad:

I also removed all the jar files from WEB-INF/lib and defined them as Shared libraries. The volume of the Liferay WAR file was reduced on 5mb and the deployment time was drastically reduced.
What is your opinion about these steps?


Nice hint. In my document I only suggest the minimum things to do for the installation.

Cheers,
Lorenzo
jean xu
RE: [HOWTO] Liferay on Websphere
January 21, 2009 5:34 PM
Answer

jean xu

Rank: New Member

Posts: 2

Join Date: January 21, 2009

Recent Posts

Hi Lorenzo,

I followed your instruction to install liferay 5.1.2 on WAS 6.1, and it worked great. Any idea on how to enable web service? I deploy tunnel-web.war and it's not working..

Thanks a lot!
ana castro
RE: [HOWTO] Liferay on Websphere
January 27, 2009 3:32 AM
Answer

ana castro

Rank: New Member

Posts: 1

Join Date: January 22, 2009

Recent Posts

I was able to run Liferay 5.1.2 on Websphere 6.1 and now I'm trying with websphere 7.0, but I have many problems.
Have anybody been able with was 7?
Marcel Friedmann
RE: [HOWTO] Liferay on Websphere
January 30, 2009 3:14 AM
Answer

Marcel Friedmann

Rank: Junior Member

Posts: 63

Join Date: September 10, 2007

Recent Posts

Hi,

i managed to deploy liferay 5.2 in WebSphere 6.1.


Link: http://eichelgartenweg2.blogspot.com/2009/01/liferay-52-on-websphere-61.html

Description:
1. Deploy the Liferay 5.2 war-File (with dependencies)
2. Move portal-kernel.jar and container.jar to "WebSphere-System-root"/lib/ext
3. Move icu4j.jar and portlet.jar to "WebSphere-System-root"/java/jre/lib/ext
4. Download the sun saw-api (saw-api.jar) and move it to /WEB-INF/lib
5. Setup Database-Connection either in portal-ext.properties or in ext-spring.xml
5.1 To setup the database in portal-ext.properties take a look at portal-impl.jar//portal.properties (chapter JDBC). With this setup Liferay 5.2 will use the apache common connection pool.
5.2 To use the connection pool of WebSphere you need to create a file called ext-spring.xml and place it into /WEB-INF/classes/META-INF. Download the ext-spring.xml here (can be downloaded over the link above ).
6. Deactivate the javascript fast load option in portal-ext.properties with this value


javascript.fast.load=false

It seems the fast load option (yui compression of JS/CSS files) is NOT correctly implemented (for WebSphere).

WORKAROUND:
Put theses files into /html/js (can be downloaded over the link above )

* everything_unpacked.js
* everything_packed.js
* barebone_packed.js
* barebone_unpacked.js

Edit JavaScript-Settings in portal-ext.properties

##
## JavaScript
##
javascript.barebone.files=\
\
#
# Self-packed files
#
\
barebone_packed.js
#
# Specify the list of everything files (everything else not already in the
# list of barebone files).
#
javascript.everything.files=\
\
#
# Self-packed files
#
\
everything_packed.js
JavaScript files.

javascript.barebone.enabled=true

javascript.fast.load=false

javascript.log.enabled=false


7. Restart your server.
Armin Cyrus Dahncke
RE: [HOWTO] Liferay on Websphere
February 18, 2009 8:23 AM
Answer

Armin Cyrus Dahncke

LIFERAY STAFF

Rank: Junior Member

Posts: 80

Join Date: August 12, 2008

Recent Posts

Hi,

we faced that issue with missing web-services today too. Our setup was a Demo WAS 6.1 with a liferay 5.2.1. We just zipped the tomcat/webapp/tunnel-web folder to a tunnel-web.war and deployed it next to liferay on my WAS.
The context root 4 our showcase was:

liferay.war /
tunnel-web.war /tunnel-web

For us it worked out.


Regards Armin
Hervé Ménage
RE: [HOWTO] Liferay on Websphere
March 6, 2009 6:19 AM
Answer

Hervé Ménage

Rank: Junior Member

Posts: 50

Join Date: March 1, 2007

Recent Posts

Hi,

Thank you, your instructions work well. I successfully installed Liferay5.2.2 on WAS 6.1

Regards
Hervé
sajit vasudevan
RE: [HOWTO] Liferay on Websphere
January 27, 2011 5:47 AM
Answer

sajit vasudevan

Rank: New Member

Posts: 9

Join Date: January 19, 2011

Recent Posts

I am a newbie here. I have followed the instructions as mentioned for the previous versions but getting errors during start up...

Has anyone tried installing, deploying and running -
liferay-portal-6.0.5.war on WAS 6.1.0.33

Regards
Sajit