Apache OFBiz新插件:缺少错误消息?

时间:2018-04-27 09:53:57

标签: ofbiz

我尝试在ofbiz

中创建一个新插件
 <request-map uri="main"><security https="true" auth="false"/><response 
     name="success" type="view" value="main"/></request-map>

       <!-- View Mappings -->
   <view-map name="main" type="screen" page="component://xxx/widget
    /xxxScreens.xml#main"/>

inbiz-componentsnent.xml:

<webapp name="xxx"
 title="xxx"
 server="default-server"
location="webapp/xxx"
 base-permission="OFBTOOLS,XXX"
 mount-point="/xxx"/

当我尝试调用插件控制器时:

  https://localhost:8443/xxx/control/main
没有任何反应: - 空页面(没有html结构) - 没有错误消息,根本没有日志条目(不在ofbiz.log或error.log中)

我怎样才能找出问题所在? 我如何获得任何(进一步)信息?

1 个答案:

答案 0 :(得分:2)

请按照README.md文件说明:

Create a new plugin. The following project parameters are passed:

    pluginId: mandatory
    pluginResourceName: optional, default is the Capitalized value of pluginId
    webappName: optional, default is the value of pluginId
    basePermission: optional, default is the UPPERCASE value of pluginId

gradlew createPlugin -PpluginId=myplugin

gradlew createPlugin -PpluginId=myplugin -PpluginResourceName=MyPlugin -PwebappName=mypluginweb -PbasePermission=MYSECURITY

The above commands achieve the following:

    create a new plugin in /specialpurpose/myplugin
    add the plugin to /specialpurpose/component-load.xml