Questions tagged [jhipster]

JHipster is a development platform to generate, develop and deploy Spring Boot, Angular/React/Vue Web applications and Spring microservices.

Filter by
Sorted by
Tagged with
175 votes
13 answers
221k views

Error: ENOENT: no such file or directory, scandir

I scaffold an app using jhipster which is microservice gateway using cassandra db and using maven to build which was building fine after scaffold.i ran gulp command to for the live reload of ui. i ...
Dhiresh Budhiraja's user avatar
153 votes
20 answers
232k views

How to set the max size of upload file

I'm developing application based on Spring Boot and AngularJS using JHipster. My question is how to set max size of uploading files? If I'm trying to upload to big file I'm getting this information ...
Michał Styś's user avatar
55 votes
7 answers
59k views

I am trying to set maxFileSize but it is not honored

I am developing an application utilizing JHipster. I have added the following to my application-dev.yml file: spring: profiles: active: dev multipart: maxFileSize: -1 But I ...
Jose Gulisano's user avatar
55 votes
3 answers
122k views

Spring Security - Authorize Request for certain URL & HTTP-Method using HttpSecurity

Is there any way to authorize a POST http-request to a specific URL using org.springframework.security.config.annotation.web.builders.HttpSecurity ? I'm using HttpSecurity as: @Override ...
Ignasi's user avatar
  • 5,967
52 votes
7 answers
67k views

How to modify existing entity generated with jhipster?

I use jhipster generator to create a projet. I've generated some entity manually following the information provided in jhipster documentation : If you prefer (or need) to do a database update ...
Pracede's user avatar
  • 4,271
51 votes
5 answers
74k views

Gradle build fails on Lombok annotated classes

I have a JHipster project in which I have added dependency for Lombok in build.gradle: compile group: 'org.projectlombok', name: 'lombok', version: lombok_version And I have the Lombok plugin ...
Jose Gulisano's user avatar
50 votes
6 answers
28k views

Communication between two microservices

I am creating a project with microservices architecture. And I created two microservices. One of them is for product entity, the other is for bill entity. They have their own endpoints and they are ...
SerhatTR's user avatar
  • 531
37 votes
5 answers
44k views

Angular 7 : Injected service is undefined

I tried to inject AccountService in the LoginService but it won't ,the accountService is undefined but in the other hand the authServiceProvider is defined . Contrarily it injected perfectly in ...
Ridae HAMDANI's user avatar
36 votes
7 answers
52k views

Unable to register MBean [HikariDataSource (HikariPool-0)] with key 'dataSource'

I am getting below error in prod mode for (Java8+Oauth2+MySql+Hazelcast+no clustered http sessions) combination. Dev mode has worked fine. Unable to register MBean [HikariDataSource (HikariPool-0)] ...
Sudheer's user avatar
  • 479
35 votes
3 answers
25k views

How to add self signed SSL certificate to jHipster sample app?

I have create sample jHipster app. Now I want to add self signed SSL certificate and test in local to have a access to https. How to achieve this?
Raj's user avatar
  • 739
35 votes
1 answer
18k views

How to deploy microservices on Heroku

I have read a lot about microservices, and would like to build my app with that approach. What I know so far is that I nead some services like: load balancer - to deal with every request, and push it ...
Maciej Treder's user avatar
29 votes
3 answers
9k views

why I have HTTP 403 from repo spring?

I have a jhipster project which deploy on heroku with gitlab since several months Since yesterday, I can not deploy new version because I have this error FAILURE: Build failed with an exception. 32 * ...
user1450740's user avatar
29 votes
8 answers
41k views

How to delete an entity after creating it using jhipster?

I have created 3 entities (Author, Book, Library) using "yo jhipster:entity" command but in one entity (Library) I had a ManyToMany relationship (to Book) but that caused "mappedBy reference an ...
vijay bhatt's user avatar
26 votes
5 answers
13k views

jhipster- how to add a new role

I am trying to add a new role (ROLE_REPORTS) on a project generated using JHipster. I can see the tables that need to be updated (role, authority and role_authority mapping), but I am not sure how to ...
user1880957's user avatar
  • 1,186
25 votes
5 answers
15k views

In JHipster how to create entity with relationship with User?

I need to create my own entities using the JHipster using the command "yo jhipster:entity myEntity" that have many-to-one relationship with the User entity that comes by default in JHipster. I have ...
Yann Nicolas's user avatar
25 votes
2 answers
8k views

Customizing JHipster

Is it be possible to customize/extend JHipster for an organization ? By that, I mean having a local version that creates some projects with features that are specific to an organization ? For example,...
ccc's user avatar
  • 2,189
24 votes
5 answers
37k views

Multiple roles using @PreAuthorize

To check multiple roles has the method level access I have used @PreAuthorize annotation to check the role @PreAuthorize("hasRole(\"" + AuthoritiesConstants.USER + "\",)" ) How to check multiple ...
P Rajesh's user avatar
  • 356
22 votes
4 answers
18k views

JHipster authentication using Postman and JWT

I'd been using the Postman in-tab extension to tests calls to call JHipster resource API's and found that it worked great (JHipster setup to use OAuth2). I authenticated using the JHipster login page,...
Jose Gulisano's user avatar
22 votes
2 answers
15k views

How to replace index.html in Angular 8.3+ depending on environment?

I am working on an application that was set up using jhipster, Spring Boot and Angular I need to set up different public keys for something depending on whether the app is running on dev or prod. I'...
Marvin Falkner's user avatar
22 votes
3 answers
49k views

Add a body to a 404 Not Found Exception

In an REST API generated with JHipster, I want to throw some 404 exceptions. It is normally done with return new ResponseEntity<>(HttpStatus.NOT_FOUND); which actualy results in a 404 response ...
luso's user avatar
  • 2,862
22 votes
7 answers
72k views

Committing fails in Git hooks pre-commit because the node command wasn't found

I generated a JHipster app with Angular and Java, inside of a repository that I had previously made. I then generated some JDL classes with it and the build was successful, but when I tried to commit ...
James's user avatar
  • 300
19 votes
1 answer
13k views

JHipster configure maven wrapper proxy

According to https://jhipster.github.io/configuring-a-corporate-proxy/ I have set up my proxy settings in /.m2/settings.xml like this : <proxies> <proxy> <id>myId</...
Fabien Roussel's user avatar
19 votes
2 answers
20k views

The configured limit of 1.000 object references was reached while attempting to calculate the size of the object graph

I have a jhipster project and I added some entities. My services are very slow because this warning message: The configured limit of 1.000 object references was reached while attempting to ...
Vítor Nóbrega's user avatar
19 votes
1 answer
3k views

No property null found on entity class java.time.ZonedDateTime to bind constructor parameter to

I have the following configuration Configuration @Configuration @EnableMongoRepositories(basePackages = Constants.DATA_SCAN) @EnableMongoAuditing(auditorAwareRef = "auditorAwareService") @Import(...
Saurabh Kumar's user avatar
18 votes
3 answers
32k views

"No provider for TranslateService" error somehow connected to npm install

With my Angular+Webpack+JHipster+yarn project I get the following error. Then I delete node_modules and run 'npm install`, and it goes away. Then I do this and that and it comes back. How come? I'd ...
Dan Cancro's user avatar
  • 1,401
18 votes
2 answers
18k views

Spring Security get user info in rest service, for authenticated and not authenticated users

I have a spring rest service, I want to use it for authenticated and not authenticated users. And I want to get user information from SecurityContextHolder.getContext().getAuthentication() if user is ...
fyelci's user avatar
  • 1,409
18 votes
9 answers
52k views

Spring Boot Application failed to start with classpath: []

I generated a Spring Boot application with jHipster, added some code from my previous project (non-jhipster project) and tried to run it using IDEA. First I got an error message similar to this, ...
szab.kel's user avatar
  • 2,436
18 votes
2 answers
5k views

Jhipster changing generator options

I'm new to jhipster, I was wondering that if once I run the "yo jhipster" is there a way to go back and change some of the option selected? Example to enable Compass/SASS. If I try to install a new ...
eetawil's user avatar
  • 1,601
18 votes
5 answers
14k views

Separating jhipster back-end and front-end into two projects?

I'm trying jhipster with token-based authentication. It works perfectly. Now, I want to run back-end and front-end code on different domains. How can I do this? This is what I tried: Run yo ...
musa's user avatar
  • 1,050
17 votes
5 answers
48k views

How to set base url for Angular application

I have an Angular application as generated by JHipster. By default, it runs on the root / url, and redirects to /#/. Is there a way to override it to something else? edit Sorry, I have to rephrase ...
Jeroen Kransen's user avatar
17 votes
7 answers
14k views

How to update the JHipster project after updating JHipster generator?

I updated my JHipster installation as per this page by running the command npm update -g generator-jhipster But to update my application I am not sure where should I run the next command yo ...
Dhanush Gopinath's user avatar
17 votes
7 answers
116k views

Error creating bean with name 'liquibase' defined in class path resource ... /config/DatabaseConfiguration.class

I have this annoying error when starting Embedded Tomcat on my jHipster Project. Spent a lot of time trying to resolve it but can't figure out why it's happening. It started happening after updating ...
ivan's user avatar
  • 171
16 votes
5 answers
5k views

Application generated with JHipster 4 returning blank page on 8080, but not on 9000

I've create an application with JHipster v4. When I make a request on port 8080 it is returning a blank page. If I use yarn start, and I make a request to 9000 port, it is answering correctly. Any ...
Víctor's user avatar
  • 416
16 votes
2 answers
3k views

JHipster: CORS fails on form login (actual request, not pre-flight)

I would like to extend my monolithic setup of jHipster with a second front-end application which accesses the same API from a different URL. As a first step, I've enabled CORS in the application.yml ...
ssc-hrep3's user avatar
  • 15.3k
15 votes
5 answers
55k views

jhipster - gyp verb `which` failed Error: not found: python2

Below is the error that I get, when I try to generate a new project with JHipster: gyp verb check python checking for Python executable "python2" in the PATH gyp verb `which` failed Error: not found: ...
leventunver's user avatar
  • 3,309
15 votes
6 answers
24k views

Spring-boot slow to start

When I launch my jhipster app using "mvn spring-boot:run", it takes up to 60 seconds to start... First part of my log is : [INFO] Scanning for projects... [INFO] [INFO] -------------------------------...
user1848637's user avatar
15 votes
5 answers
7k views

What is .net alternative to jhipster [closed]

Which framework provides similar features to .Net as jhipster does for Java. I understand that there are separate libraries that can be brought together to work as the solution, but is there something ...
Asif Shiraz's user avatar
14 votes
5 answers
35k views

How to fix "lombok.javac.apt.LombokProcessor could not be initialized"

My question relates to "https://stackoverflow.com/questions/35236104/gradle-build-fails-on-lombok-annotated-classes". I am using JHipster and Lombok 1.16.18 with build.gradle: ... apply ...
werwuifi's user avatar
  • 367
13 votes
8 answers
38k views

Mapstruct generated class not being injected by Spring in JHipster web app

I'm developing a web app created with JHipster v2.20.0. Using Eclipse 4.5.0 WTP as IDE. The Spring configuration is annotation based. I've just merged this pull with our code. When I try to run the ...
Rafael Leite's user avatar
13 votes
4 answers
7k views

Steps to integrate PrimeNG with JHipster

We have been trying to incorporate PrimeNG components into a JHipster (angular 4) generated project with no success. After download and install PrimeNG into our project, we are able to import classes ...
Andrés Quesada's user avatar
13 votes
6 answers
25k views

How to solve RequestTooBigException, connection terminated as request was larger than 10485760?

I'm trying to upload a 6MB file to my JHipster app server. However, I get the following error. Where can I find the related configuration? io.undertow.server.RequestTooBigException: UT000020: ...
user1723583's user avatar
13 votes
5 answers
18k views

JPA Static Metamodel not recognized by IntelliJ

I generated the application with JHipster with Gradle as the build tool. When I created entity I added filtering support, which generated JPA static metamodel. But IntelliJ doesn't recognize the ...
A0__oN's user avatar
  • 8,850
13 votes
3 answers
10k views

How to create unique constraint for 2 columns in JDL-Studio?

I have following entity configuration: entity AirplaneModelSeat { id Long, seatNo String required } relationship ManyToOne { AirplaneModelSeat{modelId(model)} to AirplaneModel } ...
Halil's user avatar
  • 1,907
13 votes
2 answers
5k views

Angular HTTP Error Empty Untyped Response

I have an Angular/JHipster application that makes HTTP calls. I want to do error handling in my Observable subscriptions. However, when the first time the error handler is invoked, the err object is ...
JJ Zabkar's user avatar
  • 3,840
13 votes
3 answers
5k views

Should I use `src/main/webapp` to serve static content with Spring Boot?

The documentation of Spring Boot states: Do not use the src/main/webapp directory if your application will be packaged as a jar. But surprisingly the Spring Boot Sample for static web files is ...
asmaier's user avatar
  • 11.2k
12 votes
4 answers
10k views

Check Sum error in JHipster when editing an existing entity generated using the entity wizard

I am using Postgresql for my db and created all the entities using the JHipster entity wizard. When I try to make any changes like adding/removing fields, relations to an existing entity I am getting ...
Shashi Deshetti's user avatar
12 votes
4 answers
12k views

add attributes to user entity in jhipster

I want to add some attributes to the user entity, when I googled about it, I found a similar question : How to modify existing entity generated with jhipster? when I followed the steps in this post, ...
Renaud is Not Bill Gates's user avatar
12 votes
3 answers
13k views

MessageSource not being read properly during testing

I already checked with most similar questions and could not find a helpful answer. I am making a WebApplication via JHipster using Maven v3.3.9. Among other things, there is a PDF-generation that ...
Emir Masic's user avatar
12 votes
3 answers
8k views

How to create a many to many relationship with extra columns in jhipster?

The jhipster doesn't support create many to many relationships with extra fields. What is the best way to create many to many association with extra columns in jhispter? Should i create a two one-to-...
Vítor Nóbrega's user avatar
12 votes
1 answer
10k views

JDK 11 migration issue from JDK8, Illegal reflective access by com.fasterxml.jackson.module.afterburner.util.MyClassLoader

I have successfully migrated my spring boot project(running in prod env) from JDK8 to JDK11. I can build, test, package, install, deploy and everything. After starting the project from my IDE, I have ...
Mahesh kumar's user avatar

1
2 3 4 5
98