Central jspwiki.policy

View: New views
4 Messages — Rating Filter:   Alert me  

Central jspwiki.policy

by fabianobonin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I'm installing about 5 wikis in a server, and i want them all to use
the same jspwiki.policy file, but i'm not getting it to work

Env: Apache Tomcat 6.0.18, JPSWiki 2.6.3

My policy file is in:
/etc/wiki/jspwiki.policy

I'm exporting:
export CATALINA_OPTS="-Djava.security.policy=/etc/wiki/jspwiki.policy"

And i also tried to change the wiki property file to:

java.security.policy = /etc/wiki/jspwiki.policy

But it seems useless. I presume it is still using the jspwiki.policy
in "/opt/apache-tomcat-6/webapps/<wiki>/WEB-INF" folder

What am i missing?

Regards,

Fabiano

Re: Central jspwiki.policy

by Janne Jalkanen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Does using "==" instead of "=" help?

/Janne

On Fri, Aug 15, 2008 at 07:52:44AM -0300, Fabiano Bonin wrote:

> Hi all,
>
> I'm installing about 5 wikis in a server, and i want them all to use
> the same jspwiki.policy file, but i'm not getting it to work
>
> Env: Apache Tomcat 6.0.18, JPSWiki 2.6.3
>
> My policy file is in:
> /etc/wiki/jspwiki.policy
>
> I'm exporting:
> export CATALINA_OPTS="-Djava.security.policy=/etc/wiki/jspwiki.policy"
>
> And i also tried to change the wiki property file to:
>
> java.security.policy = /etc/wiki/jspwiki.policy
>
> But it seems useless. I presume it is still using the jspwiki.policy
> in "/opt/apache-tomcat-6/webapps/<wiki>/WEB-INF" folder
>
> What am i missing?
>
> Regards,
>
> Fabiano

Re: Central jspwiki.policy

by fabianobonin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Where?

I tried

java.security.policy==/etc/wiki/jspwiki.policy

and

export CATALINA_OPTS="-Djava.security.policy==/etc/wiki/jspwiki.policy"

And both didn´t worked...

On Fri, Aug 15, 2008 at 7:54 AM, Janne Jalkanen <janne.jalkanen@...> wrote:

> Does using "==" instead of "=" help?
>
> /Janne
>
> On Fri, Aug 15, 2008 at 07:52:44AM -0300, Fabiano Bonin wrote:
>> Hi all,
>>
>> I'm installing about 5 wikis in a server, and i want them all to use
>> the same jspwiki.policy file, but i'm not getting it to work
>>
>> Env: Apache Tomcat 6.0.18, JPSWiki 2.6.3
>>
>> My policy file is in:
>> /etc/wiki/jspwiki.policy
>>
>> I'm exporting:
>> export CATALINA_OPTS="-Djava.security.policy=/etc/wiki/jspwiki.policy"
>>
>> And i also tried to change the wiki property file to:
>>
>> java.security.policy = /etc/wiki/jspwiki.policy
>>
>> But it seems useless. I presume it is still using the jspwiki.policy
>> in "/opt/apache-tomcat-6/webapps/<wiki>/WEB-INF" folder
>>
>> What am i missing?
>>
>> Regards,
>>
>> Fabiano
>

Re: Central jspwiki.policy

by fabianobonin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is the default JSPWiki property file:

#  For users looking to get started quickly, the default settings below
#  should work fine. In addition to the properties below, you may also
#  want to set the following JRE runtime properties when running JSPWiki
#  or the servlet container it runs in:
#
#     java.security.auth.login.config==/path-to/jspwiki.jass
#     java.security.policy=/path-to/jspwiki.policy


On Fri, Aug 15, 2008 at 8:17 AM, Fabiano Bonin
<fabiano@...> wrote:

> Where?
>
> I tried
>
> java.security.policy==/etc/wiki/jspwiki.policy
>
> and
>
> export CATALINA_OPTS="-Djava.security.policy==/etc/wiki/jspwiki.policy"
>
> And both didn´t worked...
>
> On Fri, Aug 15, 2008 at 7:54 AM, Janne Jalkanen <janne.jalkanen@...> wrote:
>> Does using "==" instead of "=" help?
>>
>> /Janne
>>
>> On Fri, Aug 15, 2008 at 07:52:44AM -0300, Fabiano Bonin wrote:
>>> Hi all,
>>>
>>> I'm installing about 5 wikis in a server, and i want them all to use
>>> the same jspwiki.policy file, but i'm not getting it to work
>>>
>>> Env: Apache Tomcat 6.0.18, JPSWiki 2.6.3
>>>
>>> My policy file is in:
>>> /etc/wiki/jspwiki.policy
>>>
>>> I'm exporting:
>>> export CATALINA_OPTS="-Djava.security.policy=/etc/wiki/jspwiki.policy"
>>>
>>> And i also tried to change the wiki property file to:
>>>
>>> java.security.policy = /etc/wiki/jspwiki.policy
>>>
>>> But it seems useless. I presume it is still using the jspwiki.policy
>>> in "/opt/apache-tomcat-6/webapps/<wiki>/WEB-INF" folder
>>>
>>> What am i missing?
>>>
>>> Regards,
>>>
>>> Fabiano
>>
>
LightInTheBox - Buy quality products at wholesale price!