Re: Hello again
Re: Hello again
- Subject: Re: Hello again
- From: Mark Wardle via Webobjects-dev <email@hidden>
- Date: Mon, 17 Jan 2022 18:55:17 +0000
Amazingly Paul, I found this from the past in which you had exactly the
same issue. I have different models in different frameworks. They are
brought in perfectly using maven at the command line, and everything just
seems to work. In eclipse, it is a different matter - I too have now
unchecked NSProjectBundleEnabled, but it is still showing errors.
The the "Problems" tab, I get errors relating to packaging and the
wolifecycle maven plugin:
[image: image.png]
Super odd, because I cannot see any difference between those two and all of
the other frameworks in the workspace which do not show an error. It just
seems so inconsistent. Maven at the command line appears to be doing nice
reproducible things everytime.
Mark
Paul Hoadley email@hidden via
<https://support.google.com/mail/answer/1311182?hl=en-GB> lists.apple.com
Sun, 9 Oct 2016, 12:29
to WebObjects
Hello,
Well, I say the _last_ two hurdles. They’re at least the _current_ two
hurdles. I’ve got this a long way, but I’m still not there. I’ve been
migrating an app and its 10 or so framework dependencies. Everything builds
(both locally on OS X and on a Jenkins CI server running Amazon Linux), but
I’m stuck on launch.
1. Launching in Eclipse I get this:
WARN NSLog - A fatal exception occurred: There is no model named
'LSNotification'
in this model group.
[2016-10-9 11:11:26 UTC] <main> java.lang.IllegalArgumentException: There is
no model named 'LSNotification' in this model group.
at er.extensions.migration.ERXMigrator._buildDependenciesForModelsNamed(
ERXMigrator.java:274)
That model is in LSNotification.framework, which appears to be built
correctly, and its JAR (which contains that model) is in the built
application bundle under target. (Is this even what Eclipse is running when
I hit launch?) If I go into that bundle on the command line and launch by
hand, I _don’t_ get this error, which is encouraging—the application finds
that model, runs the migrations (and then fails elsewhere—see below). What
am I overlooking when I launch from Eclipse? I’ve
unchecked NSProjectBundleEnabled—anything else?
On Mon, 17 Jan 2022 at 07:34, Mark Wardle <email@hidden> 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. Do I
> need a special <resources> statement in any of the pom files? 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.
>
>
> Mark
>
>
> 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?
>
> On Sun, 16 Jan 2022 at 22:08, Paul Hoadley via Webobjects-dev <
> email@hidden> wrote:
>
>> On 17 Jan 2022, at 8:05 am, Mark Wardle <email@hidden> wrote:
>>
>> Thanks to Paul and all involved in building the maven plugin and support
>> for WebObjects/Project Wonder, I'm very pleased to say that I can now
>> quickly and easily build my entire project using maven, now as separate
>> frameworks and applications.
>>
>>
>> Brilliant.
>>
>>
>> --
>> 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 (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>>
>
>
> --
> Dr. Mark Wardle
> Consultant Neurologist and Clinical informatician, University Hospital
> Wales, Cardiff, UK
> Chair, NHS Wales Technical Standards Board.
> Email: email@hidden or email@hidden Twitter: @mwardle
> Telephone: 02920745274 (secretary) or facsimile: 02920744166
>
--
Dr. Mark Wardle
Consultant Neurologist and Clinical informatician, University Hospital
Wales, Cardiff, UK
Chair, NHS Wales Technical Standards Board.
Email: email@hidden or email@hidden Twitter: @mwardle
Telephone: 02920745274 (secretary) or facsimile: 02920744166

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Hello again (From: Mark Wardle via Webobjects-dev <email@hidden>) |
| >Re: Hello again (From: Paul Hoadley via Webobjects-dev <email@hidden>) |
| >Re: Hello again (From: Mark Wardle via Webobjects-dev <email@hidden>) |
| >Re: Hello again (From: Mark Wardle via Webobjects-dev <email@hidden>) |
| >Re: Hello again (From: Mark Wardle via Webobjects-dev <email@hidden>) |
| >Re: Hello again (From: Paul Hoadley via Webobjects-dev <email@hidden>) |
| >Re: Hello again (From: Mark Wardle via Webobjects-dev <email@hidden>) |