I don't believe this is supported, oddly enough.  Can you please open
a Jira issue for it?

In the meantime, you'll probably have to put it in /WEB-INF/classes
and use classpath:shiro.ini

Thanks,

Les

On Thu, Jun 17, 2010 at 10:34 AM, barmstrong <[email protected]> wrote:
>
> I would like to put my shiro.ini file in my WEB-INF directory.
>
> Its seems like using
>
>  <filter>
>    <filter-name>ShiroFilter</filter-name>
>    <filter-class>org.apache.shiro.web.servlet.IniShiroFilter</filter-class>
>      <init-param>
>       <param-name>configPath</param-name>
>       <param-value>file:shiro.ini</param-value>
>    </init-param>
>  </filter>
>
> in web.xml, Doesn't allow Shiro to find shiro.ini, and it seems that file:
> is expecting an absolute path, which I would like to avoid since the
> applications is deployed in various environments.
>
> How should I go about doing this?  -thanks!
> --
> View this message in context: 
> http://shiro-user.582556.n2.nabble.com/would-like-to-put-shiro-ini-in-WEB-INF-tp5191935p5191935.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>

Reply via email to