无法安装Blossom自定义模块

时间:2017-12-25 03:52:09

标签: magnolia

我遵循https://documentation.magnolia-cms.com/display/DOCS56/Getting+started+with+Blossom的例子,用Magnolia 5.6.1和Blossom 3.2(今天的最新版本)开始一个名为'acmeModule'的简单开花模块

2017-12-25 11:32:49,391 INFO  info.magnolia.module.ModuleManagerImpl            : Initializing module acmeModule
2017-12-25 11:32:49,394 INFO  info.magnolia.module.ModuleManagerImpl            : Starting module acmeModule
[17-12-25 11:32:49.416] {resin-42} WebApp[production/webapp/default/ROOT,STARTING] Initializing Spring root WebApplicationContext
2017-12-25 11:32:50,076 INFO  lia.module.blossom.render.BlossomDispatcherServlet: FrameworkServlet 'blossom': initialization started
[17-12-25 11:32:50.076] {resin-42} WebApp[production/webapp/default/ROOT,STARTING] Initializing Spring FrameworkServlet 'blossom'
[17-12-25 11:32:50.921] {resin-42} HV000001: Hibernate Validator 4.3.0.Final
2017-12-25 11:32:51,043 INFO  le.blossom.web.BlossomRequestMappingHandlerAdapter: Looking for @ControllerAdvice: WebApplicationContext for namespace 'blossom-servlet': startup date [Mon Dec 25 11:32:50 CST 2017]; parent: Root WebApplicationContext
2017-12-25 11:32:51,217 INFO  .magnolia.module.blossom.template.TemplateExporter: Registered templates []
2017-12-25 11:32:51,219 INFO  lia.module.blossom.render.BlossomDispatcherServlet: FrameworkServlet 'blossom': initialization completed in 1142 ms

看起来好像安装好了,但是在我登录到作者模块后,我找不到“设置,定义”下的acmeModule,但它报告了以下问题

Property [type] not found in class
[info.magnolia.module.blossom.render.BlossomTemplateRenderer", property is not assigned

这会导致模块被禁用吗?

1 个答案:

答案 0 :(得分:0)

我发现Blossom 3.x使用的注释与以前的版本不同

@Controller
@Template(id = "acmeModule:pages/main", title = "Main Template")
public class MainTemplate { ... }