AnsweredAssumed Answered

Can't deploy my action.

Question asked by removedquasar on May 16, 2012
Latest reply on Jun 2, 2012 by removedquasar
I have a problem: if i deploy my model content with my custom action, Alfresco won't start. If i remove the file mymodel-actions-context.xml (where is the action bean) all start correctly but of course without the action.

Where is the problem? This is my spring file mymodel-actions-context.xml:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
        <!– Set web flag action –>
        <bean id="set-web-flag" class="java.com.mymodel.action.executer.SetWebFlag" parent="action-executer">
                <property name="nodeService">
                        <ref bean="NodeService" />
                </property>
                <property name="publicAction">
                        <value>true</value>
                </property>
        </bean>
       
       
       
        <!– Action properties –>
        <bean id="extension.actionResourceBundles" parent="actionResourceBundles">
                <property name="resourceBundles">
                        <list>
                                <value>alfresco.extension.mymodelactions</value>
                        </list>
                </property>
        </bean>
</beans>

There is something wrong with the package  java.com.mymodel.action.executer?
The Alfresco Developer Guide suggest to create the package com.mymodel.action.executer inside src/java but this is no possible, all folders created inside src become package, so i have java.com.mymodel.action.executer.

Outcomes