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...

Thanks!

David


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: java.io.IOException: Function not implemented
        at org.xnio.nio.WatchServiceFileSystemWatcher.<init>(WatchServiceFileSystemWatcher.java:75)
        at org.xnio.nio.NioXnio.createFileSystemWatcher(NioXnio.java:242)
        at io.undertow.server.handlers.resource.PathResourceManager.registerResourceChangeListener(PathResourceManager.java:246)
        at org.wildfly.extension.undertow.deployment.ServletResourceManager.registerResourceChangeListener(ServletResourceManager.java:117)
        at io.undertow.server.handlers.resource.CachingResourceManager.<init>(CachingResourceManager.java:64)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:577)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.start(UndertowDeploymentInfoService.java:275)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)
        at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)
        at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
        at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1364)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Function not implemented
        at sun.nio.fs.LinuxWatchService.<init>(LinuxWatchService.java:64)
        at sun.nio.fs.LinuxFileSystem.newWatchService(LinuxFileSystem.java:47)
        at org.xnio.nio.WatchServiceFileSystemWatcher.<init>(WatchServiceFileSystemWatcher.java:73)



Home | Main Index | Thread Index | Old Index