Hello Kerstin,
I had a look at it and the test failures can be ignored. They are faults
in the tests rather than in the module itself.
I have some time now and I am going to make an upgrade today or soon to
add the proper packaging configuration and fix the tests (and add some
new features/bug fixes). Of course, this will only be on master and will
take a while to perpetuate in the next stable release.
Regards
Niels
On 19/01/2020 09:31, Andrea Aime wrote:
On Sat, Jan 18, 2020 at 10:09 PM <[email protected]
<mailto:[email protected]>> wrote:
Hi Niels,
I tried to build the metadata community extension myself since
there is no zip-file available as described here:
https://docs.geoserver.org/latest/en/user/community/metadata/configuration.html#installation
Community modules, if present, are found only in nightly builds:
https://build.geoserver.org/geoserver/master/community-latest/
But, in the case of the metadata module, it's not even there, the
packaging directives are missing. It is not
a requirement to have it for a community module mind, but the docs are
misleading.
I used OpenJDK11 and skipped the tests during maven build.
Afterwards I tried to run it on Tomcat 8.5. As soon as I copy
the gs-metadata-2.17-SNAPSHOT.jar in the geoserver\WEB-INF\lib
folder and restart geoserver, geoserver is not starting again
while logging a bunch of errors.
So I activated the tests while compiling the metadata extension in
case there is an error already while compiling:
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running
org.geoserver.metadata.data.model.ComplexMetaDataMapTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time
elapsed: 0.283 s - in
org.geoserver.metadata.data.model.ComplexMetaDataMapTest
[INFO] Running
org.geoserver.metadata.data.service.ComplexMetadataServiceTest
Jän. 18, 2020 9:28:20 NACHM.
org.geoserver.metadata.data.service.impl.ConfigurationServiceImpl
readConfiguration
SEVERE: Cannot construct instance of
`org.geoserver.metadata.data.dto.impl.MetadataConfigurationImpl`
(although at least one Creator exists): no String-argument
constructor/factory method to deserialize from String value
('klopt-niets-van')
at [Source:
(org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource$1);
line: 1, column: 1]
com.fasterxml.jackson.databind.exc.MismatchedInputException:
Cannot construct instance of
`org.geoserver.metadata.data.dto.impl.MetadataConfigurationImpl`
(although at least one Creator exists): no String-argument
constructor/factory method to deserialize from String value
('klopt-niets-van')
Any suggestions how I could proceed?
I never used this module personally, but while we wait for Niels to
pick this up:
* Failing tests do not necessarily mean the module won't work at
runtime, community modules don't have their test suite run during
builds, only supported modules do
* In order to work in the war a module does not need just its
generated jars, but also dependencies. See
https://github.com/geoserver/geoserver/blob/master/src/community/metadata/pom.xml
it
depends on more jars, that you might need to add. Looking at that
class, you're probably missing jackson-core and
jackson-annotations (not directly in the pom, it's a transitive
dependency). You might want to collect them using mvn
dependency:collect and see what's missing from the war
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel