Hello!
I'm using GATE annotator descriptor that is locate in *
<my_project>/desc/uima-gate/primitive* and has dependencies on two external
data files located at
*<my_project>/resources/gate-apps/fuel-type/application.xgapp*;
*<my_project>/resources/gate-mapping/LargeKB_UIMAMapping.xml*
I have a script located in *<my_project>/ *that uses *deployAsyncService.cmd
*to deploy my AE (for UIMA AS) that incorporates the GATE Annotator. When
I'm running the script the following exception is thrown:
org.apache.uima.resource.ResourceInitializationException: Could not access
the resource data at *resources/gate-apps/fuel-type/application.xgapp*.
at
org.apache.uima.resource.impl.DataResource_impl.initialize(DataResource_impl.java:126)
I've added the xgapp file in the UIMA_CLASSPATH variables, but the error
remains.
script.bat
@set UIMA_CLASSPATH=%UIMA_CLASSPATH%;lib;*
resources/gate-apps/fuel-type/application.xgapp*
deployAsyncService.cmd <my_uima_as_descriptor>.xml
Can you please give me an advice on how to set up the external resources
URL in a such way to avoid this kind of problems? It will be great if you
can give me the right configuration for my scenario.
Thank you.
Regards,
Florin
<resourceManagerConfiguration>
<externalResources>
<externalResource>
<name>gate.uima.org_application</name>
<description/>
<fileResourceSpecifier>
<fileUrl>*resources/gate-apps/fuel-type/application.xgapp*
</fileUrl>
</fileResourceSpecifier>AE
</externalResource>
<externalResource>
<name>gate.uima.org_mapping</name>
<description/>
<fileResourceSpecifier>
<fileUrl>*resources/gate-mapping/LargeKB_UIMAMapping.xml*
</fileUrl>
</fileResourceSpecifier>
</externalResource>
</externalResources>
<externalResourceBindings>
<externalResourceBinding>
<key>GateApplication</key>
<resourceName>gate.uima.org_application</resourceName>
</externalResourceBinding>
<externalResourceBinding>
<key>MappingDescriptor</key>
<resourceName>gate.uima.org_mapping</resourceName>
</externalResourceBinding>
</externalResourceBindings>
</resourceManagerConfiguration>