zoukankan      html  css  js  c++  java
  • 常见错误总结

    编译hadoop2.2版本步骤:http://blog.csdn.net/hebutscs/article/details/29359635

    wordcount程序:http://www.cnblogs.com/minkaihui/p/4074035.html

    maven构建本地仓库命令:mvn install:install-file -Dfile=sinaWeibo.jar -DgroupId=com.test.tanyy -DartifactId=qqLoginSdk4J -Dversion=1.0 -Dpackaging=jar

    log4j数据写入到数据库:http://demojava.iteye.com/blog/1067627

    1、tomcat启动时,出现下面错误,然后tomcat不能正常关闭:

    九月 06, 2014 9:53:43 上午 org.apache.catalina.core.StandardServer await
    警告: StandardServer.await: Invalid command 'SUTDOWN' received

     2、运行页面,偶尔出现

    1. Could not initialize class com.jx.classes.backend.container.ServiceProvider
    2. Could not instantiate bean class [com.jx.classes.backend.action.MainAction]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.jx.classes.backend.container.ServiceProvider
    3. Error creating bean with name 'com.jx.classes.backend.action.MainAction': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.jx.classes.backend.action.MainAction]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.jx.classes.backend.container.ServiceProvider
    4. Unable to instantiate Action, com.jx.classes.backend.action.MainAction, defined for 'main_index' in namespace '/'Error creating bean with name 'com.jx.classes.backend.action.MainAction': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.jx.classes.backend.action.MainAction]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.jx.classes.backend.container.ServiceProvider

    3、Caused by: java.lang.ClassNotFoundException: org.springframework.aop.support.AopUtils

          at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 32 more

    在spring项目中找到modules 加入spring-aop.jar即可

     4、使用maven编译hadoop2.2出错:

    Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecutionException: protoc version is 'libprotoc 2.4.1', expected version is '2.5.0' -> [Help 1]

    5、Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecutionException: protoc failure

    使用spring mvc和maven 的时候报错:java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener

    解决办法:ctrl+Enter 报错项目->Deployment Assembly->Add->Java buid path entries->Next->Maven Dependencies

  • 相关阅读:
    基于thinkphp3.2.3开发的CMS内容管理系统(二)- Rbac用户权限
    phpstrom 快捷键
    基于thinkphp3.2.3开发的CMS内容管理系统
    html中的字幕滚动marquee属性
    学会这些网站优化技巧,秒变seo专家
    服务器设置防火墙规则,实现远程桌面连接的ip限制
    IIS7.5中神秘的ApplicationPoolIdentity
    mysql 安装成功后如何设置密码?
    网站优化提高加载速度的14个技巧
    解决帝国cms系统后台管理员登录密码输入五次密码错误后需等候60分钟的方法
  • 原文地址:https://www.cnblogs.com/gyouxu/p/3959170.html
Copyright © 2011-2022 走看看