Fórumok

Deploying SO Portlets in Portal

thumbnail
Matt Fulford, módosítva 14 év-val korábban

Deploying SO Portlets in Portal

New Member Bejegyzések: 17 Csatlakozás dátuma: 2009.04.06. Legújabb bejegyzések
Hi,
I'm keen to get the Social Office portlets deployed in Liferay Portal, but am having problems doing so.

I'm running the 5.2.3 release of Portal on Tomcat, and I have the 5.2.x branch of plugins checked out from SVN. The so-portlet component builds successfully, but I get all kinds of exceptions in the portal log when I deploy (including class not found for com.liferay.util.bridges.mvc.MVCPortlet).

I've deployed so-theme and that works ok.

Should these versions of portal and so-portlet be compatible, and if so, are there any special steps I should be taking?

Many thanks,
Matt
thumbnail
Jonas Yuan, módosítva 14 év-val korábban

RE: Deploying SO Portlets in Portal

Liferay Master Bejegyzések: 993 Csatlakozás dátuma: 2007.04.27. Legújabb bejegyzések
Hi Matt,

Can you try this package? Updates of so-portlet and so-theme are available (for 5.2.3 or above) at

http://liferay.cignex.com/palm_tree/book/so-portlet.war

http://liferay.cignex.com/palm_tree/book/so-theme.war

You would find the same at
Errata+for+the+Liferay+Portal+5.2+Systems+Development

These two are deployed in cent OS(OS 64bit, JDK 1.6, Tomcat 6.0, MySQL, integrated with LDAP). They are working well. Of course, you can verify them at:

Server URL:
http://liferay.cignex.com

An account from LDAP:
jane/jane

Or create new account on fly.

Thanks

Jonas Yuan
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
thumbnail
Matt Fulford, módosítva 14 év-val korábban

RE: Deploying SO Portlets in Portal

New Member Bejegyzések: 17 Csatlakozás dátuma: 2009.04.06. Legújabb bejegyzések
Thanks Jonas.

I've given these wars a try and upon deploying so-theme, I get the following error:
java.lang.ClassNotFoundException: com.liferay.portal.servlet.filters.etag.ETagFilter


Deploying so-portlet produces:
java.lang.NoClassDefFoundError: com/liferay/util/bridges/mvc/MVCPortlet


I'm using the standard 5.2.3 build - should I be running something different for these to deploy correctly?

Thanks,
Matt
thumbnail
Jonas Yuan, módosítva 14 év-val korábban

RE: Deploying SO Portlets in Portal

Liferay Master Bejegyzések: 993 Csatlakozás dátuma: 2007.04.27. Legújabb bejegyzések
Hi Matt,

Oh, being surprised! Let me check these WAR and come back to you shortly.

Thanks

Jonas Yuan
Névtelen, módosítva 14 év-val korábban

RE: Deploying SO Portlets in Portal

Bejegyzés: 1
Jonas,
I am able to deploy SO portlet. However, after adding the SO portlet in my site, I only get Open hyperlink, when I click on that link, i get error.

Thank you
Ravi
thumbnail
Jonas Yuan, módosítva 14 év-val korábban

RE: Deploying SO Portlets in Portal

Liferay Master Bejegyzések: 993 Csatlakozás dátuma: 2007.04.27. Legújabb bejegyzések
Hi Ravi,

Thank you. It is good news: getting SO portlet deployed successfully.

SO portlet should be invisible, requiring SO theme. It will generate users and pages automatically.

Could you please provide details about the issues?

Thanks

Jonas Yuan
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Ravinder Singh, módosítva 14 év-val korábban

RE: Deploying SO Portlets in Portal

New Member Bejegyzések: 8 Csatlakozás dátuma: 2009.08.30. Legújabb bejegyzések
Jonas,
Please see the attached error(tomcat.txt) and screen shots with 4 SO portlets. There was no problem during theme deployment
Ravinder Singh, módosítva 14 év-val korábban

RE: Deploying SO Portlets in Portal

New Member Bejegyzések: 8 Csatlakozás dátuma: 2009.08.30. Legújabb bejegyzések
Matt,
I was getting the same error in web form portlet during compile time, it is because the MVCPortlet class is missing in util-bridges.jar. I put the jar file under /tomcat/lib/ext directory, after i did not get this error. Please see the attached file
thumbnail
Matt Fulford, módosítva 14 év-val korábban

RE: Deploying SO Portlets in Portal

New Member Bejegyzések: 17 Csatlakozás dátuma: 2009.04.06. Legújabb bejegyzések
Jonas / Ravi,
Thanks for your help so far with this, I'm getting somewhere now...

However, I still get the ETagFilter CNF exception when deploying the theme and portlets - any idea why that's not present in 5.2.3? Are you using a later portal codebase?

The SO sites seem to work ok, apart from the document library portlet, which causes the following error:

17:47:26,484 ERROR [IncludeTag:79] Current URL /group/mysite/documents generates exception: Unable to compile class for JSP:

An error occurred at line: 57 in the jsp file: /html/portlet/document_library/file_entry_columns.jspf
LockLocalServiceUtil cannot be resolved
54:                                             folder = fileEntry.getFolder();
55:
56:                                             try {
57:                                                     lock = LockLocalServiceUtil.getLock(DLFileEntry.class.getName(), DLUtil.getLockId(fileEntry.getFolderId(), fileEntry.getName()));
58:
59:                                                     isLocked = Boolean.TRUE;
60:


Again, do you think LockLocalServiceUtil.class is in a later codebase?

Regards,
Matt
thumbnail
Jonas Yuan, módosítva 14 év-val korábban

RE: Deploying SO Portlets in Portal

Liferay Master Bejegyzések: 993 Csatlakozás dátuma: 2007.04.27. Legújabb bejegyzések
Hi Matt and Ravi,

Thank you both. It seems that you both have same issue:

java.lang.ClassNotFoundException: com.liferay.portal.servlet.filters.etag.ETagFilter


ETagFilter is available only in 5.2.5 or above.

LockLocalServiceUtil is only available in 5.2.6 or above.

I am checking the possible solution in 5.2.3 ...

Thanks

Jonas Yuan
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
thumbnail
Jonas Yuan, módosítva 14 év-val korábban

RE: Deploying SO Portlets in Portal

Liferay Master Bejegyzések: 993 Csatlakozás dátuma: 2007.04.27. Legújabb bejegyzések
Hi Matt and Ravi,

Couldn't make so-portlet fixed individually in 5.2.3, but just made Liferay-portal plus SO portlet and SO theme working fine.

You can download it from
liferay-portal-5.2.3-so

Note that the port: 9090
Account: admin/admin

Hope that it helps

Thanks

Jonas Yuan

Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Ravinder Singh, módosítva 14 év-val korábban

RE: Deploying SO Portlets in Portal

New Member Bejegyzések: 8 Csatlakozás dátuma: 2009.08.30. Legújabb bejegyzések
Hi Jonas,
Thank you for your response. I downloaded the same and it is the SO package. I think, we were trying to deploy SO portlet/theme as part of liferay portal. Rightnow, i donot see the Welcome Dock, can not add applications.

Please clarify, if I have done something wrong
thumbnail
Jonas Yuan, módosítva 14 év-val korábban

RE: Deploying SO Portlets in Portal

Liferay Master Bejegyzések: 993 Csatlakozás dátuma: 2007.04.27. Legújabb bejegyzések
Hi Ravi,

Congratulation!

This is expected behavior - you don't see the Welcome Dock, can not add applications, since hooks do these tasks automatically.

Thus we can say "SO is a special portal instance - using hooks and other portlets".

Thanks

Jonas Yuan
-----------------
The Author of Liferay Books:
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
thumbnail
Matt Fulford, módosítva 14 év-val korábban

RE: Deploying SO Portlets in Portal

New Member Bejegyzések: 17 Csatlakozás dátuma: 2009.04.06. Legújabb bejegyzések
Hi Jonas,
Many thanks for help with this, much appreciated. I've now got everything working as I intended.

Ravi - You can just modify the so-theme templates to expose the add application, layout template and toggle edit controls features. Modify the navigation_top.vm template to add these controls in (look at the classic theme dock.vm template), and also comment out the line Liferay.Layout = null in javascript.js.

Best practice would be to create your own custom theme based on so-theme, and make these modifications in _diff.

Regards,
Matt
Bruno Hernan Gallo, módosítva 14 év-val korábban

RE: Deploying SO Portlets in Portal

New Member Bejegyzések: 16 Csatlakozás dátuma: 2009.03.27. Legújabb bejegyzések
Hi Matt and Ravi,

Couldn't make so-portlet fixed individually in 5.2.3, but just made Liferay-portal plus SO portlet and SO theme working fine.

You can download it from
liferay-portal-5.2.3-so

Note that the port: 9090
Account: admin/admin

Hope that it helps

Thanks

Jonas Yuan


Jonas,
Its possible to re-upload your liferay portal with so portlets? I wonder if anybody could make the contacts portlet work on portal 5.2.

Thank you very much!

Bruno
thumbnail
Radoslaw Zak-Brodalko, módosítva 14 év-val korábban

RE: Deploying SO Portlets in Portal

New Member Bejegyzések: 4 Csatlakozás dátuma: 2009.12.02. Legújabb bejegyzések
Hi,

As for "ETag" issue, I've successfully deployed so-portlet (tms-portlet) in Portal 5.2.3 after a change made to WEB-INF/web.xml file of the portlet. I've just removed all the entries related to ETag filter definitions and filter-mappings. After that, without any so-features (so-theme e.g.), the portlet works perfectly for me.

Regards,
Radek.
Nguyen Duong, módosítva 14 év-val korábban

RE: Deploying SO Portlets in Portal

New Member Bejegyzések: 2 Csatlakozás dátuma: 2010.03.20. Legújabb bejegyzések
Hi everyone!

I try to deloy so-portlet according to Liferay_Portal_5.2_Systems_Development book but I got this error when I double-click on the deploy target(as page 401 of this book):

"BUILD FAILED
C:\Liferay-Portal\workspace\Plugins SDK\build-common-plugin.xml:164: .

Detected inclusion of portal-impl.jar in WEB-INF/lib.

portal-impl.jar is designed with a large number of singleton classes which are
instantiated on the basis that they will exist alone in the application server.

While compile time issues may be resolved, portlets cannot be made to work by
simply adding portal-impl.jar, because doing so violates the above assumption,
and the resulting problems will be extremely difficult to debug.

Please find a solution that does not require portal-impl.jar."


Does anyone know how to solve this error?
Please help me! Thanks!
thumbnail
igor kotlov kim, módosítva 13 év-val korábban

RE: Deploying SO Portlets in Portal

New Member Bejegyzések: 16 Csatlakozás dátuma: 2009.11.10. Legújabb bejegyzések
Hi Radoslaw!
I thought only at me problem So-Portlet in Portal 5.2.3
I am not the developer. You could not load working zip c change made to WEB-INF/web.xml file.А as to specify, there in so-portlet two web.xml what from requires change?
In advance thanks.
sawsan kasaab, módosítva 13 év-val korábban

RE: Deploying SO Portlets in Portal

New Member Bejegyzések: 4 Csatlakozás dátuma: 2010.10.27. Legújabb bejegyzések
Hi Jonas
I wanna add contact portlet from social office to my liferay portal instance,
I copy and past these folders by the way:
1-
contacts-portlet folder in the path ../tomcat/webapps
it contains 4 subfolders : html, images,META_INF, WEB_INF
(i have already install more plugin which is my-places-portlet)
and add the contact portlet by my hand
2-
contacts folder in the path ../tomcat/webapps/ROOT/portlet
3-
contacts folder in the path ../tomcat/webapps/ROOT/taglib/ui
and this last folder contains a file: page.jsp
but i don't know what i have to do in it so i wrote one line:
<%@ include file="/html/taglib/init.jsp" %>

and when i run liferay,sign as admin, i can see the contacts portlet to add it from: dockbar->Add->more->colaboration->contacts
also from more->community->contacts
the portlet is added but with a message inside it,which say:
"Contacts is temporarily unavailable."

please, any hint may be help me
thanks in advance