Martin,

I have got it working. I ended up having to add
-Dorg.globus.wsrf.container.persistence.dir=/where/ever/you/want/it/to/be
directly into the RHEL tomcat daemon start/stop script. It did not
seem to be picking up GLOBUS_OPTIONS, no matter where I exported them.
Might be a RHEL thing or I need to dig a bit further but at least I am
able to change it.

Thank you.

-Dougal


On Mon, May 24, 2010 at 4:28 PM, Dougal Ballantyne
<[email protected]> wrote:
> Martin, I am kicking myself for not reading more... Sorry.
>
> Starting testing, didn't go in first time so tweaking with the rather
> adapted RHEL startup scripts for tomcat to get the environment
> variable exported.
>
> Thank you for the steer.
>
> -Dougal
>
> On Mon, May 24, 2010 at 4:12 PM, Martin Feller <[email protected]> wrote:
>> Martin Feller wrote:
>>> Hi,
>>>
>>> I didn't try it, just an educated guess:
>>> Any chance you have the property -Dorg.globus.wsrf.container.persistence.dir
>>> set to /usr/share/tomcat5/.globus, e.g. via the environment variable
>>> GLOBUS_OPTIONS?
>>> (http://www.globus.org/toolkit/docs/4.0/common/javawscore/Java_WS_Core_Public_Interfaces.html#s-javawscore-Public_Interfaces-env)
>>
>> Oh, this was a 4.0 link, but it's the same in 4.2:
>> http://www.globus.org/toolkit/docs/4.2/4.2.1/admin/install/
>>
>>
>>> If not: Does it work if you explicitly set it, like
>>>
>>> export GLOBUS_OPTIONS="$GLOBUS_OPTIONS 
>>> -Dorg.globus.wsrf.container.persistence.dir=/where/ever/you/want/it/to/be"
>>>
>>> and restart tomcat?
>>>
>>> Martin
>>>
>>> Dougal Ballantyne wrote:
>>>> Hi,
>>>>
>>>> I have been working on a GT4.2.1 deployment and for larger scale
>>>> testing, I have been preparing for a deployment into the Tomcat 5.5
>>>> server. I am working on a RHEL 5.5 system and would like to use the
>>>> provided tomcat5-* rpms.
>>>>
>>>> I have successfully deployed the application into the webapps folder
>>>> and adjusted the locations of the BDB databases and temporary storage
>>>> locations and it all works as expected. However there is one item I
>>>> just cannot seem to get relocated, the persisted directory created
>>>> under the user starting the container in ~/.globus/persisted.
>>>>
>>>> I am getting the following errors in catalina.out:
>>>>
>>>> Using CATALINA_BASE:   /usr/share/tomcat5
>>>> Using CATALINA_HOME:   /usr/share/tomcat5
>>>> Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
>>>> Using JRE_HOME:
>>>> May 23, 2010 3:31:18 PM org.apache.catalina.core.ApplicationContext log
>>>> INFO: ContextListener: contextInitialized()
>>>> May 23, 2010 3:31:18 PM org.apache.catalina.core.ApplicationContext log
>>>> INFO: SessionListener: contextInitialized()
>>>> May 23, 2010 3:31:19 PM org.apache.commons.vfs.VfsLog info
>>>> INFO: Using "/usr/share/tomcat5/temp/vfs_cache" as temporary files store.
>>>> May 23, 2010 3:31:20 PM
>>>> org.globus.exec.service.factory.ManagedJobFactoryResource$RecoveryTask
>>>> run
>>>> WARNING: Recovery exception
>>>> org.globus.wsrf.ResourceException: Unabled to locate persisted
>>>> resource properties directory. ; nested exception is:
>>>>         java.io.IOException: [JWSCORE-205] Failed to create storage
>>>> directory: 
>>>> '/usr/share/tomcat5/.globus/persisted/127.0.0.1-wsrf/ManagedExecutableJobResourceStateType'
>>>>         at 
>>>> org.globus.exec.service.exec.ManagedExecutableJobHome.recover(ManagedExecutableJobHome.java:176)
>>>>         at 
>>>> org.globus.exec.service.factory.ManagedJobFactoryResource$RecoveryTask.run(ManagedJobFactoryResource.java:388)
>>>>         at 
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>>         at 
>>>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>>>         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>>>         at 
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
>>>>         at 
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
>>>>         at 
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>>         at 
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>>         at java.lang.Thread.run(Thread.java:619)
>>>> Caused by: java.io.IOException: [JWSCORE-205] Failed to create storage
>>>> directory: 
>>>> '/usr/share/tomcat5/.globus/persisted/127.0.0.1-wsrf/ManagedExecutableJobResourceStateType'
>>>>         at 
>>>> org.globus.wsrf.utils.FilePersistenceHelper.createStorageDirectory(FilePersistenceHelper.java:123)
>>>>         at 
>>>> org.globus.wsrf.utils.FilePersistenceHelper.setStorageDirectory(FilePersistenceHelper.java:191)
>>>>         at 
>>>> org.globus.wsrf.utils.FilePersistenceHelper.<init>(FilePersistenceHelper.java:181)
>>>>         at 
>>>> org.globus.wsrf.utils.FilePersistenceHelper.<init>(FilePersistenceHelper.java:141)
>>>>         at 
>>>> org.globus.wsrf.utils.XmlPersistenceHelper.<init>(XmlPersistenceHelper.java:74)
>>>>         at 
>>>> org.globus.exec.service.exec.ManagedExecutableJobHome.recover(ManagedExecutableJobHome.java:171)
>>>>         ... 9 more
>>>>
>>>>
>>>> I have searched through the source and the deployed application but I
>>>> can find no reference to where it might be getting this path from.
>>>>
>>>> [r...@globus-sge globus-4.2.1]# pwd
>>>> /opt/globus-4.2.1
>>>> [r...@globus-sge globus-4.2.1]# grep -r '/.globus/persisted/' .
>>>> grep: warning: ./etc/gpt/packages/packages: recursive directory loop
>>>>
>>>> grep: warning: ./etc/globus_packages/packages: recursive directory loop
>>>>
>>>> ./SRC/gt4.2.1-all-source-installer/source-trees-thr/ws-gram/discovery/providers/setup/fork/globus-scheduler-provider-fork.in:my
>>>> @persistence_files =
>>>> glob("~/.globus/persisted/$host-$port/ManagedExecutableJobResourceStateType/*.xml");
>>>> ./SRC/gt4.2.1-all-source-installer/source-trees-thr/ws-gram/discovery/providers/setup/pbs/globus-scheduler-provider-pbs.in:my
>>>> @persistence_files =
>>>> glob("~/.globus/persisted/$host-$port/ManagedExecutableJobResourceStateType/*.xml");
>>>> ./SRC/gt4.2.1-all-source-installer/source-trees-thr/ws-gram/discovery/providers/setup/condor/globus-scheduler-provider-condor.in:my
>>>> @persistence_files =
>>>> glob("~/.globus/persisted/$host-$port/ManagedExecutableJobResourceStateType/*.xml");
>>>> ./SRC/gt4.2.1-all-source-installer/source-trees/ws-gram/discovery/providers/setup/fork/globus-scheduler-provider-fork.in:my
>>>> @persistence_files =
>>>> glob("~/.globus/persisted/$host-$port/ManagedExecutableJobResourceStateType/*.xml");
>>>> ./SRC/gt4.2.1-all-source-installer/source-trees/ws-gram/discovery/providers/setup/pbs/globus-scheduler-provider-pbs.in:my
>>>> @persistence_files =
>>>> glob("~/.globus/persisted/$host-$port/ManagedExecutableJobResourceStateType/*.xml");
>>>> ./SRC/gt4.2.1-all-source-installer/source-trees/ws-gram/discovery/providers/setup/condor/globus-scheduler-provider-condor.in:my
>>>> @persistence_files =
>>>> glob("~/.globus/persisted/$host-$port/ManagedExecutableJobResourceStateType/*.xml");
>>>> ./setup/globus/globus-scheduler-provider-fork.in:my @persistence_files
>>>> = 
>>>> glob("~/.globus/persisted/$host-$port/ManagedExecutableJobResourceStateType/*.xml");
>>>> [r...@globus-sge globus-4.2.1]#
>>>> [r...@globus-sge globus-4.2.1]# cd /usr/share/tomcat5/webapps/wsrf/
>>>> [r...@globus-sge wsrf]#
>>>> [r...@globus-sge wsrf]# grep -r '/.globus/persisted/' .
>>>> [r...@globus-sge wsrf]#
>>>> [r...@globus-sge wsrf]#
>>>>
>>>> Has anybody tried to update this before or familiar with changing this?
>>>>
>>>> Kind regards,
>>>>
>>>> Dougal
>>>
>>
>>
>

Reply via email to