01-29-2009 11:25 AM
16:20:43,868 INFO [org.alfresco.repo.module.ModuleServiceImpl] Found 2 module(s
).
16:20:43,919 INFO [org.alfresco.repo.module.ModuleServiceImpl] Starting module
'phpIntegration' version 1.0.
16:20:44,091 INFO [org.alfresco.repo.module.ModuleServiceImpl] Installing modul
e 'org.alfresco.module.mediawikiintegration' version 1.1.
16:20:44,921 ERROR [org.springframework.web.context.ContextLoader] Context initi
alization failed
org.alfresco.error.AlfrescoRuntimeException: Failed to execute transaction-level
behaviour public abstract void org.alfresco.repo.node.NodeServicePolicies$OnCre
ateNodePolicy.onCreateNode(org.alfresco.service.cmr.repository.ChildAssociationR
ef) in transaction 10de3d11-2b4e-4587-ab24-5b5a22baff21
at org.alfresco.repo.policy.TransactionBehaviourQueue.execute(Transactio
nBehaviourQueue.java:201)
at org.alfresco.repo.policy.TransactionBehaviourQueue.beforeCommit(Trans
actionBehaviourQueue.java:133)
at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionS
ynchronizationImpl.doBeforeCommit(AlfrescoTransactionSupport.java:710)
at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionS
ynchronizationImpl.doBeforeCommit(AlfrescoTransactionSupport.java:690)
….
08-10-2010 06:33 AM
Attention: I'm not a developer, just only a sysadmin, i.e. I don't really know if this opens security holes. It should not affect other Alfresco components, but rmember - you've to do this at your own risk!
// Added for repairing the broken MW amp
AuthenticationUtil.setRunAsUserSystem();
public void onCreateNode(ChildAssociationRef childAssocRef)
{
// Added for repairing the broken MW amp
AuthenticationUtil.setRunAsUserSystem();
// The newly created mediawiki space
NodeRef mediawiki = childAssocRef.getChildRef();
// Set the default values for the various configuration properties
String wikiName = (String)this.nodeService.getProperty(mediawiki, ContentModel.PROP_NAME);
…
public void onDeleteNode(ChildAssociationRef childAssocRef,
boolean isNodeArchived)
{
// Added for repairing the broken MW amp
AuthenticationUtil.setRunAsUserSystem();
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.