从NetBeans启动Tomcat时出错-'127.0.0.1 *'不被识别为内部或外部命令 [英] Error starting Tomcat from NetBeans - '127.0.0.1*' is not recognized as an internal or external command
问题描述
Google和Stackoverflow都向我展示了类似问题的人,但是此错误稍有不同,因为IP地址后缀有星号:
Both Google and Stackoverflow have shown me people with similar issues however this error is slightly different in that the IP address is suffixed with an asterisk:
NetBeans 8.0.1在尝试启动Tomcat时给我以下错误.
NetBeans 8.0.1 is giving me the following error when trying to start Tomcat.
'127.0.0.1 *'不被识别为内部或外部命令,
可操作的程序或批处理文件.
'127.0.0.1*' is not recognized as an internal or external command,
operable program or batch file.
我已经安装了Tomcat 7.0.56和Tomcat 8.0.14,它们都从命令行(一次一个)启动OK.我将它们添加到了NetBeans的服务器列表中,例如Tomcat 7和Tomcat8.
I've got both Tomcat 7.0.56 and Tomcat 8.0.14 installed, they both start OK from the command line (one at a time). I have them added to NetBeans' list of servers as Tomcat 7 and Tomcat 8.
我有一个已配置的"Hello World" Web应用程序:
属性->运行->服务器:尝试了Tomcat 7和Tomcat 8
两者都给出相同的错误.
I have a "Hello World" web app which I have configured:
Properties -> Run -> Server: tried both Tomcat 7 and Tomcat 8
Both give the same error.
如果我尝试使用以下任一方法来启动Tomcat:
服务->服务器-> Tomcat 7->开始
服务->服务器-> Tomcat 8->开始
我收到与尝试启动Web应用程序时相同的错误:
If I try starting Tomcat using either:
Services -> Servers -> Tomcat 7 -> Start
Services -> Servers -> Tomcat 8 -> Start
I get the same error as when trying to start a web app:
'127.0.0.1 *'不被识别为内部或外部命令,
可操作的程序或批处理文件.
'127.0.0.1*' is not recognized as an internal or external command,
operable program or batch file.
有什么想法吗?
即使只是星号在这里做什么?
Any ideas ?
Even if it's only what that asterisk is doing there ?
推荐答案
假定您在Windows上(此错误是由于蝙蝠文件逃逸导致的),这是最新版本(7.0.56
和8.0.14
)来解决另一个错误.尝试删除catalina.bat
中JAVA_OPTS
声明周围的"
.它昨天用Tomcat 7.0.56
为我修复了.
Assuming you are on Windows (this bug is caused by the crappy bat files escaping), It is a bug introduced in the latest versions (7.0.56
and 8.0.14
) to workaround another bug. Try to remove the "
around the JAVA_OPTS
declaration in catalina.bat
. It fixed it for me with Tomcat 7.0.56
yesterday.
在7.0.56
在bin/catalina.bat:179
和184
:noJuliConfig
set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%"
..
:noJuliManager
set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%"
到
:noJuliConfig
set JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%
..
:noJuliManager
set JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%
对于您的星号,它可能只是您的配置,可以将其附加到主机声明中.
For your asterisk, it might only be a configuration of yours somewhere that appends it to the host declaration.
昨天我在Tomcat的bugtracker上看到了此错误,但我再也找不到该链接. 编辑找到了! > https://issues.apache.org/bugzilla/show_bug.cgi?id=56895
I saw this on Tomcat's bugtracker yesterday but I can't find the link again. Edit Found it! https://issues.apache.org/bugzilla/show_bug.cgi?id=56895
我希望它可以解决您的问题.
I hope it fixes your problem.
这篇关于从NetBeans启动Tomcat时出错-'127.0.0.1 *'不被识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!