Skip to content
Advertisement

Tag: quarkus

Panache with MongoDB find distinct

I have documents with “tags” arrays as properties. Now I want to query all distinct tag-items. Solution in mongo shell: which gives me: But how can I achieve the same result with Panache? The PanacheMongoEntity does not offer a specific distinct method. Nor do i know how to use the find method to achieve my goal or if it even

Can’t find io.jsonwebtoken.impl.DefaultJwtBuilder when starting project in a docker container

When starting my Quarkus project locally with mvn quarkus:dev I have no errors when executing a function which utilizes JJWT. However when I export my project into a docker container it gives me an error stating that it can’t find DefaultJwtBuilder. When dockerizing my project I first execute ./mvnw package -Pnative -Dquarkus.native.container-build=true as stated in the Quarkus docs for creating

Using MapStruct together with Lombok under Quarkus

I’m following the guide at the MapStruct blog and having trouble using this 3 technology together. I’ve been trying several approaches from the MapStruct docs, bug-reports, posts from here but in every case I end up receiving the following exception during the build. Have anyone successfully used MapStruct together with Lombok under Quarkus? Any help is appreciated. Strangely the first

Dependency injection with @Inject and Interface in Quarkus

I’m trying to resolve dependency injection with Repository Pattern using Quarkus 1.6.1.Final and OpenJDK 11. I want to achieve Inject with Interface and give them some argument(like @Named or @Qualifier ) for specify the concrete class, but currently I’ve got UnsatisfiedResolutionException and not sure how to fix it. Here is the my portion of code. UseCase class: Repository Interface: Repository

Quarkus classLoader conflicts

I am facing an error while trying to build my quarkus app. It seems to be related to the fact that there are two class loaders that have different class objects for javax/xml/namespace/QName as it is noticed in this part of the stack-trace : Caused by: java.lang.LinkageError: loader constraint violation: when resolving field “DATETIME” the class loader (instance of io/quarkus/bootstrap/classloading/QuarkusClassLoader)

Advertisement