导入maven项目时报java.lang.ClassNotFoundException解决方法!

解决步骤:

右键点击项目,选择Project Facets,将导入的Maven项目转换成Dynamic Web Module,将下图中的红框处进行勾选;

2.继续右键项目->properties->Deployment Assembly,

点击Add后如图所示:

然后就ojbk了!

原文地址:https://www.cnblogs.com/lixionghao/p/8989427.html

时间: 2024-08-04 12:06:05

导入maven项目时报java.lang.ClassNotFoundException解决方法!的相关文章

maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

maven 导入项目中经常出现这个问题 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 在网上找了些资料,有的说是少jar包,把有关spring的jar包复制到

Eclipse启动Maven项目报java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener的错误

今天用Eclipse导入了一个Maven项目,启动tomcat时却报java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener的错误.   解决办法:右键项目->properties->Deployment Assembly>Add->Java Build Path Entries->Next->Maven Dependencies->Finish.

MapReduce 程序运行报错 java.lang.ClassNotFoundException解决方法

在创建自定义的Mapper时候,编译正确,但上传到集群执行时出现错误: 11/16/05 22:53:16 INFO mapred.JobClient: Task Id : attempt_201111301626_0015_m_000000_0, Status : FAILED java.lang.RuntimeException: java.lang.ClassNotFoundException: actiondemo.MyJob$MapClass at org.apache.Hadoop.

【转】maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

http://blessht.iteye.com/blog/1104450 http://www.cnblogs.com/zhouyalei/archive/2011/11/30/2268606.html 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerjava.lang.ClassNotFoundException: org.spri

maven 项目出现 java.lang.ClassNotFoundException

需要修改的有两个地方1.项目根目录下的.project文件,用记事本打开,加入以下代码(把原来的<buildSpec>节点和<natures>替换了): <buildSpec> <buildCommand> <name>org.eclipse.wst.jsdt.core.javascriptValidator</name> <arguments> </arguments> </buildCommand&g

Maven项目下 java.lang.ClassNotFoundException 常规解决办法

网上很多要修改.class .project的比较麻烦有时候还不一定管用.下面的方法适合于项目用已经引用了jar,但是运行时却ClassNotFound,请用如下方法试试: 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web

eclipse导入android项目后出现错误的解决方法

eclipse导入android项目后出现错误的解决方法 出现这样的错误是因为没有为项目指定sdk的原因 为项目指定sdk的方法右键点击工程名称,弹出菜单中点击“Properties->Android”,在Project build target 中指定你要使用的SDK版本即可

Maven项目下 java.lang.ClassNotFoundException 常规解决的方法

网上非常多要改动.class .project的比較麻烦有时候还不一定管用.以下的方法适合于项目用已经引用了jar.可是执行时却ClassNotFound,请用例如以下方法试试: 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.

Maven项目下java.lang.ClassNotFoundException常规解决办法

网上很多要修改.class .project的比较麻烦有时候还不一定管用.下面的方法适合于项目用已经引用了jar,但是运行时却ClassNotFound,请用如下方法试试: 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web