Closed FilipBruska closed 3 years ago
This might be caused by the Maven resources plugin trying to filter the .gz
file. This has been fixed in the sdk-4.0
branch, but wasn't fixed until after we released the first beta.
Can I ask that you try and edit your platform-docker/pom.xml
?
You'll need to add
<include>**/*.gz</include>
To the configuration in the resources plugin. You can compare your local file to the one in the sdk-4.0
branch here: https://github.com/Alfresco/alfresco-sdk/blob/sdk-4.0/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-docker/pom.xml#L138
Hi Ole, The problem with gz file was fixed by adding include/exclude params to maven-resources-plugin configuration. Anyway, I am still facing some issues. I will need to do more testing on my side and then I will provide you more info. You can expect more tomorrow.
As mentioned above, I still face some issues during Alfresco startup (even with include/exclude part for *.gz files). Repo does not start properly - full Docker compose log is here. You can see that spring beans cannot be created properly.
Btw, I can see more differences in platform-docker/pom.xml
between sdk-4.0 branch and 4.0.0-beta-1. For example, there are different versions of maven-dependency-plugin and maven-resources-plugin defined using pluginManagement. Can it cause any issues?
@ohej: Are you going to release SDK 4.0.0-beta-2?
Hi Ole, The problem with gz file was fixed by adding include/exclude params to maven-resources-plugin configuration. Anyway, I am still facing some issues. I will need to do more testing on my side and then I will provide you more info. You can expect more tomorrow.
I am facing similar issue with hotswap :(
@ohej : Do you have any news related to HotSwap and SDK4? I can see there is a pull request for final SDK4 but I cannot see anything about HotSwap.
Has there been any resolution to this issue?
@kat-riedlberger : Unfortunately, I haven't received any hint how to get it working.
Is it the assumption we should pay for a RJebel license now then?
@10SPD: You can spend ages by Alfresco restarts or pay some money to ZeroTurnaround (JRebel creator) ... it's your choice. Well, I miss official Alfresco statement if this issue with HotSwap is going to be solved or not.
Since we just got a very large quote from JRebel folks based on annual subscription - I do not anticipate us moving to that. Any news on HotSwap from anyone?
I'm submitting a ... (check one with "x")
Expected Behavior
SDK4 with HotSwap capability should start properly according to https://github.com/Alfresco/alfresco-sdk/blob/sdk-4.0/docs/advanced-topics/hot-reloading/hotswap-agent.md#configuring-hotswapagent-in-the-project-java-11
Current Behavior
Following error can be seen (link to full log is mentioned in last section):
Possible Solution
I tried to gunzip compressed file and adjust Dockerfile but no success
Steps to Reproduce (for bugs)
$ cd /opt/alfresco/sdk/hotswap/hotswap-platform-docker/src/main/docker
$ wget https://github.com/TravaOpenJDK/trava-jdk-11-dcevm/releases/download/dcevm-11.0.1%2B7/java11-openjdk-dcevm-linux.tar.gz
$ mv java11-openjdk-dcevm-linux.tar.gz trava-jdk-11-dcevm.tar.gz # Rename TravaJDK to follow the same filename as in Dockerfile
and
Context
Hot reloading feature is not working
Your Environment
Additional information
Whole log is available on my gist