关于Struts的 commons-logging.jar
来源:百度知道 编辑:UC知道 时间:2024/06/17 13:17:48
上面两段提示是:
the source attachment does not contain the source for the file LogFactory.class
you can change the source attachment by clicking Change Attached Source below
GOOGEL 翻译 :
通过单击更改附带的源代码下面的附件
您可以通过单击更改附带的源代码下面的附件
看jar包的时候 也看到那个图形和别的不一样 。。
commons-logging.jar 的图片右下角还有个文本样子的小图片
可能是想报这个jar包有错吧 。。。
高手们应该都出现过这种问题吧
帮我解决一下吧 。。
the source attachment does not contain the source for the file LogFactory.class
you can change the source attachment by clicking Change Attached Source below
GOOGEL 翻译 :
通过单击更改附带的源代码下面的附件
您可以通过单击更改附带的源代码下面的附件
看jar包的时候 也看到那个图形和别的不一样 。。
commons-logging.jar 的图片右下角还有个文本样子的小图片
可能是想报这个jar包有错吧 。。。
高手们应该都出现过这种问题吧
帮我解决一下吧 。。
就是没有源代码嘛
因为strusts的日志用的是commons-logging是apache的另外一个项目
去下载一个http://commons.apache.org/downloads/download_logging.cgi
下载source然后点change attached source 指定文件在哪
就能看到源代码了
这段错误显示 当前的源文件引用没有找到 可以把那个包引用进来 不然报上面的错 所以用struts的话 必须要引用这些包 最好还是通过自动搭建工程 手工引包的话 总是会出现一些错误。
你如果是想用logger 的话 应该引用 log4j的包
在每个类里 这样写
UserAction
public static final Logger logger = Logger.getLoggerFactory(UserAction,class);
这是我手工写的 不对的话 你可以用eclipse 的提示重新写一次
我做struts验证时也出现个这个错误,和你一样,分享胜利的果实
把它删除吧
再拷一个进来,这个是它的路径不对你拷的程序吧