Questions tagged [jhipster]
JHipster is a development platform to generate, develop and deploy Spring Boot, Angular/React/Vue Web applications and Spring microservices.
4,863
questions
2
votes
1
answer
478
views
Cannot find module 'E:\husky\lib\bin.js'
I am using windows to bootstrap a Springboot backend using jhipster. I am running into the error below concerning Husky for git hooks.
> eims-ba[email protected] prepare
> husky install
The system ...
0
votes
0
answers
72
views
How is the frontend served in JHipster Production?
I am writing a small thesis about a project where we used JHipster. I am currently trying to explain how the deployment with JHipster works. I already found some great info how the Backend is deployed ...
0
votes
0
answers
68
views
Unauthorized: Full authentication is required to access this resource
When i request my registry url i see this message "Unauthorized: Full authentication is required to access this resource".
NB: I start my keycloak and my registry before)
0
votes
0
answers
119
views
JHipster: Persistent entities should not be used as arguments of "@RequestMapping" methods
guys!
I've generated an application using JHipster v7.9.3. However, when this app was evaluated by my SonarQube server, it failed.
One of the most common critical issues is the: RSPEC-4684 Persistent ...
0
votes
0
answers
35
views
jhipster bootswatch yo generator not installed
Good morning,
i want to add bootswatch module to change theme of jhipster project as needed. Following the guide https://www.npmjs.com/package/generator-jhipster-bootswatch I installed the npm install ...
0
votes
1
answer
135
views
Can't resolve module JHipster Micro-frontend
Hi I am running the command to generate microfrontend applications/microservices. I am running into the following errors when deploying my gateway application:
[INFO] ./src/main/webapp/app/app-...
0
votes
2
answers
387
views
Migration spring-boot from 2.1.8.RELEASE to 2.7.7- keeping spring-fox dependencies
I migrated a jhipster application generated with jhipster version 6.3.0.
Everything is right except swagger. I don't want for now to migrate to springdoc. I just kept springfox.
I get this exception ...
-1
votes
1
answer
144
views
problem with dependencies in my JHIPSTER application
I generated a jhipster project but I have problems with the built-in dependencies (priemeng and angular material)jhipster 7.0.1, my package.json
"dependencies": {
"-": "0....
0
votes
0
answers
30
views
JHipster 7.x missing modules?
When generating an application with version 7.9.3, during the questions to configure which modules to install, the modules for integrations with social networks and the type of cache do not appear.
...
0
votes
1
answer
541
views
Facing errors when try to build Jhipster app for production
When i run the command: mvnw -Pprod package -DskipTests i got theses errors:
PROJET_DIRECTORY>npm run webapp:prod
> [email protected] webapp:prod
> npm run clean-www && npm ...
0
votes
0
answers
167
views
JHipster - Keycloak - React: I am always getting redirected to localhost:9000/oauth2/authorization/oidc when trying to register a new user
I have an app built with JHipster 7.8, spring, react, keycloak.
When I try to register a user, in debug mode, it always call UserService.syncUserWithIdp... In the browser it seems to infinitly ...
0
votes
1
answer
294
views
JHipster Version 7.9.3 Using Local Blueprint Gives npm ERR! 404 Not Found
I use JFrog to manage my npm repository and have already created a virtual directory in which the blueprint exists (as part of the local directory). I have the following in my ~/.npmrc:
//...
0
votes
0
answers
279
views
Jhipster Auditing Entities
Hello I am using Jhipster to generate my backend code and I'm trying to add auditing fields to my entities, I am aware that my custom entity should extend the AbstractAuditingEntity class, but the ...
3
votes
1
answer
67
views
Internal distribution of JHipster blueprints and themes
Q. How can the generator-jhipster leverage an internal distribution point, e.g., Nexus NPM, &tc. for jhipster blueprints?
Background
We are adopting JHipster for several major application and ...
0
votes
2
answers
80
views
How to create columns in JDL, that only accepts two values, Y or N? Y meaning Yes and N meaning No
entity Platform {
platformName String required maxlength(100),
onPermiseFlag String maxlength(1),
cloudFlag String maxlength(1)
}
The column 'onPermiseFlag' and 'cloudFlag' can have only ...
0
votes
1
answer
120
views
Passing arguments to a dependent task in gradle
When I run ./gradlew bootRun, I'd like for the npmInstall task that it depends on to run with the "--force" or "--legacy-peer-deps" arguments.
I tried using ./gradlew bootRun ...
0
votes
0
answers
199
views
How to make jhipster react-js validateField select dropdown filterable?
I have a small Jhipster-generated application. And the application frontend client is React.
The application has a relationship with another entity and on create/update page there's a select dropdown ...
0
votes
1
answer
208
views
I'm trying to run Docker container from built image but get registry error
I cannot get the registry container for a Jhipster app to run. I'm following the instructions from https://www.jhipster.tech/docker-compose/#7 I'm at the step of executing the command
docker-...
0
votes
1
answer
63
views
How to create multiple FK from one table reference same column of other table using JDL?
There are two tables Period_Type & Product_Subscription
Period_Type
->ID
->Period_Type_Name
---------------------------------------
Product_Subscription
-> RENEWAL_PERIOD_TYPE_ID
-> ...
0
votes
0
answers
63
views
Seperating Jhipster admin and angular project into to frontend with mvn clean install
I have an Jhipster Monolithic application, where when I use mvn clean install I build my frontend into the target folder and then can simulteanously start my backend and frontend reaching them with ...
3
votes
1
answer
2k
views
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/util/namespace' is not defined by "exports"
When I enter jhipster in the cmd command, I get an error Package subpath './lib/util/namespace' is not defined by "exports" in C:Program Filesnodejsnode_globalnode_modulesgenerator-...
0
votes
0
answers
33
views
About the project generator-jhipster-flutter
This generator is not inside the official JHipster GitHub, does anyone know why?
1
vote
0
answers
67
views
JHipster: Invalid values not being detected
I was using JHipster, with its autogenerated code. And ran into the following issue regarding detecting whether the request is valid or not based on the following:
I have a schema of the following:
...
0
votes
0
answers
473
views
How to fix jhipster: No MethodInvocation found: Check that an AOP invocation is in when using repository
I have a jhipster generated gateway, where I want to add a new method to an existing repository (generated with jhipster entity command) This repository is extending by default R2dbcRepository. So far ...
0
votes
0
answers
220
views
How to solve ArchTest violation of Config Layer accessed from Service Layer
My project violates a given structure test. I don't understand why the "config" layer must not be accessed by any other. Of course, I could use @Value annotation to directly access some K,V ...
0
votes
0
answers
99
views
How to add new entities to frontend and backend?
We have separated frontend and backend and used the jhipster --skip-server command to create frontend and used jhipster --skip-client to create backend service.
Now we would like to add more entities ...
1
vote
0
answers
1k
views
Keycloak SSO Session Idle timeout does not trigger while user session is idle for that configured time
Our application is created by Jhipster which comprise with spring boot and keycloak and postgress db. I have set the "SSO Session Idle" time as 1 minute in the keycloak realm settings.
...
-1
votes
1
answer
308
views
JHipster - Best practices for REST API
I'm trying to create a REST API using JHipster.
Is JHipster available for creating REST Api?
Should I create the paths and DTOs using Openapi (swagger) or with JHipster?
Is there an easier way to ...
0
votes
0
answers
307
views
Custom Json ResponseBody in Swagger Http error
In a Jhipster SpringBoot project I use swagger 2.0 ,
I want to have a static Json in this Http Error : 400
Custom Json wanted:
{ "ErrorID": -1 , "CustomMessage": "ERROR" ...
1
vote
0
answers
544
views
Spring Boot & QueryDSL with compilation error: due to QClass symbol not found
I am new to Querydsl , but I am having problems with generating Q classes.
I get a lot of errors that a Q'class' cannot be resolved , like this :
Cannot find symbol class QProduct
the code
private ...
1
vote
1
answer
153
views
Jhipster blueprint can't override the entire priority
I want to customize addEntityToMenu function. I created a blueprint with entities-client as sub-generator then override POST_WRITING_PRIORITY with my custom functions.
My purpose is creating a custom ...
1
vote
1
answer
92
views
How is Mustache used in Jhipster Lite?
Great work on Jhipster Lite!
The goal is to integrate Mustache templates into a project called sql-to-jdl I have been contributing to lately. Currently my preliminary work uses mustache.java.
Does ...
0
votes
1
answer
238
views
How to debug JHipster in Eclipse?
I'm new on using JHipster . I'm having trouble debugging in Eclipse IDE on JHipster 5.x (springboot and angular) . I use maven to build the project
So I'm looking for a tutorial to debug with eclipse.
0
votes
1
answer
838
views
Use access token from Keycloak social login to consume Google API in Java
I have 2 pieces of code I want to integrate.
I have a working Google API (Youtube) integration that gets some user related information using the correct scopes while asking for authentication.
...
0
votes
0
answers
333
views
Jhipster react form Value get from input field
I have a react form like this.
<ValidatedForm onSubmit={filterData}>
<div className="row">
<ValidatedField
className="col"...
0
votes
1
answer
197
views
How to use the data type "text" in Jhipster jdl
Good Morning, pls I wish to know if it is possible to use the data type 'text' in Jhipster jdl.If Yes, pls help me.
I 've try by inserting "text" but it seems not been recognize by the Jdl
I ...
0
votes
1
answer
65
views
Not able to get classes in domain package when trying to generate filtered entities
In my domain package I am not getting Book_.java,Client_.java,Author_.java,BorrowedBok_.java and Publisher_ .java classes after trying to generate filtered entities in my jhipster application. ...
0
votes
1
answer
304
views
How do I implement tenant-based routing for elasticsearch in JHipster?
I´m currently trying to implement multi-tenancy into my JHipster microservices. However, I can't find a way to implement tenant-based routing for elasticsearch.
So far I have managed to implement ...
0
votes
1
answer
162
views
Create array field in jhipster using mongodb
I want create one field e.g URL in that field we can insert multiple value url that data is stored in array format using jhipster mongodb
Created getter setter of string[]url in dto.java
0
votes
0
answers
100
views
Error response from daemon: ADD failed: no source files were specified
Dockerfile:
FROM openjdk:11-jre-slim
ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
JHIPSTER_SLEEP=0 \
JAVA_OPTS=""
# Add a jhipster user to run our application so that it doesn't ...
0
votes
0
answers
121
views
Set value of nested object in JHipster/Angular
In a JHipster Application I have the following entities and relationships:
entity Request {
description String required
}
entity RequestPerson {
firstName String required,...
0
votes
1
answer
120
views
Jhipster custom blueprint: How define a custom command line parameter (option)
I'm building a custom blueprint for my organization's projects. Apparently, It's everything working fine.
I need to ask for a specific information to the blueprint user. So I've done in the PROMPTING ...
1
vote
0
answers
142
views
Integration test doesn't work with liquibase, throws: Failed load ApplicationContext
I wrote integration test but it doesn't work. It throws Failed load ApplicationContext. I think problem with liquibase but I hadn't fix that. Other tests are worked but it didn't.
My entity liquibase ...
1
vote
1
answer
144
views
Spring not starting when Kafka is Offline
I am using spring cloud messaging to connect and receive messages from Kafka, so far so good, but my application can work without Kafka if needed, Kafka is used for some events only. However, when ...
0
votes
1
answer
1k
views
npm | ERR! code EEXIST | Refusing to delete | File exists | Move it away, and try again
When executing npm, I get the next error message:
[ERROR]
[ERROR] npm ERR! path C:\Desarrollo\DragoMED.web\node_modules\.bin\webpack-dev-server.cmd
[ERROR] npm ERR! code EEXIST
[ERROR] npm ERR! ...
1
vote
0
answers
111
views
How can I fixed npmw install command while generating project with JHipster?
I used JHipster. Program throw error when generating code. In the beginning Jhipster didn't see JAVA_HOME, I've fixed that. After that npmw install didn't work. I thought JHipster couldn't find node....
0
votes
2
answers
480
views
New JHipster project: All integration tests fail
Today, I tried starting a new project using JHipster. My environment includes:
Windows 10 22H2 build 19045.2251 (64 bit)
OpenJDK Runtime Environment Temurin-16.0.2+7
node 16.17.0
npm 8.19.1
Gradle 7.5....
0
votes
0
answers
51
views
SSE events are received when the connection is closed in JHIpster and Gateway
I have a simple code in Jhipster microservice which sends words periodically:
@GetMapping(path = "/words", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
SseEmitter getWords() {
List<...
1
vote
1
answer
195
views
can I send Criteria in a spring feign client GetMapping request?
I'm trying to get userConfig from Organisation microservice, the app is getting quite large to I had too fetch UserConfig with userConfigCriteria for further use,
I wrote my feign service like this:
@...