Tomcat加载Web项目报错:[RMI TCP Connection(3)-127.0.0.1]

本文详细记录了解决Tomcat服务器在运行过程中遇到的缓存溢出问题,主要表现为无法将特定资源添加到缓存中。通过调整Tomcat和JDK版本,成功解决了这一问题,从tomcat-8.0.33+jdk1.8.0_111更改为tomcat-8.5.32+jdk1.8.0_66_x64。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

报错如下:

29-Jul-2019 17:00:51.336 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/artifacts/fwpg_Web_exploded/WEB-INF/classes/production/fwpg/fwpg/front/staticshow/images/govLogo1.png] to the cache for web application [/wjdc] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
29-Jul-2019 17:00:51.338 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/artifacts/fwpg_Web_exploded/WEB-INF/classes/production/fwpg/fwpg/front/staticshow/images/govpiss.png] to the cache for web application [/wjdc] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
29-Jul-2019 17:00:51.344 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/artifacts/fwpg_Web_exploded/WEB-INF/classes/production/fwpg/fwpg/front/staticshow/images/gov_icon6.png] to the cache for web application [/wjdc] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
29-Jul-2019 17:00:51.344 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/artifacts/fwpg_Web_exploded/WEB-INF/classes/production/fwpg/fwpg/front/staticshow/images/gov_icon7.png] to the cache for web application [/wjdc] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
29-Jul-2019 17:00:51.346 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/artifacts/fwpg_Web_exploded/WEB-INF/classes/production/fwpg/fwpg/front/staticshow/images/gov_iconb3.png] to the cache for web application [/wjdc] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache

解决方法:
是Idea下JDK版本和Tomcat版本冲突:
建议更换tomcat和jdk版本

原先我的tomcat和jdk版本是tomcat-8.0.33 + jdk1.8.0_111,但是包了以上错误,看着心烦,所以致力于将其去掉,最终如愿以偿。
更换后的版本为:tomcat-8.5.32 + jdk1.8.0_66_x64

21-Mar-2025 14:28:33.975 ��Ϣ [RMI TCP Connection(2)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 2025-03-21 14:28:34 -0 [RMI TCP Connection(2)-127.0.0.1] INFO - Root WebApplicationContext: initialization started 2025-03-21 14:28:34 -100 [RMI TCP Connection(2)-127.0.0.1] INFO - Refreshing Root WebApplicationContext: startup date [Fri Mar 21 14:28:34 CST 2025]; root of context hierarchy 2025-03-21 14:28:34 -169 [RMI TCP Connection(2)-127.0.0.1] INFO - Loading XML bean definitions from class path resource [spring/spring.xml] 2025-03-21 14:28:34 -545 [RMI TCP Connection(2)-127.0.0.1] INFO - Loading XML bean definitions from class path resource [spring/spring-mybatis.xml] 2025-03-21 14:28:35 -1324 [RMI TCP Connection(2)-127.0.0.1] ERROR - maxIdle is deprecated 2025-03-21 14:28:35 -1404 [RMI TCP Connection(2)-127.0.0.1] INFO - {dataSource-1} inited 2025-03-21 14:28:38 -3963 [RMI TCP Connection(2)-127.0.0.1] INFO - Root WebApplicationContext: initialization completed in 3957 ms 2025-03-21 14:28:38 -4026 [RMI TCP Connection(2)-127.0.0.1] INFO - FrameworkServlet 'SpringMVC': initialization started 2025-03-21 14:28:38 -4031 [RMI TCP Connection(2)-127.0.0.1] INFO - Refreshing WebApplicationContext for namespace 'SpringMVC-servlet': startup date [Fri Mar 21 14:28:38 CST 2025]; parent: Root WebApplicationContext 2025-03-21 14:28:38 -4032 [RMI TCP Connection(2)-127.0.0.1] INFO - Loading XML bean definitions from class path resource [spring/spring-mvc.xml] 2025-03-21 14:28:38 -4616 [RMI TCP Connection(2)-127.0.0.1] INFO - Mapped URL path [/**] onto handler 'org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler#0' 2025-03-21 14:28:38 -4806 [RMI TCP Con
最新发布
03-22
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值