在 Alfresco 中找不到 class org.alfresco.web.config.WebClientConfigBootstrap
Cannot find class org.alfresco.web.config.WebClientConfigBootstrap in Alfresco
不在 ide Eclipse 中为 Alfresco 5.2 构建应用程序。
如何修复?
尝试构建应用程序后的错误日志:
FAILURE! - in com.eisenvault.demoamp.test.DemoComponentTest
testChildNodesCount(com.eisenvault.demoamp.test.DemoComponentTest) Time elapsed: 12.924 sec <<< ERROR!
java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.alfresco.web.config.WebClientConfigBootstrap] for bean with name 'ev-esign-repo_pdftoolkit-esign-configBootstrap' defined in file [C:\Users\MIR-IT\Documents\eisenvault-esign-master\eisenvault-esign-master\ev-esign-repo\target\test-classes\alfresco\module\org.alfresco.extension.addimages\module-context.xml]; nested exception is java.lang.ClassNotFoundException: org.alfresco.web.config.WebClientConfigBootstrap
Caused by: java.lang.ClassNotFoundException: org.alfresco.web.config.WebClientConfigBootstrap
为什么程序找不到org.alfresco.web.config.WebClientConfigBootstrap
如何连接Classorg.alfresco.web.config.WebClientConfigBootstrap?
文件模块-context.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<!-- Bean action definitions -->
<import resource="classpath:alfresco/module/org.alfresco.extension.addimages/context/alfresco-pdf-addimages-context.xml" />
<!-- iText transformers -->
<import resource="classpath:alfresco/module/org.alfresco.extension.addimages/context/service-context.xml" />
<!-- load the custom content model -->
<bean id="ev-esign-repo_pdftoolkit-esign-model" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/module/org.alfresco.extension.addimages/model/addImagesModel1.xml</value>
</list>
</property>
</bean>
<!-- Load the UI customizations -->
<bean id="ev-esign-repo_pdftoolkit-esign-configBootstrap" class="org.alfresco.web.config.WebClientConfigBootstrap"
init-method="init">
<property name="configs">
<list>
<value>classpath:alfresco/module/org.alfresco.extension.addimages/ui/web-client-config-custom.xml</value>
</list>
</property>
</bean>
</beans>
很难从代码中分辨出来,但您似乎正试图从存储库 (alfresco.war) 上下文中对 Web 客户端执行某些操作。与 Web 客户端有关的任何内容都应在共享 (share.war) 上下文中。
唯一的例外是如果您尝试使用古老的 Explorer 客户端执行某些操作,但该 Web 客户端在 5.2 中不可用。
不在 ide Eclipse 中为 Alfresco 5.2 构建应用程序。
如何修复?
尝试构建应用程序后的错误日志:
FAILURE! - in com.eisenvault.demoamp.test.DemoComponentTest
testChildNodesCount(com.eisenvault.demoamp.test.DemoComponentTest) Time elapsed: 12.924 sec <<< ERROR!
java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.alfresco.web.config.WebClientConfigBootstrap] for bean with name 'ev-esign-repo_pdftoolkit-esign-configBootstrap' defined in file [C:\Users\MIR-IT\Documents\eisenvault-esign-master\eisenvault-esign-master\ev-esign-repo\target\test-classes\alfresco\module\org.alfresco.extension.addimages\module-context.xml]; nested exception is java.lang.ClassNotFoundException: org.alfresco.web.config.WebClientConfigBootstrap
Caused by: java.lang.ClassNotFoundException: org.alfresco.web.config.WebClientConfigBootstrap
为什么程序找不到org.alfresco.web.config.WebClientConfigBootstrap
如何连接Classorg.alfresco.web.config.WebClientConfigBootstrap?
文件模块-context.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<!-- Bean action definitions -->
<import resource="classpath:alfresco/module/org.alfresco.extension.addimages/context/alfresco-pdf-addimages-context.xml" />
<!-- iText transformers -->
<import resource="classpath:alfresco/module/org.alfresco.extension.addimages/context/service-context.xml" />
<!-- load the custom content model -->
<bean id="ev-esign-repo_pdftoolkit-esign-model" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/module/org.alfresco.extension.addimages/model/addImagesModel1.xml</value>
</list>
</property>
</bean>
<!-- Load the UI customizations -->
<bean id="ev-esign-repo_pdftoolkit-esign-configBootstrap" class="org.alfresco.web.config.WebClientConfigBootstrap"
init-method="init">
<property name="configs">
<list>
<value>classpath:alfresco/module/org.alfresco.extension.addimages/ui/web-client-config-custom.xml</value>
</list>
</property>
</bean>
</beans>
很难从代码中分辨出来,但您似乎正试图从存储库 (alfresco.war) 上下文中对 Web 客户端执行某些操作。与 Web 客户端有关的任何内容都应在共享 (share.war) 上下文中。
唯一的例外是如果您尝试使用古老的 Explorer 客户端执行某些操作,但该 Web 客户端在 5.2 中不可用。