hadoop 2.2.0 编译报错: [ERROR] class file for org.mortbay.component.AbstractLifeCycle not found
2014-08-29 11:15
543 查看
[ERROR] class file for org.mortbay.component.AbstractLifeCycle not found
错误堆栈如下:[ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /home/hduser/code/hadoop-2.2.0-src/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java:[88,11] error: cannot access AbstractLifeCycle [ERROR] class file for org.mortbay.component.AbstractLifeCycle not found /home/hduser/code/hadoop-2.2.0-src/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java:[96,29] error: cannot access LifeCycle [ERROR] class file for org.mortbay.component.LifeCycle not found
编辑hadoop-common-project/hadoop-auth/pom.xml文件,添加依赖:
<dependency> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-util</artifactId> <scope>test</scope> </dependency>
再次编译,这个错误解决了。
相关文章推荐
- jni error: cannot access class file for not found javadoc:error
- 配置Struts2 遇到的两个异常 java.lang.ClassNotFoundException / org.apache.catalina.LifecycleException
- maven:log4j:WARN No appenders could be found for logger (loggerInfo).或者maven build error:org.apache.maven.lifecycle.LifecycleExecutionExceptio
- CentOS编译Hadoop 2.2.0 (cannot access AbstractLifeCycle)
- Maven编译error LifecyclePhaseNotFoundException
- Caused by: java.lang.ClassNotFoundException: org.apache.shiro.spring.LifecycleBeanPostProcessor
- Hadoop-2.2.0 wordcount 编译打包执行 (java.lang.ClassNotFoundException)
- AndroidStudio编译error:app:validateReleaseSigning'Keystore file not found for signing config 'release
- Err:ClassNotFoundException: org.apache.catalina.storeconfig.StoreConfigLifecycleListener
- Caused by: java.lang.ClassNotFoundException: org.apache.catalina.LifecycleException
- Caused by: java.lang.ClassNotFoundException: org.apache.shiro.spring.LifecycleBeanPostProcessor
- 【shiro】报错:Caused by: java.lang.ClassNotFoundException: org.apache.shiro.spring.LifecycleBeanPostProcessor
- ClassNotFoundException:org.apache.commons.io.output.DeferredFileOutputStream error while using commo
- MAVEN Error: java.lang.ClassNotFoundException: org.apache.commons.io.output.DeferredFileOutputStream
- ERROR] 19:04:48 [default] - Servlet.service() for servlet default threw exception java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Hex
- org.hibernate.PropertyNotFoundException: Could not find a getter for id in class com.pb.dao.UserDao
- Xcode编译异常 Apple Mach-o Linker Error ld: symbol(s) not found for architecture i386
- org.hibernate.PropertyNotFoundException: Could not find a getter for titlse in class com.po.Intro异常
- MySql JDBC in eclipse "The driver class was not found in the specified driver JAR/Zip file." error
- FAILED: Error in semantic analysis: No matching method for class org.apache.hadoop.hive.ql.udf.GetEx