Re: Hello again
Re: Hello again
- Subject: Re: Hello again
- From: Paul Hoadley via Webobjects-dev <email@hidden>
- Date: Wed, 19 Jan 2022 08:52:57 +1030
On 19 Jan 2022, at 8:19 am, Mark Wardle <email@hidden> wrote:
> One major issue was that I had .project in my gitignore file, so eclipse made
> new ones without the wolips magic / maven features. That meant I got weird
> NPE when I tried with a new machine and different behaviour on another.
Yes, that will definitely be a problem. You must have a .project file with both
of the 'maven2Nature' entries. One of them is the correct, current entry for
Eclipse, the other is essentially a magic string to match what's hard-coded
deep in a WebObjects class. You won't get proper bundle loading without these.
> I still had a problem finding all of the EOModels, and an odd thing not
> finding resources in frameworks, so I ended up sticking with my fix of
> bringing all frameworks into the main application. That is fine for now - and
> given my plan is to move away from frameworks to simple jars (some java, most
> clojure), then this gives me the opportunity to delete lots of code and
> migrate to my more modern backend components. One example, for instance, is
> https://github.com/wardle/hermes <https://github.com/wardle/hermes> - so my
> old application had SNOMED CT as a dependent framework - I'll be replacing by
> simply calling that library and deleting that framework code.
While I'm glad it worked, you shouldn't need to do any of this. If you want to
keep debugging the external framework approach, I am happy to keep going. We
will get there. I'd start by checking what's going on in .project for each of
those as well, if they're open in the Eclipse workspace.
> It looks rather messy at the moment, with everything together, but at least
> I've got maven running, a new version of my application already deployed, and
> upgraded to 7.2 of Wonder. It's a great step towards modernisation.
7.3 was just released! And because you're using Maven, you can pick that up
with a single character diff.
> To be fair, building a new maven application using eclipse always worked. It
> was bringing all my old cruft along that seems to have caused the issues,
> plus a major dose of idiocy on my part.
It can be hard migrating a large project with frameworks, but it is possible.
If you want to persist, we can make it work.
--
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