1 of 1 people found this helpful
do you have a download link for "common-annotations.jar" so that I could take a look at the content? If you require just a part of it, you might extract it and create a JAR with only the necessary class files,
By the way: "activation.jar" is bundled with JBoss and can be found here: "jboss-6.0.0.Final\lib\endorsed". So you should not need to bundle it with your own app.
Hope this helps
Thanks a lot,
I can't found any download link for common-annotation.jar that i have. sory for that. common-annotation.jar that i have contains javax.annotation & javax.activation package.
You are write that activation.jar is in endorsed dir & my application runnig fine without activation.jar, but i m trying to make my war such that it can be run on both jboss & tomcat. So, i m putting it in my war's lib.
Can u describe me the use of endorsed dir. why activation.jar in lib/endorsed dir & why not in common/lib?
I want co make clear from u that in what order classes will be searched, as we have many lib dirs in our jboss like
& war's lib.
I mean if many version of class found from this directories then which one is loaded?
Thanks in advance
sorry, I cannot provide you with much information about technical internals :-(.
A way to work around this issue might be JBoss classloading configuration: http://community.jboss.org/wiki/classloadingconfiguration
But I never used it myself, so I don't know much more details. And it would be once again a JBoss specific modification to your web app.
Best would be to remove all classes from your app which are bundled with JBoss (remove "activation.jar" and duplicate classes from "common-annotation.jar").
To explain the "endorsed" directory: http://download.oracle.com/javase/1.5.0/docs/guide/standards/index.html