<font size=2 face="sans-serif">Hi!</font>
<br>
<br><font size=2 face="sans-serif">I am migrating a project from JAS 6
Final to JAS 7.0.2 Final.</font>
<br>
<br><font size=2 face="sans-serif">Here is the structure of my application:</font>
<br>
<br><font size=2 face="sans-serif">EJB-MainEAR.ear</font>
<br><font size=2 face="sans-serif"> JPA-Main.jar
(JPA Project)</font>
<br><font size=2 face="sans-serif"> EJB-MainClient.jar
(EJB Interfaces Project)</font>
<br><font size=2 face="sans-serif"> EJB-Main.jar
(EJB Session Beans Project)</font>
<br><font size=2 face="sans-serif"> GWT-Main.war
(Web Project)</font>
<br>
<br><font size=2 face="sans-serif">I read the article </font><a href="https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7"><font size=3 color=blue><u>https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7</u></font></a><font size=3>
</font><font size=2 face="sans-serif">and i am aware of the property </font><font size=2 color=#2f2f2f face="Arial">ear-subdeployments-isolated</font><font size=3>.</font>
<br>
<br><font size=3>I tried to add this property to the file C:\jboss7\standalone\configuration\standalone.xml
setting it to FALSE.</font>
<br><font size=2 face="Courier New"><subsystem xmlns="urn:jboss:domain:ee:1.0"></font>
<br><font size=2 face="Courier New"> <ear-subdeployments-isolated>false</ear-subdeployments-isolated></font>
<br><font size=2 face="Courier New"></subsystem></font>
<br>
<br><font size=3>But i get this error message whe starting JBoss. </font>
<br><font size=3>"SistemaSession" is the EJB interface inside
</font><font size=2 face="sans-serif">EJB-MainClient.jar</font><font size=3>.</font>
<br>
<br><font size=2 face="Courier New">10:39:03,356 WARN [org.jboss.modules]
(MSC service thread 1-4) Failed to define class com.framework.business.ejb.session.SistemaSessionBean
in Module "deployment.EJB-MainEAR.ear.EJB-Main.jar:main" from
Service Module Loader: java.lang.LinkageError: Failed to link com/framework/business/ejb/session/SistemaSessionBean
(Module "deployment.EJB-MainEAR.ear.EJB-Main.jar:main" from Service
Module Loader)</font>
<br><font size=2 face="Courier New"> at
org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:401)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New"> at
org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New"> at
org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New"> at
org.jboss.modules.Module.loadModuleClass(Module.java:590) [jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New"> at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New"> at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New"> at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New"> at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New"> at
org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.getEjbClass(BusinessViewAnnotationProcessor.java:201)</font>
<br><font size=2 face="Courier New"> at
org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.deploy(BusinessViewAnnotationProcessor.java:83)</font>
<br><font size=2 face="Courier New"> at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
[jboss-as-server-7.0.2.Final.jar:7.0.2.Final]</font>
<br><font size=2 face="Courier New"> at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
[jboss-msc-1.0.1.GA.jar:1.0.1.GA]</font>
<br><font size=2 face="Courier New"> at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
[jboss-msc-1.0.1.GA.jar:1.0.1.GA]</font>
<br><font size=2 face="Courier New"> at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[:1.7.0_01]</font>
<br><font size=2 face="Courier New"> at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[:1.7.0_01]</font>
<br><font size=2 face="Courier New"> at
java.lang.Thread.run(Thread.java:722) [:1.7.0_01]</font>
<br><font size=2 color=red face="Courier New">Caused by: java.lang.NoClassDefFoundError:
com/framework/business/client/intf/SistemaSession</font>
<br><font size=2 face="Courier New"> at
java.lang.ClassLoader.defineClass1(Native Method) [:1.7.0_01]</font>
<br><font size=2 face="Courier New"> at
java.lang.ClassLoader.defineClass(ClassLoader.java:791) [:1.7.0_01]</font>
<br><font size=2 face="Courier New"> at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[:1.7.0_01]</font>
<br><font size=2 face="Courier New"> at
org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New"> ...
15 more</font>
<br><font size=2 face="Courier New">Caused by: java.lang.ClassNotFoundException:
com.framework.business.client.intf.SistemaSession from [Module "deployment.EJB-MainEAR.ear.EJB-Main.jar:main"
from Service Module Loader]</font>
<br><font size=2 face="Courier New"> at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New"> at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New"> at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New"> at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New"> at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New"> ...
19 more</font>
<br>
<br><font size=2 face="sans-serif">Then i tried to add a jboss-deployment-structure.xml
file to the EAR, defining all the dependencies.</font>
<br>
<br><font size=2 face="Courier New"><jboss-deployment-structure></font>
<br><font size=2 face="Courier New"> <ear-subdeployments-isolated>false</ear-subdeployments-isolated></font>
<br><font size=2 face="Courier New"> <deployment></font>
<br><font size=2 face="Courier New"> <dependencies></font>
<br><font size=2 face="Courier New"> <module name="com.keyworks.k3"
/></font>
<br><font size=2 face="Courier New"> </dependencies></font>
<br><font size=2 face="Courier New"> </deployment></font>
<br><font size=2 face="Courier New"> <sub-deployment name="JPA-Main.jar"></font>
<br><font size=2 face="Courier New"> </sub-deployment></font>
<br><font size=2 face="Courier New"> <sub-deployment name="EJB-MainClient.jar"></font>
<br><font size=2 face="Courier New"> <dependencies></font>
<br><font size=2 face="Courier New"> <module name="deployment.EJB-MainEAR.ear.JPA-Main.jar:main"
/></font>
<br><font size=2 face="Courier New"> </dependencies></font>
<br><font size=2 face="Courier New"> </sub-deployment></font>
<br><font size=2 face="Courier New"> <sub-deployment name="EJB-Main.jar"></font>
<br><font size=2 face="Courier New"> <dependencies></font>
<br><font size=2 face="Courier New"> <module name="deployment.EJB-MainEAR.ear.JPA-Main.jar:main"
/></font>
<br><font size=2 face="Courier New">
<module name="deployment.EJB-MainEAR.ear.EJB-MainClient.jar:main"
/></font>
<br><font size=2 face="Courier New"> </dependencies></font>
<br><font size=2 face="Courier New"> </sub-deployment></font>
<br><font size=2 face="Courier New"> </font><font size=2 color=blue face="Courier New">
<sub-deployment name="GWT-Main.war"></font>
<br><font size=2 color=blue face="Courier New"> <dependencies></font>
<br><font size=2 color=blue face="Courier New"> <module
name="deployment.EJB-MainEAR.ear.JPA-Main.jar:main" /></font>
<br><font size=2 color=blue face="Courier New">
<module name="deployment.EJB-MainEAR.ear.EJB-MainClient.jar:main"
/></font>
<br><font size=2 color=blue face="Courier New"> </dependencies></font>
<br><font size=2 color=blue face="Courier New"> </sub-deployment></font>
<br><font size=2 face="Courier New"></jboss-deployment-structure></font>
<br>
<br><font size=2 face="Arial">And the error message when starting JBoss
was:</font>
<br>
<br><font size=2 face="Courier New">10:43:37,194 INFO [org.jboss.as.server.controller]
(DeploymentScanner-threads - 2) Deployment of "EJB-MainEAR.ear"
was rolled back with failure message {"Services with missing/unavailable
dependencies" => ["jboss.deployment.subunit.\"EJB-MainEAR.ear\".\"GWT-Website.war\".CONFIGURE_MODULE
missing [ jboss.module.information.service.\"deployment.EJB-MainEAR.ear.JPA-Main.jar:main\".main,
jboss.module.information.service.\"deployment.EJB-MainEAR.ear.EJB-MainClient.jar:main\".main
]","jboss.deployment.subunit.\"EJB-MainEAR.ear\".\"EJB-Main.jar\".CONFIGURE_MODULE
missing [ jboss.module.information.service.\"deployment.EJB-MainEAR.ear.JPA-Main.jar:main\".main,
jboss.module.information.service.\"deployment.EJB-MainEAR.ear.EJB-MainClient.jar:main\".main
]","jboss.deployment.subunit.\"EJB-MainEAR.ear\".\"JPA-Main.jar\".POST_MODULE
missing [ jboss.module.spec.service.\"deployment.EJB-MainEAR.ear.EJB-MainClient.jar\".main,
jboss.module.spec.service.\"deployment.EJB-MainEAR.ear.EJB-Main.jar\".main
]","jboss.module.service.\"deployment.EJB-MainEAR.ear\".main
missing [ jboss.module.spec.service.\"deployment.EJB-MainEAR.ear.EJB-MainClient.jar\".main,
jboss.module.spec.service.\"deployment.EJB-MainEAR.ear.EJB-Main.jar\".main
]","jboss.deployment.subunit.\"EJB-MainEAR.ear\".\"EJB-MainClient.jar\".CONFIGURE_MODULE
missing [ jboss.module.information.service.\"deployment.EJB-MainEAR.ear.JPA-Main.jar:main\".main
]","jboss.deployment.subunit.\"EJB-MainEAR.ear\".\"TST-Main.war\".CONFIGURE_MODULE
missing [ jboss.module.information.service.\"deployment.EJB-MainEAR.ear.JPA-Main.jar:main\".main,
jboss.module.information.service.\"deployment.EJB-MainEAR.ear.EJB-MainClient.jar:main\".main
]","jboss.deployment.unit.\"EJB-MainEAR.ear\".POST_MODULE
missing [ jboss.module.spec.service.\"deployment.EJB-MainEAR.ear.GWT-Website.war\".main,
jboss.module.spec.service.\"deployment.EJB-MainEAR.ear.EJB-MainClient.jar\".main,
jboss.module.spec.service.\"deployment.EJB-MainEAR.ear.EJB-Main.jar\".main,
jboss.module.spec.service.\"deployment.EJB-MainEAR.ear.TST-Main.war\".main,
jboss.module.spec.service.\"deployment.EJB-MainEAR.ear.GWT-Main.war\".main
]","jboss.deployment.subunit.\"EJB-MainEAR.ear\".\"GWT-Main.war\".CONFIGURE_MODULE
missing [ jboss.module.information.service.\"deployment.EJB-MainEAR.ear.JPA-Main.jar:main\".main,
jboss.module.information.service.\"deployment.EJB-MainEAR.ear.EJB-MainClient.jar:main\".main
]","jboss.module.service.\"deployment.EJB-MainEAR.ear.JPA-Main.jar\".main
missing [ jboss.module.spec.service.\"deployment.EJB-MainEAR.ear.EJB-MainClient.jar\".main,
jboss.module.spec.service.\"deployment.EJB-MainEAR.ear.EJB-Main.jar\".main
]"]}</font>
<br>
<br><font size=2 face="Arial">What i need to do for my modules (JAR and
WAR) to see each other and get this working?</font>
<br>
<br>
<br><img src=cid:_1_056A0B68056AC67C0046D8B383257942><font size=1 color=#4f4f4f face="Arial"><b><br>
Diego Keller<br>
</b>diego.keller@keyworks.com.br<br>
<br>
(54) 3534-8980<br>
</font><a href=http://www.keyworks.com.br/><font size=1 color=#c20000 face="Arial">http://www.keyworks.com.br</font></a><font size=1 color=#c20000 face="Arial"><br>
</font><font size=1 color=#5f5f5f face="Arial">Keyworks TI ® - Tailor Made
Software</font>