[Geoserver-devel] Trouble initializing GeoServer 2.14.0 (Binary)

Hi All,

I just downloaded version 2.14.0 (Platform Independent Binary) and when trying to run, it presented the error below (attachment)

The error is in Portuguese, but it is saying that: “C: \ Program is not recognized as internal command”

I’m using Windows 10 PRO.

(attachments)

geoserver_init.png

···

Best Regards,

Fernando Quadro
http://www.fernandoquadro.com.br
https://www.linkedin.com/in/fernandoquadro/

Hello Fernando

The error “C:\Program” is not recognized as an internal command looks like an escaping error somewhere (likely some line that is trying to call something in “Program Files”. I expect there is a bug somewhere in the binary that can’t handle paths with spaces.

For a Windows system, I would recommend using the windows installer.

Alternatively, you could try running the system independent binary from a path that doesn’t have a space in it.

If you are able to to track down what is causing the failure, we would welcome a bugfix.

Cheers,

Torben

On Mon, Sep 24, 2018 at 11:09 AM Fernando Quadro <fsquadro@anonymised.com> wrote:

Hi All,

I just downloaded version 2.14.0 (Platform Independent Binary) and when trying to run, it presented the error below (attachment)

The error is in Portuguese, but it is saying that: “C: \ Program is not recognized as internal command”

I’m using Windows 10 PRO.

Best Regards,

Fernando Quadro
http://www.fernandoquadro.com.br
https://www.linkedin.com/in/fernandoquadro/


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

Hi Torben,

I did this, I downloaded the Windows executable. However, I find it dangerous to look for a suffix that is “fixed” in the code.

I, for example, when I use the binary version, I never put it in the C: \ Program Files folder.

Thanks!

···

Fernando Quadro
http://www.fernandoquadro.com.br
https://www.linkedin.com/in/fernandoquadro/

The windows startup script is here, Torben already pointed out the contribution istructions:
https://github.com/geoserver/geoserver/blob/master/src/release/bin/startup.bat

The ugly bit is that is has been kept up over the years by people not using, and sometimes actively disliking, Windows.
It’s time for someone that actually wants to use Windows to step up and help with it (does not have to be you,
but someone will have to take it).

Same goes for building the code, I did the effort (twice over the years) to make GeoTools and GeoServer build again
on Windows and stand up build servers to keep the Windows build working, and asked for help on it, to keep it building.
Nobody answered. Twice. It’s just pathetic.

Cheers
Andrea

···

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it 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.

There are two possible places for that error to creep in - one is in the JAVA_HOME variable and the other is in the windows cmd program that the bat file calls to run java. See https://blog.ianturton.com/windows/2018/08/27/mvn-windows.html for an example of Git for Windows messing things up

Ian

···

Ian Turton

Andrea,

I just looked at the batch files and there are some problems I found.

Just made some changes, for which I can create a pull:

  • When JAVA_HOME is not set, the ‘shutdown’ file does not work
  • When using GeoServer inside a folder containing space, the batchfile does not work correctly
  • Show some extra info, when JAVA_HOME is not set and System Java is used

Do I have to create issues for this?

Regards,

Ronald Hoek

Application Developer
ComponentAgro B.V.
Oud-Beijerland - The Netherlands

Website: http://www.componentagro.nl

KvK: H24264020

Verzonden: woensdag 26 september 2018 14:37

···

The windows startup script is here, Torben already pointed out the contribution istructions:

https://github.com/geoserver/geoserver/blob/master/src/release/bin/startup.bat

The ugly bit is that is has been kept up over the years by people not using, and sometimes actively disliking, Windows.

It’s time for someone that actually wants to use Windows to step up and help with it (does not have to be you,

but someone will have to take it).

Same goes for building the code, I did the effort (twice over the years) to make GeoTools and GeoServer build again

on Windows and stand up build servers to keep the Windows build working, and asked for help on it, to keep it building.

Nobody answered. Twice. It’s just pathetic.

Cheers

Andrea

On Wed, Sep 26, 2018 at 2:28 PM Fernando Quadro <fsquadro@…403…> wrote:

Hi Torben,

I did this, I downloaded the Windows executable. However, I find it dangerous to look for a suffix that is “fixed” in the code.

I, for example, when I use the binary version, I never put it in the C: \ Program Files folder.

Thanks!

Fernando Quadro
http://www.fernandoquadro.com.br
https://www.linkedin.com/in/fernandoquadro/

Em ter, 25 de set de 2018 às 13:28, Torben Barsballe <tbarsballe@…3839…> escreveu:

Hello Fernando

The error “C:\Program” is not recognized as an internal command looks like an escaping error somewhere (likely some line that is trying to call something in “Program Files”. I expect there is a bug somewhere in the binary that can’t handle paths with spaces.

For a Windows system, I would recommend using the windows installer.

Alternatively, you could try running the system independent binary from a path that doesn’t have a space in it.

If you are able to to track down what is causing the failure, we would welcome a bugfix.

Cheers,

Torben

On Mon, Sep 24, 2018 at 11:09 AM Fernando Quadro <fsquadro@…403…> wrote:

Hi All,

I just downloaded version 2.14.0 (Platform Independent Binary) and when trying to run, it presented the error below (attachment)

The error is in Portuguese, but it is saying that: “C: \ Program is not recognized as internal command”

I’m using Windows 10 PRO.

Best Regards,

Fernando Quadro
http://www.fernandoquadro.com.br
https://www.linkedin.com/in/fernandoquadro/


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


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://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it 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.

One issue is probably sufficient.

Cheers
Andrea

···

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it 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.

Created the issue https://osgeo-org.atlassian.net/browse/GEOS-8950

I’ll create the PULL in just a few minutes.

Regards,

Ronald Hoek

Application Developer
ComponentAgro B.V

Verzonden: donderdag 27 september 2018 9:36

···

On Thu, Sep 27, 2018 at 9:33 AM Ronald Hoek - ComponentAgro B.V. <ronald.hoek@…5024…> wrote:

Andrea,

I just looked at the batch files and there are some problems I found.

Just made some changes, for which I can create a pull:

  • When JAVA_HOME is not set, the ‘shutdown’ file does not work
  • When using GeoServer inside a folder containing space, the batchfile does not work correctly
  • Show some extra info, when JAVA_HOME is not set and System Java is used

Do I have to create issues for this?

One issue is probably sufficient.

Cheers

Andrea

==

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it 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.

Pull created: https://github.com/geoserver/geoserver/pull/3121

···

Regards,

Ronald Hoek

Application Developer
ComponentAgro B.V

Van: Ronald Hoek - ComponentAgro B.V. <ronald.hoek@…5024…>
Verzonden: donderdag 27 september 2018 9:49
Aan: Andrea Aime <andrea.aime@…1268…>
CC: Geoserver-devel geoserver-devel@lists.sourceforge.net; Jody Garnett <jgarnett@…3839…>
Onderwerp: Re: [Geoserver-devel] Trouble initializing GeoServer 2.14.0 (Binary)

Created the issue https://osgeo-org.atlassian.net/browse/GEOS-8950

I’ll create the PULL in just a few minutes.

Regards,

Ronald Hoek

Application Developer
ComponentAgro B.V

Van: Andrea Aime <andrea.aime@…1268…>
Verzonden: donderdag 27 september 2018 9:36
Aan: Ronald Hoek <ronald.hoek@…5024…>
CC: Fernando Quadro <fsquadro@…403…>; Geoserver-devel <geoserver-devel@lists.sourceforge.net>; Jody Garnett <jgarnett@…3839…>
Onderwerp: Re: [Geoserver-devel] Trouble initializing GeoServer 2.14.0 (Binary)

On Thu, Sep 27, 2018 at 9:33 AM Ronald Hoek - ComponentAgro B.V. <ronald.hoek@…5024…> wrote:

Andrea,

I just looked at the batch files and there are some problems I found.

Just made some changes, for which I can create a pull:

  • When JAVA_HOME is not set, the ‘shutdown’ file does not work
  • When using GeoServer inside a folder containing space, the batchfile does not work correctly
  • Show some extra info, when JAVA_HOME is not set and System Java is used

Do I have to create issues for this?

One issue is probably sufficient.

Cheers

Andrea

==

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it 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.

Hi All,

I use Windows, and I can help test the binary version and also the Windows Installer.

Best Regards,

···

Fernando Quadro
http://www.fernandoquadro.com.br
https://www.linkedin.com/in/fernandoquadro/

Hi Fernando,

Just in advance for you to know, my contribution as a community member is limited to the ‘Windows Installer’ and ‘runtime batch files’, as my knowledge of Java is simply ‘none’.

Our company runs GeoServer on a Windows server platform as a Win-32 service and I try to support based on that configuration.

Having said that, thank you in advance for wanting to help to test on Windows.

The fixes I made can be found in my repo copy:

https://github.com/ronaldhoek/geoserver/tree/Windows-Batch-fixes/src/release/bin

To test this, use the latest ‘platform independent’ download and replace the batch file with to once from my repository.

As far as I can see, GeoServer then works when placed in the ‘Program Files’ folder (or ‘Program Files(x86)’ folder).

Note: to start GeoServer in the browser, you need the type the URL http://localhost:8080/GeoServer .

Not just http://localhost:8080/

Regards,

Ronald Hoek

Application Developer
ComponentAgro B.V

Verzonden: vrijdag 28 september 2018 15:28

···

Hi All,

I use Windows, and I can help test the binary version and also the Windows Installer.

Best Regards,

Fernando Quadro
http://www.fernandoquadro.com.br
https://www.linkedin.com/in/fernandoquadro/

Em qui, 27 de set de 2018 às 04:56, Ronald Hoek - ComponentAgro B.V. <ronald.hoek@…5024…> escreveu:

Pull created: https://github.com/geoserver/geoserver/pull/3121

Regards,

Ronald Hoek

Application Developer
ComponentAgro B.V

Van: Ronald Hoek - ComponentAgro B.V. <ronald.hoek@…5024…>
Verzonden: donderdag 27 september 2018 9:49
Aan: Andrea Aime <andrea.aime@…1268…>
CC: Geoserver-devel <geoserver-devel@lists.sourceforge.net>; Jody Garnett <jgarnett@…3839…>
Onderwerp: Re: [Geoserver-devel] Trouble initializing GeoServer 2.14.0 (Binary)

Created the issue https://osgeo-org.atlassian.net/browse/GEOS-8950

I’ll create the PULL in just a few minutes.

Regards,

Ronald Hoek

Application Developer
ComponentAgro B.V

Van: Andrea Aime <andrea.aime@…1268…>
Verzonden: donderdag 27 september 2018 9:36
Aan: Ronald Hoek <ronald.hoek@…5024…>
CC: Fernando Quadro <fsquadro@…403…>; Geoserver-devel <geoserver-devel@lists.sourceforge.net>; Jody Garnett <jgarnett@…3839…>
Onderwerp: Re: [Geoserver-devel] Trouble initializing GeoServer 2.14.0 (Binary)

On Thu, Sep 27, 2018 at 9:33 AM Ronald Hoek - ComponentAgro B.V. <ronald.hoek@…5024…> wrote:

Andrea,

I just looked at the batch files and there are some problems I found.

Just made some changes, for which I can create a pull:

  • When JAVA_HOME is not set, the ‘shutdown’ file does not work
  • When using GeoServer inside a folder containing space, the batchfile does not work correctly
  • Show some extra info, when JAVA_HOME is not set and System Java is used

Do I have to create issues for this?

One issue is probably sufficient.

Cheers

Andrea

==

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it 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