-
1. Re: Jboss 7 trying to read the wrong module
rodrigo_gomes Mar 2, 2012 2:56 PM (in response to rodrigo_gomes)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();
Best Regards,
Rodrigo Gomes
-
2. Re: Jboss 7 trying to read the wrong module
guinotphil Mar 8, 2012 4:23 AM (in response to rodrigo_gomes)In
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.