tomcat 报错窗口不关闭

在tomcat启动中过报错窗口一般会自动关闭,导致我们没办法看清楚报错的信息。现解决方法如下:

1、找到catalina.bat,并用文本方式打开;

2、找到 if not "%OS%" == "Windows_NT" goto noTitle处,会看到下面一段脚本:

if not "%OS%" == "Windows_NT" goto noTitle
set _EXECJAVA=start "Tomcat" %_RUNJAVA%
goto gotTitle
:noTitle
set _EXECJAVA=start  %_RUNJAVA%
:gotTitle
if not ""%1"" == ""-security"" goto execCmd
shift
echo Using Security Manager
set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
goto execCmd

3、修改上面脚本里面的

set _EXECJAVA=start "Tomcat" %_RUNJAVA%
set _EXECJAVA=start  %_RUNJAVA%

set _EXECJAVA=start /b "Tomcat" %_RUNJAVA%
set _EXECJAVA=start /b  %_RUNJAVA%

保存退出,启动start.bat即可。

时间: 2024-10-30 15:47:21

tomcat 报错窗口不关闭的相关文章

tomcat报错:org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already.

tomcat报错:org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. 关于一个HTTP头验证出错的问题: org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoa

eclipse中以debug方式启动tomcat报错

在eclipse中debug  Tomcat报错,错误如下: FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERROR: transport error 202: connect failed: Operation timed out ERROR: JDWP Transport dt_socket failed to initiali

TOMCAT报错:HTTP Status 404 -

构建struts2工程师,tomcat报错: HTTP Status 404 - type Status report message description The requested resource is not available. Apache Tomcat/6.0.37

解决tomcat报错javax.imageio.IIOException: Can't create output stream!

启动tomcat catalina.out报错如下,登陆的时候无法显示验证码 2017-06-09 11:23:06,628 DEBUG org.springframework.web.servlet.DispatcherServlet 845 - DispatcherServlet with name 'spring-mvc' processing GET request for [/data-analysis/kaptchaImage.do]2017-06-09 11:23:06,629 D

【转】Eclipse下启动tomcat报错:/bin/bootstrap.jar which is referenced by the classpath, does not exist.

转载地址:http://blog.csdn.net/jnqqls/article/details/8946964 1.错误: 在Eclipse下启动tomcat的时候,报错为:Eclipse下启动tomcat报错:The archive: C:/Program Files(x86)/Java/jdk1.7.0_10/lib/tools.jar which is referenced by the classpath, doesnot exist. 2.原因: 这是因为我中途移动过tomcat的位

hadoop整合到web工程发布到tomcat报错

我是用的maven,至少要移出如下的jar包: <!-- hadoop相关包 --> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-core</artifactId> <version>1.0.4</version> <exclusions> <exclusion> <artifactId&

运行Tomcat报错 解决方法

运行Tomcat报错 解决方法 运行Tomcat控制台报错: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/jdk1.6.0_26/jre/lib/i386/server:/usr/local/jdk1.6.0_26/jre/lib/i3

tomcat报错org.springframework.web.context.ContextLoaderListener找不到

tomcat报错org.springframework.web.context.ContextLoaderListener找不到. 最后解决办法:将jar包copy到web-inf下面的lib中. 你可以在web app libary是不是空,或者点不开. 引用网友的: http://topic.csdn.net/u/20090216/19/3c955432-e708-4338-961f-8db9db7f5df1.html 可能是jar包位置导致的. Java虚拟机是根据Java ClassLo

linux下启动tomcat报错 Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We&#39;ll add some extra randomness

INFO [localhost-startStop-1] com.mchange.v2.log.slf4j.Slf4jMLog$Slf4jMLogger$InfoLogger.log(206) | Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomnessjava.net.UnknownHostException: Oracle.Linu