Re: Hello again
Re: Hello again
- Subject: Re: Hello again
- From: Paul Hoadley via Webobjects-dev <email@hidden>
- Date: Sun, 16 Jan 2022 11:22:01 +1030
Hi Mark,
On 16 Jan 2022, at 8:32 am, Mark Wardle via Webobjects-dev
<email@hidden> wrote:
> Long time no see. I have quietly lurked here while working on a different
> technology stack (mainly clojure/clojurescript), but now want to migrate my
> old WO applications to use my newer backend components when possible.
Welcome back.
> 1. Please could I have an invite to the slack channel?
Looks like someone has hooked you up—Slack telling me email@hidden
<mailto:email@hidden> would be a duplicate.
> 2. I have restarted my push to migrate to maven, as I need to modernise the
> build and make it easier to stitch everything I need together. But I've hit
> some hurdles - are there any maven experts?
There are several. There's a #maven channel on Slack.
> a) My EOModels in frameworks were not being found until I specifically told
> eclipse to NSBundeProjectEnabled to false. That seemed to fix that, but now I
> get a weird NPE on startup (in eclipse) which suggests my class description
> for an entity isn't being found. I do have
> <configuration><flattenComponents>true</flattenComponents></configuration> in
> at least the main application package.
>
> [2022-1-15 21:13:14 GMT] <main> java.lang.NullPointerException
> at
> er.rest.IERXRestDelegate$Factory.delegateForClassDescription(IERXRestDelegate.java:147)
> at
> er.rest.routes.ERXRouteRequestHandler.addDefaultRoutes(ERXRouteRequestHandler.java:539)
> at com.eldrix.news.app.Application.<init>(Application.java:110)
>
> I'm using v2.5 of the maven lifecycle plugin.
>
> b) At least I get that far in eclipse. At the command-line, when I build the
> application, I get the following:
>
> Exception in thread "main" com.webobjects.foundation.NSForwardException
> [java.util.zip.ZipException] zip END header not
> found:java.util.zip.ZipException: zip END header not found
> at
> com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:45)
> at
> er.extensions.appserver.ERXApplication$Loader.stringFromJar(ERXApplication.java:857)
> at
> er.extensions.appserver.ERXApplication$Loader.<init>(ERXApplication.java:517)
> at
> er.extensions.appserver.ERXApplication.setup(ERXApplication.java:1071)
> at er.extensions.appserver.ERXApplication.main(ERXApplication.java:884)
> at com.eldrix.news.app.Application.main(Application.java:73)
>
> My google-fu has failed me for this one. I have cleaned all the frameworks,
> installed them all and then rebuilt the application without success. I
> deleted .m2/repository as a last resort, and did it all again, but the
> problem persists. I also thought maven would automatically manage submodules
> and build them in the right order, but that doesn't happen either.
Before we wade into these, how did you convert your project(s) to Maven? Did
you follow this or something like it?
https://gist.github.com/paulhoadley/cd15b90c94eb8c640fddd9ac3fbbc6dc
<https://gist.github.com/paulhoadley/cd15b90c94eb8c640fddd9ac3fbbc6dc>
I would suggest doing one project at a time. Choose a framework that is
dependent on no other projects, for example. Get it working, then move to the
next.
> I would be very grateful for any pointers at all. I still would like to move
> away from ant for this build, and I need to simplify my frameworks, so moving
> to maven seems like an important step in modernising my build.
You won't regret it. Any time you spend now getting your projects converted
will be paid off a hundred times later. It will instantly simplify your CI
options, just as one example.
--
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
References: | |
| >Hello again (From: Mark Wardle via Webobjects-dev <email@hidden>) |