Ok I changed your pull request a little bit to return url.toString() instead of 
url.getFile(). 

I then updated ERXProperties’ getActualPath(path)  and 
applyConfiguration(source, command line) to support URL path strings and got it 
to work. 





> On Jan 26, 2026, at 12:57 PM, Ricardo Parada <[email protected]> wrote:
> 
> 
> 
> With your pull request applied to my fork I get an error from ERXProperties:
> 
> 
> ERXProperties.java’s applyConfiguration() :
> 
> configLog.error("The optional configuration file '{}' either does not exist 
> or cannot be read.", file);
> 
> 
>  The error looks like this:
> 
> [2026-01-26 12:37:02,919] <main> ERROR 
> er.extensions.foundation.ERXConfigurationManager - The optional configuration 
> file 
> '/Users/a07290a/Dev/repos/ehcm/WebApps/Phynance/target/Phynance.woa/file:/Users/a07290a/Dev/repos/ehcm/WebApps/Phynance/target/Phynance.woa/Contents/Resources/Java/wonder/ajax/Ajax/7.3.5/Ajax-7.3.5.jar!/Resources/Properties'
>  either does not exist or cannot be read.
> 
> Do you see any other changes in ERXProperties’ applyConfiguration(…) method 
> to support? It seems to be using File class, at least in my fork of wonder. 
> 
> Thanks 
> Ricardo 
> 
> 
>> 
>>> On Jan 26, 2026, at 8:36 AM, René Bock <[email protected]> wrote:
>>> 
>>  Hi Ricardo,
>> 
>> I fixed this in my PR 
>> https://github.com/wocommunity/wonder/pull/1004#pullrequestreview-1246042697
>> 
>> regards
>> 
>> René
>> 
>>> Am 26.01.2026 um 14:22 schrieb Ricardo Parada via Webobjects-dev 
>>> <[email protected]>:
>>> 
>>> Hello everyone,
>>> 
>>> I have noticed a lot of WARN messages in our maven-built applications that 
>>> look like this.
>>> 
>>> Can’t get path when run as jar: Ajax - Properties
>>> Can’t get path when run as jar: Ajax - Properties.user
>>> 
>>> These messages repeat for every framework the app uses, not just the Ajax 
>>> framework.
>>> 
>>> I’m using a fork of wonder from years ago that we enhanced to use slf4j 
>>> with log4j2 as the logging library along with other fixes of our own.
>>> 
>>> BTW, I saw Ramsey has wonder 8 converted to slf4j. That is great.
>>> 
>>> I just wonder if others building their application with maven see the same 
>>> messages in the console? I can shutdown the warnings by changing the 
>>> logging level for er.extensions.foundation.ERXFileUtilities  from WARN to 
>>> ERROR.
>>> 
>>> I think that at the end the applications run fine because we load an 
>>> optional properties file that sets all the properties we need the way we 
>>> need them.
>>> 
>>> Thank you
>>> Ricardo Parada
>> 

Reply via email to