<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have a problem with multiples wars. <BR>My 
JboosPortal version is: 2.2.1RC3 </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>My classes are shared, but my jboss-web.xml is: 
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;<BR>&lt;class-loading 
java2ClassLoadingCompliance="false"&gt;<BR>&nbsp; 
&lt;loader-repository&gt;<BR>&nbsp;&nbsp;&nbsp; com.sumersoft:loader=demo 
<BR>&nbsp;&nbsp;&nbsp; 
&lt;loader-repository-config&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
java2ParentDelegation=false<BR>&nbsp;&nbsp;&nbsp; &lt;/loader- 
repository-config&gt; <BR>&nbsp; 
&lt;/loader-repository&gt;<BR>&lt;/class-loading&gt;<BR>&nbsp;<BR>&nbsp;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I see the problem when I try load one .properties 
that it is inside of war. <BR>Each war it has a different file .properties, with 
equals name but with <BR>different content. </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>In my class that load .properties this code is 
used: </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;<BR>public class CommonInformationPortal 
implements ServletContextListener {<BR>&nbsp;<BR>&nbsp;private static Properties 
properties = null;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;public static void 
load()<BR>&nbsp;{<BR>&nbsp;&nbsp;try{<BR>&nbsp;&nbsp;&nbsp;if(properties == 
null)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;properties = new 
Properties();<BR>&nbsp;&nbsp;&nbsp;&nbsp;properties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("CommonInformation.properties"));<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;catch(Exception 
e)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;return;<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;public 
static String getProperty(String property)&nbsp; 
{<BR>&nbsp;&nbsp;try{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
return 
properties.getProperty(property);<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;catch(Exception 
e)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;return 
null;<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>}<BR>&nbsp;<BR>&nbsp;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>But always return the ClassLoader of last deployed 
war. <BR>So the file .properties read is always the file of last deployed war. 
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I try use ServletContextListener the load of file 
.properties is ok, but when I get any propertie of this file is returned 
propertie of last deployed war. </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>How i can resolve this problem?<BR>In 2.4 or 2.6 
version of portal this problem was resolved?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>[]�s<BR>Eros </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>