I'm beginning with jboss and already have a trouble.
My project has next structure:
root pom.xml - core module - ddbac module - web module - includes core.jar and ddbac.jar -ear module - includes web.war
Each module also contains a pom.xml. All dependencies are declared in the root pom.xml. When i execute `mvn clean install` inside of ear module, i'm getting ear-file, that contains web.war. This web.war contains core.jar and ddbac.jar.
After that i'm deploying this ear file into jBoss 7.1.1 - it works. But when i'm starting to test it - do some actions - i'm getting exception:
Caused by: java.lang.ClassNotFoundException: org.springframework.beans.BeansException from [Module "org.apache.cxf:main" from local module loader @5a0deddc (roots: /home/roman/jboss-as-7.1.1.Final/modules)] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) ... 99 more
So the question: how need to define dependencies correctly, that code from ddbac module could "see" libs in web.war?