562 questions
1
vote
1
answer
54
views
Drools cannot load DRL files from multiple folders inside Spring Boot executable JAR (LaunchedURLClassLoader issue)
I am using Drools 10.1.0 (drools-xml-support) with Spring Boot, and I have a kmodule.xml with two KBases, each pointing to a different folder.
In IntelliJ/IDE everything works perfectly.
But when I ...
-5
votes
1
answer
100
views
How to add FreeType lib to Ubuntu Noble run image?
In my Spring Boot application, I need fonts for Excel generation, so I used paketobuildpacks/builder-jammy-base as a build image with Spring Boot 3.4.
With Spring Boot 3.5 the default builder is ...
0
votes
0
answers
74
views
Implement permify in Spring boot application
I am trying to implement permify authorisation in my spring boot application. I want to know how can I upload schema to permify database inorder to create relationships.
Can someone provide the ...
0
votes
0
answers
47
views
Spring Boot Integration Tests without MBean Server
Running Integration Tests with Maven verify (./mvnw verify) fails using the Spring Boot Maven Plugin.
Spring Boot 3.4.6
Java 21
This fails because it relies on an MBean Server running.
[ERROR] Failed ...
0
votes
0
answers
31
views
Share Maven plugin configurations
In my projects want to use some common Maven plugin configurations like spotless and enforcer to ensure some consistency across all projects. So, I put these plugins into a parent pom that I inherit ...
2
votes
2
answers
649
views
Invalid buildpack reference 'gcr.io/paketo-buildpacks/adoptium'
My Spring Boot (3.4.4) application was built with Cloud Native Buildpacks. Unfortunately, the build is not working anymore.
Configuration
<execution>
<configuration>
<image&...
2
votes
1
answer
87
views
Maven downgrades transitive dependency scopes
Let's assume I have a simple Java project. For some reason I need, let's say, some StringUtil class in my tests. So, I add the dependency with a test scope. This works fine and it as it should be.
But ...
0
votes
0
answers
36
views
Recompiling Java code results in AspectJ binding error
I have acquired a Spring Boot application from my predecessor last September. A few months ago, one colleague found out that the last code checked in by my predecessor is not representing the last ...
1
vote
0
answers
56
views
Spring boot maven integration test shuts down abruptly added in pom.xml for openapi swagger documentation
Relating to my first question which is this I supplied the data in application.properties file and then somehow the app started and then suddenly it shut down without any reason.
Please check below ...
0
votes
0
answers
56
views
Spring Boot Maven Plugin does not pickup test properties or ansible properties for integration tests
I am trying to run openapi springdoc for my application for which I am using
<groupId>org.springdoc</groupId>`
<artifactId>springdoc-openapi-maven-plugin</artifactId>`
<...
0
votes
0
answers
33
views
Connect Keycloak code base from githup to a PostgreSQL database locally
I am trying to connect Keycloak to a PostgreSQL database, keycloak project is written in springboot and Keycloak is failing to recognize the PostgreSQL JDBC driver, showing the error:
"Driver ...
0
votes
0
answers
108
views
Maven build fails in Docker: "Failed to execute goal maven-resources-plugin:3.2.0:resources - Function not implemented"
I'm trying to containerise a Java Spring Boot application using Maven and Docker, but my build consistently fails inside the Docker container at the maven-resources-plugin step with the error:
[ERROR]...
0
votes
1
answer
197
views
Add volumes to docker image using Paketo for Spring Boot
How to add specific volumes to the image using Paketo and build-pack:
Example :
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-...
2
votes
2
answers
467
views
How to run health check with Spring Boot 3.4?
I upgraded my application to Spring Boot 3.4 and the health check is not working anymore. What do I need to change to make the health check work again?
Logs
If I call docker container inspect, I see ...
1
vote
0
answers
94
views
Unable to publish docker image with spring boot maven plugin
I've been struggling with this all day. Setup:
spring boot 3.4.2
Java 23
Maven 3.9.9
Using: mvn clean spring-boot:build-image builds the image but when trying to push to github container registry I ...
1
vote
2
answers
1k
views
Lombok doesn't work in newer version SpringBoot 3.4.1
Lombok doesn't work in SpringBoot 3.4.1. but IntelliJ IDE doesn't show any errors. But during compile time, every code that generates from Lombok getting notFound() error. I tried every possible ...
0
votes
0
answers
47
views
How to exclude a dependency along with its transitive dependencies with Spring Boot Maven Plugin?
I have a Spring Boot application which can run with Azure or GCP. The bean creation for a specific cloud provider is controlled using Spring profile. Maven is used to create the executable JAR using ...
0
votes
2
answers
212
views
Error "Request to write bytes exceeds size in header" in spring-boot:build-image
I have a Spring Boot project. When I run
mvnw spring-boot:build-image it fails with following error:
[INFO] <<< spring-boot:3.1.12:build-image (default-cli) < package @ perftest <<&...
1
vote
1
answer
205
views
Spring Boot Maven Plugin - build docker image with custom binary dependencies
I use spring-boot-maven-plugin to build docker images.
Under the hood, this uses buildpacks (paketo). My knowledge around buildpacks is very limited.
The problem is a new requirement: we will use the ...
0
votes
1
answer
261
views
spring build-image does not work with DOCKER_HOST different than /var/run/docker.sock
It looks like spring-boot:build-image does not respect the DOCKER_HOST environment variable which is on my host: unix:///run/user/1000/docker.sock
Ubuntu Installation
Installation of Docker CE
...
0
votes
1
answer
320
views
cannot find symbol of spring boot class when using repackage of spring-boot-maven-plugin [duplicate]
I created a simple project to showcase my problem: https://github.com/sentinel0815/testing-spring-boot-app
This is a maven multi module project (reactor) having only
a spring boot application class ...
0
votes
2
answers
52
views
Can not resolve dependency tomcat.http.port in <argument>--server.port=${tomcat.http.port}</argument> in POM
I am trying to copy an old POM, and build my own Java Springboot backend. I am learning about controling the build. In the lectureres, in the POM --server.port=${tomcat.http.port} is automatically ...
0
votes
0
answers
113
views
File permissions in container, built with spring-boot-maven-plugin build-image-no-fork
I'm moving from a classic jar deployment to a containerized deployment of my java 21 application.
For that purpose I like to create my container image with spring-boot-maven-plugin with the goal build-...
0
votes
0
answers
127
views
Add certificate via binding in Spring Boot maven plugin without volume mounting
I have followed different recommendations, here, here , here and here. All are answered with the idea that volume mounting is supported.
I run my build in Gitlab, and we have a policy, we do not ...
0
votes
1
answer
379
views
How to set THC_PORT and THC_PATH with Spring Boot 3.3?
I upgraded my application from Spring Boot 3.1 to Spring Boot 3.3. After upgrading the Paketo Buildpack for Health Checkers is not working anymore. It uses the wrong port. My health endpoint is on ...
1
vote
3
answers
815
views
Failed to build an image (By Buildpacks approach)
Trying to build an Image of loans application with BuildPacks approach, getting this below error
pom.xml :
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="...
0
votes
1
answer
127
views
Error while compiling and running spring boot project in intellij and vscode
Error while compiling and running spring boot project in intellij and vscode
press here to see the error
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable ...
-1
votes
1
answer
236
views
when i used thymeleaf in our code and replace header code into seprate file then not show header tab
I am learning Spring Boot and using Thymeleaf in my project. When I replace the header code as a separate file in the same folder and use Thymeleaf's replace syntax, the CSS, JS, and Bootstrap code is ...
0
votes
0
answers
59
views
Add additional jars / dependencies to a spring boot bootable jar
Is there a way to include additional dependencies or jar file in a Spring bootable jar?
I'm using the spring-boot-maven-plugin outside of a spring project to generate a bootable jar. This works fine, ...
4
votes
0
answers
137
views
Optimizing Dependency Management with Spring Boot Maven Plugin: Excluding Provided & Provided Transitive Dependencies
In my Spring Boot project, I want to exclude provided and transitive dependencies from the provided dependency when packaging a jar or war using the spring-boot-maven-plugin
As in image above, I want ...
0
votes
0
answers
751
views
VS Code shows Spring Boot packages does not exist, even though it still runs the Java application
This is a project I cloned from GitHub (my friend initialized the Spring Boot project and everything).
However, my VS Code shows that it does not recognize all of the Spring Boot packages and other ...
0
votes
1
answer
1k
views
How embedded tomcat works?
Just wanted to know in detail. How embedded tomcat works in springboot application ?. How it executes the appplication jar. please share the link to study about springboot embedded server.
I tried ...
0
votes
0
answers
68
views
Facing MicrometerClock issue with spring boot version 2.5.5
I am having Spring Boot version 2.5.5 in my project. I am getting below error while running the project. I think , I'm having some version issue with Spring Boot. I also try to upgrade the version of ...
2
votes
1
answer
4k
views
issue with Could not autowire. No beans of 'String' type found
so ive been looking up on diffrent solutions for the problem, im using intelij idea, what im tryng to do is set up microservices where my order service communicates to product service via API-Gateway, ...
1
vote
0
answers
115
views
Getting `object scala in compiler mirror not found issue` while running the springboot application using jar but not with classpath
I have a multi-module application which has a java HTTP application (springboot, java 11) in one module and scala code in the second module.
The second module is included as a dependency in the first ...
0
votes
0
answers
30
views
How can I segregate the application jar and dependencies?
I've a spring-boot application with maven, the final jar is of 96MB+ and I want to reduce that jar size by excluding dependencies jars from final jar and keeping them in one remote location and ...
1
vote
0
answers
54
views
Spring boot with Java 8 Intellij project [duplicate]
I want to create a Springboot project with java 8 inn Intellij but I couldn't:
when i tried to create the standard way I only find Java 17 and 21 to choose from:
enter image description here
After ...
0
votes
0
answers
57
views
Spring Initializr - running the first application
Started learning Spring framework, but I have a problem where by my project builds successfully but it wont finish running...
pom file
<?xml version="1.0" encoding="UTF-8"?>
&...
1
vote
1
answer
356
views
My import for kafka is not working my spring boot version is 2.7.18
I tried 2.8x to 2.9x but my import for kafka is not working
these imports they are unable to find after kafka plugin
org.springframework.kafka spring-kafka 2.8.0
just tell me the version to go with ?
...
1
vote
0
answers
297
views
After upgrading springboot to Version 3.2.1 maven surefire plugin error is shown only in Jenkins
After upgrading springboot to 3.2.1 maven surefire plugin error is shown only in Jenkins. On local everything is passing.
Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:3.1.2:...
3
votes
0
answers
6k
views
HHH000489:No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)database created but not table schema
my old projects are working fine after I created new projects not even one new works now
**with this the database is created but inside database the table is not created. also when I run spring boot I ...
0
votes
0
answers
28
views
Parameter 0 of constructor in com.example.sqch8ex5.ProductController required a bean of type 'service.ProductService' that could not be found [duplicate]
I am creating a spring boot application, wherein any client can submit the request, these request can be GET, PUT, POST, DELETE.
I'm getting the below error and I'm able not to fix it after soo many ...
-1
votes
2
answers
2k
views
org.springframework.boot.SpringApplication - Application run failed
When trying to run my application i am getting an error like this
java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Object;)V
at org....
-2
votes
1
answer
61
views
How can a Linux library be added to a Spring Boot image?
This step would need to be added:
apt install -y libjemalloc-dev
Can this configuration be extended with or without a Dockerfile to include a library, in this case libjemalloc?
<plugin>
...
0
votes
1
answer
106
views
Running main method defined in a test class in Spring Boot 3.2 from Maven?
Spring Boot 3.2 allows starting the application from a main method defined in the test scope. For example:
@TestConfiguration(proxyBeanMethods = false)
class TestBootstrap {
@Bean
@...
0
votes
1
answer
6k
views
Apache Maven plugins 3.11.0 Compile Issue
WHILE TRYING TO RUN MY SPRING APPLICATION WITH THE FOLLOWING pom.xml WITH JAVA 17 INSTALLED IN MY SYSTEM I AM FACED WITH THE FOLLOWING ERROR WHILE RUNNING mvn clean install I GET THE FOLLOWING ERROR ...
1
vote
0
answers
296
views
Gradle Not Generating Springboot Library Jar with embedded pom.xml in META-INF
I have Springboot multi module library project with Gradle 7.4 and Springboot 3.2 as below
buildscript {
dependencies {
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4....
2
votes
0
answers
1k
views
Spring Boot App immediately stops running with no errors, 'Closing JPA EntityManagerFactory for persistence unit 'default''
I have just created a Spring Boot application with a generic model/service/dto/controller/repository and wanted to test it for the first time on a mysql database. When I run the application, it offers ...
0
votes
1
answer
103
views
Spring boot App Using Maven, build with EnvFile
I started to use maven to create a Spring boot app.
I wan't to deploy the project using maven commands.
Here is my file application.properties
spring.config.import=optional:file:env.properties
spring....
0
votes
1
answer
529
views
How to run a spring executable jar where main class is present in one of the dependencies lib
I am working on a springboot project where the generated spring executable jar has the following structure.
BOOT-INF/
----classes/ <nothing inside classes>
----lib/
---------myDependency.jar ----...