I was reading the error message again and trying to understand what is happening, and I have another question:
Is it possible to jboss to load a module, without load its dependencies first?
Because it seems that jboss is trying to read a field from a class of the current module, that have a type com.mongodb.BDObject, but it didn't load the dependency that owns the com.mongodb.BDObject type.
- the error happend at this line (as the error suggests): https://github.com/jbossas/jboss-as/blob/master/server/src/main/java/org/jboss/as/server/deployment/reflect/ClassReflectionIndex.java
final Field declaredFields = indexedClass.getDeclaredFields();
q10.comum's module.xml have you add a dependecy to the com.mongo module ?
The error message actually means that the q10.commun's module can not see the class
com.mongodb.DBObject, so you need to add a dependency.