You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by barmstrong <ba...@triactive.com> on 2010/06/17 19:34:58 UTC
would like to put shiro.ini in WEB-INF
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.
Re: would like to put shiro.ini in WEB-INF
Posted by Les Hazlewood <le...@hazlewood.com>.
Working on it right now :)
I should have the fix in trunk shortly.
Cheers,
Les
On Tue, Apr 26, 2011 at 1:18 PM, Hendy Irawan <he...@soluvas.com> wrote:
> Any update on this?
>
> The JIRA is: https://issues.apache.org/jira/browse/SHIRO-178
>
> --
> View this message in context: http://shiro-user.582556.n2.nabble.com/would-like-to-put-shiro-ini-in-WEB-INF-tp5191935p6307238.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>
Re: would like to put shiro.ini in WEB-INF
Posted by Hendy Irawan <he...@soluvas.com>.
Any update on this?
The JIRA is: https://issues.apache.org/jira/browse/SHIRO-178
--
View this message in context: http://shiro-user.582556.n2.nabble.com/would-like-to-put-shiro-ini-in-WEB-INF-tp5191935p6307238.html
Sent from the Shiro User mailing list archive at Nabble.com.
Re: would like to put shiro.ini in WEB-INF
Posted by barmstrong <ba...@triactive.com>.
Les,
thanks, I added an Issue to Jira
--
View this message in context: http://shiro-user.582556.n2.nabble.com/would-like-to-put-shiro-ini-in-WEB-INF-tp5191935p5213519.html
Sent from the Shiro User mailing list archive at Nabble.com.
Re: would like to put shiro.ini in WEB-INF
Posted by Les Hazlewood <lh...@apache.org>.
Hiya,
Here it is: https://issues.apache.org/jira/browse/SHIRO
You'll need to sign up for an account and then you'll be able to create it.
Cheers,
Les
On Thu, Jun 17, 2010 at 2:09 PM, barmstrong <ba...@triactive.com> wrote:
> thanks for the reply! I will open an issue, but this is my first forum
> post, and
> I'm not sure how.
>
> On 06/17/2010 01:17 PM, Les Hazlewood [via Shiro User] wrote:
>
> 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 <[hidden email]> 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.
>>
>
>
> ________________________________
> View message @
> http://shiro-user.582556.n2.nabble.com/would-like-to-put-shiro-ini-in-WEB-INF-tp5191935p5192125.html
> To unsubscribe from would like to put shiro.ini in WEB-INF, click here.
>
>
> ________________________________
> View this message in context: Re: would like to put shiro.ini in WEB-INF
> Sent from the Shiro User mailing list archive at Nabble.com.
>
Re: would like to put shiro.ini in WEB-INF
Posted by barmstrong <ba...@triactive.com>.
thanks for the reply! I will open an issue, but this is my first forum
post, and
I'm not sure how.
On 06/17/2010 01:17 PM, Les Hazlewood [via Shiro User] wrote:
> 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 <[hidden email]
> </user/SendEmail.jtp?type=node&node=5192125&i=0>> 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
> <http://shiro-user.582556.n2.nabble.com/would-like-to-put-shiro-ini-in-WEB-INF-tp5191935p5191935.html?by-user=t>
> > Sent from the Shiro User mailing list archive at Nabble.com.
> >
>
>
> ------------------------------------------------------------------------
> View message @
> http://shiro-user.582556.n2.nabble.com/would-like-to-put-shiro-ini-in-WEB-INF-tp5191935p5192125.html
>
> To unsubscribe from would like to put shiro.ini in WEB-INF, click here
> <http://shiro-user.582556.n2.nabble.com/subscriptions/Unsubscribe.jtp?code=YmFybXN0cm9uZ0B0cmlhY3RpdmUuY29tfDUxOTE5MzV8LTEyMzI3NzU2NQ==>.
>
>
--
View this message in context: http://shiro-user.582556.n2.nabble.com/would-like-to-put-shiro-ini-in-WEB-INF-tp5191935p5192903.html
Sent from the Shiro User mailing list archive at Nabble.com.
Re: would like to put shiro.ini in WEB-INF
Posted by Les Hazlewood <le...@hazlewood.com>.
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 <ba...@triactive.com> 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.
>