我尝试在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"/>在ofbiz-Componentenent.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中)
我怎样才能找出哪里出了问题?我如何才能获得任何(进一步的)信息?
发布于 2018-05-02 23:27:54
请遵循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.xmlhttps://stackoverflow.com/questions/50059825
复制相似问题