jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sébastien Launay (JIRA) <j...@apache.org>
Subject [jira] Assigned: (JCR-2421) Unable to create repository using jackrabbit-webapp because a directory called "jackrabbit" already exists
Date Tue, 08 Dec 2009 13:41:18 GMT

     [ https://issues.apache.org/jira/browse/JCR-2421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sébastien Launay reassigned JCR-2421:
-------------------------------------

    Assignee: Sébastien Launay

The 'jackrabbit/tmp' directory is created by the JcrRemotingServlet servlet from jackrabbit-jcr-server
component at servlet init.
But the Installer class from jackrabbit-webapp test if the repository home already exists
before creating it and is by default 'jackrabbit'.

So, I see three solutions here:
* use a different home directory in JcrRemotingServlet servlet but this will not be backward
compatible as we change default settings
* use a different home directory in Installer but this will not be backward compatible as
we change default settings
* check if a specific file/folder exists (like REPO_HOME/repository) instead of checking the
whole repository home directory.

I think the last one is the less intrusive.

WDYT?

> Unable to create repository using jackrabbit-webapp because a directory called "jackrabbit"
already exists
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-2421
>                 URL: https://issues.apache.org/jira/browse/JCR-2421
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-standalone, jackrabbit-webapp
>    Affects Versions: 2.0-beta1, 2.0-beta3
>         Environment: Jetty 6.1.18 / Sun JDK 1.6.0_14-b08 / Ubuntu Jaunty 9.04
>            Reporter: Sébastien Launay
>            Assignee: Sébastien Launay
>
> I mount the jackrabbit-webapp.war in a Jetty installation
> * at startup i have the following exception:
> ERROR RepositoryStartupServlet: Either create thejackrabbit/bootstrap.properties file
or
> ERROR RepositoryStartupServlet: use the '/config/index.jsp' for easy configuration.
> ERROR RepositoryStartupServlet: RepositoryStartupServlet initializing failed: javax.servlet.ServletException:
Repository startup configuration is not valid.
> * then when i access http://localhost:8080/ i am forwarded to the page:
>  http://localhost:8080/bootstrap/missing.jsp
> * creating the repository by clicking on "Create Content Repository" button fails complaining
that the jackrabbit directory already exists
> Indeed, i find a jackrabbit directory in my JETTY_HOME (from where is started Jetty).
> A workaround is to delete this "jackrabbit" directory and then i can create the repository
by clicking on the previous button and therefore access the newly created repository.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message