java.lang.ClassNotFoundException: org.springframework.web.portlet.DispatcherPortlet

来源:互联网 发布:淘宝豆豆鞋 编辑:程序博客网 时间:2024/06/05 14:49

I met this error when I integrate Spring with iBatis. The problem is it misses spring-webmvc-portlet.jar. The solution is also very easy, we just need to add the jar into our maven pom.xml file.

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc-portlet</artifactId>
<version>3.0.5.RELEASE</version>
</dependency>

Then, it'll work!

I searched online, someone said it also relates with different version of jars. If the lib in your tomcat/lib/ext folder conflicts with the lib in your project, delete them. IMO, it's better to use dependency to add external jars.

原创粉丝点击