View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006686 | SymmetricDS | Bug | public | 2024-12-24 18:26 | 2024-12-24 21:10 |
Reporter | pmarzullo | Assigned To | pmarzullo | ||
Priority | normal | ||||
Status | resolved | Resolution | fixed | ||
Product Version | 3.15.0 | ||||
Target Version | 3.15.12 | Fixed in Version | 3.15.12 | ||
Summary | 0006686: AppUtils static initialization of symmetric-impl.properties needs to try a different way to find file when running in containers | ||||
Description | When SymmetricDS is running in web app containers like Tomcat, the loading of the symmetric-impl.properties file using the ClassLoader.getSystemResource() fails to find the file and does not initialize Pro classes like ProClusterService and others. The ClassLoader.getSystemResource() does not have access to the application provided jar files on its classpath, and so does not find the symmetric-impl.properties file. If it does not find the symmetric-impl.properties file, it should try another way: AppUtils..class.getResource(resourceName); This will use the classloader of the current class, which is more likely to find the file when running in a container like Tomcat. | ||||
Steps To Reproduce | 1. Build war deployment. 2. Define engine file that uses cluster.lock.enabled=true 3. Start up SymmetricDS. 4. Install SymmetricDS Pro license 5. Restart SymmetricDS. 6. Cluster lock is only available in SymmetricDS Pro. Remove cluster.lock.enabled from engine properties. | ||||
Tags | cluster | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2024-12-24 18:26 | pmarzullo | New Issue | |
2024-12-24 18:26 | pmarzullo | Status | new => assigned |
2024-12-24 18:26 | pmarzullo | Assigned To | => pmarzullo |
2024-12-24 18:26 | pmarzullo | Tag Attached: cluster | |
2024-12-24 21:00 | pmarzullo | Changeset attached | => SymmetricDS 3.15 d4c3416f |
2024-12-24 21:10 | pmarzullo | Status | assigned => resolved |
2024-12-24 21:10 | pmarzullo | Resolution | open => fixed |
2024-12-24 21:10 | pmarzullo | Fixed in Version | => 3.15.12 |