Mailing List webobjects-dev@wocommunity.org Message #282
From: OCsite <webobjects-dev@wocommunity.org>
Subject: Re: [WO-DEV] Solved: model list
Date: Fri, 15 Oct 2021 16:20:08 +0200
To: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
P.S. Just in case anyone decides to fix the code:

On 15 Oct 2021, at 13:54, OCsite <webobjects-dev@wocommunity.org> wrote:
BTW, I might be missing something of importance, but I do believe the log (ERXModelGroup.loadModelsFromLoadedBundles)
			log.debug("Loading bundles ()", frameworkBundles.valueForKey("name"));
I would strongly recommend two more improvements:

(i) instead of blindly assuming that each folder which contains a file with the „eomodeld“ extension is a model, to check the path and ignore it unless the file found has name „index“ and its enclosing folder has an extension „eomodeld“;

(ii) enclose addModelWithPathURL in a try/catch harness and add a switch which would allow to (report and) ignore models which cannot be loaded.

Thanks and all the best,
OC

On 14. 10. 2021, at 21:01, ocs@ocs.cz <webobjects-dev@wocommunity.org> wrote:

Hi there,

our CentOS deployment does not work with Wonder 7.3; an attempt to launch the application yields

[2021-10-14 20:38:2 CEST] <main> java.lang.IllegalArgumentException: Unable to read either 'file:/opt/Local/Library/WOnderFrameworks73/ERPrototypes.framework/Resources/index.eomodeld' or 'file:/opt/Local/Library/WOnderFrameworks73/ERPrototypes.framework/Resources/eomodel.plist

With 7.1 the same code (only classpath changed) seems to work right. Seems 7.2 has the same problem as 7.3, though I haven't tested it thoroughly. (It stinks by some very ugly Java-based problem, for I've never seen the problem on my development macOS site; happens only at deployment CentOS. Ick.)

How could I find the differences -- if any -- betwixt the Wonder releases? I suspect loadModelsFromLoadedBundles most probably would be the culprit, somehow finding wrong model paths; I can find the (presumably current 7.3) code at

https://jenkins.wocommunity.org/job/Wonder7/ws/Wonder/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/ERXModelGroup.java

but -- paint me blind and dumb -- I can't see the way to diff the Wonder releases. Also, the code does not seem to allow logging out how it finds the models, alas.

Thanks for any idea,
OC


#############################################################
This message is sent to you because you are subscribed to
 the mailing list <webobjects-dev@wocommunity.org>.
To unsubscribe, E-mail to: <webobjects-dev-off@wocommunity.org>
To switch to the DIGEST mode, E-mail to <webobjects-dev-digest@wocommunity.org>
To switch to the INDEX mode, E-mail to <webobjects-dev-index@wocommunity.org>
Send administrative queries to  <webobjects-dev-request@wocommunity.org>



Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster