Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
Udaya Ramakrishnan
Error registering portlets
28 novembre 2011 3.11
Risposta

Udaya Ramakrishnan

Punteggio: Junior Member

Messaggi: 67

Data di Iscrizione: 6 settembre 2011

Messaggi recenti

hi all,

i am trying to create a scheduled job in liferay 1.6.06. After i create my code and run on server i am getting the following exception:

ERROR [HotDeployUtil:112] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for DeactivateUser-portlet
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for DeactivateUser-portlet
at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:45)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:104)
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.flushInits(PortalLifecycleUtil.java:41)
at com.liferay.portal.servlet.MainServlet.initPlugins(MainServlet.java:803)
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:355)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4350)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4659)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: com.liferay.portal.kernel.scheduler.SchedulerException: java.lang.ClassNotFoundException: com.bpa.matrix.DeactivateUsers
at com.liferay.portal.kernel.scheduler.SchedulerEngineUtil.schedule(SchedulerEngineUtil.java:61)
at com.liferay.portlet.PortletBagFactory.initScheduler(PortletBagFactory.java:376)
at com.liferay.portlet.PortletBagFactory.initSchedulers(PortletBagFactory.java:391)
at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:132)
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)
... 35 more
Caused by: java.lang.ClassNotFoundException: com.bpa.matrix.DeactivateUsers
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)
at com.liferay.portal.kernel.scheduler.SchedulerEngineUtil.schedule(SchedulerEngineUtil.java:52)


Also i found that i am not getting the class file within webapps.
i followed this for creating my scheduled job

needs help

thanks
Udaya.R
Raja Nagendra Kumar
RE: Error registering portlets
28 novembre 2011 3.20
Risposta

Raja Nagendra Kumar

Punteggio: Expert

Messaggi: 484

Data di Iscrizione: 1 marzo 2006

Messaggi recenti

Issue is unable to find class com.bpa.matrix.DeactivateUsers..

is DeactivateUsers class yours.. if yes, it is compiled and exists in web-inf classes folder.

Else check the associated 3rd party jars in web-inf/lib folder

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
Udaya Ramakrishnan
RE: Error registering portlets
28 novembre 2011 4.06
Risposta

Udaya Ramakrishnan

Punteggio: Junior Member

Messaggi: 67

Data di Iscrizione: 6 settembre 2011

Messaggi recenti

hi Raja,

You are right. DeactivateUsers is my own class and it is not found within WEB-INF/classes/.
But while we compile our code, classes must have created rite?. i did compilation but i am missing out the class file.
i am not getting ur Associated 3rd party jar? can u pls elaborate it?
in the WEB-INF/lib folders i am having 5 jars(commons-logging, log4j, util-bridges, util-java, util-taglib).


Thanks
Udaya.R
Raja Nagendra Kumar
RE: Error registering portlets
28 novembre 2011 4.11
Risposta

Raja Nagendra Kumar

Punteggio: Expert

Messaggi: 484

Data di Iscrizione: 1 marzo 2006

Messaggi recenti

Udaya Ramakrishnan:
hi Raja,
i am not getting ur Associated 3rd party jar? can u pls elaborate it?
Udaya.R


I was referring to 3rd party jars, which you are using.. to which DeactivateUsers must belong too.. as DeactivateUsers is your class... just ignore above comment of mine..

>But while we compile our code, classes must have created rite?

How are you building your code.. using plugin.. if yes, which plugin have your created.. is it hook, portlet.. etc..

Regards
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
Udaya Ramakrishnan
RE: Error registering portlets
28 novembre 2011 4.15
Risposta

Udaya Ramakrishnan

Punteggio: Junior Member

Messaggi: 67

Data di Iscrizione: 6 settembre 2011

Messaggi recenti

hi


i am using portlet plugin

regards
udaya.R
Siby Mathew
RE: Error registering portlets
28 novembre 2011 8.36
Risposta

Siby Mathew

Punteggio: Expert

Messaggi: 261

Data di Iscrizione: 4 marzo 2011

Messaggi recenti

Hi Udaya,
Please check the following :
1. Is "DeactivateUsers" class part of the source folder in your build path. (So that this gets compiled to the classes)
2. Are you referring the class "DeactivateUsers" from another project . In this case, a jar should be present to provide these classes even after deployment.
3. Try cleaning your project.
4. Try "Close project" and "Open project".

Thanks !
Udaya Ramakrishnan
RE: Error registering portlets
28 novembre 2011 20.09
Risposta

Udaya Ramakrishnan

Punteggio: Junior Member

Messaggi: 67

Data di Iscrizione: 6 settembre 2011

Messaggi recenti

hi Siby,

I tried cleaning my projects and also closed and reopened my project.
Still i am not getting the class file emoticon
DeactivateUser is my class not referring from another project.

Thanks
Udaya.R
Siby Mathew
RE: Error registering portlets
29 novembre 2011 1.55
Risposta

Siby Mathew

Punteggio: Expert

Messaggi: 261

Data di Iscrizione: 4 marzo 2011

Messaggi recenti

Hi Udaya,
Can you also check the default output folder for the classes in the project properties. Is it pointing to a different location ?
Do Xuan Hoang
RE: Error registering portlets
29 novembre 2011 18.02
Risposta

Do Xuan Hoang

Punteggio: New Member

Messaggi: 3

Data di Iscrizione: 28 novembre 2011

Messaggi recenti

I just have the same trouble.
Anybody help me.
This is my portlet (using liferay plugin project on eclipse)
http://www.mediafire.com/?c2l77jdjl9mjnmv
Udaya Ramakrishnan
RE: Error registering portlets
29 novembre 2011 20.07
Risposta

Udaya Ramakrishnan

Punteggio: Junior Member

Messaggi: 67

Data di Iscrizione: 6 settembre 2011

Messaggi recenti

hi siby,
Thanks for ur reply.
My output class folder is pointing to the correct location.
Actually in my SDK, i am getting the class file. But in deploying to liferay, the class file is not getting generated.
Also, when i made changes to the my portlet, it is not getting deployed.

Thanks
Udaya.R