关于找不到类org/apache/commons/lang/xwork/StringUtils的问题

在替换最新版的 struts2包的解决过程中。遇到 找不到这两个包org/apache/commons/lang/xwork/StringUtils、org/apache/commons/lang/xwork/OjbectUtils的问题,最后发现事实上是struts2的还有一个包(struts2-convention-plugin.jar)引用了,替换掉就能够了。

原文地址:https://www.cnblogs.com/ldxsuanfa/p/9938781.html

时间: 2024-08-29 10:01:13

关于找不到类org/apache/commons/lang/xwork/StringUtils的问题的相关文章

java.lang.NoClassDefFoundError: org/apache/commons/lang/xwork/StringUtils

Struts2框架下使用JSON插件时,程序保存找不到类org/apache/commons/lang/xwork/StringUtils 几种可能的错误及解决方法: 1.没有commons-lang,xwork-core-2.2.1.1.jar,导入jar 包 2.需要把你的commons-lang.jar升级到新版,commons-lang3-3.1.jar,但要注意,最新的commons-lang3-3.1.jar 没有org.apache.commons.lang.StringUtils

ssh整合启动tomcat报java.lang.ClassNotFoundException: org.apache.commons.lang.xwork.StringUtils

今天搭建了一个ssh项目环境,整合后,访问项目首页,登录不进去,控制台报错,后来调试代码后,在获取数据库数据后,返回到action时,又进入了action导致死循环,其实这里是两个问题,控制台报错如下: 2015-4-27 20:57:56 org.apache.catalina.core.StandardWrapperValve invoke严重: Servlet.service() for servlet default threw exceptionjava.lang.ClassNotFo

struts2 java.lang.ClassNotFoundException: org.apache.commons.lang.xwork.StringUtils

struts2.3  action 返回JSON数据调试过程中报错 最终定位到json-plugin的jar包版本不一致导致 struts2-core-2.3.16.3.jar struts2-json-plugin-2.3.16.jar struts2-spring-plugin-2.3.16.3.jar xwork-core-2.3.16.3.jar action返回json格式方法如下:(引至互联网) 1.传统方式JSON输出 HttpServletResponse response =

Apache commons lang工具类学习笔记(2)--StringUtils

StringUtils工具类具有对String具有简单而强大的处理能力,从检查空串到分割字符串,到生成格式化的字符串,使用都很方便简洁,能减少很多代码量; 详细的使用方法可以参考下面的例子或者官方的API(http://commons.apache.org/proper/commons-lang/javadocs/api-release/org/apache/commons/lang3/StringUtils.html#isAlpha(java.lang.CharSequence)) packa

日期工具类 DateUtils(继承org.apache.commons.lang.time.DateUtils类)

/** * */ package com.dsj.gdbd.utils.web; import org.apache.commons.lang3.time.DateFormatUtils; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; import java.util.regex.Matcher; /** * 日期工具类, 继承org.apache.commons.l

java开发_org.apache.commons.lang.StringUtils工具类源码

package org.apache.commons.lang; 18 19 import java.util.ArrayList; 20 import java.util.Collection; 21 import java.util.Iterator; 22 import java.util.List; 23 import java.util.Locale; 24 25 import org.apache.commons.lang.text.StrBuilder; 26 27 /** 28

org.apache.commons.lang.exception包的ExceptionUtils工具类获取getFullStackTrace

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You u

org.apache.commons.lang下的工具类

1.org.apache.commons.lang.ArrayUtils 2.org.apache.commons.lang.time.DateFormatUtils

Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException

转载:http://www.tuicool.com/articles/Vvia6f 缺少相应jar包都会有异常,根据异常找jar包导入...... 这里我说下lang包,因为这个包我找了好半天: 我用的是: commons-lang3-3.1.jar  出现异常: java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException 可以看出是因为缺少jar包,但是很明显我已经导入了,