Issue with Web Author spellcheck

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
david.badger
Posts: 25
Joined: Tue Feb 25, 2014 12:14 am

Issue with Web Author spellcheck

Post by david.badger »

Hello,
We are having an issue in Web Author (version 22.1) running in Websphere traditional. Specifically, the spellcheck never returns any spelling errors. In the logs, we are seeing the following appear during a spellcheck operation:

Code: Select all

The hunspell library or dictionary could not be loaded, due to java.lang.UnsatisfiedLinkError: Cannot load the hunspell native library. The full log is:
Hunspell libname: libhunspell-linux-x86-64.so, libBareName: hunspell-linux-x86-64
Assuming the hunspell library was already loaded. Trying to link to it directly.
Cannot link to the hunspell library. It is not already loaded. Will try other methods.
java.lang.NoClassDefFoundError: com.sun.jna.Native (initialization failure)
...
Caused by: java.lang.UnsatisfiedLinkError: /tmp/jna-2645995/jna5576598202007341595.tmp (/tmp/jna-2645995/jna5576598202007341595.tmp: failed to map segment from shared object)
We are able to fix this by allowing exec permissions on the /tmp directory, but this directory will be noexec in the future. Is there a specific property or configuration option we can use to change this directory (instead of /tmp)?
Thank you!
cristi_talau
Posts: 496
Joined: Thu Sep 04, 2014 4:22 pm

Re: Issue with Web Author spellcheck

Post by cristi_talau »

Hello,

By default it seems that the Hunspell library is unpacked in the "/tmp" directory on your system. You can control this location by specifying one of the following System Properties for the "java" process that runs WebShpere:
  • java.io.tmpdir - this changes the temporary directory for all the code that runs in the WebSphere instance
  • jna.tmpdir - this changes just the temporary directory for JNA (which loads Hunspell)
Best,
Cristian
david.badger
Posts: 25
Joined: Tue Feb 25, 2014 12:14 am

Re: Issue with Web Author spellcheck

Post by david.badger »

Thanks! This is what we needed.
Post Reply