Hello everybody, I have a question about the GWC with layer group.
I could’t use the GWC with layergroup. I debug the code and found the following in org.geoserver.gwc.GWC in the method verifyAccessLayer:
LayerInfo layerInfo = getLayerInfoByName (layerName); //catalog.getLayerByName(layerName);
if (layerInfo == null) {
throw new ServiceException (“Could not find layer” + layerName, “LayerNotDefined”);
}
Is at this point that the error occurs, maybe because it is not searching in layergroup. I try this and worked:
LayerInfo layerInfo = getLayerInfoByName(layerName); // catalog.getLayerByName(layerName);
LayerGroupInfo layerGroupInfo = getLayerGroupByName(layerName);
if (layerInfo == null && layerGroupInfo == null) {
throw new ServiceException("Could not find layer " + layerName, “LayerNotDefined”);
}
I looked for something in the bug list, but I not found, so I suspect that I have done something wrong.
Any suggestions?
Thanks.
Is this layer group in a workspace? If so, that’s a known issue that is fixed in 2.7. The fix is not backportable but there is a work around. Add a Parameter Filter to the layer named WORKSPACE and make the default value the name of the workspace.
···
On 2 March 2015 at 09:54, Romulo Vieira da Silva <rmovieira@anonymised.com> wrote:
Hello everybody, I have a question about the GWC with layer group.
I could’t use the GWC with layergroup. I debug the code and found the following in org.geoserver.gwc.GWC in the method verifyAccessLayer:
LayerInfo layerInfo = getLayerInfoByName (layerName); //catalog.getLayerByName(layerName);
if (layerInfo == null) {
throw new ServiceException (“Could not find layer” + layerName, “LayerNotDefined”);
}
Is at this point that the error occurs, maybe because it is not searching in layergroup. I try this and worked:
LayerInfo layerInfo = getLayerInfoByName(layerName); // catalog.getLayerByName(layerName);
LayerGroupInfo layerGroupInfo = getLayerGroupByName(layerName);
if (layerInfo == null && layerGroupInfo == null) {
throw new ServiceException("Could not find layer " + layerName, “LayerNotDefined”);
}
I looked for something in the bug list, but I not found, so I suspect that I have done something wrong.
Any suggestions?
Thanks.
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
–
Kevin Smith
Software Engineer | Boundless
ksmith@anonymised.com
+1-778-785-7459
@boundlessgeo

Thanks for your support. I forgot to tell that the layer group is in workspace.
I not understand right. In Parameter Filters don’t have a WORKSPACE for me, but i wrote in the text box and set the default value the same name of the workspace, but doesn’t worked.
Links to show how i did:
1- http://imagizer.imageshack.us/a/img538/5135/4VzdNL.png
in this step, i wrote directly in the text box the velue WORKSPACE an selected List of Strings
2- http://imageshack.com/a/img908/5956/lp52sD.png
3- http://imageshack.com/a/img905/5378/fXdrIg.png
What i did wrong ?
Thanks.
···
2015-03-02 15:00 GMT-03:00 Kevin Smith <ksmith@anonymised.com>:
Is this layer group in a workspace? If so, that’s a known issue that is fixed in 2.7. The fix is not backportable but there is a work around. Add a Parameter Filter to the layer named WORKSPACE and make the default value the name of the workspace.
On 2 March 2015 at 09:54, Romulo Vieira da Silva <rmovieira@anonymised.com> wrote:
Hello everybody, I have a question about the GWC with layer group.
I could’t use the GWC with layergroup. I debug the code and found the following in org.geoserver.gwc.GWC in the method verifyAccessLayer:
LayerInfo layerInfo = getLayerInfoByName (layerName); //catalog.getLayerByName(layerName);
if (layerInfo == null) {
throw new ServiceException (“Could not find layer” + layerName, “LayerNotDefined”);
}
Is at this point that the error occurs, maybe because it is not searching in layergroup. I try this and worked:
LayerInfo layerInfo = getLayerInfoByName(layerName); // catalog.getLayerByName(layerName);
LayerGroupInfo layerGroupInfo = getLayerGroupByName(layerName);
if (layerInfo == null && layerGroupInfo == null) {
throw new ServiceException("Could not find layer " + layerName, “LayerNotDefined”);
}
I looked for something in the bug list, but I not found, so I suspect that I have done something wrong.
Any suggestions?
Thanks.
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
–
Kevin Smith
Software Engineer | Boundless
ksmith@anonymised.com
+1-778-785-7459
@boundlessgeo