[Geoserver-devel] Build not running on Intellij

I’m trying to run geoserver from within Intellij to help with debugging. I’m following the instructions listed here https://docs.geoserver.org/latest/en/developer/quickstart/intellij.html
My devel machine is a windows 10 machine.

With the configuration including
++++++++++++++++++++++++++

Main class: org.geoserver.web.Start
VM options: -DskipTests
Working directory: C:\Users\userName\source\geoserver\src\web\app
Use classpath of module: gs-web-app
JRE: Default(1.8)

When running this configuration. I get the below error. Is there something else I should be doing to get it to run from the IDEA start or debug button?

21 Nov 16:11:49 WARN [webapp.WebAppContext] - Failed startup of context o.e.j.w.WebAppContext@anonymised.com{/geoserver,file:/C:/Users/username/source/geoserver/src/web/app/src/main/webapp/,null}{src/main/webapp}
java.io.IOException: Server returned HTTP response code: 403 for URL: http://www.oracle.com/webfolder/technetwork/jsc/dtd/web-app_2_3.dtd
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1894)

Hi,
that’s a strange error, I never saw it, looks like the IDE is not able to access:
http://www.oracle.com/webfolder/technetwork/jsc/dtd/web-app_2_3.dtd

If you try to access the URL above whit your browser does it works ? It should.
Are you behind a proxy ?

You configuration looks good, although you don’t need the -DskipTests option, I’m sharing with you my default configuration for GeoServer:

Hope it helps,

Nuno Oliveira

On Wed, 2018-11-21 at 16:33 -0800, Thomas wrote:

I’m trying to run geoserver from within Intellij to help with debugging. I’m following the instructions listed here https://docs.geoserver.org/latest/en/developer/quickstart/intellij.html
My devel machine is a windows 10 machine.

With the configuration including
++++++++++++++++++++++++++

Main class: org.geoserver.web.Start
VM options: -DskipTests
Working directory: C:\Users\userName\source\geoserver\src\web\app
Use classpath of module: gs-web-app
JRE: Default(1.8)

When running this configuration. I get the below error. Is there something else I should be doing to get it to run from the IDEA start or debug button?

21 Nov 16:11:49 WARN [webapp.WebAppContext] - Failed startup of context o.e.j.w.WebAppContext@anonymised.com2…{/geoserver,file:/C:/Users/username/source/geoserver/src/web/app/src/main/webapp/,null}{src/main/webapp}
java.io.IOException: Server returned HTTP response code: 403 for URL:http://www.oracle.com/webfolder/technetwork/jsc/dtd/web-app_2_3.dtd
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1894)

_______________________________________________
Geoserver-devel mailing list
[Geoserver-devel@anonymised.comsts.sourceforge.net](mailto:Geoserver-devel@lists.sourceforge.net)
[https://lists.sourceforge.net/lists/listinfo/geoserver-devel](https://lists.sourceforge.net/lists/listinfo/geoserver-devel)

-- 
Regards,
Nuno Oliveira
==
GeoServer Professional Services from the
experts! 
Visit http://goo.gl/it488V for more information.
==

Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

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.

I essentially have everything the same except for the jetty port and I use the default data dir. When you say I don’t need the -DskipTests, is that because it is only used while building?

~Thomas

On Tue, Nov 27, 2018 at 2:27 AM Nuno Oliveira <nuno.oliveira@anonymised.com> wrote:

Hi,
that’s a strange error, I never saw it, looks like the IDE is not able to access:
http://www.oracle.com/webfolder/technetwork/jsc/dtd/web-app_2_3.dtd

If you try to access the URL above whit your browser does it works ? It should.
Are you behind a proxy ?

You configuration looks good, although you don’t need the -DskipTests option, I’m sharing with you my default configuration for GeoServer:

Hope it helps,

Nuno Oliveira

On Wed, 2018-11-21 at 16:33 -0800, Thomas wrote:

I’m trying to run geoserver from within Intellij to help with debugging. I’m following the instructions listed here https://docs.geoserver.org/latest/en/developer/quickstart/intellij.html
My devel machine is a windows 10 machine.

With the configuration including
++++++++++++++++++++++++++

Main class: org.geoserver.web.Start
VM options: -DskipTests
Working directory: C:\Users\userName\source\geoserver\src\web\app
Use classpath of module: gs-web-app
JRE: Default(1.8)

When running this configuration. I get the below error. Is there something else I should be doing to get it to run from the IDEA start or debug button?

21 Nov 16:11:49 WARN [webapp.WebAppContext] - Failed startup of context o.e.j.w.WebAppContext@anonymised.com.5302…{/geoserver,file:/C:/Users/username/source/geoserver/src/web/app/src/main/webapp/,null}{src/main/webapp}
java.io.IOException: Server returned HTTP response code: 403 for URL:http://www.oracle.com/webfolder/technetwork/jsc/dtd/web-app_2_3.dtd
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1894)

_______________________________________________
Geoserver-devel mailing list
[Geoserver-devel@lists.sourceforge.net](mailto:Geoserver-devel@lists.sourceforge.net)
[https://lists.sourceforge.net/lists/listinfo/geoserver-devel](https://lists.sourceforge.net/lists/listinfo/geoserver-devel)

-- 
Regards,
Nuno Oliveira
==
GeoServer Professional Services from the
experts! 
Visit [http://goo.gl/it488V](http://goo.gl/it488V) for more information.
==

Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

[http://www.geo-solutions.it](http://www.geo-solutions.it)
[http://twitter.com/geosolutions_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.
(attachments)

unknown-Z21YSZ.png

When you say I don’t need the -DskipTests, is that because it is only used while building?

Yes, this is an option that is only relevant to Maven.

Well in that case I can only suggest you try to understand why your IDE is not able to access:

http://www.oracle.com/webfolder/technetwork/jsc/dtd/web-app_2_3.dtd

···

Regards,
Nuno Oliveira

GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.

Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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.

I have gotten everything working by cleaning everything and then the errors changed. I have also solved those issues.

Thanks,
Thomas

On Tue, Nov 27, 2018 at 10:16 AM Nuno Oliveira GeoSolutions <nuno.oliveira@anonymised.com> wrote:

When you say I don’t need the -DskipTests, is that because it is only used while building?

Yes, this is an option that is only relevant to Maven.

Well in that case I can only suggest you try to understand why your IDE is not able to access:

http://www.oracle.com/webfolder/technetwork/jsc/dtd/web-app_2_3.dtd

On Tue, Nov 27, 2018 at 4:11 PM Thomas <tlann@anonymised.com> wrote:

I essentially have everything the same except for the jetty port and I use the default data dir. When you say I don’t need the -DskipTests, is that because it is only used while building?

~Thomas

On Tue, Nov 27, 2018 at 2:27 AM Nuno Oliveira <nuno.oliveira@anonymised.com> wrote:

Hi,
that’s a strange error, I never saw it, looks like the IDE is not able to access:
http://www.oracle.com/webfolder/technetwork/jsc/dtd/web-app_2_3.dtd

If you try to access the URL above whit your browser does it works ? It should.
Are you behind a proxy ?

You configuration looks good, although you don’t need the -DskipTests option, I’m sharing with you my default configuration for GeoServer:

Hope it helps,

Nuno Oliveira

On Wed, 2018-11-21 at 16:33 -0800, Thomas wrote:

I’m trying to run geoserver from within Intellij to help with debugging. I’m following the instructions listed here https://docs.geoserver.org/latest/en/developer/quickstart/intellij.html
My devel machine is a windows 10 machine.

With the configuration including
++++++++++++++++++++++++++

Main class: org.geoserver.web.Start
VM options: -DskipTests
Working directory: C:\Users\userName\source\geoserver\src\web\app
Use classpath of module: gs-web-app
JRE: Default(1.8)

When running this configuration. I get the below error. Is there something else I should be doing to get it to run from the IDEA start or debug button?

21 Nov 16:11:49 WARN [webapp.WebAppContext] - Failed startup of context o.e.j.w.WebAppContext@anonymised.com{/geoserver,file:/C:/Users/username/source/geoserver/src/web/app/src/main/webapp/,null}{src/main/webapp}
java.io.IOException: Server returned HTTP response code: 403 for URL:http://www.oracle.com/webfolder/technetwork/jsc/dtd/web-app_2_3.dtd
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1894)

_______________________________________________
Geoserver-devel mailing list
[Geoserver-devel@lists.sourceforge.net](mailto:Geoserver-devel@lists.sourceforge.net)
[https://lists.sourceforge.net/lists/listinfo/geoserver-devel](https://lists.sourceforge.net/lists/listinfo/geoserver-devel)

-- 
Regards,
Nuno Oliveira
==
GeoServer Professional Services from the
experts! 
Visit [http://goo.gl/it488V](http://goo.gl/it488V) for more information.
==

Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

[http://www.geo-solutions.it](http://www.geo-solutions.it)
[http://twitter.com/geosolutions_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.

Regards,
Nuno Oliveira

GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.

Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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.

Glad to hear it!

···

Regards,
Nuno Oliveira

GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.

Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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.