sco0ter / babbler

Java library for XMPP clients using JAXB
http://docs.xmpp.rocks
MIT License
6 stars 2 forks source link

Unable to use xmpp-websocket-client from Java module #159

Open sco0ter opened 4 years ago

sco0ter commented 4 years ago

Original report by Marcel Dopita (Bitbucket: brouken, GitHub: brouken).


I’m unable to use xmpp-websocket-client in a project that uses Java modules. Launching anything from that module results in following error:

Error occurred during initialization of boot layer
java.lang.module.FindException: Unable to derive module descriptor for C:\Users\Marcel Dopita\.m2\repository\rocks\xmpp\xmpp-websocket-client\0.8.1\xmpp-websocket-client-0.8.1.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: Provider class org.glassfish.tyrus.client.ClientManager not in module

I’m using Java 11. I replicated it in a simple project that has only one module and contains only this library (xmpp-websocket-client).

I’m not sure if it’s related to #114 and/or this library is supposed to run under modules.

sco0ter commented 3 years ago

Original comment by Christian Schudt (Bitbucket: sco0ter, GitHub: sco0ter).


Hi, first sorry for the late response.

This seems to be related to the Tyrus library, which is referenced by xmpp-websocket-client. I guess you need to add it to the module path.