You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "exploded" loose app format added for #1104 in v3.5.2 was done a bit incorrectly, without a separate entry mapping "target/classes" to "WEB-INF/classes".
It's clear if you compare the generated loose app format to the one in the UFO design linked from #1104, however it's a bit of a subtle use case that's broken which might be forgotten somewhat if you think of loose apps mainly being run together with dev mode and/or the all-in-one goals in general (dev + run both). So let me elaborate on a recreate to show what has been missed:
Good case
git clone [email protected]:OpenLiberty/guide-getting-started.git; cd guide-getting-started/finish
upgrade liberty-maven-plugin to latest v3.6.1
mvn liberty:run (This provides a shortcut to getting everything installed and deployed)
Add a println in SystemResource#getProperties()
mvn compile (from a separate terminal... or use an IDE)
curl http://localhost:9080/dev/system/properties
In liberty:run window, or via cat target/liberty/wlp/usr/servers/defaultServer/logs/messages.log (and observe new println value in output)
Ctrl+C (back in liberty:run window)
cat target/liberty/wlp/usr/servers/defaultServer/apps/guide-getting-started.war.xml (observe "..../target/classes" entry in loose app XML mapping to /WEB-INF/classes, e.g:
Change the println value in SystemResource#getProperties()
mvn compile
curl http://localhost:9080/dev/system/properties
In liberty:run window, or via cat target/liberty/wlp/usr/servers/defaultServer/logs/messages.log (and observe OLD println value in output, NOT the NEW)
Ctrl+C
cat target/liberty/wlp/usr/servers/defaultServer/apps/guide-getting-started.war.xml (observe NO "target/classes" entry in loose app XML)
This should be an easy enough fix.
The text was updated successfully, but these errors were encountered:
The "exploded" loose app format added for #1104 in v3.5.2 was done a bit incorrectly, without a separate entry mapping "target/classes" to "WEB-INF/classes".
It's clear if you compare the generated loose app format to the one in the UFO design linked from #1104, however it's a bit of a subtle use case that's broken which might be forgotten somewhat if you think of loose apps mainly being run together with dev mode and/or the all-in-one goals in general (dev + run both). So let me elaborate on a recreate to show what has been missed:
Good case
git clone [email protected]:OpenLiberty/guide-getting-started.git; cd guide-getting-started/finish
mvn liberty:run
(This provides a shortcut to getting everything installed and deployed)SystemResource#getProperties()
mvn compile
(from a separate terminal... or use an IDE)curl http://localhost:9080/dev/system/properties
cat target/liberty/wlp/usr/servers/defaultServer/logs/messages.log
(and observe new println value in output)Ctrl+C
(back in liberty:run window)cat target/liberty/wlp/usr/servers/defaultServer/apps/guide-getting-started.war.xml
(observe "..../target/classes" entry in loose app XML mapping to /WEB-INF/classes, e.g:Bad case
SystemResource#getProperties()
mvn compile
curl http://localhost:9080/dev/system/properties
cat target/liberty/wlp/usr/servers/defaultServer/logs/messages.log
(and observe OLD println value in output, NOT the NEW)Ctrl+C
cat target/liberty/wlp/usr/servers/defaultServer/apps/guide-getting-started.war.xml
(observe NO "target/classes" entry in loose app XML)This should be an easy enough fix.
The text was updated successfully, but these errors were encountered: