[Geoserver-devel] Building and loading WPS extension

I am trying to create a new WPS process, so I have downloaded Geoserver from master branch and then I have compiled it using:

mvn -DskipTests -Pwps clean install

Then I have executed Geoserver using jetty from Maven, but the WPS extension doesn’t seem to be loaded (WPS is not listed on the Service Capabilities as it is stated on the manual 1).

Do I need to do something else in order to enable the extension?

Thanks in advance,

César


César Martínez Izquierdo
GIS developer


Blog: http://geotechnotes.wordpress.com/
ETC-SIA: http://sia.eionet.europa.eu/
Universitat Autònoma de Barcelona (SPAIN)


Sorry, I forgot 2 details that might be useful:

  • I am using Java 1.6 32 bits (on a 64 bits machine)

  • The following message appears on log: “15-abr-2014 16:11:29 org.geoserver.platform.GeoServerExtensions checkContext
    ADVERTENCIA: Extension lookup occured, but ApplicationContext is unset.”

Thanks,

César

···

2014-04-15 16:05 GMT+02:00 César Martínez Izquierdo <cesar.izq@anonymised.com>:

I am trying to create a new WPS process, so I have downloaded Geoserver from master branch and then I have compiled it using:

mvn -DskipTests -Pwps clean install

Then I have executed Geoserver using jetty from Maven, but the WPS extension doesn’t seem to be loaded (WPS is not listed on the Service Capabilities as it is stated on the manual 1).

Do I need to do something else in order to enable the extension?

Thanks in advance,

César


César Martínez Izquierdo
GIS developer


Blog: http://geotechnotes.wordpress.com/
ETC-SIA: http://sia.eionet.europa.eu/
Universitat Autònoma de Barcelona (SPAIN)



César Martínez Izquierdo
GIS developer


Blog: http://geotechnotes.wordpress.com/
ETC-SIA: http://sia.eionet.europa.eu/
Universitat Autònoma de Barcelona (SPAIN)


On Tue, Apr 15, 2014 at 4:05 PM, César Martínez Izquierdo <
cesar.izq@anonymised.com> wrote:

I am trying to create a new WPS process, so I have downloaded Geoserver
from master branch and then I have compiled it using:

mvn -DskipTests -Pwps clean install

Then I have executed Geoserver using jetty from Maven, but the WPS
extension doesn't seem to be loaded (WPS is not listed on the Service
Capabilities as it is stated on the manual [1]).

I don't normally run jetty from maven, but to have WPS included I believe
you have to run it like this:

mvn jetty:run -Pwps

Cheers
Andrea

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Thanks Andrea, your suggestion works correctly. I thought it was only needed for compiling. How can I provide the equivalent parameter from within Eclipse?

I am also getting a java.lang.NoClassDefFoundError: java/nio/channels/SeekableByteChannel on WMS getCapabilities when running with Sun Java 1.6. It seems to work fine with OpenJdk 1.7.

Is Java 6 already unsupported?

Best regards,

César

···

2014-04-15 16:24 GMT+02:00 Andrea Aime <andrea.aime@anonymised.com>:


César Martínez Izquierdo
GIS developer


Blog: http://geotechnotes.wordpress.com/
ETC-SIA: http://sia.eionet.europa.eu/
Universitat Autònoma de Barcelona (SPAIN)


On Tue, Apr 15, 2014 at 4:05 PM, César Martínez Izquierdo <cesar.izq@anonymised.com> wrote:

I am trying to create a new WPS process, so I have downloaded Geoserver from master branch and then I have compiled it using:

mvn -DskipTests -Pwps clean install

Then I have executed Geoserver using jetty from Maven, but the WPS extension doesn’t seem to be loaded (WPS is not listed on the Service Capabilities as it is stated on the manual [1]).

I don’t normally run jetty from maven, but to have WPS included I believe you have to run it like this:

mvn jetty:run -Pwps

Cheers
Andrea

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Tue, Apr 15, 2014 at 4:39 PM, César Martínez Izquierdo <
cesar.izq@anonymised.com> wrote:

Thanks Andrea, your suggestion works correctly. I thought it was only
needed for compiling. How can I provide the equivalent parameter from
within Eclipse?

mvn eclipse:eclipse -Pwps

I am also getting a java.lang.NoClassDefFoundError:
java/nio/channels/SeekableByteChannel on WMS getCapabilities when running
with Sun Java 1.6. It seems to work fine with OpenJdk 1.7.

Is Java 6 already unsupported?

It will be in a few days on the development series (master branch). Not
sure why you're getting that error though

Cheers
Andrea

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

I couldn't help notice this:

I am also getting a java.lang.NoClassDefFoundError:
java/nio/channels/SeekableByteChannel on WMS getCapabilities when running
with Sun Java 1.6. It seems to work fine with OpenJdk 1.7.

Is Java 6 already unsupported?

This is an issue that appears when compiling with java7 but using java6
source/target - while the class files are java6 compatible, the runtime
required is not. This has happened with previous versions of java, but I
can't recall the specific versions or classes involved.

Long story short, if you want to run on java6, compile w/ java6.

Thanks Ian and Andrea for your answers.
I though I was building with 1.6, so I will review my environment when I get a free time slot.

For the moment, it is running fine with OpenJdk 1.7.

Regards,

César

···

2014-04-15 17:23 GMT+02:00 Ian Schneider <ischneider@anonymised.com>:


César Martínez Izquierdo
GIS developer


Blog: http://geotechnotes.wordpress.com/
ETC-SIA: http://sia.eionet.europa.eu/
Universitat Autònoma de Barcelona (SPAIN)


I couldn’t help notice this:

This is an issue that appears when compiling with java7 but using java6 source/target - while the class files are java6 compatible, the runtime required is not. This has happened with previous versions of java, but I can’t recall the specific versions or classes involved.

Long story short, if you want to run on java6, compile w/ java6.

I am also getting a java.lang.NoClassDefFoundError: java/nio/channels/SeekableByteChannel on WMS getCapabilities when running with Sun Java 1.6. It seems to work fine with OpenJdk 1.7.

Is Java 6 already unsupported?