Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Alfresco-启动进程时上下文初始化失败_Alfresco_Alfresco Webscripts - Fatal编程技术网

Alfresco-启动进程时上下文初始化失败

Alfresco-启动进程时上下文初始化失败,alfresco,alfresco-webscripts,Alfresco,Alfresco Webscripts,我有露天社区版5.2 计算机重新启动后,我在catalina.out文件中遇到以下错误 ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed org.springframework.extensions.webscripts.WebScriptException: 03230000 Web Script Store workspace://SpacesStore/app:co

我有露天社区版5.2

计算机重新启动后,我在catalina.out文件中遇到以下错误

ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed org.springframework.extensions.webscripts.WebScriptException: 03230000 Web Script Store
workspace://SpacesStore/app:company_home/app:dictionary/cm:extensionwebscripts must exist; multiple entries found.

at org.alfresco.repo.web.scripts.RepoStore$1$1.execute(RepoStore.java:237)
at org.alfresco.repo.web.scripts.RepoStore$1$1.execute(RepoStore.java:219)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)
at org.alfresco.repo.web.scripts.RepoStore$1.doWork(RepoStore.java:218)
at org.alfresco.repo.web.scripts.RepoStore$1.doWork(RepoStore.java:215)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:555)
at org.alfresco.repo.web.scripts.RepoStore.getBaseNodeRef(RepoStore.java:214)
at org.alfresco.repo.web.scripts.RepoStore.exists(RepoStore.java:289)
at org.springframework.extensions.webscripts.SearchPath.getStores(SearchPath.java:110)
...    

org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextLoaderListener
org.springframework.extensions.webscripts.WebScriptException: 03230000
Web Script Store workspace://SpacesStore/app:company_home/app:dictionary/cm:extensionwebscripts must exist; multiple entries found.
at org.alfresco.repo.web.scripts.RepoStore$1$1.execute(RepoStore.java:237)
at org.alfresco.repo.web.scripts.RepoStore$1$1.execute(RepoStore.java:219)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)
at org.alfresco.repo.web.scripts.RepoStore$1.doWork(RepoStore.java:218)
at org.alfresco.repo.web.scripts.RepoStore$1.doWork(RepoStore.java:215)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:555)
at org.alfresco.repo.web.scripts.RepoStore.getBaseNodeRef(RepoStore.java:214)
at org.alfresco.repo.web.scripts.RepoStore.exists(RepoStore.java:289)
...

似乎有人删除了Alfresco存储库中数据字典结构中的一个特殊文件夹,这在启动过程中很难通过初始化web脚本来实现。在这种情况下,如果不返回此结构仍然存在的数据库备份,就很难纠正此问题。或者,您可以自定义web脚本查找路径的配置,不再依赖于此特定文件夹

通过将以下bean放入
shared/classes/alfresco/extension/custom web context.xml中的Spring上下文文件中,可以删除/禁用对web脚本扩展文件夹的查找

<bean id="webscripts.searchpath"
   class="org.springframework.extensions.webscripts.SearchPath">
   <property name="searchPath">
      <list>
         <!-- This lookup in this store fails in your case -->
         <!-- <ref bean="webscripts.store.repo.extension" /> -->
         <!-- Comment the next line as well if you get a similar error
              afterwards, indicating you are also missing a second folder -->
         <ref bean="webscripts.store.repo" />
         <ref bean="webscripts.store.client.extension" />
         <ref bean="webscripts.store.client" />
         <ref bean="webscripts.store.alfresco" />
         <ref bean="webscripts.store" />
      </list>
   </property>
</bean>


我们在/alfresco安装了,新上下文的完整路径是:/alfresco/tomcat/shared/classes/alfresco/extension/our-context.xml,但问题仍然存在。正如在#alfresco IRC中所讨论的,Spring文件必须是custom-web-context.xml,因为当放入不同名称的文件时,默认加载顺序会覆盖此特定bean。我将更新答案。在我们的案例中,我们通过@AxelFaust的建议和注释
解决了问题。谢谢,现在我们可以开始Alfresco了