简体   繁体   English

Tomcat6无法在Windows和Java6上启动

[英]Tomcat6 won't start on Windows and Java6

I just downloaded a fresh copy of Tomcat6 to install on a development server. 我刚刚下载了一个Tomcat6的新副本,可以在开发服务器上安装。 The server is running Win2k3 SP2 and Java6. 服务器正在运行Win2k3 SP2和Java6。

When I go to start Tomcat6 it reports the following: 当我去启动Tomcat6时,它会报告以下内容:

D:\>d:\tomcat\bin\tomcat6.exe //TS/Tomcat6
[2009-07-14 15:26:38] [427  prunsrv.c] [error] The operation completed successfully.
[2009-07-14 15:26:38] [1336 prunsrv.c] [error] Load configuration failed

It seems like Tomcat is having config issues, but I'm not sure where to start looking. 好像Tomcat有配置问题,但我不知道从哪里开始寻找。 It's a bit surprising that Tomcat had this problem right out of the box. Tomcat开箱即用就有这个问题,这有点令人惊讶。 Is there any compatability problem between Java6 and Tomcat6? Java6和Tomcat6之间是否存在任何兼容性问题? Why might the default config be failing? 为什么默认配置可能会失败?

Just curious if your CATALINA_HOME and JAVA_HOME set? 只是好奇你的CATALINA_HOME和JAVA_HOME是否设置好了? Those environment variables are prerequisite to run Tomcat. 这些环境变量是运行Tomcat的先决条件。 Go to Start-->My Computer (right click on it) -->Properties-->Advanced-->Environment Variables (button) and then set CATALINA_HOME to the path of your Tomcat and JAVA_HOME to the location of your JDK, also add JAVA_HOME\\bin to your PATH variable. 转到开始 - >我的电脑(右键单击它) - >属性 - >高级 - >环境变量(按钮),然后将CATALINA_HOME设置为Tomcat和JAVA_HOME的路径到JDK的位置,将JAVA_HOME \\ bin添加到PATH变量中。

Ok, Solved this one myself. 好的,我自己解决了这个问题。 It turns out that "Load configuration failed" was a red herring. 事实证明,“加载配置失败”是一个红色的鲱鱼。 This was caused by Tomcat being unable to load java. 这是由Tomcat无法加载java引起的。 I discovered this in $CATALINA_HOME\\logs\\jakarta_service_YYYMMDD.log. 我在$ CATALINA_HOME \\ logs \\ jakarta_service_YYYMMDD.log中发现了这个。

I solved the problem by following these instructions . 我按照这些说明解决了这个问题。 Which basically amounts to copying msvcr71.dll to c:\\windows\\system32 这基本上相当于将msvcr71.dll复制到c:\\ windows \\ system32

What would the //TS/Tomcat6 argument do? // TS / Tomcat6参数会做什么?

The simplest way to make this work outside an IDE is to install it as a Windows Service and us the Monitor TOmcat application to stop and start it. 在IDE之外使用它的最简单方法是将其安装为Windows服务,并使用Monitor TOmcat应用程序来停止和启动它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM