nxs:stringList is not resolved as a type in faceted_search_default.xsd

I'm trying to customize The Faceted Search following this tutorial: Faceted Search When I add a schema nxs:stringList is not resolved as a type

<?xml version="1.0"?>
<xs:schema targetNamespace="http://www.nuxeo.org/ecm/schemas/common/"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:nxs="http://www.nuxeo.org/ecm/schemas/common/">

  <xs:include schemaLocation="base.xsd" />


  <xs:element name="ecm_fulltext" type="xs:string" />
  <xs:element name="dc_creator" type="nxs:stringList" />
  <xs:element name="dc_created_min" type="xs:date" />
  <xs:element name="dc_created_max" type="xs:date" />
  <xs:element name="dc_modified_min" type="xs:date" />
  <xs:element name="dc_modified_max" type="xs:date" />

  <xs:element name="dc_coverage" type="nxs:stringList" />
  <xs:element name="dc_subjects" type="nxs:stringList"/>

  <xs:element name="ecm_path" type="nxs:stringList"/>

</xs:schema>

src-resolve: Cannot resolve the name 'nxs:stringList' to a(n) 'type definition' component.

I found a similar question here I added thoses lines:

 <xs:complexType name="stringList">
    <xs:sequence>
      <xs:element name="item" type="xs:string" minOccurs="0"
        maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>

Not working as well here's my log:

2015-06-05 09:36:53,244 INFO  [localhost-startStop-1] [org.nuxeo.runtime.osgi.OSGiRuntimeService] Nuxeo Platform Started
======================================================================
= Component Loading Status: Pending: 0 / Unstarted: 0 / Total: 640
======================================================================
2015-06-05 09:36:56,585 WARN  [localhost-startStop-1] [org.nuxeo.ecm.platform.ui.web.application.config.JSFAnnotationProvider] container scanned classes unavailable, applying default scanning
2015-06-05 09:37:24,324 WARN  [localhost-startStop-1] [org.jboss.seam.security.permission.PersistentPermissionResolver] no permission store available - please install a PermissionStore with the name 'org.jboss.seam.security.jpaPermissionStore' if persistent permissions are required.
2015-06-05 09:37:25,196 INFO  [localhost-startStop-1] [org.nuxeo.osgi.application.FrameworkBootstrap] Framework started in 141 sec.
2015-06-05 09:37:25,206 INFO  [localhost-startStop-1] [org.apache.catalina.startup.HostConfig] Deployment of configuration descriptor C:\nuxeo-cap-7.2-tomcat\conf\Catalina\localhost\nuxeo.xml has finished in 153 411 ms
2015-06-05 09:37:25,206 INFO  [localhost-startStop-1] [org.apache.catalina.startup.HostConfig] Déploiement du répertoire C:\nuxeo-cap-7.2-tomcat\webapps\host-manager de l'application web
2015-06-05 09:37:34,237 INFO  [localhost-startStop-1] [org.apache.catalina.startup.HostConfig] Deployment of web application directory C:\nuxeo-cap-7.2-tomcat\webapps\host-manager has finished in 9 031 ms
2015-06-05 09:37:34,237 INFO  [localhost-startStop-1] [org.apache.catalina.startup.HostConfig] Déploiement du répertoire C:\nuxeo-cap-7.2-tomcat\webapps\manager de l'application web
2015-06-05 09:37:42,693 INFO  [localhost-startStop-1] [org.apache.catalina.startup.HostConfig] Deployment of web application directory C:\nuxeo-cap-7.2-tomcat\webapps\manager has finished in 8 456 ms
2015-06-05 09:37:42,694 INFO  [localhost-startStop-1] [org.apache.catalina.startup.HostConfig] Déploiement du répertoire C:\nuxeo-cap-7.2-tomcat\webapps\ROOT de l'application web
2015-06-05 09:37:51,149 INFO  [localhost-startStop-1] [org.apache.catalina.startup.HostConfig] Deployment of web application directory C:\nuxeo-cap-7.2-tomcat\webapps\ROOT has finished in 8 455 ms
2015-06-05 09:37:51,239 INFO  [main] [org.apache.coyote.http11.Http11Protocol] Starting ProtocolHandler ["http-bio-0.0.0.0-8080"]
2015-06-05 09:37:51,289 INFO  [main] [org.apache.coyote.ajp.AjpProtocol] Starting ProtocolHandler ["ajp-bio-0.0.0.0-8009"]
2015-06-05 09:37:51,319 INFO  [main] [org.apache.catalina.startup.Catalina] Server startup in 204819 ms
2015-06-05 09:38:41,790 INFO  [http-bio-0.0.0.0-8080-exec-11] [org.apache.jasper.compiler.TldLocationsCache] At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
2015-06-05 09:40:00,091 ERROR [Quartz_Worker-1] [org.nuxeo.ecm.core.storage.sql.Model] Ignoring unknown property 'dc:title' in fulltext configuration: title
2015-06-05 09:40:00,092 ERROR [Quartz_Worker-1] [org.nuxeo.ecm.core.storage.sql.Model] Ignoring unknown property 'dc:description' in fulltext configuration: description
2015-06-05 09:40:00,816 ERROR [Quartz_Worker-1] [org.nuxeo.ecm.core.event.impl.EventServiceImpl] Exception during triggerEsclationRules sync listener execution, continuing to run other listeners
org.nuxeo.ecm.core.api.local.LocalException: Failed to load repository default: Unknown document type: Root
    at org.nuxeo.ecm.core.repository.RepositoryService.getSession(RepositoryService.java:228)
    at org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:117)
    at org.nuxeo.ecm.core.api.local.LocalSession.connect(LocalSession.java:83)
    at org.nuxeo.ecm.core.api.CoreInstance.acquireCoreSession(CoreInstance.java:169)
    at org.nuxeo.ecm.core.api.CoreInstance.openCoreSession(CoreInstance.java:164)
    at org.nuxeo.ecm.core.api.CoreInstance.openCoreSession(CoreInstance.java:79)
    at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:126)
    at org.nuxeo.ecm.platform.routing.core.listener.DocumentRoutingEscalationListener.triggerEsclationRulesExecution(DocumentRoutingEscalationListener.java:70)
    at org.nuxeo.ecm.platform.routing.core.listener.DocumentRoutingEscalationListener.handleEvent(DocumentRoutingEscalationListener.java:50)
    at org.nuxeo.ecm.core.event.impl.EventServiceImpl.fireEvent(EventServiceImpl.java:191)
    at org.nuxeo.ecm.core.scheduler.EventJob.execute(EventJob.java:115)
    at org.nuxeo.ecm.core.scheduler.EventJob.execute(EventJob.java:60)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:223)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: org.nuxeo.ecm.core.api.DocumentException: Unknown document type: Root
    at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.newDocument(SQLSession.java:612)
    at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.newDocument(SQLSession.java:585)
    at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.<init>(SQLSession.java:167)
    at org.nuxeo.ecm.core.storage.sql.ra.ConnectionFactoryImpl.getSession(ConnectionFactoryImpl.java:166)
    at org.nuxeo.ecm.core.repository.RepositoryService.getSession(RepositoryService.java:226)
    ... 13 more
0 votes

0 answers

2997 views

ANSWER