Modify

Opened 3 months ago

Closed 3 months ago

#17794 closed defect (fixed)

ClassNotFoundException: javax.sql.DataSource when loading GeoTools plugin

Reported by: christian.asker@… Owned by: team
Priority: normal Milestone: 19.06
Component: Core Version:
Keywords: template_report java11 Cc:

Description

What steps will reproduce the problem?

  1. Install Opendata plugin. This will install some dependencies, including Geotools
  2. Restart JOSM

What is the expected result?

To have the Opendata plugin (including the Geotools plugin)

What happens instead?

The plugin cannot be loaded.

Please provide any additional information below. Attach a screenshot if possible.

I have tried to remove all JOSM configuration files and started with a fresh installation. This did not help.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-06-03 00:05:30 +0200 (Mon, 03 Jun 2019)
Revision:15155
Build-Date:2019-06-02 22:10:24
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (15155 sv) Linux Ubuntu 19.04
Memory Usage: 264 MB / 2048 MB (151 MB allocated, but free)
Java version: 11.0.3+7-Ubuntu-1ubuntu219.04.1, Ubuntu, OpenJDK 64-Bit Server VM
Screen: :0.0 1920x1080
Maximum Screen Size: 1920x1080
Java package: openjdk-11-jre:amd64-11.0.3+7-1ubuntu2~19.04.1
WebStart package: icedtea-netx:amd64-1.8-0ubuntu8
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-21
VM arguments: [--add-reads=java.base=ALL-UNNAMED,java.desktop, --add-reads=java.desktop=ALL-UNNAMED,java.naming, --add-reads=java.naming=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/javax.jnlp=ALL-UNNAMED,java.desktop, --add-exports=java.base/com.sun.net.ssl.internal.ssl=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.action=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.provider=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.util=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.validator=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.x509=ALL-UNNAMED,java.desktop, --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,jdk.jsobject, --add-exports=java.naming/com.sun.jndi.toolkit.url=ALL-UNNAMED,java.desktop, -Dicedtea-web.bin.name=javaws, -Dicedtea-web.bin.location=/usr/lib/icedtea-web/bin/javaws]

Plugins:
+ Mapillary (1.5.18)
+ PicLayer (35030)
+ apache-commons (34908)
+ apache-http (34908)
+ ejml (34908)
+ geojson (124)
+ geotools
+ jaxb (35014)
+ jna (34908)
+ jts (34908)
+ log4j (34908)
+ opendata (34997)
+ print (34972)
+ utilsplugin2 (34977)

Last errors/warnings:
- W: No configuration settings found.  Using hardcoded default values for all pools.
- E: org.openstreetmap.josm.plugins.PluginException: Fel uppstod i insticksmodulen geotools. Anledning: java.lang.reflect.InvocationTargetException. Anledning: java.lang.NoClassDefFoundError: javax/sql/DataSource. Anledning: java.lang.ClassNotFoundException: javax.sql.DataSource
- W: Inaktivera insticksmodul - Kunde inte läsa in insticksmodulen 'geotools'. Skall den tas bort från inställningarna?

Attachments (2)

josm_sd1.png (139.4 KB) - added by anonymous 3 months ago.
josm_sd2.png (19.9 KB) - added by anonymous 3 months ago.

Download all attachments as: .zip

Change History (5)

Changed 3 months ago by anonymous

Attachment: josm_sd1.png added

Changed 3 months ago by anonymous

Attachment: josm_sd2.png added

comment:1 Changed 3 months ago by Don-vip

Keywords: java11 added
Summary: Cannot load Geotools pluginClassNotFoundException: javax.sql.DataSource

comment:2 Changed 3 months ago by Don-vip

Component: Plugin geotoolsCore
Milestone: 19.06
Owner: changed from Don-vip to team
Summary: ClassNotFoundException: javax.sql.DataSourceClassNotFoundException: javax.sql.DataSource when loading GeoTools plugin

comment:3 Changed 3 months ago by Don-vip

Resolution: fixed
Status: newclosed

In 15167/josm:

see #16047, fix #17794 - add java.sql module when loading JOSM with Java 11+

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.