我有一个使用spring框架构建的webapp。我试图使用Eclipse将它部署到Tomcat6。每次我对jsp文件进行更改时,我都必须清理构建,发布它,然后启动服务器。我相信,我们不必为JSP更改执行所有这些步骤。如果我只是发布的文件,在服务器运行的时候,我得到了下面的异常java.lang.NoClassDefFoundError:org/springframework/web/context/ContextCleanupListener
SEVERE: Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener java.lang.NoClassDefFoundError: org/springframework/web/context/ContextCleanupListener
SEVERE: Exception sending context destroyed event to listener instance of class org.springframework.web.util.Log4jConfigListener java.lang.NoClassDefFoundError: org/springframework/util/Log4jConfigurer
而且战争的文件没有得到部署在服务器上。
如果我对JSP文件&进行了更改,然后在eclipse中单击重新启动,它有时会发布文件&然后启动服务器。但在某些情况下,它重新启动服务器&然后发布文件(在这种情况下,我得到了上述例外&战争文件没有得到部署)。
它工作的理想方式是停止服务器,发布内容&然后启动服务器。我讨厌每次做简单的jsp更改都要这样做。有没有其他的一个点击过程来做到这一点?