-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get "Not Found" error for Entities menu for Micro Frontend entities #26245
Comments
The gateway in the provided sample is servlet based (non-reactive).
Please see #25715 for more info. |
I tried the suggested work around to add the following to the Gateway Application: At first I was not able to run Jhipster to generate because it said routes was unrecongnized. So I cloned the latest version of Jhipster and used it and was able to get past it. I also had to add the following dependency to the pom files for the two microservices that use a database:
When running the apps, I still get a 404 Not Found whenever it tries to load the Entities from in the Workbook Gateway app from the 2 CaplCommon and CaplLap microservices. It gets the 404 results when calling the loadNavbarItems method in the navbar.component.ts file. I see the following in the Network tab of the Browsers Developer Tools: Request URL: http://localhost:9004/services/caplcommon/remoteEntry.js Have any other suggestions? |
JHipster has completed the sample check This check uses |
A description of the issue is provided in StackOverflow post: https://stackoverflow.com/questions/78486513/angular-micro-frontends-remoteentry-js-not-found-error?noredirect=1#comment138376267_78486513
JHipster info:
Welcome to JHipster v8.4.0
Welcome to the JHipster Information Sub-Generator
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
.yo-rc.json file for CaplWorkbook
.yo-rc.json file for CaplCommon
.yo-rc.json file for CaplLap
openjdk version "21.0.2" 2024-01-16
OpenJDK Runtime Environment (build 21.0.2+13-58)
OpenJDK 64-Bit Server VM (build 21.0.2+13-58, mixed mode, sharing)
git version 2.37.1.windows.1
node: v22.0.0
npm: 10.5.1
Docker version 26.0.0, build 2ae903e
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Overview of the issue
Items for Micro Frontends in Entities menu on Gateway show "Failed to load" error
Motivation for or Use Case
I am not able to use Micro Frontends
Reproduce the error
I have created two microservices and one gateway app using micro frontends. My dev environment is Windows 11. I am using Consul and have it running in a Docker container. One of the microservices uses PostgreSQL and the other one uses Microsoft SQL. I have a PostgreSQL engine and a Microsoft SQL engine running locally. I can run all three apps: 2 Microservices (CaplCommon, CaplLap) and one gateway (CaplWorkbook) from Eclipse.
I did an npm start for each of the projects and can log into all three. When the gateway app logs in and I select the Entities menu it has the following two entries:
Failed to load caplcommon entries
Failed to load capllap entries.
I looked in the network tab for the browser developer tools and saw this: Request URL: http://localhost:9004/services/caplcommon/remoteEntry.js Request Method: GET Status Code: 404 Not Found.
If I open a tab in the browser and manually enter the http://localhost:9004/services/caplcommon/remoteEntry.js, I get the following:
{
"type": "https://www.jhipster.tech/problem/problem-with-message",
"titl": "Not Found",
"stats": 404,
"detil": "No static resource services/caplcommon/remoteEntry.js.",
"instnce": "/services/caplcommon/remoteEntry.js",
"mesage" : " error.http.404",
"path" : "/services/caplcommon/remoteEntry.js"
}.
The caplcommon and capllab microservices and caplworkbook gateway springboot are not logging any errors. Had the same error for the capllap microservice
Related issues
None
Suggest a Fix
Unknown
JHipster Version(s)
8.4
JHipster configuration
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryNone
Browsers and Operating System
Windows 11 Version 10.0.22631 Build 22631
Chrome Version 125.0.6422.76
The text was updated successfully, but these errors were encountered: