Tomcat 启动服务器不工作
我安装了 tomcat,但是当我 cd 进入 tomcat 目录并运行startup.bat 时,我只得到以下输出。通常 tomcat 会显示“信息:服务器在 12345 毫秒内启动”,但现在它只输出以下路径并将我带回命令提示符。
我检查了我的类路径,它们列在下面。这还有什么问题吗?
C:\Software\apache-tomcat-6.0.29\bin>startup.bat
Using CATALINA_BASE: "C:\Software\apache-tomcat-6.0.29"
Using CATALINA_HOME: "C:\Software\apache-tomcat-6.0.29"
Using CATALINA_TMPDIR: "C:\Software\apache-tomcat-6.0.29\temp"
Using JRE_HOME: "C:\jdk1.6.0_13\jre"
Using CLASSPATH: "C:\Software\apache-tomcat-6.0.29\bin\bootstrap.jar"
C:\Software\apache-tomcat-6.0.29\bin>
更新:在上述消息之后,另一个命令快速打开并关闭,并且关闭速度太快,我无法阅读。我相信那是 bootstrap.jar。所以问题是为什么 bootstrap.jar 失败?
I installed tomcat but when I cd into the tomcat directory and run startup.bat I just get the following output below. Usually tomcat says "INFO: Server startup in 12345 ms" but now it only outputs the paths below and brings me back to the command prompt.
I've checked my classpaths and they are listed below. What else could be wrong with this?
C:\Software\apache-tomcat-6.0.29\bin>startup.bat
Using CATALINA_BASE: "C:\Software\apache-tomcat-6.0.29"
Using CATALINA_HOME: "C:\Software\apache-tomcat-6.0.29"
Using CATALINA_TMPDIR: "C:\Software\apache-tomcat-6.0.29\temp"
Using JRE_HOME: "C:\jdk1.6.0_13\jre"
Using CLASSPATH: "C:\Software\apache-tomcat-6.0.29\bin\bootstrap.jar"
C:\Software\apache-tomcat-6.0.29\bin>
Update: after the message above, another cmd opens up quickly and closes and it closes too fast for me to read. I believe that is the bootstrap.jar. So the question is why is bootstrap.jar failing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我遇到了类似的问题,但就我而言,CATALINA_HOME 看起来像“C:\Software\apache-tomcat-6.0.29\”(以反斜杠结尾)。我已经从 CATALINA_HOME 中删除了反斜杠,并且 tomcat 已经可以工作了。
I had the similar problem, but in my case CATALINA_HOME looks like "C:\Software\apache-tomcat-6.0.29\" (ends with a back slash). I had removed back slash from CATALINA_HOME and tomcat have became to work.
这发生在我身上。对我来说,这是因为我下载的 Tomcat 文件是源代码文件,而不是二进制文件。
This happened to me. For me it was because the Tomcat files I downloaded were the source code files, not the binary dist.