Update.

1. I have fixed the error from a zip file. It turns out the build was
including a broken jar file, from a dependency of type 'pom'. This results
in an invalid file being brought into the build.

<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-ri</artifactId>
<version>2.3.3</version>
<type>pom</type>
</dependency>

To make it easier for others to find in the future, this is the exception
that this caused:

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:75)

Caused by: java.util.zip.ZipException: zip END header not found

at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1567)

at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1462)

at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1469)

at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1274)

at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1237)

at
java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:727)

at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:844)

at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:247)

at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:177)

at java.base/java.util.jar.JarFile.<init>(JarFile.java:348)

at java.base/java.util.jar.JarFile.<init>(JarFile.java:319)

at java.base/java.util.jar.JarFile.<init>(JarFile.java:258)

at
er.extensions.appserver.ERXApplication$Loader.stringFromJar(ERXApplication.java:837)

Keywords: maven java 11 broken zip file invalid jar stringFromJar
ERXApplication$Loader ERXApplication


I can see the finish line now, although there are some dimly lit hurdles
ahead. Here be dragons.

On Sun, 16 Jan 2022 at 07:32, Mark Wardle <m...@wardle.org> wrote:

> Hi Paul! Hope you are keeping well! Thanks for the reply. It looks very
> helpful - replies inline below.
>
> On Sun, 16 Jan 2022 at 00:52, Paul Hoadley via Webobjects-dev <
> webobjects-dev@lists.apple.com> wrote:
>
>> Hi Mark,
>>
>> On 16 Jan 2022, at 8:32 am, Mark Wardle via Webobjects-dev <
>> webobjects-dev@lists.apple.com> 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 m...@wardle.org would
>> be a duplicate.
>>
>>
> All sorted thank you.
>
>
>> 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.
>>
>> Great.
>
>
>>  > SNIP
>>
>
>
>> 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
>>
>>
> No I did not see that. I created a new directory and copied files across
> according what I've used for maven native files. But, I didn't turn off
> eclipse and did get annoyed with all of the autogenerated files appearing
> as I did each framework.
>
>
>> 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.
>>
>>
> Yes actually all of the frameworks build, as does the application, but
> that zip file means something is broken.
> I will start again with your guide thank you!
>
>> 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.
>>
>>
> Best wishes,
>
> Mark
>


-- 
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