All Questions
645
questions
0
votes
1
answer
324
views
Spring Boot Application doesn't expose the port in Docker
I have built a Spring Boot app and am trying to run it in Docker.
The problem is that when I run it, the output seems to be normal:
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ ...
0
votes
0
answers
16
views
receive UDP packages on localhost (java.net.BindException: Address already in use) [duplicate]
I have an application that runs an udp server on a certain port to communicate with the app.
When I try to write another java application that receives what the server is sending, I get the error &...
2
votes
1
answer
182
views
What is the exact benefits on using Ports/Adapters in hexagonal architecture?
Lets say we have a typical implementation of the ports/adapter pattern:
@RestController
private class OrderController {
private final CreateOrderPort createOrderPort;
@PostMapping
...
0
votes
0
answers
18
views
questions about tomcat access vps from external wifi and machine
First at all thanks for your time.
I would like to solve some doubts that I have in relation to a vps under Ubuntu22.04.
I already installed everything related to TOMCAT.
my duads are:
once the java ...
1
vote
1
answer
152
views
Where should I store ports? Simple Java application, Spring boot, maven
For local testing my app i use port 8080, but on AWS server need to use 5000.
I propose i need to have 2 profiles, for example application.yml and application_dev.yml.
application.yml - port: 5000
...
0
votes
0
answers
401
views
Spring Boot application port change works locally but not on AWS EC2
I have a Spring Boot backend application that by default runs on port 8080. I've changed the port to 8081 in the application.properties file and it works perfectly on my local machine. I can ...
0
votes
1
answer
900
views
Jedis DockerFile : Failed to connect to any host resolved for DNS name
so I'm trying to dockerize my class , and when running the container I keep getting this Exception .
Here is my DockerFile :
FROM ubuntu
RUN apt-get update && apt-get install -y openjdk-17-...
0
votes
0
answers
269
views
HTTP to HTTPS Server Port
I'm really at my wits end. I've been working on this project trying to get the keystore path correct so I can generate a selfsigned certificate in my program files instead of in the Java/bin, finally ...
0
votes
1
answer
1k
views
Mockserver cannot connect to any port
Im using a mockserver to test api requests.
The mockserver wont start.
This is my code
@SpringBootTest
class RestApiMetaDataApplicationTests {
private ClientAndServer mockServer;
@BeforeClass
...
1
vote
1
answer
872
views
java.net.BindException: Address already in use (Bind failed)
I'm writing an email application in javafx, using MVC architecture.
The starting method of the server is this.
@Override
public void run() {
try {
serverSocket = new ...
1
vote
0
answers
151
views
Get port dynamically being set in application or being run in docker
I want to use this port for Oauth2 implementation dynamic getting the port.
Implementation:
1.Get the port running before the Oauth2 will be excuted else Oauth2 will not connect.
When application run: ...
0
votes
0
answers
57
views
java error connecting two devices with socket (public ip)
i'm almost a new java programmer (started at 5 month ago) and i want to connect two program over internet but i get some error that's i can't fix.
i've tried alot. i told to my friend to ping my ...
0
votes
1
answer
217
views
How to fix Tomcat Serveral ports problem?
Several ports (8005, 8080) required by Tomcat v9.0 Server at localhost
are already in use. The server may already be running in another
process, or a system process may be using the port. To start ...
0
votes
1
answer
48
views
httpwebserver.stop() is not working in Java web server [duplicate]
I'm confused on how can I prevent this error, when starting the button it works and there's no problem, but when I try stop the button with contains function stopping the httpserver, it says "...
0
votes
0
answers
1k
views
Register WireMock Extension with Port from application.properties
I'm trying to register a WireMockExtension with the port number from application.properties. How do I do that?
I have tried this code, but it produces a random port.
BaseIntegrationTest.java
@...