2 Replies Latest reply on Feb 19, 2017 9:40 AM by Matthias Reining

    How Add Module JSoup in Wildfly 10 ?

    Ehsan Shahbakhti Newbie

      I need add jsoup Module but not work for me?

      1- I make folder like this wildfly-10.1.0.CR1\modules\org\jsoup\main

      2- and copy jsoup-1.9.2.jar to folder

      3-and make file modules like this :

      <?xml version="1.0"?>
      -<module name="org.jsoup" xmlns="urn:jboss:module:1.1">
      -<resources><resource-root path="jsoup-1.9.2.jar"/></resources>-
      <module name="javax.api"/>
      <module name="javax.transaction.api"/></dependencies></module>

      4- and add line in file META-INF/MANIFEST.MF file a Dependency [modulename]

      Manifest-Version: 1.0

      Dependency: org.jsoup


      but when i run  client code to invoke ejb server :i got this error :


      Caused by: java.lang.ClassNotFoundException: org.jsoup.Jsoup from [Module "deployment.EJB-Server.jar:main" from Service Module Loader]   at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)   at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)   at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)   at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)   ... 78 more