Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QA] Port change issue #419

Open
nikit91 opened this issue Jun 21, 2022 · 0 comments
Open

[QA] Port change issue #419

nikit91 opened this issue Jun 21, 2022 · 0 comments

Comments

@nikit91
Copy link
Member

nikit91 commented Jun 21, 2022

Hello,

In the Gerbil's QuestionAnswering branch, start.sh has the following argument passed to maven command:
-Dcargo.servlet.port=5004

However, I still get the error regarding port 8080 being unavailable:

[INFO] [en3.ContainerRunMojo] Resolved container artifact org.codehaus.cargo:cargo-core-container-tomcat:jar:1.9.11 for container tomcat9x
[INFO] [beddedLocalContainer] Tomcat 9.x Embedded starting...
[WARNING] [beddedLocalContainer] org.codehaus.cargo.container.ContainerException: Port number 8080 (defined with the property cargo.servlet.port) is in use. Please free it on the system or set it to a different port in the container configuration.
[ERROR] Starting container [org.codehaus.cargo.container.tomcat.Tomcat9xEmbeddedLocalContainer@7a5c6d8] failed
org.codehaus.cargo.container.ContainerException: Port number 8080 (defined with the property cargo.servlet.port) is in use. Please free it on the system or set it to a different port in the container configuration.

For now, I am using a work-around that involves providing the port directly in the pom.xml instead ( Ref: https://codehaus-cargo.github.io/cargo/Configuration+properties.html#Configurationproperties-MavenPlugin)

It seems that even after providing a port through the commandline the codehaus cargo plugin goes and checks availability of the default port first (8080).

@nikit91 nikit91 changed the title [Gerbil QA] Port change issue [QA] Port change issue Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants