You are here: Home / Apache OFBiz on OpenBSD

Apache OFBiz on OpenBSD

by Hawke Robinson last modified Jan 10, 2019 08:59 AM
Notes on installing Apache's OFBiz on OpenBSD.

 OpenBSD 6.4 amd64

 java -version
openjdk version "1.8.0_172"
OpenJDK Runtime Environment (build 1.8.0_172-b11)
OpenJDK 64-Bit Server VM (build 25.172-b11, mixed mode)

 

Quick Start install: ./gradlew cleanAll loadDefault

Start OFBiz: ./gradlew ofbiz

View install: https://localhost:8443/ordermgr/control/main  default login: admin/ofbiz

 

 

 

First attempt at install failed.  ran ./gradlew cleanAll loadDefault and ended with the following error:

Download https://jcenter.bintray.com/commons-beanutils/commons-beanutils-core/1.8.0/commons-beanutils-core-1.8.0.jar

FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type TaskArtifactStateCacheAccess using TaskExecutionServices.createCacheAccess().
> Failed to create parent directory '/home/d2dadmin/downloads/apache-ofbiz-16.11.05/.gradle' when creating directory '/home/d2dadmin/downloads/apache-ofbiz-16.11.05/.gradle/2.13/taskArtifacts'

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 37 mins 26.989 secs

 

Fixed some directory permissions, and tried a second time:


:cleanAll
:compileJavaNote: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

:processResources
:classes
:jar
:assemble
:compileTestJava
:processTestResources UP-TO-DATE
:testClasses
:test
:check
:build
:ofbiz --load-data
Error occurred during initialization of VM
Unable to setup metadata virtual space list.
:ofbiz --load-data FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ofbiz --load-data'.
> Process 'command '/usr/local/jdk-1.8.0/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2 mins 34.288 secs

 

 

 

 

 

 

 

Beware of Vulnerabilities:

https://www.exploit-db.com/exploits/45975

 

 

 

 

 

 

References:

System requirements: https://cwiki.apache.org/confluence/display/OFBIZ/System+Requirements

Download: https://www.apache.org/dyn/closer.lua/ofbiz/apache-ofbiz-16.11.05.zip

Apache OFBiz Home Page: https://ofbiz.apache.org/index.html

 Install on Ubuntu 16: https://medium.com/viithiisys/installation-steps-of-apache-ofbiz-16-0-in-ubuntu-2edc39e9c7e2

 

 

 

 

Navigation