cancel
Showing results for 
Search instead for 
Did you mean: 

Help - Dynamic Model prevents Alfresco from Starting

davidbalt
Champ in-the-making
Champ in-the-making
I made a mistake in a Dynamic Model that extends cm:content, and now Share, Explorer, etc will not start.  I think I understand what I did wrong in the model, but how do I force unloading of a Dynamic Model at  startup time?

Here's the error, in case it can be of help:
<blockquote>
SEVERE: Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextListener
java.lang.IllegalStateException: The CMIS type model should ignore aspects that inherit from excluded aspects
        at org.alfresco.opencmis.dictionary.PolicyTypeDefintionWrapper.<init>(PolicyTypeDefintionWrapper.java:72)
        at org.alfresco.opencmis.dictionary.CMISStrictDictionaryService.createTypeDefs(CMISStrictDictionaryService.java:78)
        at org.alfresco.opencmis.dictionary.CMISStrictDictionaryService.createDefinitions(CMISStrictDictionaryService.java:46)
        at org.alfresco.opencmis.dictionary.CMISAbstractDictionaryService.init(CMISAbstractDictionaryService.java:386)
        at org.alfresco.opencmis.dictionary.CMISAbstractDictionaryService.afterDictionaryInit(CMISAbstractDictionaryService.java:440)
        at org.alfresco.opencmis.dictionary.CMISAbstractDictionaryService.onBootstrap(CMISAbstractDictionaryService.java:463)
        at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)
</blockquote>
2 REPLIES 2

davidbalt
Champ in-the-making
Champ in-the-making
I would still like to know the "right" answer - but here's what I did that *also* worked:

I found the contentnode on the disk (under alf_data) since it was the most recently modified bit of content, it was easy to find.  I simply removed any possibly offending lines of code, saved the contentnode, and fired up Alfresco again.  I was then able to use Explorer to deactivate the model.

Is there any way to remove this error without changing data from alf_data folder?