使用liferay重启tomcat后出现ClassNotFoundException

时间:2013-09-23 08:29:01

标签: tomcat liferay portlet

我在tomcat 6.0.29上部署了liferay的portlet。每次服务器重启时,我都会在日志中看到这个异常:

  

08:19:14,255 ERROR [PortletBagFactory:93] java.lang.ClassNotFoundException:wkpl.portlet.ics.acts.Controller   java.lang.ClassNotFoundException:wkpl.portlet.ics.acts.Controller       在org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)       在org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)       在com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:90)       at com.liferay.portal.deploy.hot.PortletHotDeployListener.initPortlet(PortletHotDeployListener.java:436)       at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:230)       at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:97)       at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:111)       at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:185)       at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:40)       at com.liferay.portal.kernel.servlet.PortletContextListener.doPortalInit(PortletContextListener.java:101)       at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)       在com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:63)       在com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:53)       at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:52)       at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:57)       在org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)       在org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)       在org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)       在org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)       在org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)       在org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)       在org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)       在org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)       在org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)       在org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)       在org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)       在org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)       在org.apache.catalina.core.StandardHost.start(StandardHost.java:785)       在org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)       在org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)       在org.apache.catalina.core.StandardService.start(StandardService.java:519)       在org.apache.catalina.core.StandardServer.start(StandardServer.java:710)       在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)       在java.lang.reflect.Method.invoke(Method.java:597)       在org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)       在org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

如果我删除了两个文件夹中的所有文件:... \ tomcat-6.0.29 \ conf \ Catalina和... \ tomcat-6.0.29 \ work然后,重新启动后,我重新部署portlet,一切都很好

Liferay版本:5.2.9。

提前感谢您的帮助。

0 个答案:

没有答案