当我想在我的windos系统中运行Open trip planner时,我遇到了这样的错误,为什么会这样?
当我想跑步的时候 C:\ OTP \ OTP> BIN \启动server.bat 在命令提示符下,我有一个像下面的错误.. 谁能知道为什么会这样呢?
C:\ OTP \ OTP> BIN \启动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
答案 0 :(得分:1)
错误告诉您原因:
HTTP侦听器初始化或关闭期间出错
java.net.BindException:已在使用的地址:JVM_Bind
应用程序尝试绑定的端口已被其他应用程序使用。更改端口或关闭其他应用程序。
答案 1 :(得分:1)
java.net.BindException: Address already in use: JVM_Bind
...似乎你已经在你指定的端口上侦听了一些内容。您必须检查使用它的是什么(特别是如果它是标准的,如80或443)。