On 10.04.2021 04:33, Woyce Batkins wrote:
> I tried to install ofbiz on ubuntu 20 and it runs by default on ipv6 (based
> on netstat)
> ofbiz release 17.12.6
> Openjdk 8
> embedded gradlew
>
> setting the following prevented gradle to connect to the daemon:
> *-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false*
>
> Any idea?
>
I think it starts in dual stack mode so you should be able to connect
via IPV4 as well (localhost/127.0.0.1).
I think Gradle starts OFBiz into a forked JVM ( a different process than
gradle jvm).
So you should configure gradle to pass the system properties to the
forked JVM.
See in build.gradle createOfbizCommandTask that start ofbiz and uses
JavaExec task [1].
You should pass systemProperties [2] to it.
def createOfbizCommandTask(taskName, arguments) {
task(type: JavaExec, dependsOn: classes, taskName) {
jvmArgs(application.applicationDefaultJvmArgs)
classpath = sourceSets.main.runtimeClasspath
main = application.mainClassName
args arguments
if (taskName ==~ /^ofbiz.*(--test|-t).*/) {
finalizedBy(createTestReports)
}
}
}
Hope it helps and please tell us if you fixed your issue.
[1]
https://docs.gradle.org/current/dsl/org.gradle.api.tasks.JavaExec.html#org.gradle.api.tasks.JavaExec[2]
https://docs.gradle.org/current/dsl/org.gradle.api.tasks.JavaExec.html#org.gradle.api.tasks.JavaExec:systemProperties--
Eugen Stan
+40720 898 747 / netdava.com