[geotk] migration to java 11
juergen sorg
j.sorg at fz-juelich.de
Tue Mar 2 16:09:47 PST 2021
hi martin,
where is the maven repo for this dependency?:
> <dependency>
> <groupId>org.geotoolkit</groupId>
> <artifactId>geotk-client-csw</artifactId>
> <version>5.0-SNAPSHOT</version>
> </dependency>
i tried it with
<dependency>
<groupId>org.geotoolkit</groupId>
<artifactId>geotk-client-csw</artifactId>
<version>5.0.0-MC0082</version>
</dependency>
and was able to compile and deploy my app successfully. but at runtime i
got exception [0] when instantiating CatalogServicesClient. i changed
CatalogServicesServer to CatalogServicesClient, because
CatalogServicesServer does not exist any more.
because of compilation errors i added dependencies [1] and removed [2]
because it does not exists. additionally, i replaced the 2 geotk
dependencies with apache sis [3]
regards,
juergen
[0]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
org.geotoolkit.csw.CSWProvider
at
org.geotoolkit.csw.CatalogServicesClient.<init>(CatalogServicesClient.java:71)
at
org.fzj.ibg.catalog.server.utils.cache.KeywordCache.loadKeywords(KeywordCache.java:111)
[1]
<dependency>
<groupId>org.geotoolkit</groupId>
<artifactId>geotk-xml-wms</artifactId>
<version>5.0.0-MC0082</version>
</dependency>
<dependency>
<groupId>org.geotoolkit</groupId>
<artifactId>geotk-xml-gml</artifactId>
<version>5.0.0-MC0082</version>
</dependency>
[2]
<dependency>
<groupId>org.geotoolkit</groupId>
<artifactId>geotk-xml-base</artifactId>
<version>${geotk.version}</version>
</dependency>
[3]
<dependency>
<groupId>org.apache.sis.core</groupId>
<artifactId>sis-utility</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>org.apache.sis.core</groupId>
<artifactId>sis-metadata</artifactId>
<version>1.0</version>
</dependency>
On 02/03/2021 22:26, Martin Desruisseaux wrote:
> Hello Juergen
>
> Le 01/03/2021 à 12:48, juergen sorg a écrit :
>
>> thanks for your reply
>>
>> yes, we also use the Geotk CSW module.
>>
>> it would be nice if you could provide us with more details on this
>> migration procedure
>>
> If you were using only the metadata part, I would have suggested to use
> the formal Apache SIS 1.0 release. But for the CSW part, we are in an
> uncomfortable situation where we have snapshots deployed every night,
> but no formal release. This is because we are focusing all our
> deployment effort on Apache SIS, and Geotk (which still contain CSW)
> became a temporary place for modules not yet migrated to SIS. If you
> don't mind, I suggest to try snapshot for starting. If it works, we can
> try to create a milestone, but it would not be a formal release.
>
> <dependency>
> <groupId>org.geotoolkit</groupId>
> <artifactId>geotk-client-csw</artifactId>
> <version>5.0-SNAPSHOT</version>
> </dependency>
>
> For the metadata part, it should be sufficient to replace the following
> package names:
>
> org.geotoolkit.metadata
>
> by:
>
> org.apache.sis.metadata
>
> Same for org.geotoolkit.referencing, which is replaced by
> org.apache.sis.referencing. Most classes in those packages are about the
> same.
>
> For the CSW, I have been told that this module got a lot of changes (it
> is maintained by another developer). I suggest that you report the
> compiler errors, so we can tell the replacements.
>
> Sorry for the inconvenience,
>
> Martin
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5335 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.osgeo.org/pipermail/geotoolkit/attachments/20210303/e4f2943b/attachment.bin>
More information about the Geotoolkit
mailing list