Hi,
I think I got it, could someone please check and add it ?
Class: org.apache.catalina.core.StandardHost:
-----
public void addAlias(String alias) {
alias = alias.toLowerCase();
// Skip duplicate aliases
for (int i = 0; i < aliases.length; i++) {
if (aliases[i].equals(alias))
return;
}
// Add this alias to the list
String newAliases[] = new String[aliases.length + 1];
for (int i = 0; i < aliases.length; i++)
newAliases[i] = aliases[i];
newAliases[aliases.length] = alias;
// Inform interested listeners
fireContainerEvent(ADD_ALIAS_EVENT, alias);
}
-----
It should be:
-----
// Add this alias to the list
String newAliases[] = new String[aliases.length + 1];
for (int i = 0; i < aliases.length; i++)
newAliases[i] = aliases[i];
newAliases[aliases.length] = alias;
aliases = newAliases; // <<== replace old array with new one
// Inform interested listeners
fireContainerEvent(ADD_ALIAS_EVENT, alias);
-----
Thanks in advance,
deacon Marcus
> -----Original Message-----
> From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 12, 2001 12:35 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Problems with aliased hosts (ver 4.0b5) - please help
>
>
> Quoting Deacon Marcus <[EMAIL PROTECTED]>:
>
> > Hi,
> > Please, if you don't have the time to fix it or it's low priority let
> > me
> > know which classes control this behavior so I could try to fix it
> > myself.
>
> Oops, sorry. It's the J1 effect : don't put any urgent requests that week.
> I think you should have filed a bug.
>
> The host mapping is done in
> org.apache.catalina.core.StandardEngine/StandardEngineMapper.
>
> It may be a problem at init (maybe the alias list is incorrectly
> initialized)
> or runtime.
>
> Remy