I get the following exception when running with bt-dht inside JBoss modules:
Exception in thread "main" java.lang.IllegalAccessError: class bt.protocol.handler.PortMessageHandler cannot access its superclass bt.protocol.handler.UniqueMessageHandler
Although these classes are both in the same java package, they belong to different modules. Making UniqueMessageHandler public would solve this problem.
I guess that the same issue can be triggered using OSGI or Jigsaw.