0

Getting following exception while running tomcat with PortletRequestListner.

Caused by: java.lang.reflect.InvocationTargetException
        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 com.liferay.portal.deploy.hot.ServletContextListenerHotDeployListener.doInvokeDeploy(ServletContextListenerHotDeployListener.java:77)
        at com.liferay.portal.deploy.hot.ServletContextListenerHotDeployListener.invokeDeploy(ServletContextListenerHotDeployListener.java:37)
        ... 25 more
Caused by: java.lang.ClassNotFoundException: org.springframework.web.context.PortletRequestListener
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
        at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:52)
        at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:27)
        at com.liferay.portal.kernel.servlet.SecurePluginContextListener.instantiatingListener(SecurePluginContextListener.java:304)

I am new to liferay.

Not able to resolve this issue. Please help.

4

1 回答 1

0

虽然我知道您是 Liferay 的新手,但我希望您对编程并不陌生 :) 堆栈跟踪清楚地表明您没有在 portlet 的 WEB-INF/lib 文件夹中提供必要的 JAR 文件:

Caused by: java.lang.ClassNotFoundException: org.springframework.web.context.PortletRequestListener

希望你能从这里联系起来!

于 2014-01-14T06:39:16.553 回答