Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-4398

Vocabularies not deployed when JSF UI not installed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 73.0.2
    • Fix Version/s: 73.1
    • Component/s: Vocabularies

      Description

      The vocabularies defined in studio are not deployed if the JSF UI is not installed

      Tested with with 9.3-SNAPSHOT from 11/22/2017

      java.lang.RuntimeException: Cannot load class: org.nuxeo.ecm.directory.api.ui.HierarchicalDirectoryUIDeleteConstraint wh
      ile processing component: studio.extensions.dam-solution-nuxeo
              at org.nuxeo.runtime.model.impl.ExtensionPointImpl.loadContributions(ExtensionPointImpl.java:110)
              at org.nuxeo.runtime.model.impl.ComponentManagerImpl.lambda$loadContributions$3(ComponentManagerImpl.java:464)
              at java.util.Optional.ifPresent(Optional.java:159)
              at org.nuxeo.runtime.model.impl.ComponentManagerImpl.loadContributions(ComponentManagerImpl.java:462)
              at org.nuxeo.runtime.model.impl.ComponentManagerImpl.registerExtension(ComponentManagerImpl.java:412)
              at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.activate(RegistrationInfoImpl.java:439)
              at org.nuxeo.runtime.model.impl.ComponentManagerImpl.activateComponent(ComponentManagerImpl.java:547)
              at org.nuxeo.runtime.model.impl.ComponentManagerImpl.activateComponents(ComponentManagerImpl.java:524)
              at org.nuxeo.runtime.model.impl.ComponentManagerImpl.start(ComponentManagerImpl.java:787)
              at org.nuxeo.runtime.osgi.OSGiRuntimeService.startComponents(OSGiRuntimeService.java:460)
              at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:475)
              at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:232)
              at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:226)
              at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:125)
              at org.nuxeo.runtime.deployment.NuxeoStarter.start(NuxeoStarter.java:120)
              at org.nuxeo.runtime.deployment.NuxeoStarter.contextInitialized(NuxeoStarter.java:93)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4745)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
              at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1842)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: org.nuxeo.common.xmap.XMapException: Cannot load class: org.nuxeo.ecm.directory.api.ui.HierarchicalDirectoryU
      IDeleteConstraint
              at org.nuxeo.common.xmap.XValueFactory$10.deserialize(XValueFactory.java:206)
              at org.nuxeo.common.xmap.XAnnotatedMember.getValue(XAnnotatedMember.java:135)
              at org.nuxeo.common.xmap.XAnnotatedMember.process(XAnnotatedMember.java:107)
              at org.nuxeo.common.xmap.XAnnotatedObject.newInstance(XAnnotatedObject.java:104)
              at org.nuxeo.common.xmap.ElementVisitor.visitNode(XAnnotatedList.java:148)
              at org.nuxeo.common.xmap.DOMHelper.visitElements(DOMHelper.java:116)
              at org.nuxeo.common.xmap.DOMHelper.visitNodes(DOMHelper.java:90)
              at org.nuxeo.common.xmap.XAnnotatedList.getValue(XAnnotatedList.java:71)
              at org.nuxeo.common.xmap.XAnnotatedMember.process(XAnnotatedMember.java:107)
              at org.nuxeo.common.xmap.XAnnotatedObject.newInstance(XAnnotatedObject.java:104)
              at org.nuxeo.common.xmap.XMap.loadAll(XMap.java:439)
              at org.nuxeo.common.xmap.XMap.loadAll(XMap.java:445)
              at org.nuxeo.common.xmap.XMap.loadAll(XMap.java:401)
              at org.nuxeo.runtime.model.impl.ExtensionPointImpl.loadContributions(ExtensionPointImpl.java:107)
              ... 28 more
      Caused by: java.lang.ClassNotFoundException: org.nuxeo.ecm.directory.api.ui.HierarchicalDirectoryUIDeleteConstraint
              at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              at org.nuxeo.runtime.osgi.OSGiRuntimeContext.loadClass(OSGiRuntimeContext.java:102)
              at org.nuxeo.runtime.model.impl.XMapContext.loadClass(XMapContext.java:47)
              at org.nuxeo.common.xmap.XValueFactory$10.deserialize(XValueFactory.java:204)
              ... 41 more
      

      ACCEPTANCE CRITERIA

      • When a hierarchical vocabulary is defined in Studio and deployed on Nuxeo Server with Web UI only, it should be deployed without errors
      • When users and groups are configured in Studio and deployed on Nuxeo Server with Web UI only, it should be deployed without errors
      • When a hierarchical vocabulary is defined in Studio and deployed on Nuxeo Server with no UI, it should be deployed without errors
      • When users and groups are configured in Studio and deployed on Nuxeo Server with no UI, it should be deployed without errors

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h