Hi Andrea,
Here's the patch
I'm not sure about the if statement (should be easier to determine if a
namespace is available) but it works
In wms/src/main/java/org/vfny/geoserver/global/WMS.java
The method getbaseMapLayers should be:
public Map getBaseMapLayers() {
HashMap baseLayers = new HashMap();
for ( LayerGroupInfo map : gs.getCatalog().getLayerGroups() ) {
StringBuffer layers = new StringBuffer();
for ( LayerInfo l : map.getLayers() ) {
// check if namespace is used in basemapgroup. If so use
it.
if (l.getResource() != null &&
l.getResource().getNamespace() != null &&
l.getResource().getNamespace().getPrefix() != null) {
layers.append( l.toString()).append( "," );
}
else {
layers.append( l.getName() ).append( "," );
}
}
layers.setLength( layers.length() - 1 );
baseLayers.put( map.getName(), layers.toString() );
}
return baseLayers;
//return baseMapLayers != null ? baseMapLayers :
Collections.EMPTY_MAP;
}
Hope this can make it in the 1.7.3 release 
Cheers Kris
-----Original Message-----
From: Andrea Aime [mailto:aaime@anonymised.com]
Sent: Monday, March 09, 2009 12:22 PM
To: Kris Geusebroek
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Unable to use BaseMapGroup with
namespaced layers
Kris Geusebroek ha scritto:
Hi all,
I'm having multiple users in the database with the same tables. To
differentiate the layers I use the namespaces.
So user1 has layer user1:LAYERNAME
Now I want to create a BaseMapGroup so I created
<BaseMapGroup baseMapTitle="allUsers:LAYERNAME">
<baseMapLayers>user1:LAYERNAME,user2:LAYERNAME,user3:LAYERNAME</baseMapL
ayers>
<baseMapStyles>style1,style2,style3</baseMapStyeles>
Etc..
But I'm getting the error:
Java.util.NoSuchElementExeception: Could not locate FeatureTypeConfig
'LAYERNAME'
At
org.vfny.geoserver.global.Data.getFeatureTypeInfo(Data.java:1903)
At
org.geoserver.wms.kvp.GetMapKvpRequestReader.findFeatureLayer(GetMapKvpR
equestReader.java:1142)
It seems that the namespace is stripped off somewhere between the
config
of the basemapgroup and the actual request
Can somenone please explain where I need to look to find the bug (if
it
is one ;-))
Hum, first, I would look into services.xml to make sure the namespace
has been preserved when the configuration is saved.
Second, use the stack trace you already have to locate which part of the
code does the feature type lookup.
Finally, open a bug report on jira.codehaus.org (provided there is not
one already) and attach a patch there 
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.