[Geoserver-devel] Main bin package failing to start (again)

Trying to start a nightly I get:

ERROR : Nothing to start, exiting …

It seems the usual issue, start.jar has not been updated along with the
latest Jetty version upgrade.

We’d really need to either automate fetching that jar, and/or adding tests
to make sure the bin package is working properly (if that is done, it could open the interesting
possibility of also trying the start-up with each and every extension module, too).

In the meantime, this seems to do the trick:
https://github.com/geoserver/geoserver/pull/6083

Cheers
Andrea

···

==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 339 8844549

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it


Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail

Is there a maven dependency for that jar?

···


Jody Garnett

Hmm… unsure.

I did try with this one:
https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-start/9.4.48.v20220622

But the jar downloaded from that link does not work, Jetty won’t start.
What worked for me, was to grab the binary distribution, also available from maven repos, and then grabbing start.jar from it:
https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-distribution/9.4.48.v20220622

and in particular this file:
https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/9.4.48.v20220622/jetty-distribution-9.4.48.v20220622.zip

Unzip it, you’ll get a working start.jar.

Cheers
Andrea

···

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 339 8844549

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it


Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail

Checking

  1. jetty-start-9.4.48.v20220622.jar is 154 KB
  2. distribution start.jar is 164 KB
    MANIFEST.MF is identical )(same exported packages etc…)

Diff folders:

  • org/eclipse/jetty/start/Modules.class

  • org/eclipse/jetty/start/StartArgs.class

  • org/eclipse/jetty/start/shaded (only in distribution)

  • org/eclipse/jetty/start/shaded/util/JavaVersion.class

  • org/eclipse/jetty/start/shaded/util/ManifestUtils.class

  • org/eclipse/jetty/start/shaded/util/TopologicalSort.class

  • org/eclipse/jetty/start/shaded/util/TopologicalSort$CyclicException.class

  • org/eclipse/jetty/start/shaded/util/TopologicalSort$InitialOrderComparator.class

Which is odd …

  1. What does distribution do?

https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/jetty-distribution/pom.xml

  • uses ant run to do something
  • unpacks jetty-home
  • unpacks some wars
  • has an assembly

https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/jetty-home/pom.xml

  • here it is a dependency on start using shade classifier

dependencies:

org.eclipse.jetty
jetty-start
${project.version}
shaded

maven-depeendency-plugin:

org.eclipse.jetty jetty-start ${project.version} shaded jar true ** ${assembly-directory} start.jar
  • so actually nothing special; just pulling a different classifier

https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/jetty-start/pom.xml

  • okay it defines more than one classifier
org.apache.maven.plugins maven-shade-plugin package shade false true true shaded

So yeah, try pulling the same dependency as distribution:

org.eclipse.jetty jetty-start ${project.version} shaded

Jody Garnett

On Tue, 2 Aug 2022 at 07:57, Andrea Aime <andrea.aime@anonymised.com> wrote:

Hmm… unsure.

I did try with this one:
https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-start/9.4.48.v20220622

But the jar downloaded from that link does not work, Jetty won’t start.
What worked for me, was to grab the binary distribution, also available from maven repos, and then grabbing start.jar from it:
https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-distribution/9.4.48.v20220622

and in particular this file:
https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/9.4.48.v20220622/jetty-distribution-9.4.48.v20220622.zip

Unzip it, you’ll get a working start.jar.

Cheers
Andrea

On Tue, Aug 2, 2022 at 4:43 PM Jody Garnett <jody.garnett@anonymised.com> wrote:

Is there a maven dependency for that jar?


Jody Garnett

On Mon, 1 Aug 2022 at 10:47, Andrea Aime <andrea.aime@anonymised.com> wrote:

Trying to start a nightly I get:

ERROR : Nothing to start, exiting …

It seems the usual issue, start.jar has not been updated along with the
latest Jetty version upgrade.

We’d really need to either automate fetching that jar, and/or adding tests
to make sure the bin package is working properly (if that is done, it could open the interesting
possibility of also trying the start-up with each and every extension module, too).

In the meantime, this seems to do the trick:
https://github.com/geoserver/geoserver/pull/6083

Cheers
Andrea

==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 339 8844549

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it


Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail


Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 339 8844549

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it


Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail

Here is a PR, works with local testing https://github.com/geoserver/geoserver/pull/6087

···


Jody Garnett

Noice, merged!

Cheers
Andrea

···

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 339 8844549

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it


Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail

Think the 2.21.1 release bin download also fails to start?I

To fix should I download, add the correct start.jar and zip it back up?

···


Jody Garnett

That seems to have fixed it; result upload to source forge.

···


Jody Garnett