2014-11-23 11 views
1

我已经JDK 1.7 路径,类路径,CATALINA_HOME设置无法创建记录器Tomcat的错误

这是错误

E:\apache-tomcat-7.0.56\bin>tomcat7.exe 
The system cannot find the path specified. 
Unable to create logger at '' 
[2014-11-23 23:03:48] [error] [ 7388] Failed creating java C:\Program Files\Java 
\jre7\bin\server\jvm.dll 
[2014-11-23 23:03:48] [error] [ 7388] The system cannot find the path specified. 

[2014-11-23 23:03:48] [error] [ 7388] ServiceStart returned 1 
[2014-11-23 23:03:48] [error] [ 7388] The system cannot find the path specified. 

[2014-11-23 23:03:48] [error] [ 7388] Commons Daemon procrun failed with exit va 
lue: 3 (Failed to run service as console application) 
[2014-11-23 23:03:48] [error] [ 7388] The system cannot find the path specified. 

该系统找不到指定的路径。 无法作为控制台应用程序运行服务 E:\ apache-tomcat-7.0.56 \ bin>

+0

jvm.dll出现在这个位置C:\ Program Files \ Java \ jre7 \ bin \ server? – mprabhat 2014-11-23 17:43:18

回答

1

我遇到了同样的问题。这是我能够弄清楚的: 发生此错误是因为您没有修改E:\ apache-tomcat-7.0.56 \ logs目录的权限。在我的情况下,这是因为我通过以“以管理员身份运行”模式(这迫使您以管理员身份登录)启动CMD shell来安装Tomcat,然后执行“unzip apache-tomcat-7.0.57-windows- x64.zip”。这似乎没有设置权限,即使在以“以管理员身份运行”权限运行时,服务安装程序也能正确访问文件。

现在,如果我转到我的普通用户帐户CMD shell并解压缩.zip文件,然后回到管理员CMD shell并运行服务安装,它就可以工作。

事实上,如果我使用COPY/S/D复制apache-tomcat-7.0.57目录,然后尝试从该目录进行安装,那么当您以管理员身份执行服务安装时, 。

希望这会有所帮助。