【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=…/
上一篇: jquery实现可编辑的表格
下一篇: vuetify中实现表格的可编辑