LT and Wildfly

Hi,

We have our application running under Wildfly 8.
We have integrated LT English and it all works well
I’ve tried, today to add French support and I get this;

11:53:54,319 WARN [org.jboss.modules] (default task-2) Failed to define class org.languagetool.rules.spelling.hunspell.HunspellLibrary in Module “deployment.scoring.war:main” from Service Module Loader: java.lang.LinkageError: Failed to link org/languagetool/rules/spelling/hunspell/HunspellLibrary (Module “deployment.scoring.war:main” from Service Module Loader)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:487) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
at org.languagetool.rules.spelling.hunspell.Hunspell.(Hunspell.java:92) [languagetool-core-3.1-SNAPSHOT.jar:]
at org.languagetool.rules.spelling.hunspell.Hunspell.getInstance(Hunspell.java:68) [languagetool-core-3.1-SNAPSHOT.jar:]
at org.languagetool.rules.spelling.hunspell.Hunspell.getInstance(Hunspell.java:54) [languagetool-core-3.1-SNAPSHOT.jar:]
at org.languagetool.rules.spelling.hunspell.HunspellRule.init(HunspellRule.java:183) [languagetool-core-3.1-SNAPSHOT.jar:]
at org.languagetool.rules.spelling.hunspell.HunspellRule.match(HunspellRule.java:83) [languagetool-core-3.1-SNAPSHOT.jar:]
at org.languagetool.JLanguageTool.checkAnalyzedSentence(JLanguageTool.java:583) [languagetool-core-3.1-SNAPSHOT.jar:]
at org.languagetool.JLanguageTool$TextCheckCallable.call(JLanguageTool.java:919) [languagetool-core-3.1-SNAPSHOT.jar:]
at org.languagetool.JLanguageTool$TextCheckCallable.call(JLanguageTool.java:871) [languagetool-core-3.1-SNAPSHOT.jar:]
at org.languagetool.JLanguageTool.performCheck(JLanguageTool.java:545) [languagetool-core-3.1-SNAPSHOT.jar:]

Can someone help?

my deployed war file has the following related libs packaged;

annotations.jar
hppc.jar
hunspell-native-libs-3.1-SNAPSHOT.jar
jwordsplitter.jar
language-en-3.1-SNAPSHOT.jar
language-es-3.1-SNAPSHOT.jar
language-fr-3.1-SNAPSHOT.jar
languagetool-core-3.1-SNAPSHOT.jar
morfologik-fsa.jar
morfologik-speller.jar
morfologik-stemming.jar
morfologik-tools.jar
opennlp-chunk-models.jar
opennlp-maxent.jar
opennlp-postag-models.jar
opennlp-tokenize-models.jar
opennlp-tools.jar
segment.jar

For some languages we use native code for spell checking (and only for that, not for the advanced style and grammar checking). The native code itself is in hunspell-native-libs-3.1-SNAPSHOT.jar. Here’s a discussion about a potentially similar problem, maybe it helps? Wildfly Native Libraries| JBoss.org Content Archive (Read Only)

That thread is similar but also not answered.

Thanks

it seem that we need to have some structure similar to this

https://docs.jboss.org/author/display/MODULES/Native+Libraries https://docs.jboss.org/author/display/MODULES/Native+Libraries

I’m just not sure how to apply this to LT/hunspell

Anyone can help ?

Andre

On Sep 18, 2015, at 14:30, AndreC [via LanguageTool User Forum] ml-node+s2306527n4643139h21@n4.nabble.com wrote:

That thread is similar but also not answered.

Thanks

If you reply to this email, your message will be added to the discussion below:
http://languagetool-user-forum.2306527.n4.nabble.com/LT-and-Wildfly-tp4643137p4643139.html http://languagetool-user-forum.2306527.n4.nabble.com/LT-and-Wildfly-tp4643137p4643139.html
To unsubscribe from LT and Wildfly, click here http://languagetool-user-forum.2306527.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4643137&code=YWNvdXR1cmVAYXNjZW50aWZ5LmNvbXw0NjQzMTM3fDE3NzA2NzM4MzU=.
NAML http://languagetool-user-forum.2306527.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html!nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers!nabble%3Aemail.naml-instant_emails!nabble%3Aemail.naml-send_instant_email!nabble%3Aemail.naml

It seem that I was missing few libraries to get it running

jna
guava

all good now