You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Sébastien Launay (JIRA)" <ji...@apache.org> on 2009/12/03 10:08:20 UTC
[jira] Created: (JCR-2421) Unable to create repository using
jackrabbit-webapp because a directory called "jackrabbit" already exists
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-beta3, 2.0-beta1
Environment: Jetty 6.1.18 / Sun JDK 1.6.0_14-b08 / Ubuntu Jaunty 9.04
Reporter: 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.
[jira] Updated: (JCR-2421) Unable to create repository using
jackrabbit-webapp because a directory called "jackrabbit" already exists
Posted by "Sébastien Launay (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-2421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sébastien Launay updated JCR-2421:
----------------------------------
Attachment: JCR-2421-webapp-unable-to-create-repository.patch
Proposed patch using the third solution.
The only drawback is that a custom repository.xml may not use a LocalFileSystem with path set to '${rep.home}/repository' but FWIR configTemplate uses '/org/apache/jackrabbit/core/repository.xml' and is not configurable.
> 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
> Attachments: JCR-2421-webapp-unable-to-create-repository.patch
>
>
> 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.
[jira] Updated: (JCR-2421) Unable to create repository using
jackrabbit-webapp because a directory called "jackrabbit" already exists
Posted by "Sébastien Launay (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-2421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sébastien Launay updated JCR-2421:
----------------------------------
Affects Version/s: 1.6.0
Fix Version/s: 1.6.1
Merged to the 1.6 branch in revision 889136.
> 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: 1.6.0, 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
> Fix For: 1.6.1, 2.0.0
>
> Attachments: JCR-2421-webapp-unable-to-create-repository.patch
>
>
> 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.
[jira] Updated: (JCR-2421) Unable to create repository using
jackrabbit-webapp because a directory called "jackrabbit" already exists
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-2421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jukka Zitting updated JCR-2421:
-------------------------------
Fix Version/s: (was: 2.0.0)
2.0-beta6
> 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-beta5
> Environment: Jetty 6.1.18 / Sun JDK 1.6.0_14-b08 / Ubuntu Jaunty 9.04
> Reporter: Sébastien Launay
> Assignee: Sébastien Launay
> Fix For: 1.6.1, 2.0-beta6
>
> Attachments: JCR-2421-webapp-unable-to-create-repository.patch
>
>
> 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.
[jira] Resolved: (JCR-2421) Unable to create repository using
jackrabbit-webapp because a directory called "jackrabbit" already exists
Posted by "Sébastien Launay (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-2421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sébastien Launay resolved JCR-2421.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
Patch applied in revision 889133.
> 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
> Fix For: 2.0.0
>
> Attachments: JCR-2421-webapp-unable-to-create-repository.patch
>
>
> 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.
[jira] Commented: (JCR-2421) Unable to create repository using
jackrabbit-webapp because a directory called "jackrabbit" already exists
Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-2421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12787974#action_12787974 ]
Marcel Reutegger commented on JCR-2421:
---------------------------------------
> I think the last one is the less intrusive.
+1
> 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.
[jira] Assigned: (JCR-2421) Unable to create repository using
jackrabbit-webapp because a directory called "jackrabbit" already exists
Posted by "Sébastien Launay (JIRA)" <ji...@apache.org>.
[ 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.