You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Steve Carroll <st...@motley.llc> on 2020/02/12 19:25:15 UTC

OFBiz Tutorial ofbizDemo Error Message Hello? World?

I have JDK1.8.0_241 and apache-ofbiz-16.11.07 installed on a 64 bit Windows 10 machine. I can log in and interact with ofbiz, but when I try to visit ofbizDemo I get taken to https://localhost:8443/ofbizDemo/control/main which displays the following Error Message: 

org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://ofbizDemo/widget/OfbizDemoScreens.xml#main]: org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://ofbizDemo/widget/CommonScreens.xml#OfbizDemoCommonDecorator]: org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://ofbizDemo/widget/CommonScreens.xml#main-decorator]: java.lang.IllegalArgumentException: Could not find resource bundle [OfbizDemoUiLabels] in the locale [en_US] (Could not find resource bundle [OfbizDemoUiLabels] in the locale [en_US]) (Error rendering screen [component://ofbizDemo/widget/CommonScreens.xml#main-decorator]: java.lang.IllegalArgumentException: Could not find resource bundle [OfbizDemoUiLabels] in the locale [en_US] (Could not find resource bundle [OfbizDemoUiLabels] in the locale [en_US])) (Error rendering screen [component://ofbizDemo/widget/CommonScreens.xml#OfbizDemoCommonDecorator]: org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://ofbizDemo/widget/CommonScreens.xml#main-decorator]: java.lang.IllegalArgumentException: Could not find resource bundle [OfbizDemoUiLabels] in the locale [en_US] (Could not find resource bundle [OfbizDemoUiLabels] in the locale [en_US]) (Error rendering screen [component://ofbizDemo/widget/CommonScreens.xml#main-decorator]: java.lang.IllegalArgumentException: Could not find resource bundle [OfbizDemoUiLabels] in the locale [en_US] (Could not find resource bundle [OfbizDemoUiLabels] in the locale [en_US])))

I am not a programmer or a developer. I am a single user business owner who wants to have an erp system in place by the time I'm ready to expand. I would like to get setup with a usable install of ofbiz. I was not prepared to go down this rabbit hole. 

So, in addition to helping me with the error message above, I'm hoping that the community can guide me (tell me) how to accomplish the following:

Write a program or script that starts ofbiz with the correct databases and options set so that the end user never faces a command prompt. I assume this is a really easy, but super secret trick that programmers keep to themselves. Please tell me how to do it.
How to add and remove packages.
How to load my own instance of ofbiz without example data.
How to load my own instance of obiz with my company data. Is this 'seed' data?

I don't mind having to learn some programming, but I'm not trying to make my life about erp. I need to get setup and run my company, so that I can eventually pay someone else to program and maintain the erp system. Also, there are instructions everywhere. Some of them are useful and some are misleading. Your personal help is very much appreciated.

Thanks,

Steve

Re: OFBiz Tutorial ofbizDemo Error Message Hello? World?

Posted by Pierre Smits <pi...@apache.org>.
Hi Steve,

Welcome to the community.

I suggest you forget about the ofbizDemo. If you had no problems getting
your OFBiz implementation to start with both seed and demo data loaded,
then you should be able to connect to one of the other components included
via the browser (e.g. https://localhost:8443/catalog ).

For the rest see inline.

Best regards,

Pierre Smits
*Proud* *contributor* (but without privileges)* of* Apache OFBiz
<https://ofbiz.apache.org/>, since 2008

*Apache Trafodion <https://trafodion.apache.org>, Vice President*
*Apache Directory <https://directory.apache.org>, PMC Member*
Apache Incubator <https://incubator.apache.org>, committer
Apache Steve <https://steve.apache.org>, committer


On Wed, Feb 12, 2020 at 8:25 PM Steve Carroll <st...@motley.llc> wrote:

> I have JDK1.8.0_241 and apache-ofbiz-16.11.07 installed on a 64 bit
> Windows 10 machine. I can log in and interact with ofbiz, but when I try to
> visit ofbizDemo I get taken to
> https://localhost:8443/ofbizDemo/control/main which displays the
> following Error Message:
>
> org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering
> screen [component://ofbizDemo/widget/OfbizDemoScreens.xml#main]:
> org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering
> screen
> [component://ofbizDemo/widget/CommonScreens.xml#OfbizDemoCommonDecorator]:
> org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering
> screen [component://ofbizDemo/widget/CommonScreens.xml#main-decorator]:
> java.lang.IllegalArgumentException: Could not find resource bundle
> [OfbizDemoUiLabels] in the locale [en_US] (Could not find resource bundle
> [OfbizDemoUiLabels] in the locale [en_US]) (Error rendering screen
> [component://ofbizDemo/widget/CommonScreens.xml#main-decorator]:
> java.lang.IllegalArgumentException: Could not find resource bundle
> [OfbizDemoUiLabels] in the locale [en_US] (Could not find resource bundle
> [OfbizDemoUiLabels] in the locale [en_US])) (Error rendering screen
> [component://ofbizDemo/widget/CommonScreens.xml#OfbizDemoCommonDecorator]:
> org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering
> screen [component://ofbizDemo/widget/CommonScreens.xml#main-decorator]:
> java.lang.IllegalArgumentException: Could not find resource bundle
> [OfbizDemoUiLabels] in the locale [en_US] (Could not find resource bundle
> [OfbizDemoUiLabels] in the locale [en_US]) (Error rendering screen
> [component://ofbizDemo/widget/CommonScreens.xml#main-decorator]:
> java.lang.IllegalArgumentException: Could not find resource bundle
> [OfbizDemoUiLabels] in the locale [en_US] (Could not find resource bundle
> [OfbizDemoUiLabels] in the locale [en_US])))
>
> I am not a programmer or a developer. I am a single user business owner
> who wants to have an erp system in place by the time I'm ready to expand. I
> would like to get setup with a usable install of ofbiz. I was not prepared
> to go down this rabbit hole.
>
> So, in addition to helping me with the error message above, I'm hoping
> that the community can guide me (tell me) how to accomplish the following:
>
> Write a program or script that starts ofbiz with the correct databases and
> options set so that the end user never faces a command prompt.


Correct database set up is defined in the entityengine.xml file. The
database definitions (when downloaded, and not adjusted) point to a
embedded and not-production grade database (Apache Derby).



> I assume this is a really easy, but super secret trick that programmers
> keep to themselves. Please tell me how to do it.
>

When you have your local implementation in good working order, there is no
need to have end users to deal with a command prompt. Every end user would
be accessing your implementation via the browser. Only maintenance (system
admin) issues are expected to partly be handled via the command line
interface.



> How to add and remove packages.
>

Which packages (components in OFBiz) are you considering to remove? Many
components in the framework and applications folders are highly
interlinked/integratoed.... Everything in themes can be removed, except one
(this could be your favourite or default).

Adding 3rd party components (and others) can be installed in the hot-deploy
folder. You have three options there:

   1. Get hold of the zip file of a 3rd party component and copy/paste and
   unpack there, or
   2. Fork a 3rd party plugin in Github, and clone that into the hot-deploy
   folder.
   3. Create your own. There is a cli command to set up a blank component,
   with the correct file structure and basic files and data-sets.




> How to load my own instance of ofbiz without example data.
>

Ensure that your implementation is clean data-wise. Then only load seed,
seed-ext and ext data-sets, but not the demo data set. You may then
experience some first company configuration issues. Have a look at the
various references in the data files provided.


> How to load my own instance of obiz with my company data. Is this 'seed'
> data?
>

The best (by far the easiest) way is pick from the existing data files, and
copy/paste your selection in a new data xml file. There you adjust the
elements to your liking. When you're confident your data is good, go to
https://localhost:8443/webtools/control/EntityImport in your browser.
You'll see a page equivalent to:
https://demo-trunk.ofbiz.apache.org/webtools/control/EntityImport.

There you can paste your data set between <entity-engine-xml>
and </entity-engine-xml> to upload it into your implementation.



>
> I don't mind having to learn some programming, but I'm not trying to make
> my life about erp. I need to get setup and run my company, so that I can
> eventually pay someone else to program and maintain the erp system. Also,
> there are instructions everywhere. Some of them are useful and some are
> misleading. Your personal help is very much appreciated.
>

Indeed. Unfortunately confusing documentation exists, and instructions are
all over the place.

>
> Thanks,
>
> Steve
>