Uploaded image for project: '[Read Only] - Hippo Repository'
  1. [Read Only] - Hippo Repository
  2. REPO-1165

A single incorrect bootstrap file results in repository not able to boot

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • None
    • 2.28.00
    • None

    Description

      if hippoecm-extensions.xml points to a non existing resource, or the resource is invalid xml, instead of logging a warning about the specific wrong instruction, the entire repository does not boot any more.

      Reproduction: From archetype created project, change one contentresource location to a non existing file. During startup, the stacktrace below will be logged:

      [INFO] [talledLocalContainer] Dec 24, 2014 12:22:53 PM org.apache.catalina.startup.HostConfig deployWAR
      [INFO] [talledLocalContainer] INFO: Deploying web application archive /home/aschrijvers/hippo-projects/ARCHE/trunk/website/target/gettingstarted/target/tomcat7x/webapps/cms.war
      [INFO] [talledLocalContainer] 24.12.2014 12:23:00 ERROR localhost-startStop-1 [RepositoryServlet.init:229] Error while setting up JCR repository:
      [INFO] [talledLocalContainer] javax.jcr.RepositoryException: Initializing extension gettingstarted-bootstrap-configuration-1.01.00.jar!/hippoecm-extension.xml failed
      [INFO] [talledLocalContainer] at org.onehippo.repository.bootstrap.Extension.load(Extension.java:81)
      [INFO] [talledLocalContainer] at org.onehippo.repository.bootstrap.InitializationProcessorImpl.loadExtensions(InitializationProcessorImpl.java:158)
      [INFO] [talledLocalContainer] at org.onehippo.repository.bootstrap.InitializationProcessorImpl.loadExtensions(InitializationProcessorImpl.java:84)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.LocalHippoRepository.contentBootstrap(LocalHippoRepository.java:333)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRepository.java:288)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoRepository.java:118)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoRepository.java:108)
      [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      [INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:483)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:178)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java:189)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5229)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5516)
      [INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
      [INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)
      [INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880)
      [INFO] [talledLocalContainer] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      [INFO] [talledLocalContainer] Dec 24, 2014 12:23:00 PM org.apache.catalina.core.StandardContext loadOnStartup
      [INFO] [talledLocalContainer] SEVERE: Servlet /cms threw load() exception
      [INFO] [talledLocalContainer] javax.servlet.ServletException: RepositoryException: Initializing extension gettingstarted-bootstrap-configuration-1.01.00.jar!/hippoecm-extension.xml failed
      [INFO] [talledLocalContainer] at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java:230)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5229)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5516)
      [INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
      [INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)
      [INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880)
      [INFO] [talledLocalContainer] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      [INFO] [talledLocalContainer] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      [INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      [INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:745)
      [INFO] [talledLocalContainer]
      [INFO] [talledLocalContainer] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      [INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      [INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:745)
      [INFO] [talledLocalContainer] Caused by: javax.jcr.RepositoryException: Could not read root node name from content file
      [INFO] [talledLocalContainer] at org.onehippo.repository.bootstrap.util.ContentFileInfo.readInfo(ContentFileInfo.java:84)
      [INFO] [talledLocalContainer] at org.onehippo.repository.bootstrap.InitializeItem.initialize(InitializeItem.java:429)
      [INFO] [talledLocalContainer] at org.onehippo.repository.bootstrap.Extension.load(Extension.java:69)
      [INFO] [talledLocalContainer] ... 28 more
      [INFO] [talledLocalContainer] Caused by: java.io.FileNotFoundException: JAR entry configuration/modules/autoexport-modulde.xml not found in /home/aschrijvers/hippo-projects/ARCHE/trunk/website/target/gettingstarted/target/tomcat7x/webapps/cms/WEB-INF/lib/gettingstarted-bootstrap-configuration-1.01.00.jar
      [INFO] [talledLocalContainer] at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:142)
      [INFO] [talledLocalContainer] at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:150)
      [INFO] [talledLocalContainer] at java.net.URL.openStream(URL.java:1038)
      [INFO] [talledLocalContainer] at org.onehippo.repository.bootstrap.util.ContentFileInfo.readInfo(ContentFileInfo.java:76)
      [INFO] [talledLocalContainer] ... 30 more
      [INFO] [talledLocalContainer] Dec 24, 2014 12:23:00 PM org.apache.catalina.startup.HostConfig deployWAR
      [INFO] [talledLocalContainer] INFO: Deployment of web application archive /home/aschrijvers/hippo-projects/ARCHE/trunk/website/target/gettingstarted/target/tomcat7x/webapps/cms.war has finished in 6,524 ms

      Attachments

        Activity

          People

            Unassigned Unassigned
            aschrijvers Ard Schrijvers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: