刚刚接触JAVA开发,eclipse 开发环境在编译运行web项目时经常警告缓存不足:Unable to add the resource ...jar to ...increasing the maximum size of the cache
上网查找解决方案,找到的都是如何设置tomcat的缓存,按照方法设置,还是不行,后来在eclipse IDE的项目栏中展开Servers,找到context.xml依照网上找到的方法添加:
<Resources cachingAllowed="true" cacheMaxSize="262144"/>,问题解决。
猜测的原因是在指定eclipse的运行服务环境时(设置tomact),eclipse会复制一份tomgcat相关配置到本地,来启动服务。所以仅仅设置tomcat的缓存是不够的,除非,删除eclipse开发环境中的Servers,然后重新设置Servers,或者直接修改Servers下面的配置文件。
希望有经验的人指出谬误。
本文介绍了解决Eclipse开发环境中运行Web项目时出现的缓存不足问题。通过在Servers下的context.xml文件中添加特定配置,成功解决了Unable to add the resource...jar to... increasing the maximum size of the cache的警告。
4696

被折叠的 条评论
为什么被折叠?



