Corey Puffalt created SIS-630:
---------------------------------

             Summary: 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


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)

Reply via email to