-
1. Re: classloading of properties file
opiegai Mar 10, 2005 4:47 AM (in response to nobel)looks like ressources are not part of the repository - what happens, if you remove the properties file from one of the deployments?
-
2. Re: classloading of properties file
nobel Mar 10, 2005 7:51 AM (in response to nobel)After having had a closer look at the log I see that the properties file is loaded into the URL3. Thus there will be only one "version" of the properties file shared by both webapps. How come both webapps seem to use their own version?
Taking a look at the Struts code I see that the properties file was loaded from an instance of PropertyMessageResources using the TCL which I assume will bypass the ULR3. Using class.getClassLoader() would have used the ULR3 and the shared properties file. Furthermore the properties file was luckily not loaded in the constructor of PropertyMessageResources.
So due to a number of happy circumstances this particular properties file did not conflict with the same properties file in the other web archive. I guess that if you deploy several wars under the same JBoss instance you either have to be very careful when you load resources or turn off unified class loading for the war. BR Niklas.