首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Apache OFBiz新插件:缺少错误消息?

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

Stack Overflow用户
提问于 2018-04-27 17:53:57
回答 1查看 173关注 0票数 0

我尝试在ofbiz中创建一个新插件

代码语言:javascript
复制
 <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"/>

在ofbiz-Componentenent.xml中:

代码语言:javascript
复制
<webapp name="xxx"
 title="xxx"
 server="default-server"
location="webapp/xxx"
 base-permission="OFBTOOLS,XXX"
 mount-point="/xxx"/

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

代码语言:javascript
复制
  https://localhost:8443/xxx/control/main

什么都没有发生:-空页面(没有html结构)-没有错误消息,根本没有日志条目(不在ofbiz.log或error.log中)

我怎样才能找出哪里出了问题?我如何才能获得任何(进一步的)信息?

EN

回答 1

Stack Overflow用户

发布于 2018-05-02 23:27:54

请遵循README.md文件,该文件显示:

代码语言:javascript
复制
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
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50059825

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档