Could not initialize class org.apache.struts2.json.JSONResult
来源:互联网 发布:java体系结构 编辑:程序博客网 时间:2024/06/11 13:21
该问题是Struts2-json-plugin 与Struts2的包版本有冲突。
1、Struts2.0.x的要用jsonplugin-0.32.jar,Struts2.1以上的要用jsonplugin-0.34.jar,,否则就会报Could not initialize class org.apache.struts2.json.JSONResult错误。
2、也可以用Struts2中自带的Struts2-json-plugin,这样就会一致。
- Could not initialize class org.apache.struts2.json.JSONResult
- org.apache.cxf.binding.soap.SoapFault: Could not initialize class
- Could not initialize class org.apache.xpath.compiler.FunctionTable
- Could not initialize class org.apache.log4j.Log4jLoggerFactory
- Could not initialize class org.apache.log4j.LogManager
- Could not initialize class org.slf4j.LoggerFactory
- org.apache.cxf.interceptor.Fault: Could not initialize class org.springframework.jdbc.core.Statement
- Could not load class org.apache.struts2.jsf.FacesSetupInterceptor
- Could not load class org.apache.struts2.jsf.FacesSetupInterceptor
- java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.Log4jLoggerFactory
- java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.Log4jLoggerFactory
- java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.Log4
- java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.Log4
- java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.Log4jLoggerFactory
- java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.Log4jLoggerFactory
- java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.Log4jLoggerFactory 标签: l
- hbase报错Could not initialize class org.apache.hadoop.hbase.protobuf.ProtobufUtil
- Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.Log4jLoggerFa
- ANDROID 如何适配屏幕
- 反转单向链表
- 【转】解决GridView中嵌入CheckBox事件无法响应的问题
- 对JavaScript、JSP、Java及javaEE之间区别的理解
- 设计模式总结之三结构型模式
- Could not initialize class org.apache.struts2.json.JSONResult
- Eclipse程序员要掌握的常用快捷键
- poj 3979 分数加减法
- C# 文件下载
- 浅谈JPA的Blob和Clob注解方法
- 英文网站 CSS 字体写哪种?
- java 文件下载且解决中文乱码
- 对python的比较评价
- 5种流行的Linux发行版:你更喜欢哪一个呢?