ajanata / PretendYoureXyzzy

A web clone of the card game Cards Against Humanity.
https://pretendyoure.xyz/zy
BSD 2-Clause "Simplified" License
1.23k stars 396 forks source link

Issue running Jetty #206

Closed hbjydev closed 5 years ago

hbjydev commented 5 years ago

Here are my logs where it begins to go wrong.

[INFO] --- jetty-maven-plugin:9.3.0.v20150612:run (default-cli) @ pyx ---
[INFO] Logging initialized @15991ms
[INFO] Configuring Jetty for project: pyx
[INFO] Webapp source directory = /home/haydenbjyoung/PretendYoureXyzzy/WebContent
[INFO] Reload Mechanic: manual
[INFO] Classes = /home/haydenbjyoung/PretendYoureXyzzy/target/classes
[INFO] Added extra scan target:/home/haydenbjyoung/PretendYoureXyzzy/src/main/filtered-resources
[INFO] Context path = /
[INFO] Tmp directory = /home/haydenbjyoung/PretendYoureXyzzy/target/tmp
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] web.xml file = /home/haydenbjyoung/PretendYoureXyzzy/target/${project.build.artifact.name}/WEB-INF/web.xml
[INFO] Webapp directory = /home/haydenbjyoung/PretendYoureXyzzy/WebContent
[INFO] jetty-9.3.0.v20150612
log4j:WARN No appenders could be found for logger (net.socialgamer.cah.StartupUtils).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
2019-01-28 20:14:04,850 [main] INFO  net.socialgamer.cah.StartupUtils - Reloading log4j.properties
2019-01-28 20:14:04,850 [main] INFO  net.socialgamer.cah.StartupUtils - Reloading pyx.properties
[INFO] Started o.e.j.m.p.JettyWebAppContext@79036056{/,[file:///home/haydenbjyoung/PretendYoureXyzzy/src/main/resources/, file:///home/haydenbjyoung/PretendYoureXyzzy/target/ZY/],AVAILABLE}{[file:///home/haydenbjyoung/PretendYoureXyzzy/src/main/resources/, file:///home/haydenbjyoung/PretendYoureXyzzy/target/ZY/]}
[INFO] Jetty server exiting.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  22.096 s
[INFO] Finished at: 2019-01-28T20:14:05Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.3.0.v20150612:run (default-cli) on project pyx: 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

This is when I run mvn clean package war:exploded jetty:run -Dmaven.buildNumber.doCheck=false -Dmaven.buildNumber.doUpdate=false

devgianlu commented 5 years ago

Check that you don't have something running on port 8080 (default) or that you don't have another instance running.

hbjydev commented 5 years ago

Yep, sorry about that! It was a Docker container! Haha!