-
1. Re: JBoss AS7 Classloading
ctomc Aug 6, 2013 5:52 AM (in response to ydn)Hi,
for start it would recommend you to take a look on how classloading works in AS7
https://docs.jboss.org/author/display/AS72/Class+Loading+in+AS7
if you have additional questions after that, post them here
-
2. Re: JBoss AS7 Classloading
ydn Aug 6, 2013 6:11 AM (in response to ctomc)thanks for your Feedback, i will take a look on that.
-
3. Re: JBoss AS7 Classloading
ydn Aug 14, 2013 5:32 AM (in response to ctomc)Hello,
After taking your recommendation Link, the classloading work partially, I am new in JBoss AS 7 and JBoss World especially. Please can you have a look about the changes what i did for this Classloading Issue form JBoss AS5 to JBoss AS 7(EAP6.1).
For "my-ear-ejbcommon-0.1-SNAPSHOT.ear"
I change the content of "jboss-classloading.xml" (see my first post) to :
META-INF/jboss-deployment-structure.xml
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
<ear-subdeployments-isolated>false</ear-subdeployments-isolated>
</jboss-deployment-structure>
For "my-ear-ejb-0.1-SNAPSHOT.ear"
I change the content of "jboss-classloading.xml" (see my first post) to :
META-INF/jboss-deployment-structure.xml
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
<deployment>
<dependencies>
<module name="deployment.my-ear-ejbcommon-0.1-SNAPSHOT.ear" export="true"/>
</dependencies>
</deployment>
</jboss-deployment-structure>
I change the content of "jboss-dependency.xml" (see my first post) to :
META-INF/jboss-all.xml
<jboss umlns="urn:jboss:1.0">
<jboss-deployment-dependencies xmlns="urn:jboss:deployment-dependencies:1.0">
<dependency name="deployment.my-ear-ejbcommon-0.1-SNAPSHOT.ear" />
</jboss-deployment-dependencies>
</jboss>
My Question, if i am in the right road ??
Q1: What about the other properties that are in "jboss-classloading.xml" such as "domain, parent-domain, import-all, parent-first", how can I defind that in "jboss-deployment-structure.xml" ?? Or with the new JBoss as 7 Architucture , they don't exist or what ??
Because the Classloading in JBoss AS 5 work perfectly between the a Parent Ear(Generic) and Child Ears. And the Child Ear files depends or Extends classes from "my-ear-ejbcommon-0.1-SNAPSHOT.ear" as a generic Ear file.
Q2: I am worried now and if i will lose the Communication between Multiple Ear files that communicate with a Common Ear File, Is that Classloading Issue 100% or Architucture Issue or Dependency Issue .... ?
Hint : When i put all the jar files in one Single Ear the life is Happy and all works good. I read that from one of your posting in a similar Issue for the The Communication between Ear Files.
My third Question and the Last one:
Q3: If I will put all in one Single Ear, I must in each every change (Code, ...) in the "Generic" Jars or the Child Jars do a new deployment. Because all are in the same Ear.
In my case i have more than 50 Child Jars that depends from the Generic one, How can i resolve this Issue in JBoss as 7.
Any Suggestion or new Ideas, I did A deep research and a try a lot of things, that the people from the community said or others developers but i found all what i try helpless.
It seems is a world wide Problem, i am not the only one, the Good thing i still have Hope to resolve this problem by Asking and Orientation from the right people .
Thanks in Advance.