将maven项目转换为动态Web项目

时间:2014-11-12 09:54:57

标签: java maven

我想将maven project更改为dynamic web project。我删除了pom.xml文件,然后我创建了一个新的工作空间并导入了该项目。我遇到了以下错误。我添加了所有必需的jar文件。

Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener.
Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory.

4 个答案:

答案 0 :(得分:0)

您可以在Eclipse中创建新项目。创建包目录或将整个源代码目录从HDD复制到eclipse中的“src”文件夹。

答案 1 :(得分:0)

试试这个解决方案:

  1. 转到项目浏览器窗口中的项目。
  2. 右键单击并从列表中选择Maven。
  3. 选择“禁用Maven Nature”
  4. 之后清理项目一次并构建工作区。

答案 2 :(得分:0)

右键点击您的项目
访问
  - 物业
  - 项目方面
  - 在右侧选择动态网络模块

我希望这可以帮助你

答案 3 :(得分:0)

commons-logging-x.x.x.jar 添加到您的类路径中。简单!!

错误本身就是在告诉你该怎么做。

相关问题