忘了是安装了什么,直接启动tomcat6.exe及myeclipse启动tomcat是出现错误:
严重: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind
严重: Catalina.start
LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind
查了下资料找到:高手帮帮忙,启动Tomcat服务时报这样的错误是怎么回事?
网友回复是端口被其他程序占用了的问题。
才想起了我之前将tomcat的端口号改成80了(改成80后可以直接输入http://localhost/ ,不用输http://localhost:8080/ ),
然后找到了 \Tomcat 6.0\conf 目录下server.xml 将
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
改成
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
就解决这个问题了。
在查找这个问题是发现了刚启动时的另一个问题
The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:
找了网友的解决办法:Tomcat-6.0.33之APR based Apache Tomcat Native library
但是将 tcnative-1.dll 文件下载放到 \jdk1.6.0_29\bin 下,重新启动tomcat还是出现这个问题。(未解决)