欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

【Tomcat报错】错误:找不到或无法加载主类 org.apache.catalina.startup.Bootstrap

程序员文章站 2024-03-24 11:08:22
...
错误: 找不到或无法加载主类 org.apache.catalina.startup.Bootstrap

Application Server was not connected before run configuration stop, reason: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketException: Connection reset]

报错原因:tomcat文件夹迁移,classpath配置了绝对路径

(tomcat9.0.27启动需要环境变量JAVA_HOME与CATALINA_HOME)

解决方案:重新配置 /bin/setclasspath.bat中的CATALINA_HOME

并使用相对路径:SET CATALINA_HOME=…/

相关标签: bug栈