Migration from Scout 10 to 22 [message #1851167] |
Tue, 29 March 2022 07:44  |
Eclipse User |
|
|
|
Good day,
Thank you very much and congratulations on the release of Scout 22!!!
I have followed the migration steps for release 11 and 22 but when I put the scout.devMode=true then the application just shows a blank screen even though all the java script and css files loads without an error.
I have tried performing a clean build and even created a demo project for release 22 so that I can compare that all the settings and migration steps were completed correctly but I still have not found why the application will just show a blank screen.
Kind regards,
Mark Ashworth
|
|
|
|
|
|
Re: Migration from Scout 10 to 22 [message #1851178 is a reply to message #1851176] |
Tue, 29 March 2022 09:58   |
Eclipse User |
|
|
|
Hi Claudio,
Apologies, you are 100% correct. I am trying to set scout.devMode=false so that I can test the login screen on my local development machine. It also shows a blank screen when I deploy the application using the web archive.
I run the 'webapp all.launch' which runs the pnpm scripts and starts the dev & ui server in debug mode.
I tried the /?debug=false and the scout.loadWebResourcesFromFilesystem=true in the link that you shared. Unfortunately this did not work.
The issue seems to be happening in the UiServletFilter class when it forwards to the login form.
BEANS.get(ServletFilterHelper.class).forwardToLoginForm(req, resp);
When I put a breakpoint in the ServletFilterHelper on the acceptForwardOrRedirect method, I notice that I get 3 forward requests
1. The first forward request is for '/'
2. The second forward request is for '/login.html'
3. The third forward request is for '/defaultValues'.
When forward request number 3 is encountered, ServletFilterHelper responds with the following JSON reply
{"error":{"code":10,"message":"The session has expired, please reload the page."}}
It seems that is where the processing stops and a blank screen is shown.
Here is the logging for the ui.html.app.dev project
2022-03-29 16:53:56,533 DEBUG [qtp844112759-54] org.eclipse.scout.rt.server.commons.authentication.ServletFilterHelper.forwardOrRedirectTo(ServletFilterHelper.java:327) - Forwarding '/' to '/login.html' - MDC[]
2022-03-29 16:53:57,185 DEBUG [qtp844112759-56] org.eclipse.scout.rt.server.commons.authentication.ServletFilterHelper.forwardOrRedirectTo(ServletFilterHelper.java:327) - Forwarding '/clearinsights-7c0d7c231bea0cae83d7.min.js.map' to '/login.html' - MDC[]
2022-03-29 16:53:57,524 DEBUG [qtp844112759-57] org.eclipse.scout.rt.server.commons.authentication.ServletFilterHelper.forwardOrRedirectTo(ServletFilterHelper.java:327) - Forwarding '/vendors~clearinsights-de96191dbf85e88095d6.min.js.map' to '/login.html' - MDC[]
2022-03-29 16:53:57,535 DEBUG [qtp844112759-55] org.eclipse.scout.rt.server.commons.authentication.ServletFilterHelper.forwardOrRedirectTo(ServletFilterHelper.java:327) - Forwarding '/vendors~clearinsights~login~logout-729d8cc8ebdb75ab5d49.min.js.map' to '/login.html' - MDC[]
2022-03-29 16:53:57,777 DEBUG [qtp844112759-54] org.eclipse.scout.rt.server.commons.authentication.ServletFilterHelper.acceptForwardOrRedirect(ServletFilterHelper.java:345) - Returning session timeout error as json for path /defaultValues, based on Accept header application/json, text/javascript, */*; q=0.01. - MDC[]
On my sample project that I created directly for version 22 and the scout.devMode=false, the last log entry for for the '/defaultValues' is not present and the login screen is shown.
Kind regards,
Mark Ashworth
[Updated on: Tue, 29 March 2022 10:58] by Moderator
|
|
|
Re: Migration from Scout 10 to 22 [message #1851180 is a reply to message #1851178] |
Tue, 29 March 2022 11:07  |
Eclipse User |
|
|
|
Hi Claudio,
Apologies for raising the issue.
After looking at the files once again, I noticed that I had the entry points incorrect for the login.html and logout.html files. These needed to be 'login' and 'logout' respectively instead of 'clearinsights'.
Thank you very much for your assistance.
Kind regards,
Mark Ashworth
|
|
|
Powered by
FUDForum. Page generated in 0.05073 seconds