我在MacBook上启动测试Vaadin网站时遇到问题。当我尝试在Safari中打开端口8080时,它打开了我的一个旧的Vaadin项目。 IntelliJ一直告诉我这个。
[INFO] Started o.e.j.m.p.JettyWebAppContext@162c1dfb{/,file:///Users/jackson/proghub/assignment5/src/main/webapp/,AVAILABLE}{file:///Users/jackson/proghub/assignment5/src/main/webapp/}
[INFO] Jetty server exiting.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.285 s
[INFO] Finished at: 2017-04-13T12:22:16-05:00
[INFO] Final Memory: 46M/381M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.3.9.v20160517:run (default-cli) on project assignment5: Failure: Address already in use -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Process finished with exit code 1
显然问题是:
失败:地址已在使用
我该怎么办?
答案 0 :(得分:2)
选择其他端口。
其他进程正在使用端口8080。
也许您可以改变您的测试以使用端口0(系统分配的动态端口)。等待服务器启动,找出其端口号,并在测试中使用它。