The startup script for Tomcat (catatalina.sh or catalina.bat) will check for 
the existence of a  setenv.sh or setenv.bat file in the $TOMCAT_HOME/bin 
directory and "source" it if it exists.   That's usually where I put any 
environment variables that I want to set that are needed by a web app.  It's a 
good place to add variables used by the JVM (e.g. for explicitly setting 
min/max memory or garbage collection) as well.

-----Original Message-----
From: Andy Seaborne [mailto:[email protected]] 
Sent: Monday, January 12, 2015 6:27 AM
To: [email protected]
Subject: Re: Fuseki with a web.xml

On 11/01/15 12:35, Trevor Donaldson wrote:
> I did see that /etc/fuseki error when I dropped the war file in 
> tomcat. I want sure how to change fuseki_base? Any I dead how to get 
> the war to work in tomcat?

FUSEKI_BASE is an environment variable and can be set in whatever way you 
prefer for environment variables.  Usually, before invoking Tomcat ... which is 
tricky when it's a service).

And, in fact, -DFUSEKI_HOME also works 'cos I got bored by the fact that Java 
does not have System.setenv.

/etc/fuseki can be a symbolic link.

        Andy

> On Jan 11, 2015 5:10 AM, "Andy Seaborne" <[email protected]> wrote:
>
>> Thanks the links worked. I have the war. The question I have is can I
>>>>> overwrite the shiro.ini file? I see the war but everything is 
>>>>> already packaged.
>>>>>
>>>>
>> Just to follow up on this point.
>>
>> The server builds its work area the first time - you can edit these 
>> files.  They don't get overwritten next time.
>>
>> In the WAR version, run once, and shiro.ini file will be in 
>> $FUSEKI_BASE/shiro.ini which is /etc/fuseki/shiro.ini by default.
>>
>>          Andy
>>
>>
>>
>>
>>
>

Reply via email to