View Issue Details

IDProjectCategoryView StatusLast Update
0006686SymmetricDSBugpublic2024-12-24 21:10
Reporterpmarzullo Assigned Topmarzullo  
Prioritynormal 
Status resolvedResolutionfixed 
Product Version3.15.0 
Target Version3.15.12Fixed in Version3.15.12 
Summary0006686: AppUtils static initialization of symmetric-impl.properties needs to try a different way to find file when running in containers
DescriptionWhen 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 Reproduce1. 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.
Tagscluster

Activities

There are no notes attached to this issue.

Related Changesets

SymmetricDS: 3.15 d4c3416f

2024-12-24 20:52:06

pmarzullo

Details Diff
0006686: AppUtils static initialization of symmetric-impl.properties
needs to try a different way to find file when running in containers
Affected Issues
0006686
mod - symmetric-util/src/main/java/org/jumpmind/util/AppUtils.java Diff File

Issue History

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