使用tomcat
运行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)
我是liferay的新手。
无法解决此问题。请帮忙。
答案 0 :(得分:0)
虽然我知道你是Liferay的新手,但我希望你不是编程新手:) 堆栈跟踪清楚地表明您没有在portlet的WEB-INF / lib文件夹中提供必要的JAR文件:
Caused by: java.lang.ClassNotFoundException: org.springframework.web.context.PortletRequestListener
希望你能从这里连接点!