15 Aug 15:52
Class-Path issues - Previously: Making JAR files reading from within
From: Ahmed Abdeen Hamed <ahmed.elmasri@...>
Subject: Class-Path issues - Previously: Making JAR files reading from within
Newsgroups: gmane.comp.apache.uima.general
Date: 2008-08-15 13:55:58 GMT
Subject: Class-Path issues - Previously: Making JAR files reading from within
Newsgroups: gmane.comp.apache.uima.general
Date: 2008-08-15 13:55:58 GMT
Hi again Marshall: We need to deploy our applications as a JAR so that it can be run from the command-line. The UIMA AE descriptor is not the main application entry-point. In fact, AE gets built on the fly. I am attaching my directory structure after I unpack the deployed JAR. I am also copying the contents of the MANIFEST.MF file to see if you can identify any funny part in it.
============================================
Manifest-Version: 1.0
Main-Class: oboannotator.application.OBO_DocumentAnalyzerApplication
Class-Path: lib/uima-core.jar lib/jVinci.jar lib/maxent-2.4.0.jar lib/opennlp-tools-1.3.0.jar lib/uima-adapter-soap.jar lib/uima-adapter-vinci.jar lib/uima-cpe.jar lib/uima-
document-annotation.jar lib/uima-tools.jar lib/xerces.jar
============================================
Here is the RUNTIME error that I am getting:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/uima/resource/ResourceInitializationException
at oboannotator.application.OBO_DocumentAnalyzerApplication.main(OBO_DocumentAnalyzerApplication.java:168)
I have been struggling with this issue for more than a week now. I would appreciate any insight!
Ahmed
P.S. Please see the attached project directory structure screenshot.
On Thu, Aug 14, 2008 at 4:46 PM, Marshall Schor <msa-DzKsKX1/Fv4AvxtiuMwx3w@public.gmane.org> wrote:
Hi Ahmed -
Did you consider UIMA's "PEAR" packaging and the pear installer utilities that are part of UIMA?
That's how many people make annotator components available to others.
-Marshall
Ahmed Abdeen Hamed wrote:Dear Marshall: Thank you for taking the time to response to this. You have
inspired a couple of suggestions that we ended up using here to deploy our
application. So, it's finally usable by someone else except myself, yay :)Best
wishes,
-Ahmed
RSS Feed