<!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> </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> </DIV>
<DIV><FONT face=Arial size=2>My classes are shared, but my jboss-web.xml is:
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> <BR><class-loading
java2ClassLoadingCompliance="false"><BR>
<loader-repository><BR> com.sumersoft:loader=demo
<BR>
<loader-repository-config><BR>
java2ParentDelegation=false<BR> </loader-
repository-config> <BR>
</loader-repository><BR></class-loading><BR> <BR> </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </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> </DIV>
<DIV><FONT face=Arial size=2>In my class that load .properties this code is
used: </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> <BR>public class CommonInformationPortal
implements ServletContextListener {<BR> <BR> private static Properties
properties = null;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> public static void
load()<BR> {<BR> try{<BR> if(properties ==
null)<BR> {<BR> properties = new
Properties();<BR> properties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("CommonInformation.properties"));<BR> }<BR> }<BR> catch(Exception
e)<BR> {<BR> return;<BR> }<BR> }<BR> <BR> <BR> public
static String getProperty(String property)
{<BR> try{<BR>
return
properties.getProperty(property);<BR> }<BR> catch(Exception
e)<BR> {<BR> return
null;<BR> }<BR> }<BR>}<BR> <BR> </FONT></DIV>
<DIV> </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> </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> </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> </DIV>
<DIV><FONT face=Arial size=2>[]�s<BR>Eros </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>