"adinn" wrote :
| I worked out by trial and error that removing the classpath entries in the war file
manifest solves the class duplication problem. I assume this is because the war class
loader grabs its own copy of classes in the the jars (recursively) mentioned in the
classpath rather than delegating to the sar loader.
|
Yes, the default war model is to use any class in its classpath before delegating to the
parent unless either the web deployer or a jboss-web.xml changes this.
"adinn" wrote :
| I did not actually need to remove the jar classpath entries to fix the problem and
assume this would not be strictly necessary since the entries only reference jars
contained within the same sar i.e. they do not intercede between the loader of the
referencing class and some other loader. Is that a valid assumption or was I just lucky?
I'll still remove the classpath entries anyway -- the app works fine without them.
|
Its doubtful the jar classpath entries have any affect as the referenced jars are already
part of the deployment classpath. No reason to remove them.
"adinn" wrote :
| I don't know whether this needs to be documented as a bug, change of behaviour or
just useful thing someone might want to know some day. Anyway, it probably ought to be
noted somewhere where AS users or the support team can find it (well, it is noted here at
least :-)
|
I just want to understand what the difference is. It sounds like the war manifest
classpath behavior has changed, but if anything I would expect that in jbossas5 the war
manifest was ignored while what you describe appears to be the opposite; that
4.X/5.0.BetaX were not using the war manifest classpath. I think we have gone around on
whether the war manifest classpath should be picked up or not.
At this point I just want to reproduce the issue in a unit test. If I can't tweak my
current example I'll need to get your deployment to see what exactly is happening.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4163931#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...