Fórumok

What is a "portlet bag"?

thumbnail
Rune Hellem, módosítva 15 év-val korábban

What is a "portlet bag"?

New Member Bejegyzések: 5 Csatlakozás dátuma: 2009.01.28. Legújabb bejegyzések
I've created a portlet application which I have been testing on Liferay for a while now. Earlier this week I did some updates of my application, added some methods in the abstract portlet class, added a config-param in web.xml and some minor changes in the actual portlets. Because of this I now get the following errors when trying to deploy my portlet app:


[http-8080-4] () ERROR com.liferay.portlet.PortletContextFactory - Portlet IntellisearchPortlet_WAR_intellisearch has a null portlet bag
[http-8080-4] () ERROR com.liferay.portlet.PortletContextFactory - Portlet IntellisearchPortlet_WAR_intellisearch has a null portlet bag
[http-8080-4] () ERROR portal-web.docroot.html.portal.status.jsp - org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.JasperException: java.lang.NullPointerException


It runs perfectly well on WebSphere Portal, so the erorr is not that obvious to me...but for at starter it would have helped a lot if I could have figured out what a "portlet bag" is...desperatly tried various searches without much success.

R.
thumbnail
Amos Fong, módosítva 15 év-val korábban

RE: What is a "portlet bag"?

Liferay Legend Bejegyzések: 2047 Csatlakozás dátuma: 2008.10.07. Legújabb bejegyzések
Hey Rune,

A portlet bag is a collection of information on that portlet including name, portlet instance, listeners, etc.

See the portletbag.java class.
thumbnail
Rune Hellem, módosítva 14 év-val korábban

RE: What is a "portlet bag"?

New Member Bejegyzések: 5 Csatlakozás dátuma: 2009.01.28. Legújabb bejegyzések
As easy as it was hard. I came across this posting related to "SEVERE: Error listenerStart"-message I found in the log. By installing the Tomcat Plugin to Eclipse I was all of a sudden able to view the detailed message

SEVERE: Exception sending context initialized event to listener instance of class com.liferay.portal.kernel.servlet.PortletContextListener
java.lang.NoClassDefFoundError: com.ibm.portal.um.Principal


so...very easy when I got hold of the needed information. Maybe I could have tweaked some logging properties. Anyhow, the tomcat plugin helped me out.

R.
thumbnail
Ranga Rao Bobbili, módosítva 10 év-val korábban

RE: What is a "portlet bag"?

Regular Member Bejegyzések: 152 Csatlakozás dátuma: 2007.07.20. Legújabb bejegyzések
Rune Hellem:
I've created a portlet application which I have been testing on Liferay for a while now. Earlier this week I did some updates of my application, added some methods in the abstract portlet class, added a config-param in web.xml and some minor changes in the actual portlets. Because of this I now get the following errors when trying to deploy my portlet app:


[http-8080-4] () ERROR com.liferay.portlet.PortletContextFactory - Portlet IntellisearchPortlet_WAR_intellisearch has a null portlet bag
[http-8080-4] () ERROR com.liferay.portlet.PortletContextFactory - Portlet IntellisearchPortlet_WAR_intellisearch has a null portlet bag
[http-8080-4] () ERROR portal-web.docroot.html.portal.status.jsp - org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.JasperException: java.lang.NullPointerException


It runs perfectly well on WebSphere Portal, so the erorr is not that obvious to me...but for at starter it would have helped a lot if I could have figured out what a "portlet bag" is...desperatly tried various searches without much success.

R.


I also faced above issue so many times due to wrong ordered elements in liferay-portlet.xml or portlet.xml. Most of the times above error is because of schema validation errors in these two files

Thanks,
Ranga Rao
Kat Polyz, módosítva 8 év-val korábban

RE: What is a "portlet bag"?

New Member Bejegyzés: 1 Csatlakozás dátuma: 2015.09.18. Legújabb bejegyzések
Same as Ranga, i had a "null portlet bag" exception because the ordering was wrong in liferay-portlet.xml .
I used Eclipse and had Validations in Preferences tab disabled so i couldn't see the xml errors before the Server was deployed.