<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">&nbsp; &nbsp; &nbsp; &nbsp; JPA-Main.jar
(JPA Project)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; EJB-MainClient.jar
(EJB Interfaces Project)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; EJB-Main.jar
(EJB Session Beans Project)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; 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">&lt;subsystem xmlns=&quot;urn:jboss:domain:ee:1.0&quot;&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &lt;ear-subdeployments-isolated&gt;false&lt;/ear-subdeployments-isolated&gt;</font>
<br><font size=2 face="Courier New">&lt;/subsystem&gt;</font>
<br>
<br><font size=3>But i get this error message whe starting JBoss. </font>
<br><font size=3>&quot;SistemaSession&quot; 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 &nbsp;[org.jboss.modules]
(MSC service thread 1-4) Failed to define class com.framework.business.ejb.session.SistemaSessionBean
in Module &quot;deployment.EJB-MainEAR.ear.EJB-Main.jar:main&quot; from
Service Module Loader: java.lang.LinkageError: Failed to link com/framework/business/ejb/session/SistemaSessionBean
(Module &quot;deployment.EJB-MainEAR.ear.EJB-Main.jar:main&quot; from Service
Module Loader)</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; at
org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:401)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; at
org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; 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">&nbsp; &nbsp; &nbsp; &nbsp; at
org.jboss.modules.Module.loadModuleClass(Module.java:590) [jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; at
org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.getEjbClass(BusinessViewAnnotationProcessor.java:201)</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; at
org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.deploy(BusinessViewAnnotationProcessor.java:83)</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; 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">&nbsp; &nbsp; &nbsp; &nbsp; 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">&nbsp; &nbsp; &nbsp; &nbsp; 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">&nbsp; &nbsp; &nbsp; &nbsp; at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[:1.7.0_01]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[:1.7.0_01]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; 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">&nbsp; &nbsp; &nbsp; &nbsp; at
java.lang.ClassLoader.defineClass1(Native Method) [:1.7.0_01]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; at
java.lang.ClassLoader.defineClass(ClassLoader.java:791) [:1.7.0_01]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[:1.7.0_01]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; at
org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; ...
15 more</font>
<br><font size=2 face="Courier New">Caused by: java.lang.ClassNotFoundException:
com.framework.business.client.intf.SistemaSession from [Module &quot;deployment.EJB-MainEAR.ear.EJB-Main.jar:main&quot;
from Service Module Loader]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
[jboss-modules.jar:1.0.2.GA]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; ...
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">&lt;jboss-deployment-structure&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &lt;ear-subdeployments-isolated&gt;false&lt;/ear-subdeployments-isolated&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &lt;deployment&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &lt;dependencies&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &lt;module name=&quot;com.keyworks.k3&quot;
/&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &lt;/dependencies&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &lt;/deployment&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &lt;sub-deployment name=&quot;JPA-Main.jar&quot;&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &lt;/sub-deployment&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &lt;sub-deployment name=&quot;EJB-MainClient.jar&quot;&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &lt;dependencies&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &lt;module name=&quot;deployment.EJB-MainEAR.ear.JPA-Main.jar:main&quot;
/&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &lt;/dependencies&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &lt;/sub-deployment&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &lt;sub-deployment name=&quot;EJB-Main.jar&quot;&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &lt;dependencies&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &lt;module name=&quot;deployment.EJB-MainEAR.ear.JPA-Main.jar:main&quot;
/&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&lt;module name=&quot;deployment.EJB-MainEAR.ear.EJB-MainClient.jar:main&quot;
/&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &lt;/dependencies&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &lt;/sub-deployment&gt;</font>
<br><font size=2 face="Courier New">&nbsp;</font><font size=2 color=blue face="Courier New">
&lt;sub-deployment name=&quot;GWT-Main.war&quot;&gt;</font>
<br><font size=2 color=blue face="Courier New">&nbsp; &nbsp; &lt;dependencies&gt;</font>
<br><font size=2 color=blue face="Courier New">&nbsp; &nbsp; &nbsp; &lt;module
name=&quot;deployment.EJB-MainEAR.ear.JPA-Main.jar:main&quot; /&gt;</font>
<br><font size=2 color=blue face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &lt;module name=&quot;deployment.EJB-MainEAR.ear.EJB-MainClient.jar:main&quot;
/&gt;</font>
<br><font size=2 color=blue face="Courier New">&nbsp; &nbsp; &lt;/dependencies&gt;</font>
<br><font size=2 color=blue face="Courier New">&nbsp; &lt;/sub-deployment&gt;</font>
<br><font size=2 face="Courier New">&lt;/jboss-deployment-structure&gt;</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 &nbsp;[org.jboss.as.server.controller]
(DeploymentScanner-threads - 2) Deployment of &quot;EJB-MainEAR.ear&quot;
was rolled back with failure message {&quot;Services with missing/unavailable
dependencies&quot; =&gt; [&quot;jboss.deployment.subunit.\&quot;EJB-MainEAR.ear\&quot;.\&quot;GWT-Website.war\&quot;.CONFIGURE_MODULE
missing [ jboss.module.information.service.\&quot;deployment.EJB-MainEAR.ear.JPA-Main.jar:main\&quot;.main,
jboss.module.information.service.\&quot;deployment.EJB-MainEAR.ear.EJB-MainClient.jar:main\&quot;.main
]&quot;,&quot;jboss.deployment.subunit.\&quot;EJB-MainEAR.ear\&quot;.\&quot;EJB-Main.jar\&quot;.CONFIGURE_MODULE
missing [ jboss.module.information.service.\&quot;deployment.EJB-MainEAR.ear.JPA-Main.jar:main\&quot;.main,
jboss.module.information.service.\&quot;deployment.EJB-MainEAR.ear.EJB-MainClient.jar:main\&quot;.main
]&quot;,&quot;jboss.deployment.subunit.\&quot;EJB-MainEAR.ear\&quot;.\&quot;JPA-Main.jar\&quot;.POST_MODULE
missing [ jboss.module.spec.service.\&quot;deployment.EJB-MainEAR.ear.EJB-MainClient.jar\&quot;.main,
jboss.module.spec.service.\&quot;deployment.EJB-MainEAR.ear.EJB-Main.jar\&quot;.main
]&quot;,&quot;jboss.module.service.\&quot;deployment.EJB-MainEAR.ear\&quot;.main
missing [ jboss.module.spec.service.\&quot;deployment.EJB-MainEAR.ear.EJB-MainClient.jar\&quot;.main,
jboss.module.spec.service.\&quot;deployment.EJB-MainEAR.ear.EJB-Main.jar\&quot;.main
]&quot;,&quot;jboss.deployment.subunit.\&quot;EJB-MainEAR.ear\&quot;.\&quot;EJB-MainClient.jar\&quot;.CONFIGURE_MODULE
missing [ jboss.module.information.service.\&quot;deployment.EJB-MainEAR.ear.JPA-Main.jar:main\&quot;.main
]&quot;,&quot;jboss.deployment.subunit.\&quot;EJB-MainEAR.ear\&quot;.\&quot;TST-Main.war\&quot;.CONFIGURE_MODULE
missing [ jboss.module.information.service.\&quot;deployment.EJB-MainEAR.ear.JPA-Main.jar:main\&quot;.main,
jboss.module.information.service.\&quot;deployment.EJB-MainEAR.ear.EJB-MainClient.jar:main\&quot;.main
]&quot;,&quot;jboss.deployment.unit.\&quot;EJB-MainEAR.ear\&quot;.POST_MODULE
missing [ jboss.module.spec.service.\&quot;deployment.EJB-MainEAR.ear.GWT-Website.war\&quot;.main,
jboss.module.spec.service.\&quot;deployment.EJB-MainEAR.ear.EJB-MainClient.jar\&quot;.main,
jboss.module.spec.service.\&quot;deployment.EJB-MainEAR.ear.EJB-Main.jar\&quot;.main,
jboss.module.spec.service.\&quot;deployment.EJB-MainEAR.ear.TST-Main.war\&quot;.main,
jboss.module.spec.service.\&quot;deployment.EJB-MainEAR.ear.GWT-Main.war\&quot;.main
]&quot;,&quot;jboss.deployment.subunit.\&quot;EJB-MainEAR.ear\&quot;.\&quot;GWT-Main.war\&quot;.CONFIGURE_MODULE
missing [ jboss.module.information.service.\&quot;deployment.EJB-MainEAR.ear.JPA-Main.jar:main\&quot;.main,
jboss.module.information.service.\&quot;deployment.EJB-MainEAR.ear.EJB-MainClient.jar:main\&quot;.main
]&quot;,&quot;jboss.module.service.\&quot;deployment.EJB-MainEAR.ear.JPA-Main.jar\&quot;.main
missing [ jboss.module.spec.service.\&quot;deployment.EJB-MainEAR.ear.EJB-MainClient.jar\&quot;.main,
jboss.module.spec.service.\&quot;deployment.EJB-MainEAR.ear.EJB-Main.jar\&quot;.main
]&quot;]}</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>