The code snippet in my previous mail works with tomcat too. I will use it.

2013/1/5 Christian Mueller <[email protected]>

> Testing with Jetty, I had success with
>
> GeoServerResourceLoader loader = (GeoServerResourceLoader)
> GeoServerExtensions.bean("resourceLoader");
> File webXML = loader.find( "web.xml" );
>
> I will check on tomcat too.
>
>
> 2013/1/4 Justin Deoliveira <[email protected]>
>
>> Hmmm... not sure this is doable in a robust way across container
>> implementations. The servlet api itself is the mechanism meant to convey
>> info from the web.xml to the application. But of course it doesn't give you
>> everything.
>>
>>
>> http://stackoverflow.com/questions/520467/how-to-read-the-web-xml-from-a-webapp
>>
>>  On Fri, Jan 4, 2013 at 6:09 AM, Christian Mueller <[email protected]>wrote:
>>
>>>  Hi guys, need some hints.
>>>
>>> I am working on a security improvement for using J2EE roles. The idea is
>>> to introduce a new read only role service. The service should extract the
>>> roles from web.xml.
>>>
>>> I am unsure about the best way to open the web.xml for parsing.
>>>
>>> Thanks for your help, a code snippet would be nice :-)
>>>
>>> Christian
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
>>> much more. Get web development skills now with LearnDevNow -
>>> 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
>>> SALE $99.99 this month only -- learn more at:
>>> http://p.sf.net/sfu/learnmore_122812
>>> _______________________________________________
>>> Geoserver-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>>>
>>>
>>
>>
>> --
>> Justin Deoliveira
>> OpenGeo - http://opengeo.org
>> Enterprise support for open source geospatial.
>>
>
>
------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to