Hi Paul, I suspect you fixed it through a special incantation on the first blood red moon of April.
Anyway, I clearly have a different environment when running at the command line compared to in eclipse. I added some code to my main Application startup: *public* Application() { NSLog.*out*.appendln("Welcome to " + *this*.name() + " !"); EOModelGroup modelGroup = EOModelGroup.*defaultGroup*(); modelGroup.modelNames().forEach(s -> System.*out*.println ("Model: " + s)); setAllowsConcurrentRequestHandling(*true*); .... >From the command-line, I get: Jan 18 07:51:29 RSNews[65462] INFO er.extensions.appserver.ERXApplication - Wonder version: 7.2 Jan 18 07:51:29 RSNews[65462] INFO NSLog - Welcome to RSNews ! Model: NhsModel Model: ERCoreBusinessLogic Model: RSBiobank Model: ERMail Model: ERAttachment Model: SnomedCt Model: RSBusinessLogic Model: erprototypes Model: RSGeneticsModel >From eclipse, I get: Jan 18 07:48:46 RSNews[65449] INFO er.extensions.appserver.ERXApplication - Wonder version: 7.2 Jan 18 07:48:46 RSNews[65449] INFO NSLog - Welcome to RSNews ! Model: ERAttachment Model: ERCoreBusinessLogic Model: ERMail Model: erprototypes So actually none of my own models are included. I have five models. Some were in src/main/resources/models and some were in src/main/resources so I did the same for all frameworks - and put them in src/main/resources. I'm on eclipse version: Version: 2021-12 (4.22.0) Build id: 20211202-1639 I am not clear what I'm doing wrong! Deleting the error messages in eclipse seems to have resolved those errors. So bizarre. They haven't appeared for a while now! Can't help to think I have misconfigured eclipse in some way. I miss IntelliJ and VScode, which I've been using for quite some time! Mark On Mon, 17 Jan 2022 at 22:36, Paul Hoadley via Webobjects-dev < webobjects-dev@lists.apple.com> wrote: > Hi Mark, > > On 17 Jan 2022, at 6:04 pm, Mark Wardle <m...@wardle.org> wrote: > > Right. It *is* all working - from the command-line. > > But it is eclipse that is having problems. For some reason I get a 'no > model found' in this model group error. > > Jan 17 07:16:57 RSNews[59144] WARN NSLog - A fatal exception occurred: > There is no model named 'NhsModel' in this model group. > [2022-1-17 7:16:57 GMT] <main> java.lang.IllegalArgumentException: There > is no model named 'NhsModel' in this model group. > > I have only a hazy recollection of how model groups work - and they just > seemed to work before. Oddly, I can't find any eomodel directories in my > command-line built target, so presume they end up in the jar files. > > > Yes they will. > > Do I need a special <resources> statement in any of the pom files? > > > No. Are your models just sitting in src/main/resources? > > I note this wasn't an issue when I created a single maven project > combining all of my frameworks and a single application, but it is an issue > now my EOModels are in different frameworks from the application. Is there > a special command-line parameter to set (or unset) for eclipse, as it seems > to find the models when run from the command-line. > > > No, I don't think so. Do you have the framework projects open in the same > workspace? If not, have you run 'mvn install' for the framework projects so > that their JARs are in ~/.m2/repository? > > PS Oh and eclipse seems to want to keep changing the .classpath files. I > know maven will ignore those, but it is disconcerting. Do I check them into > version control or add them to .gitignore now? > > > I check .classpath into the repo for WebObjects projects, and periodically > commit changes that Eclipse seems to make on a whim. > > The last 5% of the Maven journey can be frustrating, but once we get you > there, you won't look back. > > > -- > Paul Hoadley > https://logicsquad.net/ > https://www.linkedin.com/company/logic-squad/ > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/mark%40wardle.org > > This email sent to m...@wardle.org > -- Dr. Mark Wardle Consultant Neurologist and Clinical informatician, University Hospital Wales, Cardiff, UK Chair, NHS Wales Technical Standards Board. Email: mark.war...@wales.nhs.uk or m...@wardle.org Twitter: @mwardle Telephone: 02920745274 (secretary) or facsimile: 02920744166
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com