[ 
https://issues.apache.org/jira/browse/UIMA-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020615#comment-13020615
 ] 

Richard Eckart de Castilho edited comment on UIMA-2012 at 4/16/11 2:32 PM:
---------------------------------------------------------------------------

I have a similar - possibly the same problem:

I try to open an XMI which uses a type system that imports another type system. 
To me it looks like the imports are resolved relative to the Eclipse home 
directory (instead of relative to the actual descriptor file) for 
import-by-location and that source paths on a Java project are also ignored.

There the error message for an import-by-location:

Could not open the editor: Import failed.  Could not read from URL 
file:/../../BasicTypeSystem.xml. (Descriptor: file:/Applications/eclipse 
3.6.0-cocoa-64/Eclipse.app/Contents/MacOS

Here for an import-by-name (even though the BasicTypeSystem.xml is in a folder 
declared as a Java source folder in the same project containing the XMI):

Could not open the editor: An import could not be resolved.  No .xml file with 
name "BasicTypeSystem" was found in the class path or data path. (Descriptor: 
file:/Applications/eclipse 3.6.0-cocoa-64/Eclipse.app/Contents/MacOS)

I am using the 2.3.2-SNAPSHOT version (rev. 1091767) of the UIMA Eclipse 
Plugins on a non-CAS-editor project.

      was (Author: eckart):
    I have a similar - possibly the same problem:

I try to open an XMI which uses a type system that imports another type system. 
To me it looks like the imports are resolved relative to the Eclipse home 
directory (instead of relative to the actual descriptor file) for 
import-by-location and that source paths on a Java project are also ignored.

There the error message for an import-by-location:

Could not open the editor: Import failed.  Could not read from URL 
file:/../../BasicTypeSystem.xml. (Descriptor: file:/Applications/eclipse 
3.6.0-cocoa-64/Eclipse.app/Contents/MacOS

Here for an import-by-name (even though the BasicTypeSystem.xml is in a folder 
declared as a Java source folder in the same project containing the XMI):

Could not open the editor: An import could not be resolved.  No .xml file with 
name "BasicTypeSystem" was found in the class path or data path. (Descriptor: 
file:/Applications/eclipse 3.6.0-cocoa-64/Eclipse.app/Contents/MacOS)


  
> Handling of imported type systems causes error
> ----------------------------------------------
>
>                 Key: UIMA-2012
>                 URL: https://issues.apache.org/jira/browse/UIMA-2012
>             Project: UIMA
>          Issue Type: Bug
>          Components: CasEditor
>            Reporter: Peter Klügl
>            Priority: Minor
>             Fix For: 2.3.2SDK
>
>
> When opening a XMI with a type system that imports other type systems (by 
> location), the editor displays an error. This problem occurs, if XMI contains 
> data of types that are specified in the imported type systems. May be related 
> to UIMA-2011.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to