Tomcat 安装之后,双击Tomcat.exe,无法运行成功,怎么办?

Log形式多种多样,有的时候跟下面一样:

首先的解决方案就是:修改server.xml中所有的端口,因为不只8080端口可能被占用!

我在出问题的时候就修改8080端口。结果死活运行不了,纠结一些时间之后才发现是其它的两个端口也被占用了。

11-Jul-2014 16:53:16.703 INFO [main] org.apache.catalina.core.AprLifecycleListener.init Loaded APR based Apache Tomcat Native library 1.1.31 using APR version 1.4.8.
11-Jul-2014 16:53:16.703 INFO [main] org.apache.catalina.core.AprLifecycleListener.init APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
11-Jul-2014 16:53:17.243 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.1h 5 Jun 2014)
11-Jul-2014 16:53:17.323 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-8088"]
11-Jul-2014 16:53:17.333 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-apr-8009"]
11-Jul-2014 16:53:17.333 SEVERE [main] org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated with ProtocolHandler ["ajp-apr-8009"]
 java.lang.Exception: Socket bind failed: [730013] ???????????????í????×??????·??????×?
    at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:431)
    at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:727)
    at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:456)
    at org.apache.catalina.connector.Connector.initInternal(Connector.java:960)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.core.StandardService.initInternal(StandardService.java:567)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:834)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:576)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:599)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)

11-Jul-2014 16:53:17.343 SEVERE [main] org.apache.catalina.core.StandardService.initInternal Failed to initialize connector [Connector[AJP/1.3-8009]]
 org.apache.catalina.LifecycleException: Failed to initialize component [Connector[AJP/1.3-8009]]
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
    at org.apache.catalina.core.StandardService.initInternal(StandardService.java:567)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:834)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:576)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:599)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
    at org.apache.catalina.connector.Connector.initInternal(Connector.java:962)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    ... 12 more
Caused by: java.lang.Exception: Socket bind failed: [730013] ???????????????í????×??????·??????×?
    at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:431)
    at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:727)
    at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:456)
    at org.apache.catalina.connector.Connector.initInternal(Connector.java:960)
    ... 13 more

11-Jul-2014 16:53:17.343 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 882 ms
11-Jul-2014 16:53:17.373 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
11-Jul-2014 16:53:17.373 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.9
11-Jul-2014 16:53:17.383 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\Tomcat8.0\webapps\docs
11-Jul-2014 16:53:17.713 INFO [localhost-startStop-1] org.apache.catalina.util.SessionIdGenerator.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [110] milliseconds.
11-Jul-2014 16:53:17.733 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\Tomcat8.0\webapps\docs has finished in 350 ms
11-Jul-2014 16:53:17.733 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\Tomcat8.0\webapps\host-manager
11-Jul-2014 16:53:17.773 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\Tomcat8.0\webapps\host-manager has finished in 40 ms
11-Jul-2014 16:53:17.773 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\Tomcat8.0\webapps\manager
11-Jul-2014 16:53:17.793 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\Tomcat8.0\webapps\manager has finished in 20 ms
11-Jul-2014 16:53:17.793 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\Tomcat8.0\webapps\ROOT
11-Jul-2014 16:53:17.823 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\Tomcat8.0\webapps\ROOT has finished in 30 ms
11-Jul-2014 16:53:17.823 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-8088"]
11-Jul-2014 16:53:17.833 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 489 ms
11-Jul-2014 16:53:17.843 SEVERE [main] org.apache.catalina.core.StandardServer.await StandardServer.await: create[localhost:8005]:
 java.net.BindException: Address already in use: JVM_Bind
    at java.net.DualStackPlainSocketImpl.bind0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
    at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
    at java.net.PlainSocketImpl.bind(Unknown Source)
    at java.net.ServerSocket.bind(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at org.apache.catalina.core.StandardServer.await(StandardServer.java:419)
    at org.apache.catalina.startup.Catalina.await(Catalina.java:713)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:659)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

11-Jul-2014 16:53:17.843 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-apr-8088"]
11-Jul-2014 16:53:17.893 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-apr-8009"]
11-Jul-2014 16:53:17.893 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina
11-Jul-2014 16:53:17.953 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-apr-8088"]
11-Jul-2014 16:53:18.003 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-apr-8088"]
11-Jul-2014 16:53:18.003 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-apr-8009"]
11-Jul-2014 16:53:18.003 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-apr-8009"]
11-Jul-2014 16:58:43.332 INFO [main] org.apache.catalina.core.AprLifecycleListener.init Loaded APR based Apache Tomcat Native library 1.1.31 using APR version 1.4.8.
11-Jul-2014 16:58:43.332 INFO [main] org.apache.catalina.core.AprLifecycleListener.init APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
11-Jul-2014 16:58:43.932 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.1h 5 Jun 2014)
11-Jul-2014 16:58:44.032 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-8088"]
11-Jul-2014 16:58:44.042 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-apr-8089"]
11-Jul-2014 16:58:44.042 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 953 ms
11-Jul-2014 16:58:44.072 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
11-Jul-2014 16:58:44.072 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.9
11-Jul-2014 16:58:44.072 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\Tomcat8.0\webapps\docs
11-Jul-2014 16:58:44.432 INFO [localhost-startStop-1] org.apache.catalina.util.SessionIdGenerator.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [110] milliseconds.
11-Jul-2014 16:58:44.452 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\Tomcat8.0\webapps\docs has finished in 380 ms
11-Jul-2014 16:58:44.452 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\Tomcat8.0\webapps\host-manager
11-Jul-2014 16:58:44.492 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\Tomcat8.0\webapps\host-manager has finished in 40 ms
11-Jul-2014 16:58:44.492 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\Tomcat8.0\webapps\manager
11-Jul-2014 16:58:44.512 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\Tomcat8.0\webapps\manager has finished in 20 ms
11-Jul-2014 16:58:44.512 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\Tomcat8.0\webapps\ROOT
11-Jul-2014 16:58:44.542 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\Tomcat8.0\webapps\ROOT has finished in 30 ms
11-Jul-2014 16:58:44.542 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-8088"]
11-Jul-2014 16:58:44.562 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-apr-8089"]
11-Jul-2014 16:58:44.562 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 517 ms
11-Jul-2014 17:07:14.770 INFO [Thread-4] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-apr-8088"]
11-Jul-2014 17:07:14.830 INFO [Thread-4] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-apr-8089"]
11-Jul-2014 17:07:14.880 INFO [Thread-4] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina
11-Jul-2014 17:07:14.920 INFO [Thread-4] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-apr-8088"]
11-Jul-2014 17:07:14.970 INFO [Thread-4] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-apr-8089"]

Tomcat 安装之后,双击Tomcat.exe,无法运行成功,怎么办?

时间: 2024-12-28 08:20:25

Tomcat 安装之后,双击Tomcat.exe,无法运行成功,怎么办?的相关文章

Tomcat(介绍,JDK安装,Tomcat安装,配置Tomcat监听80端口)

一.Tomcat介绍 目前有很多网站是用Java编写的,所以解析Java程序就必须有相关的软件来完成,Tomcat就是其中之一 Tomcat是Apache软件基金会,的Jakarta项目中的一个核心项目,由apache.sun和其他一些公司及个人共同开发而成,Tomcat技术先进,性能稳定而且免费,因而深受Java爱好者的喜欢,并得到部分开发商的认可,成为目前比较流行的web因公服务器. Java程序写的网站用Tomcat+jdk来运行的. tomcat是一个中间件,真正起作用的,解析java脚

tomcat安装后,双击start.bat闪退的问题

1.jdk环境变量没有配 解决方案:我的电脑-属性-高级-环境变量,新增下面三个环境变量: ①JAVA_HOME=C:\Program Files\Java\jdk1.7.0_09(就是你jdk安装的路径,到bin的上一级目录) ②CLASSPATH=. ;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;(.;一定不能少,因为它代表当前路径) ③path=.;%JAVA_HOME%\bin 2.端口冲突 修改Tomcat/conf/server.

Tomcat安装,Http协议

day02总结 今日内容 l Tomcat安装 l Web项目 l Tomcat服务器 l Http协议 l HttpUrlConnection Tomcat安装 软件体系结构 1 C/S结构 C/S结构即客户端/服务器(Client/Server),例如QQ就是C/S结构的.我们每个人电脑上都需要安装QQ的客户端,客户端软件向服务器端软件发送请求,服务器端给客户端返回响应. 但是,因为客户端需要不断的更新,用户使用起来就比较麻烦.现在的C/S结构的客户端已经好多了,可以提示用户更新,用户只需要

Tomcat安装、部署方式和Idea的集成

1.Tomcat安装 1.1.Tomcat下载 1.1.1 去到Tomcat官网下载,找到左侧的Download,点击对应的版本这里我下载最新的Tomcat9 1.1.2 进入Tomcat 9 版本下载页面下滑到Core 处,直接下载zip即可 注意有zip和exe两种格式的,zip是免安装版的,exe是安装版.同时观察自己的电脑是64位系统还是32位系统. 1.2 Tomcat安装 随意找到一个目录,解压下载压缩包 1.3 测试Tomcat 1.3.1 进入bin目录下,找到startup.b

Java eclipse Myeclipse tomcat安装及配置

Java eclipse Myeclipse tomcat安装及配置作者:天涯 来源:中国自学编程网 发布日期:1223857747目前,开发Java网页程序,最流行的就是用Myeclipse来进行编程设计.这主要跟该程序的有点有非常大的原因.Myeclipse程序中,有数不尽的原因,但值得向大家推荐的有如下几个原因: ? 配置tomcat比较方便: ? 代码自动补全: ? 代码提示: ? 自动报错,还带错误提示. 当然Myecilpse还有许多优点,我在这里就不一一列举了. 网上,关于Java

TOMCAT安装手册-Linux环境下

TOMCAT安装标准手册 一.Tomcat简介 Tomcat是一个免费的开源的Serlvet容器,它是Apache基金会的Jakarta项目中的一个核心项目,由Apache,Sun和其它一些公司及个人共同开发而成.由于有了Sun的参与和支持,最新的Servlet和Jsp规范总能在Tomcat中得到体现. Tomcat是稳固的独立的Web服务器与ServletContainer,不过,其Web服务器的功能则不如许多更健全的Web服务器完整,如Apache Web服务器(举例来说,Tomcat没有大

ubuntu下安装jdk和tomcat

1.JDK安装 将JDK安装包解压缩之后,编辑~/.bashrc文件,在该文件里面加入下面的配置,然后通过source ~/.bashrc.JDK即安装成功. export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_55 export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH 2.tomcat

CentOS7 Tomcat安装

CentOS7 Tomcat安装 Download 从Tomcat下载apache-tomcat-8.0.18.tar.gz Install 安装 上传RPM文件到/tmp目录下 mkdir /opt/tomcatcd /opt/tomcattar -zxvf /tmp/apache-tomcat-8.0.18.tar.gzln -sf /opt/tomcat/apache-tomcat-8.0.18/opt/tomcat/latestln -sf /opt/tomcat/latest /opt

linux下安装jdk,tomcat以及mysql

环境:centOS6.8.jdk1.8,tomcat-8.5.15,mysql-5.7.18 1.  安装JDK 注意:rpm与软件相关命令 相当于window下的软件助手 管理软件 步骤: 1)查看当前Linux系统是否已经安装java rpm -qa | grep java 输入以上指令检查是否安装没有不必管,有就用以下命令卸载掉 rpm -e --nodeps 要卸载的软件 2)上传jdk-8u131-linux-x64.tar.gz到Linux上 3) 解压jdk到想要解压的目录 tar