Skip to content

[BUG] Unable to connect to OxygenXML #209

Description

@marmoure

When trying to add Elemental as a data source in OxygenXML it will throw this error

Check datasource configuration. Could not instantiate: ro.sync.db.nxd.exist.ExistSession due to: 

java.lang.NoClassDefFoundError: xyz/elemental/mediatype/MediaType

steps to reproduce

  1. From a clean instance of Elemental 7.x.x and fresh install of OxygenXML eg 28.1
  2. Add Elemental as data source and apply it.
  3. In the Data Source Explorer you will see the error show up when you try to navigate in the DB.
Image

Expected behavior

OxygenXML should connect and Browse Database

Activity

  1. changed the title [-][BUG] Unable to connect to OxygenXML `java.lang.NoClassDefFoundError: xyz/elemental/mediatype/MediaType`[/-] [+][BUG] Unable to connect to OxygenXML[/+] on May 19, 2026
  2. adamretter commented on Jun 2, 2026

    @adamretter
    Member

    After #215 there is still an issue whereby oXygen is trying to use the XML:DB API v1 which is also the version used in Elemental 6.x.x, but with Elemental 7.x.x we require the XML:DB API v2.

    The XML:DB jar is deployed to oXygen by Elemental when the database connection is first established, but it looks like oXygen was coded against the XML:DB v1 API, which is why we now get this stacktrace in oXygen when connecting to Elemental 7.x.x:

    java.lang.NoSuchMethodError: 'org.xmldb.api.base.Service org.xmldb.api.base.Collection.getService(java.lang.String, java.lang.String)'
    java.lang.NoSuchMethodError: 'org.xmldb.api.base.Service org.xmldb.api.base.Collection.getService(java.lang.String, java.lang.String)'
    	at ro.sync.db.nxd.exist.k.yi(Unknown Source)
    	at ro.sync.exml.editor.x.db$36.b(Unknown Source)
    	at ro.sync.db.nxd.b.zj(Unknown Source)
    

    CC @raducoravu

  3. raducoravu commented on Jun 19, 2026

    @raducoravu

    FYI I made changes in the Oxygen Exist connector for the upcoming (Autumn) 29 version to take into account the Collection.getService API change (and also be backwards compatible).
    I also made changes to support the fact that mimeType.getXMLDBType now returns Object instead of String
    And existResource.getLastModificationTime now seems to return Instance instead of Date.

    I also had to manually add the libraries fastutil-8.5.18.jar and jline-3.30.6.jar to the set of libraries downloaded automatically by Oxygen's Exist connector by looking in the eXist.jnlp.

    I did not find any other problems testing various Oxygen Exist actions (open, copy, rename, move) but there may be.

    In Oxygen 29 we plan to mark the eXist connector in Oxygen as deprecated, not signaling that we plan to remove it but that we do not actively work on it and that third parties can also come up with a plugin for Oxygen to Exist connection.

  4. self-assigned this
    on Jul 17, 2026
  5. added this to the elemental-7.7.1 milestone on Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions