You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

启动Tomcat 9时报错:ApplicationServer.getPersistentData()调用失败

Tomcat启动报错:Cannot invoke "ApplicationServer.getPersistentData()" 问题排查

报错信息:

Error running 'Tomcat 9' 
Cannot invoke "com.intellij.javaee.appServers.appServers.appServerIntegrations.ApplicationServer.getPersistentData()" because the return value of "com.intellij.javaee.appServers.run.configuration.CommonModel.getApllicationServer()" is null

报错截图:

Tomcat启动报错界面

可能原因及解决方法:

  • 启动配置未关联Tomcat:打开Run/Debug Configurations,找到你的Tomcat启动项,检查「Application server」下拉框是否为空,重新选择本地已配置好的Tomcat实例。
  • Tomcat服务器配置失效:进入IDE的Settings/Preferences → Build, Execution, Deployment → Application Servers,查看已添加的Tomcat路径是否正确,若路径被移动或删除,重新指定Tomcat的安装目录。
  • 启动配置文件损坏:找到项目根目录下的.idea/runConfigurations文件夹,删除对应Tomcat的配置文件,之后重新创建Tomcat启动配置。
  • IDE与Tomcat版本不兼容:如果使用IntelliJ IDEA,尝试更新到稳定版或回退至之前能正常运行的版本,部分旧版IDE和Tomcat 9部分版本存在适配问题。

内容的提问来源于stack exchange,提问作者Michu93

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.17 16:02:06