Opened 5 years ago

Closed 5 years ago

Last modified 4 years 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:


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)
Build-Date:2019-06-02 22:10:24

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/,java.desktop, --add-exports=java.base/,java.desktop, --add-exports=java.base/,java.desktop, --add-exports=java.base/,java.desktop, --add-exports=java.base/,java.desktop, --add-exports=java.base/,java.desktop, --add-exports=java.base/,java.desktop, --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/,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.location=/usr/lib/icedtea-web/bin/javaws]

+ 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 5 years ago.
josm_sd2.png (19.9 KB ) - added by anonymous 5 years ago.

Download all attachments as: .zip

Change History (6)

by anonymous, 5 years ago

Attachment: josm_sd1.png added

by anonymous, 5 years ago

Attachment: josm_sd2.png added

comment:1 by Don-vip, 5 years ago

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

comment:2 by Don-vip, 5 years ago

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 by Don-vip, 5 years ago

Resolution: fixed
Status: newclosed

In 15167/josm:

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

comment:4 by Don-vip, 4 years ago

Problem still here with IcedTea-Web: #18737 =>

Last edited 4 years ago by Don-vip (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.