You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Peter Klügl (JIRA)" <de...@uima.apache.org> on 2015/10/20 16:11:27 UTC
[jira] [Commented] (UIMA-4605) Initialization of annotator class
"org.apache.uima.ruta.engine.RutaEngine" failed
[ https://issues.apache.org/jira/browse/UIMA-4605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14965149#comment-14965149 ]
Peter Klügl commented on UIMA-4605:
-----------------------------------
I assume this is not a problem anymore?
> Initialization of annotator class "org.apache.uima.ruta.engine.RutaEngine" failed
> ---------------------------------------------------------------------------------
>
> Key: UIMA-4605
> URL: https://issues.apache.org/jira/browse/UIMA-4605
> Project: UIMA
> Issue Type: Bug
> Components: ruta
> Affects Versions: 2.3.0ruta
> Reporter: Min Jiang
> Assignee: Peter Klügl
>
> I got the error when I use the absolute path to create resource specifier,
> I declared a new type in the script and created a custimzed engine file, when I
> use it to create AE, I got the error:
> code is like:
> ResourceManager resMgr = UIMAFramework.newDefaultResourceManager();
> URL aedesc = new File( customEngineFile ).toURI().toURL();
>
> XMLInputSource inae = new XMLInputSource( aedesc );
> ResourceSpecifier specifier = UIMAFramework.getXMLParser().parseResourceSpecifier(inae);
> AnalysisEngineDescription aed = (AnalysisEngineDescription) specifier;
> aed.resolveImports(resMgr);
> ae = UIMAFramework.produceAnalysisEngine(aed, resMgr, null);
> org.apache.uima.resource.ResourceInitializationException: Initialization of annotator class "org.apache.uima.ruta.engine.RutaEngine" failed. (Descriptor: file:/Users/xxx/Documents/runtime-xxx/nnn/descriptor/defaultEngine.xml)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)