How to disable the application in Apache OFBiz

How to disable some default applications that come with OFBiz? (In particular, HR application)

removing the <load-component component-location="humanres"/> application \ component-load.xml provided me with a NULL pointer exception when the application restarts.

A Google search gave me this: http://www.mail-archive.com/ user@ofbiz.apache.org /msg05714.html , which suggested removing the application directory. I do not want to do this, I just want to disable the application. I may have to turn it on later.

Thanks in advance.

+6
source share
2 answers

It is not easy to disable an application or infrastructure components in OFBiz because there are dependencies between applications, mainly based on entity definitions. In this particular case, an error occurs due to a dependency on accounting for the HR component.

If you really want to disable the component, you must remove all the dependencies and fix them. Is there a specific reason why you want to “disable” the HR component? Instead, you can remove it from the screen by setting app-bar-display = "false" and even prohibit logging in this application with some permissions, for example.

On the other hand, disabling special applications should be straightforward.

+11
source

Another possible solution is to comment out the drop-down menu (display the src file by checking the element in firebug) and write your own menus (links) on the screen or ftl, which is aimed at the required application URLs. :)

PS: You can still find the dependency and remove unnecessary components, but I prefer to do it if you have so much time.

+2
source

Source: https://habr.com/ru/post/895784/


All Articles