0 Replies Latest reply on Mar 31, 2016 5:13 PM by Veselin Perovic

    Should module org.jboss.as.controller-client depend on module javax.api by default?

    Veselin Perovic Newbie

      Hello,

       

      I was trying to create JDBC DS programmaticaly by following instructions from this link Using JBoss AS 7 management API programmatically.

       

      After executing same code as in the post exception is thrown

       

      ...
      Caused by: java.lang.NoClassDefFoundError: javax/security/auth/callback/CallbackHandler
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.privateGetPublicMethods(Class.java:2902)
        at java.lang.Class.getMethods(Class.java:1615)
        at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1336)
      Caused by: java.lang.ClassNotFoundException: javax.security.auth.callback.CallbackHandler from [Module "org.jboss.as.controller-client:main" from local module loader @707f7052 (finder: local module finder @11028347 (roots: /data/wildfly-9.0.1.Final/modules,/data/wildfly-9.0.1.Final/modules/system/layers/base))]
        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)
        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)
        ... 178 more
      

       

      Because of behavior like this I modified module.xml from path /modules/system/layers/base/org/jboss/as/controller-client/main/module.xml by adding dependency from javax.api module.

      After that JDBC DS was created successfully...

       

      Should module org.jboss.as.controller-client depend on module javax.api by default?

       

      Kind regards

       

      Vesko