[Geoserver-devel] Compiling the Hello Plugin

Hi,

I have problems to compile the "Hello World" plugin. I tried to follow
the steps mentioned in
http://docs.codehaus.org/display/GEOSDOC/3+A+Simple+PlugIn
But I think that this tutorial is a little bit outdated.

I am using the binary release of Geoserver 1.5.1-RC1 and maven-2.0.6 on
Ubuntu Feisty. I was not able to compile the source release of Geoserver
1.5.1-RC1. I also could not build various svn checkouts due to geotools
incompatibilities.

Is it necessary to build Geoserver in order to develop a plugin or will
a binary release also be ok?

I want to develop a cool plugin so please help.

best regards
--
NOVOtec Engineering GmbH
Dipl.-Inf. (FH) Thomas Gfüllner
Wasserburger Straße 4
84427 St. Wolfgang
GERMANY

fon: +49 (8085) 93010
fax: +49 (8085) 930111
e-mail: thomas.gfuellner@anonymised.com

Sitz der Gesellschaft / registered office: St. Wolfgang
Handelsregister / commercial register: Amtsgericht München: Nr. HRB
96774
Geschäftsführer / managing directors: Karl Seidl, Wolfgang Meyer

VISIT OUR HOMEPAGE: www.novotec.de

Die in dieser Nachricht enthaltenen Informationen sind nur für den
angegebenen Adressaten bestimmt. Bitte benachrichtigen sie den Absender,
falls sie nicht der vorgesehene Empfänger oder dessen Vertreter sein
sollten, und löschen Sie diese Nachricht umgehend aus Ihrem System.

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

Thomas Gfüllner ha scritto:

Hi,

I have problems to compile the "Hello World" plugin. I tried to follow
the steps mentioned in
http://docs.codehaus.org/display/GEOSDOC/3+A+Simple+PlugIn
But I think that this tutorial is a little bit outdated.

I am using the binary release of Geoserver 1.5.1-RC1 and maven-2.0.6 on
Ubuntu Feisty. I was not able to compile the source release of Geoserver
1.5.1-RC1. I also could not build various svn checkouts due to geotools
incompatibilities.

Is it necessary to build Geoserver in order to develop a plugin or will
a binary release also be ok?

I want to develop a cool plugin so please help.

Besides the possible tutorial issues, in order to use a non final
release of Geoserver you'll have to compile geotools 2.3.x as well.
So, I suggest you checkout gt2 2.3.x too, and using maven, build
it.

I'm not sure you can do the plugin with the binary only version,
since the tutorial has been written with all the sources and the
build environment ready for both geoserver and geotools, but
if you manage, let us know. The same goes if you have suggestions
of improvements for the tutorials, we would accept them gladly.

I'd suggest you log on the GeoServer channel on freenode, we
hang out there and we can help you while you try follow the tutorial.

Cheers
Andrea

Andrea Aime schrieb:

Thomas Gfüllner ha scritto:

Hi,

I have problems to compile the "Hello World" plugin. I tried to follow
the steps mentioned in
http://docs.codehaus.org/display/GEOSDOC/3+A+Simple+PlugIn
But I think that this tutorial is a little bit outdated.

I am using the binary release of Geoserver 1.5.1-RC1 and maven-2.0.6 on
Ubuntu Feisty. I was not able to compile the source release of Geoserver
1.5.1-RC1. I also could not build various svn checkouts due to geotools
incompatibilities.

Is it necessary to build Geoserver in order to develop a plugin or will
a binary release also be ok?

I want to develop a cool plugin so please help.

Besides the possible tutorial issues, in order to use a non final
release of Geoserver you'll have to compile geotools 2.3.x as well.
So, I suggest you checkout gt2 2.3.x too, and using maven, build
it.

Hi.

(Andrea, thank You for Your quick answer.)

I checked out gt2 2.3.x with
"svn co http://svn.geotools.org/geotools/branches/2.3.x"
insalled jai1.1_1_3 but "mvn install" brought following error:

[INFO] Surefire report directory:
/home/tom/SVN/GeoServer/gt2-2.3.x/2.3.x/module/referencing/target/surefire-reports
org.apache.maven.surefire.booter.SurefireExecutionException:
org.geotools.referencing.operation.transform.WarpTransformTest; nested
exception is java.lang.NoClassDefFoundError:
javax/media/jai/WarpPolynomial; nested exception is
org.apache.maven.surefire.testset.TestSetFailedException:
org.geotools.referencing.operation.transform.WarpTransformTest; nested
exception is java.lang.NoClassDefFoundError: javax/media/jai/WarpPolynomial
org.apache.maven.surefire.testset.TestSetFailedException:
org.geotools.referencing.operation.transform.WarpTransformTest; nested
exception is java.lang.NoClassDefFoundError: javax/media/jai/WarpPolynomial
java.lang.NoClassDefFoundError: javax/media/jai/WarpPolynomial
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
        at java.lang.Class.getDeclaredMethods(Class.java:1791)
...

Do I have to install the nightly build of jai ?

br
--
NOVOtec Engineering GmbH
Dipl.-Inf. (FH) Thomas Gfüllner
Wasserburger Straße 4
84427 St. Wolfgang
GERMANY

fon: +49 (8085) 93010
fax: +49 (8085) 930111
e-mail: thomas.gfuellner@anonymised.com

Sitz der Gesellschaft / registered office: St. Wolfgang
Handelsregister / commercial register: Amtsgericht München: Nr. HRB
96774
Geschäftsführer / managing directors: Karl Seidl, Wolfgang Meyer

VISIT OUR HOMEPAGE: www.novotec.de

Die in dieser Nachricht enthaltenen Informationen sind nur für den
angegebenen Adressaten bestimmt. Bitte benachrichtigen sie den Absender,
falls sie nicht der vorgesehene Empfänger oder dessen Vertreter sein
sollten, und löschen Sie diese Nachricht umgehend aus Ihrem System.

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

Thomas Gfüllner ha scritto:

Andrea Aime schrieb:

Thomas Gfüllner ha scritto:

Hi,

I have problems to compile the "Hello World" plugin. I tried to follow
the steps mentioned in
http://docs.codehaus.org/display/GEOSDOC/3+A+Simple+PlugIn
But I think that this tutorial is a little bit outdated.

I am using the binary release of Geoserver 1.5.1-RC1 and maven-2.0.6 on
Ubuntu Feisty. I was not able to compile the source release of Geoserver
1.5.1-RC1. I also could not build various svn checkouts due to geotools
incompatibilities.

Is it necessary to build Geoserver in order to develop a plugin or will
a binary release also be ok?

I want to develop a cool plugin so please help.

Besides the possible tutorial issues, in order to use a non final
release of Geoserver you'll have to compile geotools 2.3.x as well.
So, I suggest you checkout gt2 2.3.x too, and using maven, build
it.

Hi.

(Andrea, thank You for Your quick answer.)

I checked out gt2 2.3.x with
"svn co http://svn.geotools.org/geotools/branches/2.3.x"
insalled jai1.1_1_3 but "mvn install" brought following error:

[INFO] Surefire report directory:
/home/tom/SVN/GeoServer/gt2-2.3.x/2.3.x/module/referencing/target/surefire-reports
org.apache.maven.surefire.booter.SurefireExecutionException:
org.geotools.referencing.operation.transform.WarpTransformTest; nested
exception is java.lang.NoClassDefFoundError:
javax/media/jai/WarpPolynomial; nested exception is
org.apache.maven.surefire.testset.TestSetFailedException:
org.geotools.referencing.operation.transform.WarpTransformTest; nested
exception is java.lang.NoClassDefFoundError: javax/media/jai/WarpPolynomial
org.apache.maven.surefire.testset.TestSetFailedException:
org.geotools.referencing.operation.transform.WarpTransformTest; nested
exception is java.lang.NoClassDefFoundError: javax/media/jai/WarpPolynomial
java.lang.NoClassDefFoundError: javax/media/jai/WarpPolynomial
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
        at java.lang.Class.getDeclaredMethods(Class.java:1791)
...

Do I have to install the nightly build of jai ?

Nope, make sure you install jai both in the jdk and in the jre thought.
Cheers
Andrea