Thanks Ralf! I did find that and tried it but it didn’t work. It didn’t
seem to make any resources available so I wasn’t even sure it had any
effect.

I’ve now put everything into a single maven project and appears to be
working perfectly.

Thank you very much.

If I get time, I might try to reproduce the issue with a set of new empty
frameworks to see whether I can determine the problem!

Mark

On Tue, 18 Jan 2022 at 22:01, Ralf Schuchardt <r...@gmx.de> wrote:

> Hi Mark,
>
> if I remember correctly, I did also run into this no-model-found problem
> lately, and I believe this old hint here
>
>
> https://wiki.wocommunity.org/display/documentation/Maven+Running+or+Debugging+as+WO+Application
>
> did help. If you have not done this yet, try adding the build java
> directory of your model frameworks to the classpath. This may also be
> necessary for components.
>
> Ralf
>
>
> On 18 Jan 2022, at 10:46, Mark Wardle via Webobjects-dev wrote:
>
> Thanks Paul.
>
> I have nuked my local installation of eclipse. I did have dashes in the
> path to my workspace. I tried an installation on a fresh machine, but with
> latest eclipse (4), and I now get NPE when I try to run a WOApplication. So
> I'm going to delete the installation again, install eclipse 3 and a
> compatible wolips, and then see what happens. I do have dependent
> frameworks open in eclipse. Some of those now depend on locally installed
> maven artefacts, but I have manually used mvn install to install them into
> the local repository.
>
> Out of interest, what version of eclipse and wolips are you using? I was
> on eclipse 4 and wolips master on this mac, and then when I tried on a
> fresh linux machine, I mistakenly installed the same. Perhaps that's the
> issue.
>
> Mark
>
> On Tue, 18 Jan 2022 at 08:35, Paul Hoadley via Webobjects-dev <
> webobjects-dev@lists.apple.com> wrote:
>
>> On 18 Jan 2022, at 6:27 pm, Mark Wardle <m...@wardle.org> wrote:
>>
>> 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.
>>
>>
>> Eclipse isn't doing a full Maven package build either. There's quite a
>> bit of magic going on with a launch from Eclipse.
>>
>> So actually none of my own models are included.
>>
>>
>> Right. It really shouldn't be this hard. Remember to answer these:
>>
>> 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?
>>
>>
>> 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.
>>
>>
>> Shouldn't matter (I used a models sub-directory for some projects too),
>> but don't make any further changes for now.
>>
>> 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!
>>
>>
>> Eclipse will occasionally throw up spurious errors like this, and you can
>> just delete them. It's unrelated to the model issue above.
>>
>> 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!
>>
>>
>> Once we get this working, you will learn to love Eclipse again. Err,
>> maybe.
>>
>>
>> --
>> 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/rasc%40gmx.de
>
> This email sent to r...@gmx.de
>
> --
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

Reply via email to