问题解决:tomcat使用”严重: Error initializing endpoint“
 最近想学习jsp编程,在使用servlet容器时出现错误,百思不得其解,幸好网上有高人指点才得以解决,感谢互联网给我们如此方便的学习环境

2011-6-9 10:41:26 org.apache.catalina.core.AprLifecycleListener init
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Windows Live\Shared;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;d:\Program Files\Common Files\MicroStrategy;d:\Program Files\MicroStrategy\Desktop;d:\Program Files\MicroStrategy\Command Manager;d:\Program Files\MicroStrategy\Enterprise Manager;d:\Program Files\MicroStrategy\Integrity Manager;d:\Program Files\Common Files\MicroStrategy\JRE\160_07\Win32\bin;d:\Program Files\Common Files\MicroStrategy\Documentation;;C:\Program Files\SinoVoice\jTTS 5.0 Desktop\Bin;C:\Program Files\SinoVoice\jTTS 5.0 Desktop\Bin.;C:\Program Files\Java\jdk1.6.0_10\lib\dt.jar;C:\Program Files\Java\jdk1.6.0_10\LIB\tools.jar
2011-6-9 10:41:27 org.apache.coyote.http11.Http11Protocol init
严重: Error initializing endpoint
java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(Unknown Source)
 at java.net.ServerSocket.bind(Unknown Source)
 at java.net.ServerSocket.<init>(Unknown Source)
 at java.net.ServerSocket.<init>(Unknown Source)
 at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
 at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:494)
 at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:175)
 at org.apache.catalina.connector.Connector.initialize(Connector.java:1059)
 at org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
 at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
 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:260)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
2011-6-9 10:41:27 org.apache.catalina.startup.Catalina load

原因:8080端口被占用,在dos下运行“netstat -a ”查看当前端口的使用情况。

解决方法:修改Tomcat的使用端口,具体做法——找到目录...\Tomcat 5.5\conf,在conf目录下有“server.xml”文件,用记事本打开此文件,查找(打开文件后Ctrl+F)文件中的所有“8080”,并改为其他没有被占用的端口值(如:8088、8081等)。

阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/WitsMakeMen/article/details/6887223
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

问题解决:tomcat使用”严重: Error initializing endpoint“

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭