Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Java & NetBSD (JNA or Linux emulation)

I have a java project which needs to run some dl4j (Deep Learning for Java) code.

Unfortunately dl4j requires some native libraries

The two obvious options would be to build the native libraries for NetBSD (which in turn needs JNA) or to run under the oracle-8 JDK using Linux emulation.

Trying to fire up wildfly under the Linux oracle-8 JDK instead of native OpenJDK8 seems to start up OK (bar an inotify error), and the dl4j processing works fine (yay), but the server will not respond to any http requests - the port connects but no response is ever received.

The inotify error *looks* like it should be unrelated (included below), but there is definitely something up.

So.. :) is anyone working on JNA under NetBSD, and/or poking at the Linux emulation in such a way that might help running a native Linux JDK... or even have any idea as to how to get wildfly to run under a Linux JDK with the current Linux emulation?

Have tried on amd64 netbsd-8 and the latest current kernel from nyftp

My fallback is to use HAXM to fire up a Linux VM and run it inside there...



That error - which seems to be in inotifyInit()

17:56:04,081 ERROR [io.undertow] (MSC service thread 1-6) UT005024: Could not register resource change listener for caching resource manager, automatic invalidation of cached resource will not work: java.lang.RuntimeException: Function not implemented
        at org.xnio.nio.WatchServiceFileSystemWatcher.<init>(
        at org.xnio.nio.NioXnio.createFileSystemWatcher(
        at io.undertow.server.handlers.resource.PathResourceManager.registerResourceChangeListener(
        at org.wildfly.extension.undertow.deployment.ServletResourceManager.registerResourceChangeListener(
        at io.undertow.server.handlers.resource.CachingResourceManager.<init>(
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.start(
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(
        at org.jboss.msc.service.ServiceControllerImpl$
        at org.jboss.threads.EnhancedQueueExecutor.safeRun(
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(
        at org.jboss.threads.EnhancedQueueExecutor$
Caused by: Function not implemented
        at sun.nio.fs.LinuxWatchService.<init>(
        at sun.nio.fs.LinuxFileSystem.newWatchService(
        at org.xnio.nio.WatchServiceFileSystemWatcher.<init>(

Home | Main Index | Thread Index | Old Index