Once again thanks Chris that did the trick

-----Original Message-----
From: Chris Wilper [mailto:[email protected]] 
Sent: 10 August 2011 13:56
To: Support and info exchange list for Fedora users.
Subject: Re: [fcrepo-user] $FEDORA_HOME Variable set for App Restart but not 
set when users attempts login:

It looks like FCREPO-870 is indeed this issue. What's happening here is 
probably that FEDORA_HOME is not actually set in the context of the running 
Tomcat service. When you installed Fedora, it saved the value to a file, and 
most part of Fedora are just using that file. But one part was still directly 
trying to use the environment variable. And if it's not set in versions of 
Fedora prior to 3.5, this is the behavior you'll get.

To fix it, try this: Instead of defining FEDORA_HOME in /etc/profile, define it 
in /usr/local/fedora/tomcat/bin/setenv.sh (a new file, which you should make 
executable). This is automatically sourced by tomcat at startup time, and 
should ensure the environment variable is present. e.g.:

export FEDORA_HOME=/usr/local/fedora

- Chris

On Wed, Aug 10, 2011 at 8:24 AM, Michael.OBrien <[email protected]> wrote:
> Hi all,
>
>
>
> I appear to have to have a strange situation when $FEDORA_HOME is set 
> during the initializing & post initializing phases and completes to 
> register server startup complete but once a user attemps to logon 
> using the url http://localhost:8080/fedora/describe the fedora.log 
> errors with the log details below and appears to have lost the value 
> for $FEDORA_HOME. No matter what I enter into the account fields I get 
> repeated prompts for them even after I copied the values from 
> fedora-users.xml
>
>
>
> I have the FEDORA_HOME environmental variable set in etc/profile
>
> export FEDORA_HOME=/usr/local/fedora
>
> (echo /usr/local/fedora )
>
> If I reload the app it completes the initializing, post initializing 
> phase and registers server startup complete but when I go 
> http://localhost:8080/
>
>
>
> If its connected to this issue 
> https://jira.duraspace.org/browse/FCREPO-870
> is there a workaround till version 3.5 is released?
>
>
>
> Michael
>
>
>
> Before a user tries to login
>
> INFO 2011-08-10 12:52:02.752 [Thread-20] (BasicServer) Fedora Version: 
> 3.4.2 INFO 2011-08-10 12:52:02.752 [Thread-20] (BasicServer) Fedora Build 
> Date:
> 2011-01-20 00:34:20 UTC-0500 INFO 2011-08-10 12:52:02.754 [Thread-20]
> (Server) Initializing org.fcrepo.server.storage.DefaultDOManager
>
> INFO 2011-08-10 12:52:02.771 [Thread-20] (Server) Initializing 
> org.fcrepo.server.oai.FedoraOAIProviderModule
>
> INFO 2011-08-10 12:52:02.772 [Thread-20] (Server) Initializing 
> org.fcrepo.server.security.DefaultBackendSecurity
>
> INFO 2011-08-10 12:52:02.774 [Thread-20] (Server) Initializing 
> org.fcrepo.server.access.DefaultAccess
>
> INFO 2011-08-10 12:52:02.778 [Thread-20] (Server) Initializing 
> org.fcrepo.server.storage.translation.DOTranslatorModule
>
> INFO 2011-08-10 12:52:03.024 [Thread-20] (Server) Initializing 
> org.fcrepo.server.search.FieldSearchSQLModule
>
> INFO 2011-08-10 12:52:03.026 [Thread-20] (Server) Initializing 
> org.fcrepo.server.management.ManagementModule
>
> INFO 2011-08-10 12:52:03.037 [Thread-20] (Server) Initializing 
> org.fcrepo.server.security.DefaultAuthorization
>
> INFO 2011-08-10 12:52:03.486 [Thread-20] (Server) Initializing 
> org.fcrepo.server.storage.ConnectionPoolManagerImpl
>
> INFO 2011-08-10 12:52:03.527 [Thread-20] (Server) Initializing 
> org.fcrepo.server.validation.DOValidatorModule
>
> INFO 2011-08-10 12:52:03.528 [Thread-20] (Server) Initializing 
> org.fcrepo.server.access.DynamicAccessModule
>
> INFO 2011-08-10 12:52:03.529 [Thread-20] (Server) Initializing 
> org.fcrepo.server.messaging.MessagingModule
>
> INFO 2011-08-10 12:52:03.530 [Thread-20] (MessagingModule) Messaging 
> Module is disabled.
>
> INFO 2011-08-10 12:52:03.531 [Thread-20] (Server) Initializing 
> org.fcrepo.server.storage.DefaultExternalContentManager
>
> INFO 2011-08-10 12:52:03.625 [Thread-20] (Server) Initializing 
> org.fcrepo.server.resourceIndex.ResourceIndexModule
>
> INFO 2011-08-10 12:52:03.630 [Thread-20] (Server) Initializing 
> org.fcrepo.server.storage.lowlevel.akubra.AkubraLowlevelStorageModule
>
> INFO 2011-08-10 12:52:03.649 [Thread-20] (Server) Initializing 
> org.fcrepo.server.management.BasicPIDGenerator
>
> INFO 2011-08-10 12:52:03.651 [Thread-20] (Server) Post-Initializing 
> org.fcrepo.server.storage.DefaultDOManager
>
> INFO 2011-08-10 12:52:03.968 [Thread-20] (Server) Post-Initializing 
> org.fcrepo.server.oai.FedoraOAIProviderModule
>
> INFO 2011-08-10 12:52:03.976 [Thread-20] (Server) Post-Initializing 
> org.fcrepo.server.security.DefaultBackendSecurity
>
> INFO 2011-08-10 12:52:03.991 [Thread-20] (Server) Post-Initializing 
> org.fcrepo.server.access.DefaultAccess
>
> INFO 2011-08-10 12:52:03.991 [Thread-20] (Server) Post-Initializing 
> org.fcrepo.server.storage.translation.DOTranslatorModule
>
> INFO 2011-08-10 12:52:03.991 [Thread-20] (Server) Post-Initializing 
> org.fcrepo.server.search.FieldSearchSQLModule
>
> INFO 2011-08-10 12:52:03.994 [Thread-20] (Server) Post-Initializing 
> org.fcrepo.server.management.ManagementModule
>
> INFO 2011-08-10 12:52:04.079 [Thread-20] (Server) Post-Initializing 
> org.fcrepo.server.security.DefaultAuthorization
>
> INFO 2011-08-10 12:52:04.883 [Thread-20] (PolicyFinderModule) Loading 
> repository policies...
>
> INFO 2011-08-10 12:52:04.891 [Thread-20] (PolicyFinderModule) Loading
> policy:
> /usr/local/fedora/data/fedora-xacml-policies/repository-policies/defau
> lt/deny-unallowed-file-resolution.xml
>
> INFO 2011-08-10 12:52:04.948 [Thread-20] (PolicyFinderModule) Loading
> policy:
> /usr/local/fedora/data/fedora-xacml-policies/repository-policies/defau
> lt/permit-serverStatus-unrestricted.xml
>
> INFO 2011-08-10 12:52:04.950 [Thread-20] (PolicyFinderModule) Loading
> policy:
> /usr/local/fedora/data/fedora-xacml-policies/repository-policies/defau
> lt/permit-oai-unrestricted.xml
>
> INFO 2011-08-10 12:52:04.952 [Thread-20] (PolicyFinderModule) Loading
> policy:
> /usr/local/fedora/data/fedora-xacml-policies/repository-policies/defau
> lt/permit-dsstate-check-unrestricted.xml
>
> INFO 2011-08-10 12:52:04.954 [Thread-20] (PolicyFinderModule) Loading
> policy:
> /usr/local/fedora/data/fedora-xacml-policies/repository-policies/defau
> lt/deny-purge-datastream-if-active-or-inactive.xml
>
> INFO 2011-08-10 12:52:04.986 [Thread-20] (PolicyFinderModule) Loading
> policy:
> /usr/local/fedora/data/fedora-xacml-policies/repository-policies/defau
> lt/deny-inactive-or-deleted-objects-or-datastreams-if-not-administrato
> r.xml
>
> INFO 2011-08-10 12:52:04.991 [Thread-20] (PolicyFinderModule) Loading
> policy:
> /usr/local/fedora/data/fedora-xacml-policies/repository-policies/defau
> lt/deny-reloadPolicies-if-not-localhost.xml
>
> INFO 2011-08-10 12:52:04.994 [Thread-20] (PolicyFinderModule) Loading
> policy:
> /usr/local/fedora/data/fedora-xacml-policies/repository-policies/defau
> lt/permit-anything-to-administrator.xml
>
> INFO 2011-08-10 12:52:04.996 [Thread-20] (PolicyFinderModule) Loading
> policy:
> /usr/local/fedora/data/fedora-xacml-policies/repository-policies/defau
> lt/deny-apim-if-not-localhost.xml
>
> INFO 2011-08-10 12:52:05.000 [Thread-20] (PolicyFinderModule) Loading
> policy:
> /usr/local/fedora/data/fedora-xacml-policies/repository-policies/defau
> lt/deny-policy-management-if-not-administrator.xml
>
> INFO 2011-08-10 12:52:05.003 [Thread-20] (PolicyFinderModule) Loading
> policy:
> /usr/local/fedora/data/fedora-xacml-policies/repository-policies/defau
> lt/permit-apia-unrestricted.xml
>
> INFO 2011-08-10 12:52:05.004 [Thread-20] (PolicyFinderModule) Loading
> policy:
> /usr/local/fedora/data/fedora-xacml-policies/repository-policies/defau
> lt/deny-purge-object-if-active-or-inactive.xml
>
> INFO 2011-08-10 12:52:05.007 [Thread-20] (PolicyFinderModule) Loading
> policy:
> /usr/local/fedora/server/fedora-internal-use/fedora-internal-use-backe
> nd-service-policies/callback-by_fedoraInternalCall-1-other-methods.xml
>
> INFO 2011-08-10 12:52:05.011 [Thread-20] (PolicyFinderModule) Loading
> policy:
> /usr/local/fedora/server/fedora-internal-use/fedora-internal-use-backe
> nd-service-policies/callback-by_default.xml
>
> INFO 2011-08-10 12:52:05.014 [Thread-20] (PolicyFinderModule) Loading
> policy:
> /usr/local/fedora/server/fedora-internal-use/fedora-internal-use-backe
> nd-service-policies/callback-by_fedoraInternalCall-2-other-methods.xml
>
> INFO 2011-08-10 12:52:05.019 [Thread-20] (Server) Post-Initializing 
> org.fcrepo.server.storage.ConnectionPoolManagerImpl
>
> INFO 2011-08-10 12:52:05.019 [Thread-20] (Server) Post-Initializing 
> org.fcrepo.server.validation.DOValidatorModule
>
> INFO 2011-08-10 12:52:05.020 [Thread-20] (Server) Post-Initializing 
> org.fcrepo.server.access.DynamicAccessModule
>
> INFO 2011-08-10 12:52:05.023 [Thread-20] (Server) Post-Initializing 
> org.fcrepo.server.messaging.MessagingModule
>
> INFO 2011-08-10 12:52:05.023 [Thread-20] (Server) Post-Initializing 
> org.fcrepo.server.storage.DefaultExternalContentManager
>
> INFO 2011-08-10 12:52:05.023 [Thread-20] (Server) Post-Initializing 
> org.fcrepo.server.resourceIndex.ResourceIndexModule
>
> INFO 2011-08-10 12:52:05.023 [Thread-20] (Server) Post-Initializing 
> org.fcrepo.server.storage.lowlevel.akubra.AkubraLowlevelStorageModule
>
> INFO 2011-08-10 12:52:05.256 [Thread-20] (Server) Post-Initializing 
> org.fcrepo.server.management.BasicPIDGenerator
>
> INFO 2011-08-10 12:52:05.268 [Thread-20] (Server) Server startup 
> complete
>
>
>
> After attempting to login
>
> ERROR 2011-08-10 12:54:26.714 [http-bio-8080-exec-23] 
> (XmlUsersFileModule) FEDORA_HOME environment variable not set ERROR 
> 2011-08-10 12:54:26.714 [http-bio-8080-exec-23] (AuthFilterJAAS) Login 
> Failure: all modules ignored ERROR 2011-08-10 12:54:54.665 
> [http-bio-8080-exec-25] (XmlUsersFileModule) FEDORA_HOME environment 
> variable not set ERROR 2011-08-10 12:54:54.665 [http-bio-8080-exec-25] 
> (XmlUsersFileModule) FEDORA_HOME environment variable not set ERROR 
> 2011-08-10 12:54:54.665 [http-bio-8080-exec-25]
> (AuthFilterJAAS) Login Failure: all modules ignored
>
>
>
> ----------------------------------------------------------------------
> -------- uberSVN's rich system and user administration capabilities 
> and model configuration take the hassle out of deploying and managing 
> Subversion and the tools developers use with it. Learn more about 
> uberSVN and get a free download at:  
> http://p.sf.net/sfu/wandisco-dev2dev
>
> _______________________________________________
> Fedora-commons-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>
>

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and the 
tools developers use with it. Learn more about uberSVN and get a free download 
at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to