Forums

Home » Liferay IDE » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
miki oni
liferay 6.0.6 CE - ERROR [PortletBagFactory:115]
September 21, 2012 1:05 AM
Answer

miki oni

Rank: New Member

Posts: 8

Join Date: September 10, 2012

Recent Posts

I try to follow this Liferay Portal 6.0 - Development Guide link. I follow steps (Understanding the Two phases of Portlet Execution), then try to deploy again, but get error message:

ERROR [PortletBagFactory:115] java.lang.ClassNotFoundException: com.liferay.samples.MyGreetingPortlet
java.lang.ClassNotFoundException: com.liferay.samples.MyGreetingPortlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)
at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:112)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.initPortlet(PortletHotDeployListener.java:456)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:253)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:101)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:109)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:182)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:38)
at com.liferay.portal.kernel.servlet.PortletContextListener.doPortalInit(PortletContextListener.java:99)
at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:52)
at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:50)
at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:55)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1244)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1342)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Thread.java:679)
07:46:34,225 INFO [PortletHotDeployListener:374] 0 portlets for my-greeting-portlet are available for use

Does anyone know whats wrong ? attached source file.
Attachments: my-greeting-portlet.zip (16.2k)
Gregory Amerson
RE: liferay 6.0.6 CE - ERROR [PortletBagFactory:115]
September 21, 2012 1:09 AM
Answer

Gregory Amerson

LIFERAY STAFF

Rank: Liferay Master

Posts: 951

Join Date: February 16, 2010

Recent Posts

Can you post a zip of the deployed folder under tomcat/webapps/my-greeting-portlet?

Also are you editing this project in Eclipse or with Liferay IDE?
miki oni
RE: liferay 6.0.6 CE - ERROR [PortletBagFactory:115]
September 21, 2012 1:17 AM
Answer

miki oni

Rank: New Member

Posts: 8

Join Date: September 10, 2012

Recent Posts

zip file for under tomcat/webapps/my-greeting-portlet.
I'm using liferay-plugins-sdk-6.0.6-20110225 to start this project.
Attachments: my-greeting-portlet.zip (839.8k)
David H Nebinger
RE: liferay 6.0.6 CE - ERROR [PortletBagFactory:115]
September 21, 2012 6:00 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7470

Join Date: September 1, 2006

Recent Posts

I don't see any build.xml contained in the project. Can you provide the zip for the project directory?

What's weird is the source file is there, so obviously it is part of the project, but it didn't get compiled into the built artifact.
miki oni
RE: liferay 6.0.6 CE - ERROR [PortletBagFactory:115]
September 21, 2012 7:16 PM
Answer

miki oni

Rank: New Member

Posts: 8

Join Date: September 10, 2012

Recent Posts

The source project zip file is attached is in my first post, which included build.xml.
Here attached plugins.zip(liferay/plugins) is actually liferay-plugins-sdk. + source project file.
Attachments: plugins.zip (9,033.1k)
r ss
RE: liferay 6.0.6 CE - ERROR [PortletBagFactory:115]
June 21, 2013 3:08 AM
Answer

r ss

Rank: New Member

Posts: 1

Join Date: June 19, 2013

Recent Posts

I solved it setting the output folder to "my-greeting-portlet/docroot/WEB-INF/classes" in Java Build Path. I think it is a zip program problem in deploy process from built folder to WEB-INF/classes folder. When the path is too long zip does not work well. Another solution my be place workspace near root level to avoid this problem. I have not tried it.