-1

When i'm tring to run Open trip planner in my windos system i got an error like this why this happens?

when i'm tring to run C:\otp\otp>bin\start-server.bat in command prompt,i had an error like below.. can anyone know why this happens??

C:\otp\otp>bin\start-server.bat

C:\otp\otp>java -Xmx1448m -jar lib\winstone.jar --webappsDir=webapps
 .......
 .......
[Winstone 2012/11/22 15:47:59] - Beginning extraction from war file
[Winstone 2012/11/22 15:48:00] - No webapp classes folder found - C:\otp\otp\web
apps\opentripplanner-webapp\WEB-INF\classes
[Winstone 2012/11/22 15:48:00] - Deployed web application found at opentripplann
er-webapp.war
[Winstone 2012/11/22 15:48:00] - Winstone Servlet Engine v0.9.10 running: contro
lPort=disabled
[Winstone 2012/11/22 15:48:00] - Error during HTTP listener init or shutdown
java.net.BindException: Address already in use: 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 winstone.HttpListener.getServerSocket(HttpListener.java:102)
        at winstone.HttpListener.run(HttpListener.java:116)
        at java.lang.Thread.run(Unknown Source)

[Winstone 2012/11/22 15:48:00] - HTTP Listener shutdown successfully
[Winstone 2012/11/22 15:48:00] - AJP13 Listener started: port=8009
4

2 回答 2

1

错误告诉你原因:

HTTP 侦听器初始化或关闭期间出错

java.net.BindException:地址已在使用中:JVM_Bind

应用程序尝试绑定的端口已被另一个应用程序使用。更改端口或关闭其他应用程序。

于 2012-11-22T10:38:39.107 回答
1

java.net.BindException: Address already in use: JVM_Bind...似乎您有一些东西已经在您指定的端口上侦听。您必须检查使用它的是什么(特别是如果它是标准的,如 80 或 443)。

于 2012-11-22T10:39:13.543 回答