There is an issue with studio packages because of the relocation of nuxeo.war folders to web/nuxeo.war inside JARs.
This relocation was done in 5.4.0 to have the Nuxeo bundles working on JBoss 5.
The hot deployer routine used to deploy studio packages was (through admin center) copy the "nuxeo.war" from the JAR to the nuxeo root.
This was OK untile 5.4.0. But now the deployer was modified to copy web/nuxeo.war instead of nuxeo.war - which is OK since JBoss5 doesn't support nuxeo.war in the JAR root.
This modif was done 2 weeks ago see: http://hg.nuxeo.org/nuxeo/nuxeo-runtime/rev/ee0db7c3fdc8
Also Studio was upgraded to put the nuxeo.war inside web/nuxeo.war to be compatble with latest deployer version.
This is introducing some compatibility issues. I will list here all the possibility when deploying a studio package:
1. hot deploy package built by studio 1.6 on Nuxeo > 5.4.0.1 => OK
This is working since the JAR contains a web/nuxeo.war folder and the deployer copy the web/nuxeo.war folder
2. hot deploy package built by studio 1.5 on Nuxeo > 5.4.0.1 => KO (but fixable)
This is not working since a 1.5 studio generated jar contains a "nuxeo.war" inside but the deployer is looking for a "web/nuxeo.war".
This can be fixed by patching the deployer to look for this folder if the web/nuxeo.war is not present.
3. hot deploy package built by studio 1.6 on Nuxeo <= 5.4.0.1 => KO
This will not work since the old code of the deployer is trying to copy the "nuxeo.war" which now is "web/nuxeo.war".
We cannot use "nuxeo.war" because of JBoss5.
4. hot deploy package built by studio 1.5 on Nuxeo <= 5.4.0.1 => OK
(but these package are not JBoss5 compatible)
When I am saying that hot deployment is not working I am only talking about hot deployment of war resources -> the rest of resources are correctly hot deployed.
(The deployment of the jar will work correctly when restarting the server since at starting time the deployment-fragment.xml is used)
So all this means that:
- JARs built by studio 1.5 are not compatible with JBoss5. (since they contains the nuxeo.war in the JAR root)
- Hot deployment of web resources from JARs built by studio 1.6 will only work on the latest Nuxeo versions. (the date base release on which studio 1.6 will be aligned)
- we have a compatibility issue for the case 3. (since the the case 2 is fixable) - That means studio 1.6 will be fully hot reloadable only on a Nuxeo > 5.4.0.1.
(anyway this is already the case because of theme reloading that doesn't works)
- is required by
-
NXP-6406 backport changes for support of hot reload of theme and actions
- Resolved