Page 1 of 1

Issue with Web Author spellcheck

Posted: Tue Jan 30, 2024 10:15 pm
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!

Re: Issue with Web Author spellcheck

Posted: Wed Jan 31, 2024 12:30 pm
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

Re: Issue with Web Author spellcheck

Posted: Thu Feb 01, 2024 1:30 am
by david.badger
Thanks! This is what we needed.