-
1. Re: Exporting connection related classes
wdfink May 21, 2012 12:27 PM (in response to earnest.dyke)Class loading is different, in AS7 nothing is global exported.
You have to set dependencies to each. See this documentation
-
2. Re: Exporting connection related classes
earnest.dyke May 21, 2012 1:25 PM (in response to wdfink)Thanks for the response. This however only partially addresses my problem. I understand that class loading is different in AS 7 what I cannot determine from the documentation is how to define a dependency in my .war to the classes in the .rar. I tried adding Class-Path: deployment.XYZ.rar to my .war's manifest file but that did not work. That only looks in the deployment (in my case my .war) for the dependency and it obviously does not find it. Any more pointers for me?
Thanks!
Earnie!
-
3. Re: Exporting connection related classes
earnest.dyke May 22, 2012 10:18 AM (in response to earnest.dyke)1 of 1 people found this helpfulOK. After re-reading the documentation Wolf pointed me to I was able to get this to work. So for future posterity, to reference other deployments from yours (in my case my .war needed classes in the .rar) add a Dependencies line (not a Class-Path line) to your .war's manifest.mf file and point it to your other deployment (in my case deployment.XYZ.rar).
Earnie!
-
4. Re: Exporting connection related classes
rolandmartin May 25, 2012 3:07 PM (in response to earnest.dyke)I have hit the same issue, could you post a copy of your .war file's manifest.mf so I can see the exact syntax? Also, did you need to add anything to your .rar file's manifest.mf?
Thanks for the help.
Roland
-
5. Re: Exporting connection related classes
jesper.pedersen May 25, 2012 3:09 PM (in response to rolandmartin)Its
Dependencies: deployment.myeis.rar
in the .war's MANIFEST.MF. See https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7
-
6. Re: Exporting connection related classes
rolandmartin May 25, 2012 3:15 PM (in response to jesper.pedersen)Thanks for the quick response, much appreciated!
Roland
-
7. Re: Exporting connection related classes
earnest.dyke May 29, 2012 7:49 AM (in response to rolandmartin)Roland,
Of course Jesper is correct. Below is my manifest.mf. My .rar is named Trilogie-JCA.rar. The "deployment." on the front is how IronJamcamar makes it available to other deployments. org.infinispan and org.jboss.as.cmp are there because of other requirements within the war.
Hope this helps.
Earnie!