Return-Path: Delivered-To: apmail-uima-user-archive@www.apache.org Received: (qmail 57575 invoked from network); 22 Nov 2010 09:49:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Nov 2010 09:49:35 -0000 Received: (qmail 91719 invoked by uid 500); 22 Nov 2010 09:50:07 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 91527 invoked by uid 500); 22 Nov 2010 09:50:05 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 91499 invoked by uid 99); 22 Nov 2010 09:50:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 09:50:04 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of twgoetz@gmx.de designates 213.165.64.22 as permitted sender) Received: from [213.165.64.22] (HELO mail.gmx.net) (213.165.64.22) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 22 Nov 2010 09:49:57 +0000 Received: (qmail invoked by alias); 22 Nov 2010 09:49:36 -0000 Received: from deibp9eh1--blueice3n2.emea.ibm.com (EHLO [9.152.14.84]) [195.212.29.180] by mail.gmx.net (mp006) with SMTP; 22 Nov 2010 10:49:36 +0100 X-Authenticated: #25330878 X-Provags-ID: V01U2FsdGVkX18iQ59lT1Air8NaDsXc+MIYQMz+mt+BB2zSMqbj24 bqtBy9jgsunKLM Message-ID: <4CEA3CD1.7090609@gmx.de> Date: Mon, 22 Nov 2010 10:50:09 +0100 From: =?ISO-8859-1?Q?Thilo_G=F6tz?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: user@uima.apache.org Subject: Re: Initialization of annotator class "foo" failed. References: In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Does your class really live in Lesson4/src/de.tudarmstadt.ukp.teaching.tutorial.lesson4/PosTagger.java? Shouldn't that be de/tudarmstadt/upk/...? --Thilo On 11/22/2010 10:30, A. Schaller wrote: > Hey together, > > I am having troubles with UIMA running a AE Descriptor or CPE Descriptor. When I > try to run one of these with run configuriation "UIMA Run AE", "UIMA Run CPE" or > "UIMA CAS Visual Debugger" I get the error: > > Caused by: org.apache.uima.resource.ResourceInitializationException: > Initialization of annotator class "foo" failed. > > Where foo is the corresponding *.java file. The strange thing is: When i am > going through the RoomNumberAnnotator example (http://uima.apache.org/doc-uima- > annotator.html) everything works fine and compiles nicely. > > But when i try to import an UIMA project into eclipse or try to build another > UIMA app i am running into the mentioned error. For example i try to import the > following UIMA project (which is pretty minimal. It simply implements a POS > tagger with stanford's pos tagger): theknetgroup.org/lesson4.zip > > This is what i do: > > 1. Set UIMA_HOME (export UIMA_HOME=/home/bin4ry/Tools/Dev/apache-uima > 2. Open Eclipse set (once) UIMA_HOME: Windows --> Preferences -> Variables ... > 3. New Project -> Java Project --> Name Lesson4 > 4. Right Click on this project --> properties --> UIMA CDE Property Page --> set > Data Path to "/home/bin4ry/workspace/Lesson4" > 5. Right Click on this project --> Add UIMA Nature > 6. Drag&Drop the extracted files from lesson4.zip into the corresponding project > folders (desc, src). > 7. Right Click on this project --> Configure Build Path --> Libraries --> Add > Variable --> Select "UIMA_HOME" --> Extend ... --> Select uima-core.jar, uima- > cpe.jar, uima-document-annotation.jar | Add External JARs and select the > downloaded stanford-postagger.jar > (http://nlp.stanford.edu/software/tagger.shtml#Download) > > --- > All the code must go to > Lesson4/src/de.tudarmstadt.ukp.teaching.tutorial.lesson4/PosTagger.java but this > is not of interest here therefore i leave it out. The corresponding descriptor > file resides in Lesson4/desc/annotator/lesson4/PosTagger.xml. > --- > 9. Open it with Component Descriptor Editor --> Type System --> remove all the > listed types (if you view the source they are referred to by name not by > location. This gives an error later on when running it with the debugger. The > error states: "org.apache.uima.resource.ResourceInitializationException: An > import could not be resolved. No xml file with name "desc.type.lesson4.Pos" was > found in the class path or data path. ..." Maybe this is another hint to the > whole problem?) --> add --> Import by location (Lesson4/desc/type/Sentence.xml & > Token.xml as well as Lesson4/desc/type/lesson4/Pos.xml) > > 9. Run --> Run Configurations --> UIMA CAS Visual Debugger --> Classpath --> > User Entries --> Add project --> Lesson4 | Add External JARs --> select > stanford-postagger.jar --> Apply --> Run > 10. Now I load the Descriptor xml file with Run --> Load AE and I browse to > /home/bin4ry/workspace/Lesson4/desc/annotator/lesson4/PosTagger.xml > 11. ERROR: org.apache.uima.resource.ResourceInitializationException: > Initialization of annotator class > "de.tudarmstadt.ukp.teaching.tutorial.lesson4.PosTagger" failed. > > > What the heck i'm doing wrong? I tried this on Ubuntu 10.10 (even Win 7) with > java-6-sun and java-6-openjdk etc. I know that UIMA is setup correctly since > RoomNumberAnnotator works fine. There must be a little parameter configured > wrong. Help please...this drives me crazy. >