Re: Hello again
Re: Hello again
- Subject: Re: Hello again
- From: Ralf Schuchardt via Webobjects-dev <email@hidden>
- Date: Tue, 18 Jan 2022 23:01:04 +0100
- Embedded-html: [{"plain":[460, 3261], "uuid":"2E907252-CE5F-4940-882C-B39254DA83F8"}]
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 <
email@hidden> wrote:
On 18 Jan 2022, at 6:27 pm, Mark Wardle <email@hidden> 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 (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
_______________________________________________
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
_______________________________________________
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