Closed bakoorjakkals closed 5 months ago
Also when I try to generate a microservice I get the following error:
$ jhipster-native
INFO! No custom commands found within blueprint: generator-jhipster-native at /usr/local/lib/node_modules/generator-jhipster-native
██╗ ██╗ ██╗ ████████╗ ███████╗ ██████╗ ████████╗ ████████╗ ███████╗
██║ ██║ ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗
██║ ████████║ ██║ ███████╔╝ ╚█████╗ ██║ ██████╗ ███████╔╝
██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║
╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗
╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝
https://www.jhipster.tech
Welcome to JHipster v8.1.0
===================== JHipster Native =====================
_______________________________________________________________________________________________________________
Documentation for creating an application is at https://www.jhipster.tech/creating-an-app/
Application files will be generated in folder: /home/jaco/IdeaProjects/experiment/microservice-native
_______________________________________________________________________________________________________________
? What is the base name of your application? microserviceNative
? Which *type* of application would you like to create? Microservice application
? Do you want to generate a feign client? No
? Besides Junit, which testing frameworks would you like to use?
? Do you want to make it reactive with Spring WebFlux? No
? As you are running in a microservice architecture, on which port would like your server to run? It should be unique to avoid port conflicts. 8081
? What is your default Java package name? com.example.native.microservice
? Which service discovery server do you want to use? Consul (recommended)
? Which *type* of authentication would you like to use? OAuth 2.0 / OIDC Authentication (stateful, works with Keycloak and Okta)
? Which *type* of database would you like to use? SQL (H2, PostgreSQL, MySQL, MariaDB, Oracle, MSSQL)
? Which *production* database would you like to use? PostgreSQL
? Which *development* database would you like to use? PostgreSQL
? Which cache do you want to use? (Spring cache abstraction) Hazelcast (distributed cache, for multiple nodes, supports rate-limiting for gateway applications)
? Do you want to use Hibernate 2nd level cache? Yes
? Would you like to use Maven or Gradle for building the backend? Maven
? Which other technologies would you like to use?
? Which *Framework* would you like to use as microfrontend? Angular
? Besides Jest/Vitest, which testing frameworks would you like to use?
? Do you want to generate the admin UI? No
? Would you like to use a Bootswatch theme (https://bootswatch.com/)? Default JHipster
? Would you like to enable internationalization support? Yes
? Please choose the native language of the application English
? Please choose additional languages to install
info Generating 2 048 bit RSA key pair and self-signed certificate (SHA384withRSA) with a validity of 99 999 days
info for: CN=Java Hipster, OU=Development, O=com.example.native.microservice, L=, ST=, C=
info KeyStore '/home/jaco/IdeaProjects/experiment/microservice-native/src/main/resources/config/tls/keystore.p12' generated successfully.
✔ applying multi-step templates
✔ Git repository initialized.
ERROR! An error occured while running jhipster-native:server#logoutResource
ERROR! ERROR! Unable to find /home/jaco/IdeaProjects/experiment/microservice-native/src/main/java/com/example/native/microservice/web/rest/LogoutResource.java.
Error: Unable to find /home/jaco/IdeaProjects/experiment/microservice-native/src/main/java/com/example/native/microservice/web/rest/LogoutResource.java.
at default.editFile (file:///usr/local/lib/node_modules/generator-jhipster-native/node_modules/generator-jhipster/dist/generators/base-core/generator.mjs:799:23)
at default.logoutResource (file:///usr/local/lib/node_modules/generator-jhipster-native/generators/server/generator.js:346:14)
at default.executeTask (file:///usr/local/lib/node_modules/generator-jhipster-native/node_modules/yeoman-generator/dist/actions/lifecycle.js:244:26)
at env.queueTask.once (file:///usr/local/lib/node_modules/generator-jhipster-native/node_modules/yeoman-generator/dist/actions/lifecycle.js:218:56)
at runLoop.add.once (file:///usr/local/lib/node_modules/generator-jhipster-native/node_modules/yeoman-environment/dist/environment-base.js:384:23)
at Immediate.<anonymous> (/usr/local/lib/node_modules/generator-jhipster-native/node_modules/grouped-queue/lib/subqueue.js:48:34)
at process.processImmediate (node:internal/timers:478:21)
The initial error is related to native
been a java keyword, cannot be used in package name (next version should be verbose about this error).
The second error should be posted in another issue is still persist.
I'm unable to create a JHipster gateway using
jhipster-generator-native
2.0.0. Here are the versions of software I have installed:Here is how I configured the gateway and the error I received: