Alfresco - 上下文初始化在启动过程中失败

时间:2018-04-24 19:26:04

标签: alfresco alfresco-webscripts

我有Alfresco Community Edition 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)
...

1 个答案:

答案 0 :(得分:4)

看起来有人在Alfresco Repository中的数据字典结构中删除了一个特殊文件夹,该文件在初始化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>