Re: Error Invoking Service

2020-01-23 Thread Pierre Smits
HI James,

Your log excerpt shows 'org.opentaps.foundation.service'. Are you confident
that you're using the product of this project?

Your excerpt shows that the user does not have permissions for the service
'createSupplierProduct' in the Product component. Please check your
permissions.

Best regards,

Pierre Smits

*Apache Trafodion , Vice President*
*Apache Directory , PMC Member*
Apache Incubator , committer
*Apache OFBiz , contributor (without privileges)
since 2008*
Apache Steve , committer


On Thu, Jan 23, 2020 at 2:58 PM  wrote:

>
> We are getting the following error when adding a product on a Purchase
> Order:
>
> The Following Errors Occurred:
> Failed to add item due to internal error:
> org.opentaps.foundation.service.ServiceException:
> org.ofbiz.service.ServiceAuthException: You do not have permission to
> invoke the service [createSupplierProduct] (You do not have permission
> to invoke the service [createSupplierProduct])
> (org.ofbiz.service.ServiceAuthException: You do not have permission to
> invoke the service [createSupplierProduct] (You do not have permission
> to invoke the service [createSupplierProduct])).
>
> I looked and my user is the admin user.  Anyone know where to look to
> resolve this?
>
> Thanks,
>
> James
>


Error Invoking Service

2020-01-23 Thread james

We are getting the following error when adding a product on a Purchase
Order:

The Following Errors Occurred:
Failed to add item due to internal error:
org.opentaps.foundation.service.ServiceException:
org.ofbiz.service.ServiceAuthException: You do not have permission to
invoke the service [createSupplierProduct] (You do not have permission
to invoke the service [createSupplierProduct])
(org.ofbiz.service.ServiceAuthException: You do not have permission to
invoke the service [createSupplierProduct] (You do not have permission
to invoke the service [createSupplierProduct])).

I looked and my user is the admin user.  Anyone know where to look to
resolve this?

Thanks,

James


Re: Installation trouble

2020-01-23 Thread Pierre Smits
I would be happy to tackle that one, but I am still waiting on somebody
willing to help me get some other contributions in.

Op do 23 jan. 2020 13:08 schreef Michael Brohl :

> Feel free to improve them if you see room for optimization, Pierre.
>
> Thanks,
>
> Michael Brohl
>
> ecomify GmbH - www.ecomify.de
>
>
> Am 23.01.20 um 13:00 schrieb Pierre Smits:
> > Perhaps the instructions are not as clesr as they could be...
> >
> > Op do 23 jan. 2020 12:38 schreef L :
> >
> >> ./gradlew loadAll doesn't do anything and supplies no output.  It just
> >> returns to the CLI instantly:
> >>
> >> [root@localhost ofbiz]# ./gradlew loadAll
> >> [root@localhost ofbiz]#
> >>
> >> On 1/22/20 9:08 AM, Parminder S. Lehal wrote:
> >>> The problem lies with the download files. Some of the zip files *even
> >>> the latest 16.11 zip) does not have gradlew file included in them. It
> >>> is pathetic that the final package file served  from the mirrors is
> >>> incomplete(May be someone will pay some attention to this decline
> >>> in quality). I also found this after wasting some time.  Easier
> >>> solution may be to use svn for downloading whatever version you are
> >>> looking for.
> >>> On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote:
>  On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote:
> > Hello,
> >
>  Typo :And you should be able to : $ ./gradlew loadAll
> >>
> >>
>
>


Re: Installation trouble

2020-01-23 Thread Daniel Watford
L,

As Nicolas said, only JDK8 is supported at the moment.

There is an improvement ticket regarding JDK11 here:
https://issues.apache.org/jira/browse/OFBIZ-10757

Please give JDK8 a try and see how you get on.

Thanks,

Dan.

On Thu, 23 Jan 2020 at 12:45, Nicolas Malin 
wrote:

> I found the problem :)
>
>  $ grep JDK README.md
>  The first requirement to run OFBiz is to have the Java Development
> Kit (JDK)
>  version 8 installed on your system (not just the JRE, but the full
> JDK) which
>  [JDK download](https://adoptopenjdk.net/)
>
> On your case, it's java 11.0.6 that unsupport by gradle 2.13
>
> Nicolas
>
> On 23/01/2020 13:35, Daniel Watford wrote:
> > I can reproduce the behaviour L is seeing in a docker container - see
> steps
> > below.
> >
> > I don't have a solution yet though, sorry.
> >
> >
> >
> > Repro Steps:
> >
> > docker run -t -i openjdk:11 /bin/bash
> >
> > root@b1d80d7d85ab:/# javac -version
> > javac 11.0.6
> > root@b1d80d7d85ab:/# echo $JAVA_HOME
> > /usr/local/openjdk-11root@b1d80d7d85ab:/# cd /usr/local
> > root@b1d80d7d85ab:/usr/local# wget
> > http://apache.mirror.anlx.net/ofbiz/apache-ofbiz-16.11.06.zip
> > --2020-01-23 12:25:08--
> > http://apache.mirror.anlx.net/ofbiz/apache-ofbiz-16.11.06.zip
> > Resolving apache.mirror.anlx.net (apache.mirror.anlx.net)...
> 81.91.108.244,
> > 81.91.108.244
> > Connecting to apache.mirror.anlx.net
> > (apache.mirror.anlx.net)|81.91.108.244|:80...
> > connected.
> > HTTP request sent, awaiting response... 200 OK
> > Length: 31289456 (30M) [application/zip]
> > Saving to: ‘apache-ofbiz-16.11.06.zip’
> >
> > apache-ofbiz-16.11.06.zip
> >
> 100%[===>]
> > 29.84M 3.19MB/s in 9.4s
> >
> > 2020-01-23 12:25:17 (3.16 MB/s) - ‘apache-ofbiz-16.11.06.zip’ saved
> > [31289456/31289456]
> >
> > root@b1d80d7d85ab:/usr/local# unzip -q apache-ofbiz-16.11.06.zip
> > root@b1d80d7d85ab:/usr/local# mv apache-ofbiz-16.11.06 ofbiz
> > root@b1d80d7d85ab:/usr/local# cd ofbiz/
> > root@b1d80d7d85ab:/usr/local/ofbiz# ls -l
> > total 180
> > -rw-r--r-- 1 root staff 7136 Jul 11 2016 APACHE2_HEADER
> > -rw-r--r-- 1 root staff 13794 Oct 5 2016 LICENSE
> > -rw-r--r-- 1 root staff 166 Jun 19 2019 NOTICE
> > -rw-r--r-- 1 root staff 1747 Sep 23 2016 OPTIONAL_LIBRARIES
> > -rw-r--r-- 1 root staff 20560 Aug 23 08:12 README.md
> > -rw-r--r-- 1 root staff 26396 Aug 23 08:12 README.md.html
> > drwxr-sr-x 14 root staff 4096 Aug 27 09:30 applications
> > -rw-r--r-- 1 root staff 42437 Aug 9 13:02 build.gradle
> > -rw-r--r-- 1 root staff 1929 Sep 22 2016 common.gradle
> > drwxr-sr-x 19 root staff 4096 Aug 27 09:30 framework
> > drwxr-sr-x 3 root staff 4096 Aug 27 09:31 gradle
> > drwxr-sr-x 2 root staff 4096 Aug 27 09:30 hot-deploy
> > -rwxr-xr-x 1 root staff 1180 Aug 18 15:06 init-gradle-wrapper.bat
> > drwxr-sr-x 2 root staff 4096 Aug 27 09:30 lib
> > -rw-r--r-- 1 root staff 7 Aug 27 09:31 revision.txt
> > drwxr-sr-x 10 root staff 4096 Aug 27 09:30 runtime
> > -rw-r--r-- 1 root staff 1150 Jul 30 2016 settings.gradle
> > drwxr-sr-x 20 root staff 4096 Aug 27 09:31 specialpurpose
> > drwxr-sr-x 7 root staff 4096 Aug 27 09:30 themes
> > drwxr-sr-x 5 root staff 4096 Aug 27 09:30 tools
> >
> >
> > root@b1d80d7d85ab:/usr/local/ofbiz# ./gradle/init-gradle-wrapper.sh
> > === Prepare operation ===
> > /usr/local/ofbiz/gradle/wrapper/gradle-wrapper.jar not found, we
> download it
> > === Download gradle-wrapper.jar ===
> > === Download gradle-wrapper.properties ===
> > === Download script wrapper ===
> > === Control downloaded files ===
> > gradle/wrapper/gradle-wrapper.jar: OK
> > gradle/wrapper/gradle-wrapper.properties: OK
> > gradlew: OK
> > root@b1d80d7d85ab:/usr/local/ofbiz# ls -l
> > total 188
> > -rw-r--r-- 1 root staff 7136 Jul 11 2016 APACHE2_HEADER
> > -rw-r--r-- 1 root staff 13794 Oct 5 2016 LICENSE
> > -rw-r--r-- 1 root staff 166 Jun 19 2019 NOTICE
> > -rw-r--r-- 1 root staff 1747 Sep 23 2016 OPTIONAL_LIBRARIES
> > -rw-r--r-- 1 root staff 20560 Aug 23 08:12 README.md
> > -rw-r--r-- 1 root staff 26396 Aug 23 08:12 README.md.html
> > drwxr-sr-x 14 root staff 4096 Aug 27 09:30 applications
> > -rw-r--r-- 1 root staff 42437 Aug 9 13:02 build.gradle
> > -rw-r--r-- 1 root staff 1929 Sep 22 2016 common.gradle
> > drwxr-sr-x 19 root staff 4096 Aug 27 09:30 framework
> > drwxr-sr-x 3 root staff 4096 Aug 27 09:31 gradle
> > -rwxr--r-- 1 root staff 5875 Jan 23 12:26 gradlew
> > drwxr-sr-x 2 root staff 4096 Aug 27 09:30 hot-deploy
> > -rwxr-xr-x 1 root staff 1180 Aug 18 15:06 init-gradle-wrapper.bat
> > drwxr-sr-x 2 root staff 4096 Aug 27 09:30 lib
> > -rw-r--r-- 1 root staff 7 Aug 27 09:31 revision.txt
> > drwxr-sr-x 10 root staff 4096 Aug 27 09:30 runtime
> > -rw-r--r-- 1 root staff 1150 Jul 30 2016 settings.gradle
> > drwxr-sr-x 20 root staff 4096 Aug 27 09:31 specialpurpose
> > drwxr-sr-x 7 root staff 4096 Aug 27 09:30 themes
> > drwxr-sr-x 5 root staff 4096 

Re: Installation trouble

2020-01-23 Thread Nicolas Malin
I found the problem :)

 $ grep JDK README.md
 The first requirement to run OFBiz is to have the Java Development
Kit (JDK)
 version 8 installed on your system (not just the JRE, but the full
JDK) which
 [JDK download](https://adoptopenjdk.net/)

On your case, it's java 11.0.6 that unsupport by gradle 2.13

Nicolas

On 23/01/2020 13:35, Daniel Watford wrote:
> I can reproduce the behaviour L is seeing in a docker container - see steps
> below.
>
> I don't have a solution yet though, sorry.
>
>
>
> Repro Steps:
>
> docker run -t -i openjdk:11 /bin/bash
>
> root@b1d80d7d85ab:/# javac -version
> javac 11.0.6
> root@b1d80d7d85ab:/# echo $JAVA_HOME
> /usr/local/openjdk-11root@b1d80d7d85ab:/# cd /usr/local
> root@b1d80d7d85ab:/usr/local# wget
> http://apache.mirror.anlx.net/ofbiz/apache-ofbiz-16.11.06.zip
> --2020-01-23 12:25:08--
> http://apache.mirror.anlx.net/ofbiz/apache-ofbiz-16.11.06.zip
> Resolving apache.mirror.anlx.net (apache.mirror.anlx.net)... 81.91.108.244,
> 81.91.108.244
> Connecting to apache.mirror.anlx.net
> (apache.mirror.anlx.net)|81.91.108.244|:80...
> connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 31289456 (30M) [application/zip]
> Saving to: ‘apache-ofbiz-16.11.06.zip’
>
> apache-ofbiz-16.11.06.zip
> 100%[===>]
> 29.84M 3.19MB/s in 9.4s
>
> 2020-01-23 12:25:17 (3.16 MB/s) - ‘apache-ofbiz-16.11.06.zip’ saved
> [31289456/31289456]
>
> root@b1d80d7d85ab:/usr/local# unzip -q apache-ofbiz-16.11.06.zip
> root@b1d80d7d85ab:/usr/local# mv apache-ofbiz-16.11.06 ofbiz
> root@b1d80d7d85ab:/usr/local# cd ofbiz/
> root@b1d80d7d85ab:/usr/local/ofbiz# ls -l
> total 180
> -rw-r--r-- 1 root staff 7136 Jul 11 2016 APACHE2_HEADER
> -rw-r--r-- 1 root staff 13794 Oct 5 2016 LICENSE
> -rw-r--r-- 1 root staff 166 Jun 19 2019 NOTICE
> -rw-r--r-- 1 root staff 1747 Sep 23 2016 OPTIONAL_LIBRARIES
> -rw-r--r-- 1 root staff 20560 Aug 23 08:12 README.md
> -rw-r--r-- 1 root staff 26396 Aug 23 08:12 README.md.html
> drwxr-sr-x 14 root staff 4096 Aug 27 09:30 applications
> -rw-r--r-- 1 root staff 42437 Aug 9 13:02 build.gradle
> -rw-r--r-- 1 root staff 1929 Sep 22 2016 common.gradle
> drwxr-sr-x 19 root staff 4096 Aug 27 09:30 framework
> drwxr-sr-x 3 root staff 4096 Aug 27 09:31 gradle
> drwxr-sr-x 2 root staff 4096 Aug 27 09:30 hot-deploy
> -rwxr-xr-x 1 root staff 1180 Aug 18 15:06 init-gradle-wrapper.bat
> drwxr-sr-x 2 root staff 4096 Aug 27 09:30 lib
> -rw-r--r-- 1 root staff 7 Aug 27 09:31 revision.txt
> drwxr-sr-x 10 root staff 4096 Aug 27 09:30 runtime
> -rw-r--r-- 1 root staff 1150 Jul 30 2016 settings.gradle
> drwxr-sr-x 20 root staff 4096 Aug 27 09:31 specialpurpose
> drwxr-sr-x 7 root staff 4096 Aug 27 09:30 themes
> drwxr-sr-x 5 root staff 4096 Aug 27 09:30 tools
>
>
> root@b1d80d7d85ab:/usr/local/ofbiz# ./gradle/init-gradle-wrapper.sh
> === Prepare operation ===
> /usr/local/ofbiz/gradle/wrapper/gradle-wrapper.jar not found, we download it
> === Download gradle-wrapper.jar ===
> === Download gradle-wrapper.properties ===
> === Download script wrapper ===
> === Control downloaded files ===
> gradle/wrapper/gradle-wrapper.jar: OK
> gradle/wrapper/gradle-wrapper.properties: OK
> gradlew: OK
> root@b1d80d7d85ab:/usr/local/ofbiz# ls -l
> total 188
> -rw-r--r-- 1 root staff 7136 Jul 11 2016 APACHE2_HEADER
> -rw-r--r-- 1 root staff 13794 Oct 5 2016 LICENSE
> -rw-r--r-- 1 root staff 166 Jun 19 2019 NOTICE
> -rw-r--r-- 1 root staff 1747 Sep 23 2016 OPTIONAL_LIBRARIES
> -rw-r--r-- 1 root staff 20560 Aug 23 08:12 README.md
> -rw-r--r-- 1 root staff 26396 Aug 23 08:12 README.md.html
> drwxr-sr-x 14 root staff 4096 Aug 27 09:30 applications
> -rw-r--r-- 1 root staff 42437 Aug 9 13:02 build.gradle
> -rw-r--r-- 1 root staff 1929 Sep 22 2016 common.gradle
> drwxr-sr-x 19 root staff 4096 Aug 27 09:30 framework
> drwxr-sr-x 3 root staff 4096 Aug 27 09:31 gradle
> -rwxr--r-- 1 root staff 5875 Jan 23 12:26 gradlew
> drwxr-sr-x 2 root staff 4096 Aug 27 09:30 hot-deploy
> -rwxr-xr-x 1 root staff 1180 Aug 18 15:06 init-gradle-wrapper.bat
> drwxr-sr-x 2 root staff 4096 Aug 27 09:30 lib
> -rw-r--r-- 1 root staff 7 Aug 27 09:31 revision.txt
> drwxr-sr-x 10 root staff 4096 Aug 27 09:30 runtime
> -rw-r--r-- 1 root staff 1150 Jul 30 2016 settings.gradle
> drwxr-sr-x 20 root staff 4096 Aug 27 09:31 specialpurpose
> drwxr-sr-x 7 root staff 4096 Aug 27 09:30 themes
> drwxr-sr-x 5 root staff 4096 Aug 27 09:30 tools
>
>
> Windows Terminal
> root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew cleanAll loadDefault
> Downloading https://services.gradle.org/distributions/gradle-2.13-bin.zip
> .
> 

Re: Installation trouble

2020-01-23 Thread Daniel Watford
If I use open-jdk-8 rather than 11 then the gradlew command works fine for
me.

Try building under:
docker run -t -i openjdk:8 /bin/bash
to check.

On Thu, 23 Jan 2020 at 12:35, Daniel Watford  wrote:

> I can reproduce the behaviour L is seeing in a docker container - see
> steps below.
>
> I don't have a solution yet though, sorry.
>
>
>
> Repro Steps:
>
> docker run -t -i openjdk:11 /bin/bash
>
> root@b1d80d7d85ab:/# javac -version
> javac 11.0.6
> root@b1d80d7d85ab:/# echo $JAVA_HOME
> /usr/local/openjdk-11root@b1d80d7d85ab:/# cd /usr/local
> root@b1d80d7d85ab:/usr/local# wget
> http://apache.mirror.anlx.net/ofbiz/apache-ofbiz-16.11.06.zip
> --2020-01-23 12:25:08--
> http://apache.mirror.anlx.net/ofbiz/apache-ofbiz-16.11.06.zip
> Resolving apache.mirror.anlx.net (apache.mirror.anlx.net)...
> 81.91.108.244, 81.91.108.244
> Connecting to apache.mirror.anlx.net 
> (apache.mirror.anlx.net)|81.91.108.244|:80...
> connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 31289456 (30M) [application/zip]
> Saving to: ‘apache-ofbiz-16.11.06.zip’
>
> apache-ofbiz-16.11.06.zip
> 100%[===>]
> 29.84M 3.19MB/s in 9.4s
>
> 2020-01-23 12:25:17 (3.16 MB/s) - ‘apache-ofbiz-16.11.06.zip’ saved
> [31289456/31289456]
>
> root@b1d80d7d85ab:/usr/local# unzip -q apache-ofbiz-16.11.06.zip
> root@b1d80d7d85ab:/usr/local# mv apache-ofbiz-16.11.06 ofbiz
> root@b1d80d7d85ab:/usr/local# cd ofbiz/
> root@b1d80d7d85ab:/usr/local/ofbiz# ls -l
> total 180
> -rw-r--r-- 1 root staff 7136 Jul 11 2016 APACHE2_HEADER
> -rw-r--r-- 1 root staff 13794 Oct 5 2016 LICENSE
> -rw-r--r-- 1 root staff 166 Jun 19 2019 NOTICE
> -rw-r--r-- 1 root staff 1747 Sep 23 2016 OPTIONAL_LIBRARIES
> -rw-r--r-- 1 root staff 20560 Aug 23 08:12 README.md
> -rw-r--r-- 1 root staff 26396 Aug 23 08:12 README.md.html
> drwxr-sr-x 14 root staff 4096 Aug 27 09:30 applications
> -rw-r--r-- 1 root staff 42437 Aug 9 13:02 build.gradle
> -rw-r--r-- 1 root staff 1929 Sep 22 2016 common.gradle
> drwxr-sr-x 19 root staff 4096 Aug 27 09:30 framework
> drwxr-sr-x 3 root staff 4096 Aug 27 09:31 gradle
> drwxr-sr-x 2 root staff 4096 Aug 27 09:30 hot-deploy
> -rwxr-xr-x 1 root staff 1180 Aug 18 15:06 init-gradle-wrapper.bat
> drwxr-sr-x 2 root staff 4096 Aug 27 09:30 lib
> -rw-r--r-- 1 root staff 7 Aug 27 09:31 revision.txt
> drwxr-sr-x 10 root staff 4096 Aug 27 09:30 runtime
> -rw-r--r-- 1 root staff 1150 Jul 30 2016 settings.gradle
> drwxr-sr-x 20 root staff 4096 Aug 27 09:31 specialpurpose
> drwxr-sr-x 7 root staff 4096 Aug 27 09:30 themes
> drwxr-sr-x 5 root staff 4096 Aug 27 09:30 tools
>
>
> root@b1d80d7d85ab:/usr/local/ofbiz# ./gradle/init-gradle-wrapper.sh
> === Prepare operation ===
> /usr/local/ofbiz/gradle/wrapper/gradle-wrapper.jar not found, we download
> it
> === Download gradle-wrapper.jar ===
> === Download gradle-wrapper.properties ===
> === Download script wrapper ===
> === Control downloaded files ===
> gradle/wrapper/gradle-wrapper.jar: OK
> gradle/wrapper/gradle-wrapper.properties: OK
> gradlew: OK
> root@b1d80d7d85ab:/usr/local/ofbiz# ls -l
> total 188
> -rw-r--r-- 1 root staff 7136 Jul 11 2016 APACHE2_HEADER
> -rw-r--r-- 1 root staff 13794 Oct 5 2016 LICENSE
> -rw-r--r-- 1 root staff 166 Jun 19 2019 NOTICE
> -rw-r--r-- 1 root staff 1747 Sep 23 2016 OPTIONAL_LIBRARIES
> -rw-r--r-- 1 root staff 20560 Aug 23 08:12 README.md
> -rw-r--r-- 1 root staff 26396 Aug 23 08:12 README.md.html
> drwxr-sr-x 14 root staff 4096 Aug 27 09:30 applications
> -rw-r--r-- 1 root staff 42437 Aug 9 13:02 build.gradle
> -rw-r--r-- 1 root staff 1929 Sep 22 2016 common.gradle
> drwxr-sr-x 19 root staff 4096 Aug 27 09:30 framework
> drwxr-sr-x 3 root staff 4096 Aug 27 09:31 gradle
> -rwxr--r-- 1 root staff 5875 Jan 23 12:26 gradlew
> drwxr-sr-x 2 root staff 4096 Aug 27 09:30 hot-deploy
> -rwxr-xr-x 1 root staff 1180 Aug 18 15:06 init-gradle-wrapper.bat
> drwxr-sr-x 2 root staff 4096 Aug 27 09:30 lib
> -rw-r--r-- 1 root staff 7 Aug 27 09:31 revision.txt
> drwxr-sr-x 10 root staff 4096 Aug 27 09:30 runtime
> -rw-r--r-- 1 root staff 1150 Jul 30 2016 settings.gradle
> drwxr-sr-x 20 root staff 4096 Aug 27 09:31 specialpurpose
> drwxr-sr-x 7 root staff 4096 Aug 27 09:30 themes
> drwxr-sr-x 5 root staff 4096 Aug 27 09:30 tools
>
>
> Windows Terminal
> root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew cleanAll loadDefault
> Downloading https://services.gradle.org/distributions/gradle-2.13-bin.zip
>
> .
>
> .
>
> 

Re: Installation trouble

2020-01-23 Thread Nicolas Malin
do you analyse the gradlew script present ?

    $ file gradlew
    gradlew: a /usr/bin/env sh script, ASCII text executable   

    $ ls -l gradlew
    -rwxrwxr-x 1 mnicolas mnicolas 6128 - gradlew

From my part I run form fresh download the process and all work fine.
Just I never run it as root.

I can also try to find the problem with :

$ ./gradlew --debug

Nicolas

On 22/01/2020 17:15, L wrote:
> ./gradlew loadAll doesn't do anything and supplies no output.  It just
> returns to the CLI instantly:
>
> [root@localhost ofbiz]# ./gradlew loadAll
> [root@localhost ofbiz]#
>
> On 1/22/20 9:08 AM, Parminder S. Lehal wrote:
>> The problem lies with the download files. Some of the zip files *even
>> the latest 16.11 zip) does not have gradlew file included in them. It
>> is pathetic that the final package file served  from the mirrors is
>> incomplete(May be someone will pay some attention to this decline
>> in quality). I also found this after wasting some time.  Easier
>> solution may be to use svn for downloading whatever version you are
>> looking for.
>> On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote:
>>> On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote:
 Hello,

>>> Typo :And you should be able to : $ ./gradlew loadAll
>
>
>


pEpkey.asc
Description: application/pgp-keys


Re: Installation trouble

2020-01-23 Thread Daniel Watford
I can reproduce the behaviour L is seeing in a docker container - see steps
below.

I don't have a solution yet though, sorry.



Repro Steps:

docker run -t -i openjdk:11 /bin/bash

root@b1d80d7d85ab:/# javac -version
javac 11.0.6
root@b1d80d7d85ab:/# echo $JAVA_HOME
/usr/local/openjdk-11root@b1d80d7d85ab:/# cd /usr/local
root@b1d80d7d85ab:/usr/local# wget
http://apache.mirror.anlx.net/ofbiz/apache-ofbiz-16.11.06.zip
--2020-01-23 12:25:08--
http://apache.mirror.anlx.net/ofbiz/apache-ofbiz-16.11.06.zip
Resolving apache.mirror.anlx.net (apache.mirror.anlx.net)... 81.91.108.244,
81.91.108.244
Connecting to apache.mirror.anlx.net
(apache.mirror.anlx.net)|81.91.108.244|:80...
connected.
HTTP request sent, awaiting response... 200 OK
Length: 31289456 (30M) [application/zip]
Saving to: ‘apache-ofbiz-16.11.06.zip’

apache-ofbiz-16.11.06.zip
100%[===>]
29.84M 3.19MB/s in 9.4s

2020-01-23 12:25:17 (3.16 MB/s) - ‘apache-ofbiz-16.11.06.zip’ saved
[31289456/31289456]

root@b1d80d7d85ab:/usr/local# unzip -q apache-ofbiz-16.11.06.zip
root@b1d80d7d85ab:/usr/local# mv apache-ofbiz-16.11.06 ofbiz
root@b1d80d7d85ab:/usr/local# cd ofbiz/
root@b1d80d7d85ab:/usr/local/ofbiz# ls -l
total 180
-rw-r--r-- 1 root staff 7136 Jul 11 2016 APACHE2_HEADER
-rw-r--r-- 1 root staff 13794 Oct 5 2016 LICENSE
-rw-r--r-- 1 root staff 166 Jun 19 2019 NOTICE
-rw-r--r-- 1 root staff 1747 Sep 23 2016 OPTIONAL_LIBRARIES
-rw-r--r-- 1 root staff 20560 Aug 23 08:12 README.md
-rw-r--r-- 1 root staff 26396 Aug 23 08:12 README.md.html
drwxr-sr-x 14 root staff 4096 Aug 27 09:30 applications
-rw-r--r-- 1 root staff 42437 Aug 9 13:02 build.gradle
-rw-r--r-- 1 root staff 1929 Sep 22 2016 common.gradle
drwxr-sr-x 19 root staff 4096 Aug 27 09:30 framework
drwxr-sr-x 3 root staff 4096 Aug 27 09:31 gradle
drwxr-sr-x 2 root staff 4096 Aug 27 09:30 hot-deploy
-rwxr-xr-x 1 root staff 1180 Aug 18 15:06 init-gradle-wrapper.bat
drwxr-sr-x 2 root staff 4096 Aug 27 09:30 lib
-rw-r--r-- 1 root staff 7 Aug 27 09:31 revision.txt
drwxr-sr-x 10 root staff 4096 Aug 27 09:30 runtime
-rw-r--r-- 1 root staff 1150 Jul 30 2016 settings.gradle
drwxr-sr-x 20 root staff 4096 Aug 27 09:31 specialpurpose
drwxr-sr-x 7 root staff 4096 Aug 27 09:30 themes
drwxr-sr-x 5 root staff 4096 Aug 27 09:30 tools


root@b1d80d7d85ab:/usr/local/ofbiz# ./gradle/init-gradle-wrapper.sh
=== Prepare operation ===
/usr/local/ofbiz/gradle/wrapper/gradle-wrapper.jar not found, we download it
=== Download gradle-wrapper.jar ===
=== Download gradle-wrapper.properties ===
=== Download script wrapper ===
=== Control downloaded files ===
gradle/wrapper/gradle-wrapper.jar: OK
gradle/wrapper/gradle-wrapper.properties: OK
gradlew: OK
root@b1d80d7d85ab:/usr/local/ofbiz# ls -l
total 188
-rw-r--r-- 1 root staff 7136 Jul 11 2016 APACHE2_HEADER
-rw-r--r-- 1 root staff 13794 Oct 5 2016 LICENSE
-rw-r--r-- 1 root staff 166 Jun 19 2019 NOTICE
-rw-r--r-- 1 root staff 1747 Sep 23 2016 OPTIONAL_LIBRARIES
-rw-r--r-- 1 root staff 20560 Aug 23 08:12 README.md
-rw-r--r-- 1 root staff 26396 Aug 23 08:12 README.md.html
drwxr-sr-x 14 root staff 4096 Aug 27 09:30 applications
-rw-r--r-- 1 root staff 42437 Aug 9 13:02 build.gradle
-rw-r--r-- 1 root staff 1929 Sep 22 2016 common.gradle
drwxr-sr-x 19 root staff 4096 Aug 27 09:30 framework
drwxr-sr-x 3 root staff 4096 Aug 27 09:31 gradle
-rwxr--r-- 1 root staff 5875 Jan 23 12:26 gradlew
drwxr-sr-x 2 root staff 4096 Aug 27 09:30 hot-deploy
-rwxr-xr-x 1 root staff 1180 Aug 18 15:06 init-gradle-wrapper.bat
drwxr-sr-x 2 root staff 4096 Aug 27 09:30 lib
-rw-r--r-- 1 root staff 7 Aug 27 09:31 revision.txt
drwxr-sr-x 10 root staff 4096 Aug 27 09:30 runtime
-rw-r--r-- 1 root staff 1150 Jul 30 2016 settings.gradle
drwxr-sr-x 20 root staff 4096 Aug 27 09:31 specialpurpose
drwxr-sr-x 7 root staff 4096 Aug 27 09:30 themes
drwxr-sr-x 5 root staff 4096 Aug 27 09:30 tools


Windows Terminal
root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew cleanAll loadDefault
Downloading https://services.gradle.org/distributions/gradle-2.13-bin.zip
.
.
.
.

Re: Installation trouble

2020-01-23 Thread Michael Brohl

Feel free to improve them if you see room for optimization, Pierre.

Thanks,

Michael Brohl

ecomify GmbH - www.ecomify.de


Am 23.01.20 um 13:00 schrieb Pierre Smits:

Perhaps the instructions are not as clesr as they could be...

Op do 23 jan. 2020 12:38 schreef L :


./gradlew loadAll doesn't do anything and supplies no output.  It just
returns to the CLI instantly:

[root@localhost ofbiz]# ./gradlew loadAll
[root@localhost ofbiz]#

On 1/22/20 9:08 AM, Parminder S. Lehal wrote:

The problem lies with the download files. Some of the zip files *even
the latest 16.11 zip) does not have gradlew file included in them. It
is pathetic that the final package file served  from the mirrors is
incomplete(May be someone will pay some attention to this decline
in quality). I also found this after wasting some time.  Easier
solution may be to use svn for downloading whatever version you are
looking for.
On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote:

On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote:

Hello,


Typo :And you should be able to : $ ./gradlew loadAll







smime.p7s
Description: S/MIME Cryptographic Signature


Re: Installation trouble

2020-01-23 Thread Michael Brohl

Hi,

as you might have noticed, my answer was addressed to Parminder's 
answer, particularily the fact that the gradlew file is not included.


I may come back to your topics if noone else beats me to it.

Best regards,

Michael Brohl

ecomify GmbH - www.ecomify.de


Am 22.01.20 um 20:50 schrieb L:

And this still does not help why my gradlew seems to do nothing.

I've been through the README.md and I met all the requirements (not 
many listed).

What in the README did I miss?

Excerpts from the README:

The first requirement to run OFBiz is to have the Java Development Kit 
(JDK)
version 8 installed on your system (not just the JRE, but the full 
JDK) which

you can download from the below link.

    [root@localhost ~]# java -version
    openjdk version "11.0.6" 2020-01-14 LTS
    OpenJDK Runtime Environment 18.9 (build 11.0.6+10-LTS)
    OpenJDK 64-Bit Server VM 18.9 (build 11.0.6+10-LTS, mixed mode, 
sharing)


The second requirement is to setup the Gradle wrapper files that are used
build the system.
order to fulfill this requirement, you can run the following command:

Unix-like OS:
`./gradle/init-gradle-wrapper`

    [root@localhost ~]# cd /usr/local/ofbiz/
    [root@localhost ofbiz]# ./gradle/init-gradle-wrapper.sh
 === Prepare operation ===
    /usr/local/ofbiz/gradle/wrapper/gradle-wrapper.jar not found, we 
download it

 ===     Download gradle-wrapper.jar ===
 === Download gradle-wrapper.properties ===
 === Download script wrapper ===
 === Control downloaded files ===
    gradle/wrapper/gradle-wrapper.jar: OK
    gradle/wrapper/gradle-wrapper.properties: OK
    gradlew: OK

So far, so good ( I think, it only took 3 seconds and no other 
output).  Then:


Quick start
---

To quickly install and fire-up OFBiz, please follow the below 
instructions

from the command line at the OFBiz top level directory (folder)

### Prepare OFBiz:
Unix-like OS:
`./gradlew cleanAll loadDefault`

    [root@localhost ofbiz]# ./gradlew cleanAll loadDefault
    [root@localhost ofbiz]#

Unix-like OS:
`./gradlew ofbiz`

    [root@localhost ofbiz]# ./gradlew ofbiz
    [root@localhost ofbiz]#

Again no outout and appears to do NOTHING.


On 1/22/20 12:42 PM, Michael Brohl wrote:
This is well documented in the README along with the system 
requirements which is always a good read ;-)


You can find the reasons for this here: [1]

Thanks,

Michael Brohl

ecomify GmbH - www.ecomify.de


[1] https://issues.apache.org/jira/browse/OFBIZ-10145

Am 22.01.20 um 15:08 schrieb Parminder S. Lehal:

The problem lies with the download files. Some of the zip files *even
the latest 16.11 zip) does not have gradlew file included in them. It
is pathetic that the final package file served  from the mirrors is
incomplete(May be someone will pay some attention to this decline
in quality). I also found this after wasting some time. Easier
solution may be to use svn for downloading whatever version you are
looking for.
On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote:

On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote:

Hello,


Typo :And you should be able to : $ ./gradlew loadAll








smime.p7s
Description: S/MIME Cryptographic Signature


Re: Installation trouble

2020-01-23 Thread Pierre Smits
Perhaps the instructions are not as clesr as they could be...

Op do 23 jan. 2020 12:38 schreef L :

> ./gradlew loadAll doesn't do anything and supplies no output.  It just
> returns to the CLI instantly:
>
> [root@localhost ofbiz]# ./gradlew loadAll
> [root@localhost ofbiz]#
>
> On 1/22/20 9:08 AM, Parminder S. Lehal wrote:
> > The problem lies with the download files. Some of the zip files *even
> > the latest 16.11 zip) does not have gradlew file included in them. It
> > is pathetic that the final package file served  from the mirrors is
> > incomplete(May be someone will pay some attention to this decline
> > in quality). I also found this after wasting some time.  Easier
> > solution may be to use svn for downloading whatever version you are
> > looking for.
> > On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote:
> >> On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote:
> >>> Hello,
> >>>
> >> Typo :And you should be able to : $ ./gradlew loadAll
>
>
>


Re: Installation trouble

2020-01-23 Thread L

./gradlew loadAll doesn't do anything and supplies no output.  It just returns 
to the CLI instantly:

[root@localhost ofbiz]# ./gradlew loadAll
[root@localhost ofbiz]#

On 1/22/20 9:08 AM, Parminder S. Lehal wrote:

The problem lies with the download files. Some of the zip files *even
the latest 16.11 zip) does not have gradlew file included in them. It
is pathetic that the final package file served  from the mirrors is
incomplete(May be someone will pay some attention to this decline
in quality). I also found this after wasting some time.  Easier
solution may be to use svn for downloading whatever version you are
looking for.
On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote:

On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote:

Hello,


Typo :And you should be able to : $ ./gradlew loadAll





Re: Installation trouble

2020-01-23 Thread L

And this still does not help why my gradlew seems to do nothing.

I've been through the README.md and I met all the requirements (not many 
listed).

What in the README did I miss?

Excerpts from the README:

The first requirement to run OFBiz is to have the Java Development Kit 
(JDK)
version 8 installed on your system (not just the JRE, but the full JDK) 
which

you can download from the below link.

    [root@localhost ~]# java -version
    openjdk version "11.0.6" 2020-01-14 LTS
    OpenJDK Runtime Environment 18.9 (build 11.0.6+10-LTS)
    OpenJDK 64-Bit Server VM 18.9 (build 11.0.6+10-LTS, mixed mode, 
sharing)


The second requirement is to setup the Gradle wrapper files that are used
build the system.
order to fulfill this requirement, you can run the following command:

Unix-like OS:
`./gradle/init-gradle-wrapper`

    [root@localhost ~]# cd /usr/local/ofbiz/
    [root@localhost ofbiz]# ./gradle/init-gradle-wrapper.sh
 === Prepare operation ===
    /usr/local/ofbiz/gradle/wrapper/gradle-wrapper.jar not found, we 
download it

 ===     Download gradle-wrapper.jar ===
 === Download gradle-wrapper.properties ===
 === Download script wrapper ===
 === Control downloaded files ===
    gradle/wrapper/gradle-wrapper.jar: OK
    gradle/wrapper/gradle-wrapper.properties: OK
    gradlew: OK

So far, so good ( I think, it only took 3 seconds and no other output).  
Then:


Quick start
---

To quickly install and fire-up OFBiz, please follow the below instructions
from the command line at the OFBiz top level directory (folder)

### Prepare OFBiz:
Unix-like OS:
`./gradlew cleanAll loadDefault`

    [root@localhost ofbiz]# ./gradlew cleanAll loadDefault
    [root@localhost ofbiz]#

Unix-like OS:
`./gradlew ofbiz`

    [root@localhost ofbiz]# ./gradlew ofbiz
    [root@localhost ofbiz]#

Again no outout and appears to do NOTHING.


On 1/22/20 12:42 PM, Michael Brohl wrote:
This is well documented in the README along with the system 
requirements which is always a good read ;-)


You can find the reasons for this here: [1]

Thanks,

Michael Brohl

ecomify GmbH - www.ecomify.de


[1] https://issues.apache.org/jira/browse/OFBIZ-10145

Am 22.01.20 um 15:08 schrieb Parminder S. Lehal:

The problem lies with the download files. Some of the zip files *even
the latest 16.11 zip) does not have gradlew file included in them. It
is pathetic that the final package file served  from the mirrors is
incomplete(May be someone will pay some attention to this decline
in quality). I also found this after wasting some time.  Easier
solution may be to use svn for downloading whatever version you are
looking for.
On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote:

On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote:

Hello,


Typo :And you should be able to : $ ./gradlew loadAll