Category : spring-boot

While creating image from STS4 with maven goal spring-boot:build-image -DskipTests ,I am getting error "Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.4.2:build-image failed: Connection to the Docker daemon at ‘localhost’ failed with error ".pipedocker_engine"; ensure the Docker daemon is running and accessible.." Exception arising : I/O exception (java.nio.file.NoSuchFileException) caught when processing request to {}->docker://localhost:2376: .pipedocker_engine Though I am ..

Read more

snippet from pom.xml: <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <image>vasanth0202/microservice-${project.artifactId}:${project.version}</image> <pullPolicy>IF_NOT_PRESENT</pullPolicy> </configuration> </plugin> </plugins> </build> Getting this error while building this in eclipse, Run As-> Maven build -> Goals (spring-boot:build-image -DskipTests) -> Run [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.5.2:build-image (default-cli) on project currency-exchange-service: Unable to parse configuration of mojo org.springframework.boot:spring-boot-maven-plugin:2.5.2:build-image for parameter image: Cannot find ..

Read more

I’m a little bit lost to adapt a docker system and I need some help: I’ve a virtual machine with a centos7 OS. A DNS, like MYSERVFER.com redirect to it. Inside this server, I’ve installed Docker and I’ve created 2 containers: First container: a frontend react application (MYSERVER:3000) Second container: a backend spring boot application ..

Read more

I am trying to run my spring boot app junit tests inside docker and then create image of that app. Below is my Dockerfile: FROM adoptopenjdk/openjdk14:alpine-jre as base COPY .mvn/ .mvn COPY mvnw pom.xml ./ RUN ./mvnw -B dependency:resolve-plugins dependency:resolve COPY src ./src FROM base as test CMD ["./mvnw", "test"] FROM base as build RUN ..

Read more

It seems that no matter what I try, running java -XshowSettings:vm -version on my container yields the same output VM settings: Max. Heap Size (Estimated): 494.94M Using VM: OpenJDK 64-Bit Server VM openjdk version "11.0.11" 2021-04-20 OpenJDK Runtime Environment 18.9 (build 11.0.11+9) OpenJDK 64-Bit Server VM 18.9 (build 11.0.11+9, mixed mode, sharing) I can’t figure ..

Read more

I’m running a spring boot application in the background as an API server, but I cannot access it from localhost:7000. INFO 1 — [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 7000 (http) with context path ” INFO 1 — [ main] c.e.farmfresh.FarmfreshApplication : Started FarmfreshApplication in 8.281 seconds (JVM running for 9.021) Here is ..

Read more

I am trying to send to ActiveMQ Artemis running in localhost from a Spring Boot app container via AMQP. My yml config is as follows: spring: activemq: broker-url: amqp://${HOST_NAME:localhost}:5672 I am passing HOST_NAME as host.docker.internal, but I am getting the following exception: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing ..

Read more

I am trying to send to artemis activemq running in localhost from a springboot app container via amqp. My yml config is as follows:- spring: activemq: broker-url: amqp://${HOST_NAME:localhost}:5672 I am passing HOST_NAME as host.docker.internal. But I am getting the following exception. Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing fai ..

Read more