As the title states, we’re in the process of upgrading to Hippo 12 from the latest Hippo 11. I’ve gone through the documentation here:
https://www.onehippo.org/library/upgrade-11-to-12/upgrade-11.2-to-12.0.html
And we now have a solid, error-free build in local.
However, when looking to upgrade our development server (and replicated when simulating an upgrade in local), I’m encountering the following error:
[INFO] [talledLocalContainer] 17.07.2018 11:46:02 ERROR localhost-startStop-1 [RepositoryServlet.init:224] Error while setting up JCR repository:
[INFO] [talledLocalContainer] javax.jcr.RepositoryException: unchecked exception: org.onehippo.cm.engine.ConfigurationRuntimeException: Failed to process namespace definition defined in hippo-cms/hippo-repository/hippo-repository-engine [config: main.yaml]: namespace with prefix 'hippo' already exists in repository with different URI. Existing: 'http://www.onehippo.org/jcr/hippo/nt/2.0.2', target: 'http://www.onehippo.org/jcr/hippo/nt/2.0.4'. Changing existing namespaces is not supported. Aborting.
[INFO] [talledLocalContainer] at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:161) ~[hippo-repository-connector-5.4.0.jar:5.4.0]
[INFO] [talledLocalContainer] at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java:184) [hippo-repository-servlets-5.4.0.jar:5.4.0]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1227) [catalina.jar:8.0.39]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1140) [catalina.jar:8.0.39]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1027) [catalina.jar:8.0.39]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5038) [catalina.jar:8.0.39]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5348) [catalina.jar:8.0.39]
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) [catalina.jar:8.0.39]
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753) [catalina.jar:8.0.39]
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729) [catalina.jar:8.0.39]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) [catalina.jar:8.0.39]
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:940) [catalina.jar:8.0.39]
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1816) [catalina.jar:8.0.39]
[INFO] [talledLocalContainer] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_162]
[INFO] [talledLocalContainer] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_162]
[INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_162]
[INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_162]
[INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_162]
[INFO] [talledLocalContainer] Caused by: org.onehippo.cm.engine.ConfigurationRuntimeException: Failed to process namespace definition defined in hippo-cms/hippo-repository/hippo-repository-engine [config: main.yaml]: namespace with prefix 'hippo' already exists in repository with different URI. Existing: 'http://www.onehippo.org/jcr/hippo/nt/2.0.2', target: 'http://www.onehippo.org/jcr/hippo/nt/2.0.4'. Changing existing namespaces is not supported. Aborting.
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.ConfigurationConfigService.applyNamespaces(ConfigurationConfigService.java:251) ~[hippo-repository-engine-5.4.0.jar:5.4.0]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.ConfigurationConfigService.computeAndWriteDelta(ConfigurationConfigService.java:221) ~[hippo-repository-engine-5.4.0.jar:5.4.0]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.ConfigurationServiceImpl.applyConfig(ConfigurationServiceImpl.java:589) ~[hippo-repository-engine-5.4.0.jar:5.4.0]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.ConfigurationServiceImpl.init(ConfigurationServiceImpl.java:204) ~[hippo-repository-engine-5.4.0.jar:5.4.0]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.ConfigurationServiceImpl.start(ConfigurationServiceImpl.java:122) ~[hippo-repository-engine-5.4.0.jar:5.4.0]
[INFO] [talledLocalContainer] at org.hippoecm.repository.LocalHippoRepository.initializeConfiguration(LocalHippoRepository.java:308) ~[hippo-repository-engine-5.4.0.jar:5.4.0]
[INFO] [talledLocalContainer] at org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRepository.java:292) ~[hippo-repository-engine-5.4.0.jar:5.4.0]
[INFO] [talledLocalContainer] at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoRepository.java:122) ~[hippo-repository-engine-5.4.0.jar:5.4.0]
[INFO] [talledLocalContainer] at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoRepository.java:112) ~[hippo-repository-engine-5.4.0.jar:5.4.0]
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_162]
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_162]
[INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_162]
[INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_162]
[INFO] [talledLocalContainer] at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:147) ~[hippo-repository-connector-5.4.0.jar:5.4.0]
[INFO] [talledLocalContainer] ... 17 more
I’ve gone back and looked at older Go Green Hippo 11 and 10 projects and discovered that the namespace URI has been at http://www.onehippo.org/jcr/hippo/nt/2.0.4 for quite some time, but this change, for whatever reason, didn’t end up in our project. Now, it appears, it has become an issue.
Can anyone recommend any solutions for getting past this issue?
Thanks so much,
Jeremy