Hi Joseph,

Thanks for the report. I will adapt the OpenNLP component that loads
the model from the DataFileProvider infrastructure to do so with the
extra permissions required. In the meantime you can avoid such
exceptions by parsing '-no-security' as parameter when launching your
Stanbol Launcher.

best
Rupert

On Thu, Jun 20, 2013 at 4:55 PM, Joseph M'Bimbi-Bene
<[email protected]> wrote:
> Hello everybody, i get the following error while trying to enhance a batch
> of documents. Looks like sometimes Stanbol doesn't have the right to access
> openNLP model, but other time it can, just as indicate the log excerpt:
>
> 20.06.2013 16:55:15.975 *INFO* [10277889@qtp-1810905-19]
> org.apache.stanbol.enhancer.jobmanager.event.impl.EventJobManagerImpl
> Execution of Chain EDFEnhancement finished after 1910ms for ContentItem
> <urn:content-item-sha1-ce2584c6d20f5576c224f591e2f061224e28ad37>
> 20.06.2013 16:55:16.271 *INFO* [18251006@qtp-1810905-20]
> org.apache.stanbol.enhancer.jobmanager.event.impl.EventJobManagerImpl
> Execution of Chain EDFEnhancement finished after 2139ms for ContentItem
> <urn:content-item-sha1-2c92c3ac2c2b215c64944cd17aeb05055b417fc8>
> 20.06.2013 16:55:16.277 *WARN* [Thread-122]
> org.apache.stanbol.enhancer.engines.opennlp.sentence.impl.OpenNlpSentenceDetectionEngine
> Unable to load Sentence Detection model for language 'fr' from the
> configured model 'fr-sent.bin'! java.security.AccessControlException:
> access denied (java.io.FilePermission
> /home/adminsrv/stanbol_14_05_13/stanbol/datafiles/fr-sent.bin read)
>     at java.security.AccessControlContext.checkPermission(Unknown Source)
>     at java.security.AccessController.checkPermission(Unknown Source)
>     at java.lang.SecurityManager.checkPermission(Unknown Source)



-- 
| Rupert Westenthaler             [email protected]
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Reply via email to