概述如何解决“无法初始化与ProtocolHandler相关联的
终点”
错误? @H_403_0@我在我的Ubuntu 12.04中安装了Tomcat 7。@H_403_0@不知何故Tomcat没有启动。 试过所有可能的步骤,检查论坛; 没有什么帮助@H_403_0@谁能告诉我哪里出了错?@H_403_0@从我的电脑login,以下命令:@H_403_0@启动Tomcat时,出现错误,不受支持的主要/次要版本,但环境variables似乎是正确的@H_403_0@Nginx使用Tomcat 7pipe理SSL@H_403_0@使用Java Apache PoolingClIEntConnectionManager泄漏内存,如何解决?@H_403_0@.War在windows上部署但无法在linux服务器上部署(Tomcat 7)@H_403_0@Tomcat 7作为windows服务不能从其他系统访问@H_403_0@~$ sh /usr/share/tomcat7/bin/catalina.sh run Using CATAliNA_BASE: /usr/share/tomcat7 Using CATAliNA_HOME: /usr/share/tomcat7 Using CATAliNA_TMPDIR: /usr/share/tomcat7/temp Using JRE_HOME: /usr/lib/jvm/java-6-openjdk/jre Using CLAsspATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar 21 Jan,2013 12:34:17 AM org.apache.catalina.startup.ClassLoaderFactory valIDatefile WARNING: Problem with directory [/var/lib/tomcat7/common/classes],exists: [false],isDirectory: [false],canRead: [false] 21 Jan,2013 12:34:17 AM org.apache.catalina.startup.ClassLoaderFactory valIDatefile WARNING: Problem with directory [/var/lib/tomcat7/common],2013 12:34:17 AM org.apache.catalina.startup.ClassLoaderFactory valIDatefile WARNING: Problem with directory [/var/lib/tomcat7/server/classes],2013 12:34:17 AM org.apache.catalina.startup.ClassLoaderFactory valIDatefile WARNING: Problem with directory [/var/lib/tomcat7/server],2013 12:34:17 AM org.apache.catalina.startup.ClassLoaderFactory valIDatefile WARNING: Problem with directory [/var/lib/tomcat7/shared/classes],2013 12:34:17 AM org.apache.catalina.startup.ClassLoaderFactory valIDatefile WARNING: Problem with directory [/var/lib/tomcat7/shared],2013 12:34:17 AM org.apache.catalina.startup.Catalina initDirs SEVERE: Cannot find specifIEd temporary folder at /usr/share/tomcat7/temp 21 Jan,2013 12:34:17 AM org.apache.catalina.startup.Catalina load WARNING: Unable to load server configuration from [/usr/share/tomcat7/conf/server.xml] 21 Jan,2013 12:34:17 AM org.apache.catalina.startup.Catalina start SEVERE: Cannot start server. Server instance is not configured.@H_403_0@ 提前感谢。 @H_403_0@ 从下面编辑。 @H_403_0@ 重新安装了Tomcat7。 @H_403_0@这次缺less的“server.xml”文件位于path: /usr/share/tomcat7/skel/conf/server.xml 。@H_403_0@再次尝试:@H_403_0@~$ sh /usr/share/tomcat7/bin/catalina.sh run@H_403_0@日志如下。@H_403_0@Using CATAliNA_BASE: /usr/share/tomcat7 Using CATAliNA_HOME: /usr/share/tomcat7 Using CATAliNA_TMPDIR: /usr/share/tomcat7/temp Using JRE_HOME: /usr/lib/jvm/java-6-openjdk/jre Using CLAsspATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar 21 Jan,2013 1:27:40 AM org.apache.catalina.startup.Catalina initDirs SEVERE: Cannot find specifIEd temporary folder at /usr/share/tomcat7/temp 21 Jan,2013 1:27:40 AM org.apache.catalina.startup.Catalina load WARNING: Unable to load server configuration from [/usr/share/tomcat7/conf/server.xml] 21 Jan,2013 1:27:40 AM org.apache.catalina.startup.Catalina start SEVERE: Cannot start server. Server instance is not configured.@H_403_0@ 从下面编辑。 @H_403_0@ 有力地试图压制警告 @H_403_0@现在我已经做了以下的事情:@H_403_0@获取bashauthentication通行证:@H_403_0@~$ sudo bash@H_403_0@在/ usr / share / tomcat7 / skel上创build一个临时目录@H_403_0@~# mkdir /usr/share/tomcat7/skel/temp@H_403_0@告诉Tomcat7我的conf / server.xml位于何处@H_403_0@~# export CATAliNA_BASE=/usr/share/tomcat7/skel@H_403_0@运行Catalina.sh@H_403_0@~# sh /usr/share/tomcat7/bin/catalina.sh run@H_403_0@日志:@H_403_0@Using CATAliNA_BASE: /usr/share/tomcat7/skel Using CATAliNA_HOME: /usr/share/tomcat7 Using CATAliNA_TMPDIR: /usr/share/tomcat7/skel/temp Using JRE_HOME: /usr/lib/jvm/java-6-openjdk/jre Using CLAsspATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar 21 Jan,2013 4:04:57 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8080"] 21 Jan,2013 4:04:57 AM org.apache.coyote.AbstractProtocol init SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"] java.net.BindException: Address already in use <null>:8080 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:391) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:554) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:409) at org.apache.coyote.http11.Abstracthttp11JsseProtocol.init(Abstracthttp11JsseProtocol.java:119) at org.apache.catalina.connector.Connector.initInternal(Connector.java:956) at org.apache.catalina.util.lifecycleBase.init(lifecycleBase.java:102) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.lifecycleBase.init(lifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:815) at org.apache.catalina.util.lifecycleBase.init(lifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:594) at org.apache.catalina.startup.Catalina.load(Catalina.java:619) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.bootstrap.load(bootstrap.java:281) at org.apache.catalina.startup.bootstrap.main(bootstrap.java:449) Caused by: java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:353) at java.net.ServerSocket.bind(ServerSocket.java:336) at java.net.ServerSocket.<init>(ServerSocket.java:202) at java.net.ServerSocket.<init>(ServerSocket.java:158) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:378) ... 17 more 21 Jan,2013 4:04:57 AM org.apache.catalina.core.StandardService initInternal SEVERE: Failed to initialize connector [Connector[http/1.1-8080]] org.apache.catalina.lifecycleException: Failed to initialize component [Connector[http/1.1-8080]] at org.apache.catalina.util.lifecycleBase.init(lifecycleBase.java:106) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.lifecycleBase.init(lifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:815) at org.apache.catalina.util.lifecycleBase.init(lifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:594) at org.apache.catalina.startup.Catalina.load(Catalina.java:619) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.bootstrap.load(bootstrap.java:281) at org.apache.catalina.startup.bootstrap.main(bootstrap.java:449) Caused by: org.apache.catalina.lifecycleException: Protocol handler initialization Failed at org.apache.catalina.connector.Connector.initInternal(Connector.java:958) at org.apache.catalina.util.lifecycleBase.init(lifecycleBase.java:102) ... 12 more Caused by: java.net.BindException: Address already in use <null>:8080 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:391) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:554) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:409) at org.apache.coyote.http11.Abstracthttp11JsseProtocol.init(Abstracthttp11JsseProtocol.java:119) at org.apache.catalina.connector.Connector.initInternal(Connector.java:956) ... 13 more Caused by: java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:353) at java.net.ServerSocket.bind(ServerSocket.java:336) at java.net.ServerSocket.<init>(ServerSocket.java:202) at java.net.ServerSocket.<init>(ServerSocket.java:158) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:378) ... 17 more 21 Jan,2013 4:04:57 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 811 ms 21 Jan,2013 4:04:57 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina 21 Jan,2013 4:04:57 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.26 21 Jan,2013 4:04:57 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 37 ms 21 Jan,2013 4:04:57 AM org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[localhost:8005]: java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:353) at java.net.ServerSocket.bind(ServerSocket.java:336) at java.net.ServerSocket.<init>(ServerSocket.java:202) at org.apache.catalina.core.StandardServer.await(StandardServer.java:427) at org.apache.catalina.startup.Catalina.await(Catalina.java:727) at org.apache.catalina.startup.Catalina.start(Catalina.java:673) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.bootstrap.start(bootstrap.java:322) at org.apache.catalina.startup.bootstrap.main(bootstrap.java:450) 21 Jan,2013 4:04:57 AM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler ["http-bio-8080"] 21 Jan,2013 4:04:57 AM org.apache.catalina.core.StandardService stopInternal INFO: StopPing service Catalina 21 Jan,2013 4:04:57 AM org.apache.coyote.AbstractProtocol stop INFO: StopPing ProtocolHandler ["http-bio-8080"] 21 Jan,2013 4:04:57 AM org.apache.coyote.AbstractProtocol destroy INFO: Destroying ProtocolHandler ["http-bio-8080"]@H_403_0@虽然有严重的消息日志目前,但是当我在我的浏览器中testinghttp:// localhost:8080,我看到它的工作原理!@H_403_0@需要专家的build议 :我应该继续在Tomcat7上进行工作还是需要进行整理。@H_403_0@从AJP连接器请求中检索Shibboleth属性@H_403_0@检查Tomcat 7版本的linux@H_403_0@Tess4J在64位窗口中独立工作,但在Tomcat 7中失败@H_403_0@Amazon EC2(windows)实例上的Tomcat服务器没有远程响应@H_403_0@无法加载Tomcat服务器configuration@H_403_0@我已经通过apt-get在linux Mint 17 Qiana上安装了tomcat7,并使用以下方法解决了某种相同的问题:@H_403_0@cd /usr/share/tomcat7 ln -s /etc/tomcat7 conf chmod -R 655 /etc/tomcat7/@H_403_0@更多信息@H_403_0@以下例外已经说明:@H_403_0@Caused by: java.net.BindException: Address already in use <null>:8080@H_403_0@您的本地计算机上启动了另一台服务器,不允许Tomcat 7启动。 “It Works”消息不属于Tomcat7,而应该看到Tomcat管理器(带有Tomcat标志)出现。@H_403_0@停止本地运行的任何http服务器并重新启动Tomcat7。@H_403_0@异常是错误消息中的状态,@H_403_0@SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"] java.net.BindException: Address already in use <null>:8080@H_403_0@你有另一个服务器实例运行在同一台机器上的任何其他进程,所以你不会允许你使用相同的端口,所以你需要先停止运行的实例或更改当前的tomcat端口号。@H_403_0@您可以停止正在运行的实例,@H_403_0@ps ax | grep java //Lists all java processes@H_403_0@然后通过杀死这个进程,@H_403_0@sudo kill -9 pID //pID-process ID@H_403_0@从新下载重新安装解决问题(下载* tar.gz压缩版本)。@H_403_0@礼貌harpun( https://stackoverflow.com/users/283084/harpun )@H_403_0@正如Buhake Sindi所指出的那样,“它有效”! 消息不是Tomcat。 为了将来的参考,这个特定的消息来自Apache httpd。@H_403_0@尝试运行service apache2 stop之前,尝试启动Tomcat7。 我认为这是端口8080锁定最可能的罪魁祸首。@H_403_0@其中一些问题,如“缺少”server.xml“等可以通过符号链接来解决@H_403_0@cd /usr/share/tomcat7 ln -s /etc/tomcat7 conf@H_403_0@在确定了类似的东西之后,这对我来说很有效,所以我的意思是要注意这些链接。@H_403_0@我希望这会有用@H_403_0@我的配置是linux Mint 16,tomcat7通过apt-get 总结
以上是内存溢出为你收集整理的如何解决“无法初始化与ProtocolHandler相关联的终点”错误?全部内容,希望文章能够帮你解决如何解决“无法初始化与ProtocolHandler相关联的终点”错误?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
评论列表(0条)