You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sis.apache.org by "Martin Desruisseaux (Jira)" <ji...@apache.org> on 2026/04/29 09:03:00 UTC

[jira] [Updated] (SIS-630) NoClassDefFoundError: org/apache/derby/iapi/jdbc/EmbeddedDataSourceInterface when using sis-embedded-data

     [ https://issues.apache.org/jira/browse/SIS-630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Desruisseaux updated SIS-630:
------------------------------------
    Fix Version/s: 1.7

> NoClassDefFoundError: org/apache/derby/iapi/jdbc/EmbeddedDataSourceInterface when using sis-embedded-data
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: SIS-630
>                 URL: https://issues.apache.org/jira/browse/SIS-630
>             Project: Spatial Information Systems
>          Issue Type: Bug
>    Affects Versions: 1.6
>            Reporter: Corey Puffalt
>            Assignee: Martin Desruisseaux
>            Priority: Minor
>             Fix For: 1.7
>
>
> After upgrading from SiS 1.4 to 1.6, the first call into the embedded EPSG database fails with:
>  
> {code:java}
>   java.lang.NoClassDefFoundError: org/apache/derby/iapi/jdbc/EmbeddedDataSourceInterface
>     at org.apache.sis.resources.embedded.EmbeddedResources.getResource(EmbeddedResources.java:146)
>     at org.apache.sis.resources.embedded.EmbeddedResources.getResource(EmbeddedResources.java:44)
>     at org.apache.sis.metadata.sql.internal.shared.Initializer.embedded(Initializer.java:392)
>     at org.apache.sis.metadata.sql.internal.shared.Initializer.getDataSource(Initializer.java:337)
>     at org.apache.sis.referencing.factory.sql.EPSGFactory.<init>(EPSGFactory.java:282)
>     at org.apache.sis.referencing.AuthorityFactories.getEPSG(AuthorityFactories.java:172)
>     ...
>     at org.apache.sis.referencing.CRS.forCode(CRS.java:296)
>   Caused by: java.lang.ClassNotFoundException: org.apache.derby.iapi.jdbc.EmbeddedDataSourceInterface
> {code}
> Comparing the POM files:
>   - sis-embedded-data:1.4 declared two Derby dependencies: org.apache.derby:derby:10.15.2.0 and org.apache.derby:derbytools:10.15.2.0.
>   - sis-embedded-data:1.6 declares only org.apache.derby:derbytools:10.15.2.0.
> Our workaround was to add org.apache.derby:derby:10.15.2.0 as an explicit dependency to our project but this looks like a bug to us?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)