Hi,
  I am working on blossom example,when I start tomcat,i get the following 
output:
[code]INFO   info.magnolia.module.ModuleManagerImpl 08.07.2014 17:05:39 -- 
Starting module acmeModule
INFO   info.magnolia.module.blossom.render.BlossomDispatcherServlet 08.07.2014 
17:05:40 -- FrameworkServlet 'blossom': initialization started
INFO   info.magnolia.module.blossom.template.TemplateExporter 08.07.2014 
17:05:41 -- Registered templates [][/code]

not like:
[code]INFO  .magnolia.module.blossom.template.TemplateExporter: Registered 
templates [acmeModule:pages/mainTemplate][/code]

  my module directory structure looks like this:
[img]http://documentation.magnolia-cms.com/download/attachments/74514956/2.png?version=1&modificationDate=1381395587000[/img]
  
  this is MainTemplate:
[code]
package com.acme;

import info.magnolia.module.blossom.annotation.Area;
import info.magnolia.module.blossom.annotation.AvailableComponentClasses;
import info.magnolia.module.blossom.annotation.DialogFactory;
import info.magnolia.module.blossom.annotation.Template;
import info.magnolia.module.xplan.TextComponent;
import info.magnolia.ui.dialog.config.DialogBuilder;
import info.magnolia.ui.framework.config.UiConfig;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Template(id = "acmeModule:components/main", title = "Main")
@Controller
public class MainTemplate {
        
        @DialogFactory("frontpage-properties")
    public void frontPageProperties(UiConfig cfg, DialogBuilder dialog) {
        dialog.form().tabs(
                cfg.forms.tab("Properties").fields(
                        
cfg.fields.text("headline").label("Headline").description("The text to use as a 
headline")
                )
        );
    }
 
    @RequestMapping("/main")
    public String render() {
        return "pages/mainTemplate.ftl";
    }
 
    @Area("Content")
    @AvailableComponentClasses({TextComponent.class})
    public static class ContentArea {
 
        @RequestMapping("/main/content")
        public String render() {
            return "areas/contentArea.jsp";
        }
    }

}

[/code]

   this is blossom-servlet.xml :
[code]<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:context="http://www.springframework.org/schema/context";
       xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd 
http://www.springframework.org/schema/context 
http://www.springframework.org/schema/context/spring-context.xsd";>

  <context:annotation-config/>

  <context:component-scan base-package="com.acme" 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:include-filter type="annotation" 
expression="info.magnolia.module.blossom.annotation.VirtualURIMapper"/>
  </context:component-scan>

  <bean 
class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter">
    <property name="customArgumentResolvers">
      <list>
        <bean 
class="info.magnolia.module.blossom.web.BlossomHandlerMethodArgumentResolver" />
      </list>
    </property>
  </bean>

  <bean class="info.magnolia.module.blossom.preexecution.BlossomHandlerMapping">
    <property name="targetHandlerMappings">
      <list>
        <bean 
class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping">
          <property name="useSuffixPatternMatch" value="false" />
        </bean>
        <bean 
class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping" />
      </list>
    </property>
  </bean>

  <bean 
class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter" />

  <bean class="info.magnolia.module.blossom.view.UuidRedirectViewResolver">
    <property name="order" value="1" />
  </bean>

  <!-- JSP - renders all views that end with .jsp -->
  <bean class="info.magnolia.module.blossom.view.TemplateViewResolver">
    <property name="order" value="2"/>
    <property name="prefix" value="/acmeModule/templates/"/>
    <property name="viewNames" value="*.jsp"/>
    <property name="viewRenderer">
      <bean class="info.magnolia.module.blossom.view.JspTemplateViewRenderer">
        <!-- If you need the DAM templating functions in JSPs uncomment this 
block to have them set as an attribute named 'damfn'.
        <property name="contextAttributes">
          <map>
            <entry key="damfn">
              <bean 
class="info.magnolia.rendering.renderer.ContextAttributeConfiguration">
                <property name="name" value="damfn"/>
                <property name="componentClass" 
value="info.magnolia.dam.asset.functions.DamTemplatingFunctions"/>
              </bean>
            </entry>
          </map>
        </property>
        -->
      </bean>
    </property>
  </bean>

  <!-- Freemarker - renders all views that end with .ftl -->
  <bean class="info.magnolia.module.blossom.view.TemplateViewResolver">
    <property name="order" value="3"/>
    <property name="prefix" value="/acmeModule/"/>
    <property name="viewNames" value="*.ftl"/>
    <property name="viewRenderer">
      <bean 
class="info.magnolia.module.blossom.view.FreemarkerTemplateViewRenderer">
        <property name="contextAttributes">
          <map>
            <entry key="cms">
              <bean 
class="info.magnolia.rendering.renderer.ContextAttributeConfiguration">
                <property name="name" value="cms"/>
                <property name="componentClass" 
value="info.magnolia.templating.freemarker.Directives"/>
              </bean>
            </entry>
            <entry key="cmsfn">
              <bean 
class="info.magnolia.rendering.renderer.ContextAttributeConfiguration">
                <property name="name" value="cmsfn"/>
                <property name="componentClass" 
value="info.magnolia.templating.functions.TemplatingFunctions"/>
              </bean>
            </entry>
            <!-- If you need the DAM templating functions in Freemarker 
uncomment this block to have them set as an attribute named 'damfn'.
            <entry key="damfn">
              <bean 
class="info.magnolia.rendering.renderer.ContextAttributeConfiguration">
                <property name="name" value="damfn"/>
                <property name="componentClass" 
value="info.magnolia.dam.asset.functions.DamTemplatingFunctions"/>
              </bean>
            </entry>
            -->
          </map>
        </property>
      </bean>
    </property>
  </bean>
</beans>[/code]

environment information:
magnolia version 5.2.3
blossom version 3.0.2
spring version 3.1.0
tomcat 7.0.47


 It's hard to understand why TemplateExporter can't  Registered  
templates,please help!

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=f7b42663-0858-4430-b888-255a316c7fcb


----------------------------------------------------------------
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