cancel
Showing results for 
Search instead for 
Did you mean: 

Blog AMP

marco_altieri
Star Contributor
Star Contributor
I installed the alfresco-blog-integration-2.1.0.amp but alfresco module does not start anymore.
In the log file I found this error message:

org.alfresco.error.AlfrescoRuntimeException: Failed to initialise config service



Caused by: org.alfresco.config.ConfigException: Unable to construct action 'addBlogDetails' evaluator classname: org.alfresco.module.blogIntegration.ui.AddBlogDetailsEvaluator



I tried both on Windows and Linux and I got the same error.
Alfresco 2.1 is running on a JBoss bundled with Liferay.

Thanks,
Marco
6 REPLIES 6

freedev
Champ in-the-making
Champ in-the-making
Hi Marco,

I'm new to alfresco and I don't know if I can help you. but if you post the entire error I could try.

Bye,
Vincenzo

marco_altieri
Star Contributor
Star Contributor
but if you post the entire error I could try.

The entire exception stack trace is too long.
This is a longer excerpt:


15:00:44,419 INFO  [DescriptorService] Alfresco started (Community Network): Current version 2.2.0 (dev @build-number@) schema 107 - Installed version 2.2.0 (
dev @build-number@) schema 107
15:00:45,193 ERROR [ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: Failed to initialise config service
        at org.alfresco.repo.config.xml.RepoXMLConfigService.initConfig(RepoXMLConfigService.java:166)
        at org.alfresco.repo.config.xml.RepoXMLConfigService$1.doWork(RepoXMLConfigService.java:193)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:298)
        at org.alfresco.repo.config.xml.RepoXMLConfigService.onBootstrap(RepoXMLConfigService.java:189)
        at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
        at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
        at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:241)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:349)
        at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
……..
……..
……..
Caused by: org.alfresco.config.ConfigException: Unable to construct action 'addBlogDetails' evaluator classname: org.alfresco.module.blogIntegration.ui.AddBl
ogDetailsEvaluator
        at org.alfresco.web.config.ActionsElementReader.parseActionDefinition(ActionsElementReader.java:222)
        at org.alfresco.web.config.ActionsElementReader.parse(ActionsElementReader.java:92)
        at org.alfresco.config.xml.XMLConfigService.parseConfigElement(XMLConfigService.java:262)
        at org.alfresco.config.xml.XMLConfigService.parse(XMLConfigService.java:117)
        at org.alfresco.config.BaseConfigService.appendConfig(BaseConfigService.java:239)
        at org.alfresco.web.config.WebClientConfigBootstrap.initConfig(WebClientConfigBootstrap.java:112)
        at org.alfresco.config.xml.XMLConfigService.initConfig(XMLConfigService.java:83)
        at org.alfresco.repo.config.xml.RepoXMLConfigService.initConfig(RepoXMLConfigService.java:157)
        … 148 more

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

Just a couple of questions to help diagnose the problem.

- Did you use the module management tool to install the AMP?
- I presume Alfresco was running before the AMP was installed?

In the mean time you should have a back-up of the orgional WAR made by the MMT.  You should be able to replace the modified WAR with the backed-up one to revert you're repo to the state is was prior to installing the AMP.

Cheers,
Roy

marco_altieri
Star Contributor
Star Contributor
I have better understood the problem.
I was using a compiled version of the extension.
It seems there is a bug in DefaultBlogIntegrationImplementation: the extension does not work when I deploy the compiled version, but it works well if I substitute in the compiled jar the DefaultBlogIntegrationImplementation.class with the same class contained in the downloaded amp.

marco_altieri
Star Contributor
Star Contributor
The difference is in AddBlogDetailsEvaluator class.
The one that is not working extends BaseActionEvaluator, the other one implements ActionEvaluator.

marco_altieri
Star Contributor
Star Contributor
All the evaluators have the same problems…