Hi,
In a
[url=http://forum.magnolia-cms.com/forum/thread.html?threadId=f3b8e656-fc02-4fe4-bf40-98d40bdfb9db&page=1]previous
post[/url], I've mentioned that my JCR repository became corrupt. I have now
rebuild the entire webapp from scratch and can rule out the 'bugged' module
that was the cause in the other thread.
However, [u]I can still break the repository[/u], but I have found the scenario
to reproduce this, and I am very curious what I am doing wrong.
The error in short is: "Unable to initialize workspace 'website'".
[b]Little background[/b]
JCR connected to MySQL database.
Using IntelliJ and Maven to build project. (run config launches mvn package
before "make")
[b]Scenario[/b]
I start from scratch, meaning I drop my schema, and recreate it. I also clean
everything in my target dir. There are no repositories.
I launch the webapp, magnolia identifies several modules to install. This goes
ok. After installing I can login and add a first page using my own blossom
module's template definition. I can also see the page working.
I then quit the webapp. Then, for sanity sake, I run tomcat again and
everything goes fine.
To be clear, the repositories dir is within the target\ dir. So its like:
[code]my-project\target\repositores
my-project\target\cache
my-project\target\META-INF
my-project\target\WEB-INF
[/code]
Now, I clear my project using [quote]mvn clean[/quote]
The entire target dir is deleted.
I run the webapp from within IntelliJ, which first does a [quote]mvn
package[/quote] and then runs his own "make" process.
The webapp starts, and then fails on:
[quote]2011-09-28 16:13:11,445 INFO info.magnolia.jackrabbit.ProviderImpl
: Loading repository at
C:\workspaces\my-project\target\magnolia-webapp-1.0.0-SNAPSHOT\repositories\magnolia
(config file:
C:\workspaces\my-project\target\magnolia-webapp-1.0.0-SNAPSHOT\WEB-INF\config\repo-conf\jackrabbit-mysql-search.xml)
- cluster id: "<unset>"
2011-09-28 16:13:12,604 ERROR
core.persistence.bundle.BundleDbPersistenceManager: failed to read bundle:
60cea82c-1f5b-406f-8f53-3c99dd7608d7: java.lang.IllegalArgumentException:
Invalid namespace index: 11
2011-09-28 16:13:12,605 ERROR
che.jackrabbit.core.query.OnWorkspaceInconsistency: Node /
(cafebabe-cafe-babe-cafe-babecafebabe) has missing child 'untitled'
(60cea82c-1f5b-406f-8f53-3c99dd7608d7)
2011-09-28 16:13:12,606 ERROR org.apache.jackrabbit.core.RepositoryImpl
: Unable to initialize workspace 'website'
[/quote]
Then I shutdown tomcat, and [quote]mvn clean[/quote] again (for sanity sake),
it still gives the above error.
The missing child "untitled" is the one page (in the "websites" area) I created
to check if it works.
I am able to reproduce this scenario over and over again. Once I clean the
target dir, I get this problem.
[i]Anyone has an idea how to solve this?[/i]
I was expecting Jackrabbit to just rebuild the index. Is this correct? Or do I
need to do something specific
to get this working?
I've also read some tips about putting your repositories dir outside the target
dir. Anyone has experience with that?
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=d4db222a-a397-4e16-874f-53ab3e4f8646
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------