All,
 
Please disregard previous post.   I stepped through the code and see what the 
problem is, the dataPathElements is storing the path to the UIMA examples and 
not the RegExpressionAnnotator project.   I should be able to correct it.
 
Marshall, I do appreciate your help with getting me set up with the correct 
install.  
 
Regards,
Paula
 
> From: [email protected]
> To: [email protected]
> Subject: RE: Question on Regular Expression Annotator - Previous issue 
> resolved, on to next issue :-)
> Date: Tue, 29 Oct 2013 22:08:36 -0400
> 
> Marshall et al,
>  
> I was able to solve the problem, just applied the quick fixes in eclipse.  
> Apparently it's a common problem with Maven dependency plugin:
> http://www.journaldev.com/503/how-to-fix-maven-dependency-plugin-goals-copy-dependencies-unpack-is-not-supported-by-m2e-in-eclipse
>  
> The only problem I have now is executing the regular expression annotator, 
> the concepts file is not being found.     I tested the reg expression 
> annotator in the document analyzer tool.   I checked and I do see that it's 
> in the resource directory.  I've tried specifically typing in the 
> path(resources/concepts.xml) on the parameter settings tab in the descriptor 
> file but the concepts file is just not being picked up.   
>  
> Thanks and appreciate anyone's help on this.
>  
> Regards,
> Paula
>  
>  
> Here's the specific error from below:  Caused by: 
> org.apache.uima.annotator.regex.impl.RegexAnnotatorConfigException: "The 
> resource file concepts.xml could not be found."
>  
> -----the entire 
> error-----------------------------------------org.apache.uima.resource.ResourceInitializationException:
>  Initialization of annotator class 
> "org.apache.uima.annotator.regex.impl.RegExAnnotator" failed.  (Descriptor: 
> file:/C:/Users/SemanticPrincess/UIMAWorkspaceJuno/RegularExpressionAnnotator/desc/RegExAnnotator.xml)
>       at 
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initializeAnalysisComponent(PrimitiveAnalysisEngine_impl.java:254)
>       at 
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initialize(PrimitiveAnalysisEngine_impl.java:158)
>       at 
> org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94)
>       at 
> org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
>       at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:269)
>       at 
> org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:387)
>       at 
> org.apache.uima.analysis_engine.asb.impl.ASB_impl.setup(ASB_impl.java:255)
>       at 
> org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initASB(AggregateAnalysisEngine_impl.java:429)
>       at 
> org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initializeAggregateAnalysisEngine(AggregateAnalysisEngine_impl.java:373)
>       at 
> org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initialize(AggregateAnalysisEngine_impl.java:186)
>       at 
> org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94)
>       at 
> org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
>       at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:269)
>       at 
> org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:354)
>       at 
> org.apache.uima.tools.docanalyzer.DocumentAnalyzer.runProcessingThread(DocumentAnalyzer.java:1223)
>       at 
> org.apache.uima.tools.docanalyzer.DocumentAnalyzer$ProcessingThread.run(DocumentAnalyzer.java:1332)
> Caused by: 
> org.apache.uima.annotator.regex.impl.RegexAnnotatorConfigException: "The 
> resource file resources/concepts.xml could not be found."
>       at 
> org.apache.uima.annotator.regex.impl.RegExAnnotator.initialize(RegExAnnotator.java:127)
>       at 
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initializeAnalysisComponent(PrimitiveAnalysisEngine_impl.java:252)
>       ... 15 more
> org.apache.uima.resource.ResourceInitializationException: Initialization of 
> annotator class "org.apache.uima.annotator.regex.impl.RegExAnnotator" failed. 
>  (Descriptor: 
> file:/C:/Users/SemanticPrincess/UIMAWorkspaceJuno/RegularExpressionAnnotator/desc/RegExAnnotator.xml)
>       at 
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initializeAnalysisComponent(PrimitiveAnalysisEngine_impl.java:254)
>       at 
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initialize(PrimitiveAnalysisEngine_impl.java:158)
>       at 
> org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94)
>       at 
> org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
>       at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:269)
>       at 
> org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:387)
>       at 
> org.apache.uima.analysis_engine.asb.impl.ASB_impl.setup(ASB_impl.java:255)
>       at 
> org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initASB(AggregateAnalysisEngine_impl.java:429)
>       at 
> org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initializeAggregateAnalysisEngine(AggregateAnalysisEngine_impl.java:373)
>       at 
> org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initialize(AggregateAnalysisEngine_impl.java:186)
>       at 
> org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94)
>       at 
> org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
>       at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:269)
>       at 
> org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:354)
>       at 
> org.apache.uima.tools.docanalyzer.DocumentAnalyzer.runProcessingThread(DocumentAnalyzer.java:1223)
>       at 
> org.apache.uima.tools.docanalyzer.DocumentAnalyzer$ProcessingThread.run(DocumentAnalyzer.java:1332)
> Caused by: 
> org.apache.uima.annotator.regex.impl.RegexAnnotatorConfigException: "The 
> resource file concepts.xml could not be found."
>       at 
> org.apache.uima.annotator.regex.impl.RegExAnnotator.initialize(RegExAnnotator.java:127)
>       at 
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initializeAnalysisComponent(PrimitiveAnalysisEngine_impl.java:252)
>       ... 15 more
>    
>  
>  
> 
>  
> From: [email protected]
> To: [email protected]
> Subject: FW: Question on Regular Expression Annotator - please disregard 
> previous post this one is correct
> Date: Tue, 29 Oct 2013 12:42:11 -0400
> 
> 
> 
> 
> 
> 
> 
> 
> Hi Marshall,
> First of all thanks for your prompt response.  Per your recommendation, I did 
> the tag check out using the link you provided but ran into an error on the 
> maven install with the 'import maven projects' screen please see attached 
> image.   There was an error with the 'uima-build-helper-maven-plugin'.  I 
> continued with install to resolve later.    After installation there was a 
> problem with the POM file.  I opened up the POM file, the overview page  
> states an error with the "maven-dependency-plugin(goals "copy-dependencies", 
> "unpack") is not supported by m2e".     The second problem (from description 
> section of eclipse project) states that "plugin execution not covered by  
> lifecycle configuration 
> org.apache.uima:uima-build-helper-maven-plugin:2:parse-date-time(execution: 
> setbuildYear and buildMonth, phase:validate)"
> I do appreciate your personal assistance with this.     In the meantime, I'll 
> be reading up on the differences between trunks, tags and branches.  :-)
> Regards,Paula
> > Date: Tue, 29 Oct 2013 10:15:35 -0400
> > From: [email protected]
> > To: [email protected]
> > Subject: Re: Question on Regular Expression Annotator - please disregard 
> > previous post this one is correct
> > 
> > Hi,
> > 
> > It looks like you're working with the "trunk" level of the source.
> > 
> > The trunk level sometimes doesn't build, as people are working on it...
> > 
> > If you want to build a "released" level, just check out a tag, rather than 
> > the
> > trunk.  For instance, you could check out of SVN the last release tag, here:
> > https://svn.apache.org/repos/asf/uima/addons/tags/uima-addons-2.3.1/RegularExpressionAnnotator
> > 
> > If you want to work with the trunk, you will need to check out, also, the 
> > project:
> > uima-addons-parent, and build it using "mvn install".  This will create the
> > missing 2.3.2-SNAPSHOT version of this artifact in your local Maven .m2
> > repository, and that will fix the problem of it not being found...
> > 
> > Cheers. -Marshall
> > 
> > On 10/28/2013 10:30 PM, digital paula wrote:
> > > Hi again,
> > > When I did a maven install via Eclipse it resolved the issues that I had 
> > > in my previous post.   The only error that I have now is with the build.  
> > > In the POM file there's a problem with this part:  <parent>    
> > > <groupId>org.apache.uima</groupId>    
> > > <artifactId>uima-addons-parent</artifactId>    
> > > <version>2.3.2-SNAPSHOT</version>    
> > > <relativePath>../uima-addons-parent</relativePath>  </parent>  It states 
> > > on the overview tab the following Project build error:  "Non-resolvable 
> > > parent POM: could not find artifact org.apac
> > > Project build error: Non-resolvable parent POM: Could not find artifact 
> > > org.apache.uima:uima-addons-parent:pom:2.3.2-SNAPSHOT and 
> > > 'parent.relativePath' points at wrong local POM
> > > I did find a similar problem on the user archives that with the parent 
> > > POM but it was for the simple server 
> > > addon:http://mail-archives.apache.org/mod_mbox/uima-user/201206.mbox/browser
> > > Would appreciate any help on this. 
> > > Thanks.
> > > Regards,Paula
> > > From: [email protected]
> > > To: [email protected]
> > > Subject: Question on Regular Expression Annotator
> > > Date: Mon, 28 Oct 2013 12:59:11 -0400
> > >
> > >
> > >
> > >
> > > Hi,
> > >  
> > > I had completed most of the tutorials on UIMA Framework (though I wasn't 
> > > able to do the semantic search due to it not being open source anymore 
> > > and removed from the uimaj-examples folder :-(  I came across a reference 
> > > to the Lemur Project while researching alternatives and after an evening 
> > > trying to get it working just ended up scrapping it all together.  I was 
> > > able to install the PEAR via the PEAR installation tool but when testing 
> > > it crashed due to unable to resolve  references to org.ibm.apache  that 
> > > no longer existed so I imported project into Eclipse and changed the 
> > > references in the java file to java.org.apache and still ran into 
> > > problems with the CVD tool, the  indriCASconsumer descriptor was not 
> > > finding the java class.   I'm going to look into Solr next since I see 
> > > it's a more recent semantic search tool.
> > >  
> > > In the meantime, I am trying to work with the regular expression 
> > > annotator add on.  I had installed the regular expression annotator via 
> > > SVN within Eclipse as a separate project.   
> > > http://svn.apache.org/repos/asf/uima/addons/trunk/RegularExpressionAnnotator/
> > >  
> > > The problem I had first off was that the reference in each java file was 
> > > 'package org.apache.uima.annotator.regex' but the build path for the 
> > > directories was main.java.org.apache.uima.annotator.regex in the project. 
> > >  This was resolved by the quick fix in java to change all the package 
> > > names in the files to have the correct package name of  
> > > main.java.org.apache.uima.annotator.regex.  
> > >  
> > > In addition, I just manually changed the import names such as:  'import 
> > > org.apache.uima.annotator.regex.Position' to 
> > > 'import main.java.org.apache.uima.annotator.regex.Position'
> > >  
> > > However I ran into a bit of a snag when I came across these to imports in 
> > > the java file ConceptFileParser_Imp.java
> > > I don't know how to resolve the error (the imports are not resolved)  
> > > since I don't see incubator anywhere in the project and I'm not expert 
> > > enough at Java to resolve the second one:
> > > import org.apache.incubator.uima.regex.AnnotationDocument;
> > > import org.apache.xmlbeans.XmlError;
> > >  
> > > Would appreciate any help. 
> > >  
> > > Thanks.
> > >  
> > > Regards,
> > > Paula
> > >  
> > >
> > >  
> > >  
> > >  
> > >  
> > >  
> > >  
> > >  
> > >  
> > >  
> > >  
> > >  
> > >                                                                           
> > >   
> > 
>                                                                               
>                                           
                                          

Reply via email to