Trouble getting ofbizDemo to run

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Trouble getting ofbizDemo to run

Georg Potthast
I installed the JDK version 8 and OFBiz on my Windows 10 system in Germany
ok and can run the provided applications like catalog or webtools.
 
Now I want to follow the tutorial “OFBiz Tutorial - A Beginners Development Guide”.
So I entered “gradlew createPlugin -PpluginId=ofbizDemo”
and run “gradlew loadAll ofbiz” Seemed to work ok.
When I enter “https://localhost:8443/ofbizDemo” I get the error message
"ERROR MESSAGE java.lang.IllegalArgumentException: Could not find resource
bundle [OfbizDemoUiLabels] in the locale [de]"

What do I need to do to get that to work?

Additional question: old tutorials refer to a hot-deploy directory. Is this
no longer working?

Reply | Threaded
Open this post in threaded view
|

Re: Trouble getting ofbizDemo to run

Jacques Le Roux
Administrator
Hi Georg,

Your message has been moderated, else it would not have reached this Mailing List.

Please subscribe to the user ML for such questions and then use your email client.
See why here http://ofbiz.apache.org/mailing-lists.html.

You will get a better support, people can answer you on the ML.
The wider the audience the better the answers you might get.

Also it's more work for moderators who have to accept your messages as long as you have not subscribed.
I'll personally no longer accept them (other moderators still could).

Thanks

Rest inline:...

Le 02/08/2020 à 10:54, Georg Potthast a écrit :

> I installed the JDK version 8 and OFBiz on my Windows 10 system in Germany
> ok and can run the provided applications like catalog or webtools.
>  
> Now I want to follow the tutorial “OFBiz Tutorial - A Beginners Development Guide”.
> So I entered “gradlew createPlugin -PpluginId=ofbizDemo”
> and run “gradlew loadAll ofbiz” Seemed to work ok.
> When I enter “https://localhost:8443/ofbizDemo” I get the error message
> "ERROR MESSAGE java.lang.IllegalArgumentException: Could not find resource
> bundle [OfbizDemoUiLabels] in the locale [de]"
>
> What do I need to do to get that to work?

Which revision are you using?
Trunk:
https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide#OFBizTutorialABeginnersDevelopmentGuide-UseofUILabels(Completion)
Stable (R17 currently):
https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide+for+17.12#OFBizTutorialABeginnersDevelopmentGuidefor17.12-UseofUILabels(Completion)


> Additional question: old tutorials refer to a hot-deploy directory. Is this
> no longer working?

hot-deploy is no longer used in supported branches, use  plugins rather

Jacques

Reply | Threaded
Open this post in threaded view
|

Re: Trouble getting ofbizDemo to run

Georg Potthast 2
In reply to this post by Georg Potthast
I am sorry I had subscribed, but the question did not appear on the web interface. So I logged into the web interface with my Google account, which has a different email address than the one I used to subscribe before. I tried to subscribe with that email address now too, but that did not work somehow.

I am using OFBiz version 17.12.01.

In the meantime I found that the problem was caused by the file "ofbiz\plugins\ofbizDemo\config\OfbizDemoUiLabels.xml" This contains lines like:
<value xml:lang="zh">OfbizDemo应用程�</value>
<value xml:lang="zh-TW">OfbizDemo應用程�</value>

I do not have the language "zh" installed so I think this caused the problem.


On 2020/08/02 09:32:40, Jacques Le Roux <[hidden email]> wrote:

> Hi Georg,
>
> Your message has been moderated, else it would not have reached this Mailing List.
>
> Please subscribe to the user ML for such questions and then use your email client.
> See why here http://ofbiz.apache.org/mailing-lists.html.
>
> You will get a better support, people can answer you on the ML.
> The wider the audience the better the answers you might get.
>
> Also it's more work for moderators who have to accept your messages as long as you have not subscribed.
> I'll personally no longer accept them (other moderators still could).
>
> Thanks
>
> Rest inline:...
>
> Le 02/08/2020 à 10:54, Georg Potthast a écrit :
> > I installed the JDK version 8 and OFBiz on my Windows 10 system in Germany
> > ok and can run the provided applications like catalog or webtools.
> >  
> > Now I want to follow the tutorial “OFBiz Tutorial - A Beginners Development Guide”.
> > So I entered “gradlew createPlugin -PpluginId=ofbizDemo”
> > and run “gradlew loadAll ofbiz” Seemed to work ok.
> > When I enter “https://localhost:8443/ofbizDemo” I get the error message
> > "ERROR MESSAGE java.lang.IllegalArgumentException: Could not find resource
> > bundle [OfbizDemoUiLabels] in the locale [de]"
> >
> > What do I need to do to get that to work?
>
> Which revision are you using?
> Trunk:
> https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide#OFBizTutorialABeginnersDevelopmentGuide-UseofUILabels(Completion)
> Stable (R17 currently):
> https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide+for+17.12#OFBizTutorialABeginnersDevelopmentGuidefor17.12-UseofUILabels(Completion)
>
>
> > Additional question: old tutorials refer to a hot-deploy directory. Is this
> > no longer working?
>
> hot-deploy is no longer used in supported branches, use  plugins rather
>
> Jacques
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Trouble getting ofbizDemo to run

Jacques Le Roux
Administrator
Inline...

Le 02/08/2020 à 12:10, Georg Potthast a écrit :
> I am sorry I had subscribed, but the question did not appear on the web interface.
Better use an email client, web UI are less reliable

> So I logged into the web interface with my Google account, which has a different email address than the one I used to subscribe before. I tried to
> subscribe with that email address now too, but that did not work somehow.

Google mail has sometimes some issues, but I know people subscribed there


>
> I am using OFBiz version 17.12.01.
> In the meantime I found that the problem was caused by the file "ofbiz\plugins\ofbizDemo\config\OfbizDemoUiLabels.xml" This contains lines like:
> <value xml:lang="zh">OfbizDemo应用程�</value>
> <value xml:lang="zh-TW">OfbizDemo應用程�</value>
> I do not have the language "zh" installed so I think this caused the problem.

OK clear


Reply | Threaded
Open this post in threaded view
|

Re: Trouble getting ofbizDemo to run

Jacques Le Roux
Administrator
I confirm [hidden email] is in the user list, sole georgpotthast there

Jacques

Le 02/08/2020 à 13:29, Jacques Le Roux a écrit :

> Inline...
>
> Le 02/08/2020 à 12:10, Georg Potthast a écrit :
>> I am sorry I had subscribed, but the question did not appear on the web interface.
> Better use an email client, web UI are less reliable
>
>> So I logged into the web interface with my Google account, which has a different email address than the one I used to subscribe before. I tried to
>> subscribe with that email address now too, but that did not work somehow.
>
> Google mail has sometimes some issues, but I know people subscribed there
>
>
>>
>> I am using OFBiz version 17.12.01.
>> In the meantime I found that the problem was caused by the file "ofbiz\plugins\ofbizDemo\config\OfbizDemoUiLabels.xml" This contains lines like:
>> <value xml:lang="zh">OfbizDemo应用程�</value>
>> <value xml:lang="zh-TW">OfbizDemo應用程�</value>
>> I do not have the language "zh" installed so I think this caused the problem.
>
> OK clear
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Trouble getting ofbizDemo to run

Michael Brohl-3
In reply to this post by Georg Potthast
Good evening,

is there a resource OfbizDemoUiLabels.xml located in the config
directory of the newly created plugin? Maybe it's just a matter of
lowercase/uppercase naming.

Hard to say without seeing the code and files.

The hot-deploy mechanism refers to older versions of OFBiz, it was
replaced by the plugins mechanism. Every third party or custom
enhancement should be located in the plugins directory.

Best regards,

Michael Brohl

ecomify GmbH - www.ecomify.de


Am 02.08.20 um 10:54 schrieb Georg Potthast:

> I installed the JDK version 8 and OFBiz on my Windows 10 system in Germany
> ok and can run the provided applications like catalog or webtools.
>  
> Now I want to follow the tutorial “OFBiz Tutorial - A Beginners Development Guide”.
> So I entered “gradlew createPlugin -PpluginId=ofbizDemo”
> and run “gradlew loadAll ofbiz” Seemed to work ok.
> When I enter “https://localhost:8443/ofbizDemo” I get the error message
> "ERROR MESSAGE java.lang.IllegalArgumentException: Could not find resource
> bundle [OfbizDemoUiLabels] in the locale [de]"
>
> What do I need to do to get that to work?
>
> Additional question: old tutorials refer to a hot-deploy directory. Is this
> no longer working?
>


smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Trouble getting ofbizDemo to run

Georg Potthast 2
In reply to this post by Georg Potthast
I am just strictly following the tutorial, no modifications to the code.
Yes, there is an OfbizDemoUiLabels.xml file located in the config directory.
It contains exactly what is cited in the tutorial:
https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide#OFBizTutorialABeginnersDevelopmentGuide-UseofUILabels(Introduction)
This will cause the error mentioned below if you are on a German Windows 10
system. If you remove all the entries for other languages but English in
this file, it will work. If you add a line for "de", it will work too. But
it will not work with "zh", "it" and "zh-tw" entries present.

>Good evening,
>
>is there a resource OfbizDemoUiLabels.xml located in the config
>directory of the newly created plugin? Maybe it's just a matter of
>lowercase/uppercase naming.
>
>Hard to say without seeing the code and files.
>
>The hot-deploy mechanism refers to older versions of OFBiz, it was
>replaced by the plugins mechanism. Every third party or custom
>enhancement should be located in the plugins directory.
>
>Best regards,
>
>Michael Brohl
>
>ecomify GmbH - www.ecomify.de
>
>
>Am 02.08.20 um 10:54 schrieb Georg Potthast:
>> I installed the JDK version 8 and OFBiz on my Windows 10 system in
>> Germany
>> ok and can run the provided applications like catalog or webtools.
>>
>> Now I want to follow the tutorial “OFBiz Tutorial - A Beginners
>> Development Guide”.
>> So I entered “gradlew createPlugin -PpluginId=ofbizDemo”
> >and run “gradlew loadAll ofbiz” Seemed to work ok.
>> When I enter “https://localhost:8443/ofbizDemo” I get the error
>> message
>> "ERROR MESSAGE java.lang.IllegalArgumentException: Could not find
>> resource
>> bundle [OfbizDemoUiLabels] in the locale [de]"
>>
>> What do I need to do to get that to work?
>>
>> Additional question: old tutorials refer to a hot-deploy directory. Is
>> this
>> no longer working?
>>

Reply | Threaded
Open this post in threaded view
|

Re: Trouble getting ofbizDemo to run

Jacques Le Roux
Administrator
Thanks Georg,

Whatever are the conditions/environment, we need to remove all but English there, for a demo that's enough. I'll do :)

Jacques

Le 02/08/2020 à 22:09, Georg Potthast a écrit :

> I am just strictly following the tutorial, no modifications to the code. Yes, there is an OfbizDemoUiLabels.xml file located in the config
> directory. It contains exactly what is cited in the tutorial:
> https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide#OFBizTutorialABeginnersDevelopmentGuide-UseofUILabels(Introduction)
>
> This will cause the error mentioned below if you are on a German Windows 10 system. If you remove all the entries for other languages but English in
> this file, it will work. If you add a line for "de", it will work too. But it will not work with "zh", "it" and "zh-tw" entries present.
>
>> Good evening,
>>
>> is there a resource OfbizDemoUiLabels.xml located in the config
>> directory of the newly created plugin? Maybe it's just a matter of
>> lowercase/uppercase naming.
>>
>> Hard to say without seeing the code and files.
>>
>> The hot-deploy mechanism refers to older versions of OFBiz, it was
>> replaced by the plugins mechanism. Every third party or custom
>> enhancement should be located in the plugins directory.
>>
>> Best regards,
>>
>> Michael Brohl
>>
>> ecomify GmbH - www.ecomify.de
>>
>>
>> Am 02.08.20 um 10:54 schrieb Georg Potthast:
>>> I installed the JDK version 8 and OFBiz on my Windows 10 system in Germany
>>> ok and can run the provided applications like catalog or webtools.
>>>
>>> Now I want to follow the tutorial “OFBiz Tutorial - A Beginners Development Guide”.
>>> So I entered “gradlew createPlugin -PpluginId=ofbizDemo”
>> >and run “gradlew loadAll ofbiz” Seemed to work ok.
>>> When I enter “https://localhost:8443/ofbizDemo” I get the error message
>>> "ERROR MESSAGE java.lang.IllegalArgumentException: Could not find resource
>>> bundle [OfbizDemoUiLabels] in the locale [de]"
>>>
>>> What do I need to do to get that to work?
>>>
>>> Additional question: old tutorials refer to a hot-deploy directory. Is this
>>> no longer working?
>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Trouble getting ofbizDemo to run

Jacques Le Roux
Administrator
Mmm, I'll no finally.

We can read there:

This tutorial is for trunk release. For release specific tutorials, please refer

  * OFBiz Tutorial - A Beginners Development Guide for 13.07, 14.12 and 15.12
    <https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide+for+13.07%2C+14.12+and+15.12>
  * OFBiz Tutorial - A Beginners Development Guide for 16.11
    <https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide+for+16.11>
  * OFBiz Tutorial - A Beginners Development Guide for 17.12
    <https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide+for+17.12>

This should not be in the wiki. We should have them as AsciiDoc in source. Only revision unrelated documentation should be in the wiki!

Solution: move contents to source repos, move wiki pages to wiki attic.

Jacques

Le 03/08/2020 à 09:47, Jacques Le Roux a écrit :

> Thanks Georg,
>
> Whatever are the conditions/environment, we need to remove all but English there, for a demo that's enough. I'll do :)
>
> Jacques
>
> Le 02/08/2020 à 22:09, Georg Potthast a écrit :
>> I am just strictly following the tutorial, no modifications to the code. Yes, there is an OfbizDemoUiLabels.xml file located in the config
>> directory. It contains exactly what is cited in the tutorial:
>> https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide#OFBizTutorialABeginnersDevelopmentGuide-UseofUILabels(Introduction)
>>
>> This will cause the error mentioned below if you are on a German Windows 10 system. If you remove all the entries for other languages but English
>> in this file, it will work. If you add a line for "de", it will work too. But it will not work with "zh", "it" and "zh-tw" entries present.
>>
>>> Good evening,
>>>
>>> is there a resource OfbizDemoUiLabels.xml located in the config
>>> directory of the newly created plugin? Maybe it's just a matter of
>>> lowercase/uppercase naming.
>>>
>>> Hard to say without seeing the code and files.
>>>
>>> The hot-deploy mechanism refers to older versions of OFBiz, it was
>>> replaced by the plugins mechanism. Every third party or custom
>>> enhancement should be located in the plugins directory.
>>>
>>> Best regards,
>>>
>>> Michael Brohl
>>>
>>> ecomify GmbH - www.ecomify.de
>>>
>>>
>>> Am 02.08.20 um 10:54 schrieb Georg Potthast:
>>>> I installed the JDK version 8 and OFBiz on my Windows 10 system in Germany
>>>> ok and can run the provided applications like catalog or webtools.
>>>>
>>>> Now I want to follow the tutorial “OFBiz Tutorial - A Beginners Development Guide”.
>>>> So I entered “gradlew createPlugin -PpluginId=ofbizDemo”
>>> >and run “gradlew loadAll ofbiz” Seemed to work ok.
>>>> When I enter “https://localhost:8443/ofbizDemo” I get the error message
>>>> "ERROR MESSAGE java.lang.IllegalArgumentException: Could not find resource
>>>> bundle [OfbizDemoUiLabels] in the locale [de]"
>>>>
>>>> What do I need to do to get that to work?
>>>>
>>>> Additional question: old tutorials refer to a hot-deploy directory. Is this
>>>> no longer working?
>>>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Trouble getting ofbizDemo to run

Georg Potthast 2
In reply to this post by Jacques Le Roux
I think English is sufficient, this will work with any locale. You can use the existing OfbizDemoUiLabels.xml file listing in the tutorial as an example how to support different languages.
 

> Jacques Le Roux <[hidden email]> hat am 03.08.2020 09:47 geschrieben:
>
>  
> Thanks Georg,
>
> Whatever are the conditions/environment, we need to remove all but English there, for a demo that's enough. I'll do :)
>
> Jacques
>
> Le 02/08/2020 à 22:09, Georg Potthast a écrit :
> > I am just strictly following the tutorial, no modifications to the code. Yes, there is an OfbizDemoUiLabels.xml file located in the config
> > directory. It contains exactly what is cited in the tutorial:
> > https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide#OFBizTutorialABeginnersDevelopmentGuide-UseofUILabels(Introduction)
> >
> > This will cause the error mentioned below if you are on a German Windows 10 system. If you remove all the entries for other languages but English in
> > this file, it will work. If you add a line for "de", it will work too. But it will not work with "zh", "it" and "zh-tw" entries present.
> >
> >> Good evening,
> >>
> >> is there a resource OfbizDemoUiLabels.xml located in the config
> >> directory of the newly created plugin? Maybe it's just a matter of
> >> lowercase/uppercase naming.
> >>
> >> Hard to say without seeing the code and files.
> >>
> >> The hot-deploy mechanism refers to older versions of OFBiz, it was
> >> replaced by the plugins mechanism. Every third party or custom
> >> enhancement should be located in the plugins directory.
> >>
> >> Best regards,
> >>
> >> Michael Brohl
> >>
> >> ecomify GmbH - www.ecomify.de
> >>
> >>
> >> Am 02.08.20 um 10:54 schrieb Georg Potthast:
> >>> I installed the JDK version 8 and OFBiz on my Windows 10 system in Germany
> >>> ok and can run the provided applications like catalog or webtools.
> >>>
> >>> Now I want to follow the tutorial “OFBiz Tutorial - A Beginners Development Guide”.
> >>> So I entered “gradlew createPlugin -PpluginId=ofbizDemo”
> >> >and run “gradlew loadAll ofbiz” Seemed to work ok.
> >>> When I enter “https://localhost:8443/ofbizDemo” I get the error message
> >>> "ERROR MESSAGE java.lang.IllegalArgumentException: Could not find resource
> >>> bundle [OfbizDemoUiLabels] in the locale [de]"
> >>>
> >>> What do I need to do to get that to work?
> >>>
> >>> Additional question: old tutorials refer to a hot-deploy directory. Is this
> >>> no longer working?
> >>>
> >