Fórum

What is a "portlet bag"?

thumbnail
Rune Hellem, modificado 15 Anos atrás.

What is a "portlet bag"?

New Member Postagens: 5 Data de Entrada: 28/01/09 Postagens Recentes
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, modificado 15 Anos atrás.

RE: What is a "portlet bag"?

Liferay Legend Postagens: 2047 Data de Entrada: 07/10/08 Postagens Recentes
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, modificado 14 Anos atrás.

RE: What is a "portlet bag"?

New Member Postagens: 5 Data de Entrada: 28/01/09 Postagens Recentes
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, modificado 10 Anos atrás.

RE: What is a "portlet bag"?

Regular Member Postagens: 152 Data de Entrada: 20/07/07 Postagens Recentes
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, modificado 8 Anos atrás.

RE: What is a "portlet bag"?

New Member Mensagem: 1 Data de Entrada: 18/09/15 Postagens Recentes
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.