well ... it's one of these stupid thing where the first reaction is DUH!

if the template was nowhere to be found it was related to the blossom 
dispatcher servlet.
it was properly setup in the module
[code]
package info.magnolia.module.proto;

import info.magnolia.module.ModuleLifecycle;
import info.magnolia.module.ModuleLifecycleContext;
import info.magnolia.module.blossom.module.BlossomModuleSupport;

public class ProtoModule extends BlossomModuleSupport implements 
ModuleLifecycle {

        public void start(ModuleLifecycleContext moduleLifecycleContext) {
        initRootWebApplicationContext("classpath:/applicationContext.xml");
        initBlossomDispatcherServlet("blossom", 
"classpath:/blossom-servlet.xml");
        }

        public void stop(ModuleLifecycleContext moduleLifecycleContext) {
        destroyDispatcherServlets();
        closeRootWebApplicationContext();
        }

}
[/code]

the problem was in the blossom-servlet.xml where I did not changed the 
base-package:

[code]
<context:component-scan 
base-package=[b]"info.magnolia.module.blossom.sample"[/b] 
use-default-filters="false"> 
        <context:include-filter type="annotation" 
expression="info.magnolia.module.blossom.annotation.Template"/> 
        <context:include-filter type="annotation" 
expression="info.magnolia.module.blossom.annotation.Area"/> 
        <context:include-filter type="annotation" 
expression="info.magnolia.module.blossom.annotation.DialogFactory"/> 
</context:component-scan>

[/code]

I just needed to set the package of my module: "info.magnolia.module.proto"

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=83225247-50e4-4e7c-9776-71e1582e00c2


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to