Hi,
how reproduce the exception Im getting:
1. deploy both author and public instaces WAR file. Will be extracted into
two folders and tables are created fine no issues.
2. suppose I have some code changes and I want to replace the existing WAR
files. I delete the existing extracted folders. and Start the server.
I get the below exception:
2011-01-13 17:38:06,719 ERROR
core.persistence.bundle.BundleDbPersistenceManager: failed to read bundle:
27b0dab4-f5af-49fc-a574-94b48166752b: java.lang.IllegalArgumentException:
Invalid namespace index: 11
2011-01-13 17:38:06,725 ERROR
che.jackrabbit.core.query.OnWorkspaceInconsistency: Node /
(cafebabe-cafe-babe-cafe-babecafebabe) has missing child
'demo-project-members' (27b0dab4-f5af-49fc-a574-94b48166752b)
2011-01-13 17:38:06,726 ERROR
org.apache.jackrabbit.core.RepositoryImpl : Unable to initialize
workspace 'usergroups'
javax.jcr.RepositoryException: Error indexing workspace: Error indexing
workspace: Error indexing workspace
at
org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:540)
at
org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:213)
at
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1790)
at
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doPostInitialize(RepositoryImpl.java:2008)
at
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(RepositoryImpl.java:1921)
at
org.apache.jackrabbit.core.RepositoryImpl.getWorkspaceInfo(RepositoryImpl.java:735)
at
org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1377)
at
org.apache.jackrabbit.core.jndi.BindableRepository.login(BindableRepository.java:162)
at
info.magnolia.cms.util.WorkspaceAccessUtil.createRepositorySession(WorkspaceAccessUtil.java:123)
at
info.magnolia.cms.beans.config.ContentRepository.registerNameSpacesAndNodeTypes(ContentRepository.java:390)
at
info.magnolia.cms.beans.config.ContentRepository.loadRepository(ContentRepository.java:359)
at
info.magnolia.cms.beans.config.ContentRepository.loadRepositories(ContentRepository.java:314)
at
info.magnolia.cms.beans.config.ContentRepository.init(ContentRepository.java:189)
at
info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:102)
at
info.magnolia.cms.servlets.MgnlServletContextListener$2.doExec(MgnlServletContextListener.java:207)
at
info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:434)
at
info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:432)
at
info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:396)
at
info.magnolia.cms.servlets.MgnlServletContextListener.startServer(MgnlServletContextListener.java:205)
at
info.magnolia.cms.servlets.MgnlServletContextListener.contextInitialized(MgnlServletContextListener.java:201)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
at
org.apache.catalina.core.StandardService.start(StandardService.java:519)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.io.IOException: Error indexing workspace
at
org.apache.jackrabbit.core.query.lucene.MultiIndex.createInitialIndex(MultiIndex.java:382)
at
org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:511)
at
org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:66)
at
org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:538)
... 43 more
Caused by: org.apache.jackrabbit.core.state.NoSuchItemStateException:
27b0dab4-f5af-49fc-a574-94b48166752b
at
org.apache.jackrabbit.core.state.SharedItemStateManager.getItemState(SharedItemStateManager.java:270)
at
org.apache.jackrabbit.core.query.lucene.MultiIndex.createIndex(MultiIndex.java:1102)
at
org.apache.jackrabbit.core.query.lucene.MultiIndex.createInitialIndex(MultiIndex.java:375)
... 46 more
java.io.IOException: Error indexing workspace
at
org.apache.jackrabbit.core.query.lucene.MultiIndex.createInitialIndex(MultiIndex.java:382)
at
org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:511)
at
org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:66)
at
org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:538)
at
org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:213)
at
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1790)
at
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doPostInitialize(RepositoryImpl.java:2008)
at
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(RepositoryImpl.java:1921)
at
org.apache.jackrabbit.core.RepositoryImpl.getWorkspaceInfo(RepositoryImpl.java:735)
at
org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1377)
at
org.apache.jackrabbit.core.jndi.BindableRepository.login(BindableRepository.java:162)
at
info.magnolia.cms.util.WorkspaceAccessUtil.createRepositorySession(WorkspaceAccessUtil.java:123)
at
info.magnolia.cms.beans.config.ContentRepository.registerNameSpacesAndNodeTypes(ContentRepository.java:390)
at
info.magnolia.cms.beans.config.ContentRepository.loadRepository(ContentRepository.java:359)
at
info.magnolia.cms.beans.config.ContentRepository.loadRepositories(ContentRepository.java:314)
at
info.magnolia.cms.beans.config.ContentRepository.init(ContentRepository.java:189)
at
info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:102)
at
info.magnolia.cms.servlets.MgnlServletContextListener$2.doExec(MgnlServletContextListener.java:207)
at
info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:434)
at
info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:432)
at
info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:396)
at
info.magnolia.cms.servlets.MgnlServletContextListener.startServer(MgnlServletContextListener.java:205)
at
info.magnolia.cms.servlets.MgnlServletContextListener.contextInitialized(MgnlServletContextListener.java:201)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
at
org.apache.catalina.core.StandardService.start(StandardService.java:519)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.apache.jackrabbit.core.state.NoSuchItemStateException:
27b0dab4-f5af-49fc-a574-94b48166752b
at
org.apache.jackrabbit.core.state.SharedItemStateManager.getItemState(SharedItemStateManager.java:270)
at
org.apache.jackrabbit.core.query.lucene.MultiIndex.createIndex(MultiIndex.java:1102)
at
org.apache.jackrabbit.core.query.lucene.MultiIndex.createInitialIndex(MultiIndex.java:375)
... 46 more
2011-01-13 17:38:06,784 ERROR
info.magnolia.cms.beans.config.ContentRepository : Failed to initialize
hierarchy manager for JCR magnolia
javax.jcr.NoSuchWorkspaceException: usergroups
at
org.apache.jackrabbit.core.RepositoryImpl.getWorkspaceInfo(RepositoryImpl.java:738)
at
org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1377)
at
org.apache.jackrabbit.core.jndi.BindableRepository.login(BindableRepository.java:162)
at
info.magnolia.cms.util.WorkspaceAccessUtil.createRepositorySession(WorkspaceAccessUtil.java:123)
at
info.magnolia.cms.beans.config.ContentRepository.registerNameSpacesAndNodeTypes(ContentRepository.java:390)
at
info.magnolia.cms.beans.config.ContentRepository.loadRepository(ContentRepository.java:359)
at
info.magnolia.cms.beans.config.ContentRepository.loadRepositories(ContentRepository.java:314)
at
info.magnolia.cms.beans.config.ContentRepository.init(ContentRepository.java:189)
at
info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:102)
at
info.magnolia.cms.servlets.MgnlServletContextListener$2.doExec(MgnlServletContextListener.java:207)
at
info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:434)
at
info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:432)
at
info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:396)
at
info.magnolia.cms.servlets.MgnlServletContextListener.startServer(MgnlServletContextListener.java:205)
at
info.magnolia.cms.servlets.MgnlServletContextListener.contextInitialized(MgnlServletContextListener.java:201)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
at
org.apache.catalina.core.StandardService.start(StandardService.java:519)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
On Thu, Jan 13, 2011 at 3:57 PM, Nils Breunese <[email protected]> wrote:
>
> Kareem Al Jabr wrote:
>
> > On Wed, Jan 12, 2011 at 1:22 PM, Nils Breunese <[email protected]>
> wrote:
> >
> > Kareem Al Jabr wrote:
> >
> >>> I would like to have a clear picture on how the build process should
> be. I checked out the source code from SVN and I also added dependencies on
> STK module and all is working fine. Now I use the generated WAR file in the
> target folder of magnolia-empty-webapp as my author instance WAR file. And I
> added the public instance located in the Apache bundle webapp folder. Now I
> work on my site through the admin central by applying styles and modifying
> templates definitions if needed.
> >>
> >> There is not 'one right way' for your build process. We don't check out
> the source from Subversion, but have set up our own Maven project based on
> the Magnolia empty web app jar and added the modules we want to have in our
> setup. And then we add our own custom code and configuration in our own
> additional modules.
> >
> > Could you please provide me with a link explaining how this can be done
> in more details.
>
> I don't know of a page explaining this in detail for Magnolia specifically.
> I don't know if you're familiar with Maven, but if not that might be a place
> to start: http://maven.apache.org/ If you have experience with another
> build tool (ant, gradle, etc.) you could just use that as well.
>
> >>> Note: I use MySQL as my repository. If I need to make changes on the
> source code I have to build the author instance again, will this override my
> modifications to the styles and template definitions I modified in the
> previous war file?
> >>>
> >>
> >>
> >> Any configuration stored in MySQL will be persisted, unless an update
> overwrites this data. We use local instances of Magnolia during development
> and export our repository modifications to XML and commit these XML files in
> our build, so they get bootstrapped when the code is deployed.
> > I have a problem here. When tables are created in the first deployment of
> the WAR file they are all created with MyIsam with engine type and I've read
> in the documentation that this engine type isn't supported. So I need to
> have ndbcluster as engine type since I'm using a clustered MySQL database.
>
> You can configure the default storage engine in the configuration of your
> MySQL server:
> http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_default-storage-engineOr
> you can change the storage engine after tables are created using a
> statement like 'ALTER TABLE table_name ENGINE = InnoDB;'.
>
> >>> And What about the public instance!? is it enough to keep working on
> the folder I've extracted from the Apache bundle? or I can create a copy of
> the generated WAR file from source code and rename it as public instance?
> >>
> >> You can use a WAR file with multiple configurations:
> http://documentation.magnolia-cms.com/cookbook/using-a-single-war-file-with-multiple-configurations.html
> > I would like to have a separate WAR for my public instance since I will
> deploy it on a separate server.
>
> You can just deploy the same war on all servers if you like, and just make
> sure the war contains the right settings for the right servers (see
> http://documentation.magnolia-cms.com/technical-guide/configuration-mechanisms.html).
> Or you can build separate wars if you really want to. That's up to you.
>
> > Can I use the same author instance WAR file and just rename it and change
> the persistence storage related tags! I need to know the correct way for the
> build process and deployment. Whenever I read online I find different topics
> and each mentioning in a different way.
>
> That's probably because there are multiple ways to do things, there is no
> one correct way. The official documentation can be found at
> http://documentation.magnolia-cms.com/ so I recommend going there first.
>
> > My main question here, if there is a WAR file changes. And I already have
> my instance setup and there is a folder already extracted from old WAR. how
> to merge the new changes in the new WAR? If I delete the instance's folder
> the deployment fails and only succeeds when I drop and recreate the database
> again!!
>
> I'm not familiar with this problem. When we update to a new version we
> remove that old application and deploy the new war and restart the instance.
> This works fine for us. If you get some error message, you might want to
> post this message.
>
> Nils.
> ------------------------------------------------------------------------
> VPRO www.vpro.nl
> ------------------------------------------------------------------------
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
>
>
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------