开发者

Help with running first spring 3.0 mvc application

I get below error

I understand few jars are missing from runtime environment but I have all the requeired jars in WEB-INF/lib directory.

java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1672)
 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1517)
 at org.springframework.web.servlet.DispatcherServlet.<clinit>(DispatcherServlet.java:208)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
 at java.lang.reflect.Constructor.newInstance(Unknown Source)
 at java.lang.Class.newInstance0(Unknown Source)
 at java.lang.Class.newInstance(Unknown Source)

<servlet>
    <servlet-name>defaulthandler</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
    <servlet-name>defaulthandler</servlet-name>
    <url-pattern>*开发者_如何转开发.html</url-pattern>
</servlet-mapping>

 <bean id="viewResolver"
  class="org.springframework.web.servlet.view.InternalResourceViewResolver">
  <property name="prefix">
   <value>/WEB-INF/pages/</value>
  </property>
  <property name="suffix">
   <value>.jsp</value>
  </property>
 </bean>

I am using eclipse. Any idea how to debug this?


You do not have all the required JARs, you're missing Apache Commons Logging.

http://commons.apache.org/logging/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜