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

Fedor Nikolaev commented on CTAKES-388:
---------------------------------------

How this is supposed to work?
{code:java}
      InputStream lookUpStream = 
UmlsDictionaryLookupAnnotator.class.getClassLoader().getResourceAsStream("org/apache/ctakes/dictionary/lookup/LookupDesc_Db.xml");{code}
when resources are not copied to jar in ctakes-dictionary-lookup-res?
{code:xml}
                                        
<artifactId>maven-jar-plugin</artifactId>
                                        <version>2.4</version>
                                        <configuration>
                                  <includes>
                                  <!-- Dictionary lookup Resources that are 
unpacked
                                  automatically by maven
                                        are not jar'd and included in the bin 
distro
                                        by default please download them from SF 
if needed. 
                                   -->
                                    <include>**/*.class</include>
                                    <include>**/types/*.xml</include>           
                    
                                    <include>**/META-INF/**</include>
                                   
                                  </includes>
                                </configuration>{code}
Right now I am having NullPointerException when I am running {{mvn exec:java 
-Dexec.mainClass=org.apache.ctakes.clinicalpipeline.ClinicalPipelineFactory}} 
because of this.

> URI is not hierarchical when attempting to obtain LookupDesc_Db.xml within JAR
> ------------------------------------------------------------------------------
>
>                 Key: CTAKES-388
>                 URL: https://issues.apache.org/jira/browse/CTAKES-388
>             Project: cTAKES
>          Issue Type: Improvement
>          Components: ctakes-dictionary-lookup
>    Affects Versions: 3.2.2
>         Environment: MacOSX 10.9.5, cTAKES 3.2.3-SNAPSHOT, Apache Spark 
> 1.5.1, Apache Hadoop 2.4.0
>            Reporter: Lewis John McGibbney
>             Fix For: 3.2.3
>
>         Attachments: CTAKES-388.patch
>
>
> This issue is extremely similar to CTAKES-385 where the is an attempt to load 
> a resource (in this case LookupDesc_Db.xml) as a File instead of an 
> InputStream.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to