Finally I achieved it. The configuration was right. The problem was that Nuxeo 
cannot log in if the startup page is the servers view because the 
NavigationContext is not initializated.

I've solved this replacing the initServerAndFindStartupPage method of 
StartupHelper class by:

{code}
    public String initServerAndFindStartupPage() throws ClientException {

        setupCurrentUser();

        // if more than one repo : display the server selection screen
        if (repositoryManager.getRepositories().size() > 1) {
            if (navigationContext.getCurrentServerLocation() == null) {
                // update location
                RepositoryLocation repLoc = new 
RepositoryLocation(repositoryManager.getRepositories().iterator().next().getName());
                navigationContext.setCurrentServerLocation(repLoc);
            }
            return SERVERS_VIEW;
        }

        // we try to select the server to go to the next screen
        if (navigationContext.getCurrentServerLocation() == null) {

            // update location
            RepositoryLocation repLoc = new RepositoryLocation(
                    
repositoryManager.getRepositories().iterator().next().getName());
            navigationContext.setCurrentServerLocation(repLoc);
        }

        // the Repository Location is initialized, skip the first screen
        return DOMAINS_VIEW;
    }
{code}

I've created a new Jira task (https://jira.nuxeo.org/browse/NXP-4776) and 
attached the code.

Regards.
--
Posted by "enriqueperez" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=3363#10148>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to