61 lines
3.9 KiB
Markdown
61 lines
3.9 KiB
Markdown
# Workplace / GlassFish – remote-only correction, 2026-11-23
|
||
|
||
## Correction and authority
|
||
|
||
The previous build packaged a fixed ZIP snapshot. This can mismatch the running MES backend.
|
||
The user confirmed the login works and requires the JARs from the current MES Workplace.jnlp.
|
||
This build therefore ALWAYS fetches the configured JNLP from the authenticated IMSAPI target
|
||
under `/mes/webstart/clients/`, and the approved manufacturer JARs from that MES server.
|
||
There is no ZIP/bundled fallback, including on TLS, network or HTTP failures.
|
||
The old `hmi.workplace.source=bundled` setting is no longer consulted.
|
||
`Workplace.zip` is reference material only, not a build input or runtime source.
|
||
|
||
Each manifest request (widget start/restart) fetches a fresh upstream manifest and invalidates
|
||
server-side JAR cache generations, even if all filenames stayed the same. Browser HTTP responses
|
||
for manufacturer JARs use `private, no-store, no-transform`. The server still caches downloaded
|
||
bytes within a generation to serve CheerpJ's many Range requests efficiently.
|
||
Restart/reload Workplace after a backend upgrade; already-loaded Java classes cannot be hot-swapped.
|
||
Avoid upgrading the MES during a running client session. No atomic upstream release snapshot is implied.
|
||
|
||
The original manifest parser currently accepts flat JAR filenames within the configured MES
|
||
clients directory. Unsupported JNLP structures/paths fail explicitly, never substitute ZIP files.
|
||
Platform-specific JNI/RXTX dependencies remain unsupported by the browser VM.
|
||
|
||
## Deployment
|
||
|
||
Deploy `release/backend-1.war` on the existing Java EE 8 (`javax.*`), Java-11-compatible
|
||
GlassFish/Payara instance with context `/backend`. This WAR is not for a Jakarta-only GlassFish 6/7.
|
||
Preserve the existing datasources, IMSAPI target and role configuration. No server configuration
|
||
or live deployment was changed while creating this artifact.
|
||
|
||
After redeployment, close the old Workplace tab/iframe and reopen the widget (or hard-reload).
|
||
Existing role requirements remain: `hmi-workplace` or `hmi-admin` for runtime/JAR downloads.
|
||
The Browser JAAS fix remains: `os.name=CheerpJ Browser` and `user.name=cheerpj-client` passed
|
||
via CheerpJ initialization. This does not replace MES authentication. No manufacturer bytecode
|
||
or signatures are altered; the old unsigned SysParameter override remains disabled by default.
|
||
Window diagnostics default to OFF; explicit diagnostics remain available for troubleshooting.
|
||
|
||
The application and MES must be same-origin or MES must allow the Workbench origin via CORS.
|
||
GlassFish must trust the TLS chain of the MES host to download the remote manifest/JARs.
|
||
The browser separately needs trust and connectivity to all MES-discovered service endpoints.
|
||
No TLS bypass or credential forwarding was added. Upstream failure is an error, not an archive fallback.
|
||
|
||
Open `/backend/hmi/` and use the existing Workplace widget. For a full window after HMI login:
|
||
`/backend/hmi/cheerpj-runner.html?standalone=workplace`
|
||
CheerpJ 5.0 is loaded from its CDN; an appropriate license is required for business use.
|
||
|
||
## Verification and limits
|
||
|
||
- Vue typecheck/Vite and Maven package: passed.
|
||
- New regression: same remote JAR filename changed from v1 to v2; after invalidation v2 is served.
|
||
- Missing remote server after invalidation raises an error; no old bytes used as fallback.
|
||
- No packaged manufacturer JAR bundle; unsafe XML rejected.
|
||
- Existing HTTP Range/cache, manifest and CheerpJ suites passed.
|
||
- The user reports the login works with the previous identity fix, retained here.
|
||
- No authenticated MES workflow, remote version compatibility or Windows-GlassFish deployment
|
||
has been end-to-end tested with this new build. The previous screenshot is NOT a new-build test.
|
||
|
||
Rebuild from the project root with `bash build-hmi.sh` (Linux) or `./build-hmi.ps1` (Windows).
|
||
Neither build requires Workplace.zip. This correction concerns client library selection;
|
||
it does not change classes or deployments inside the MES server.
|