uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Geller" <dgel...@aptima.com>
Subject Re: Re: Bewildered
Date Wed, 05 Mar 2008 12:41:13 GMT
<HTML>
Thanks, Thilo.<br>
<br>
Here's the classpath definition from the .bat file (line breaks added for this email)<br>
@rem All this nonsense is necessary to remove quotes from the CLASSPATH and also handle the
case where there is no CLASSPATH<br>
@set _NOQUOTES=%CLASSPATH:"=%<br>
@set _REALLYNOQUOTES=%_NOQUOTES:"=%<br>
@if "%_REALLYNOQUOTES%"=="=" set _REALLYNOQUOTES=<br>
set UIMA_CLASSPATH=%UIMA_CLASSPATH%;<br>
%UIMA_HOME%\examples\resources;<br>
%UIMA_HOME%\lib\uima-core.jar;<br>
%UIMA_HOME%\lib\uima-document-annotation.jar;<br>
%UIMA_HOME%\lib\uima-cpe.jar;<br>
%UIMA_HOME%\lib\uima-tools.jar;<br>
%UIMA_HOME%\lib\uima-examples.jar;<br>
%UIMA_HOME%\lib\uima-adapter-soap.jar;<br>
%UIMA_HOME%\lib\uima-adapter-vinci.jar;<br>
CATALINA_HOME%\webapps\axis\WEB-INF\lib\activation.jar;<br>
%CATALINA_HOME%\webapps\axis\WEB-INF\lib\axis.jar;<br>
%CATALINA_HOME%\webapps\axis\WEB-INF\lib\commons-discovery.jar;<br>
%CATALINA_HOME%\webapps\axis\WEB-INF\lib\commons-discovery-0.2.jar;<br>
%CATALINA_HOME%\webapps\axis\WEB-INF\lib\commons-logging.jar;<br>
%CATALINA_HOME%\webapps\axis\WEB-INF\lib\commons-logging-1.0.4.jar;<br>
%CATALINA_HOME%\webapps\axis\WEB-INF\lib\jaxrpc.jar;<br>
%CATALINA_HOME%\webapps\axis\WEB-INF\lib\mail.jar;<br>
%CATALINA_HOME%\webapps\axis\WEB-INF\lib\saaj.jar;<br>
%UIMA_HOME%\lib\jVinci.jar;%_REALLYNOQUOTES%;<br>
%UIMA_HOME%\examples\descriptors\DDD;<br>
%UIMA_HOME%\examples\src\org\apache\uima\DDD;<br>
%UIMA_HOME%\examples\src\org\apache\uima\DDD\Senseattributes<br>
<br>
And here's the echo of the actual definition in the bat file<br>
<br>
C:\apache-uima\bin&gt;set UIMA_CLASSPATH=;c:\apache-uima\examples\resources;c:\apac<br>
he-uima\lib\uima-core.jar;c:\apache-uima\lib\uima-document-annotation.jar;c:\apa<br>
che-uima\lib\uima-cpe.jar;c:\apache-uima\lib\uima-tools.jar;c:\apache-uima\lib\u<br>
ima-examples.jar;c:\apache-uima\lib\uima-adapter-soap.jar;c:\apache-uima\lib\uim<br>
a-adapter-vinci.jar;C:\Program Files\Apache Software Foundation\Tomcat 6.0\webap<br>
ps\axis\WEB-INF\lib\activation.jar;C:\Program Files\Apache Software Foundation\T<br>
omcat 6.0\webapps\axis\WEB-INF\lib\axis.jar;C:\Program Files\Apache Software Fou<br>
ndation\Tomcat 6.0\webapps\axis\WEB-INF\lib\commons-discovery.jar;C:\Program Fil<br>
es\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\lib\commons-discov<br>
ery-0.2.jar;C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\<br>
WEB-INF\lib\commons-logging.jar;C:\Program Files\Apache Software Foundation\Tomc<br>
at 6.0\webapps\axis\WEB-INF\lib\commons-logging-1.0.4.jar;C:\Program Files\Apach<br>
e Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\lib\jaxrpc.jar;C:\Program<br>
Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\lib\mail.jar;C:<br>
\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\lib\sa<br>
aj.jar;c:\apache-uima\lib\jVinci.jar;.;C:\openrdf-sesame-2.0\lib\slf4j-jdk14-1.3<br>
.0.jar;C:\apache-log4j-1.2.15\log4j-1.2.15.jar;C:\openrdf-sesame-2.0\lib\openrdf<br>
-sesame-2.0-onejar.jar;c:\jaxb-ri-20071219\lib\jaxb-api.jar;C:\Program Files\Jav<br>
a\jre1.6.0_03\lib\ext\QTJava.zip;c:\apache-uima\examples\descriptors\DDD;c:\apac<br>
he-uima\examples\src\org\apache\uima\DDD;c:\apache-uima\examples\src\org\apache\<br>
uima\DDD\Senseattributes<br>
<br>
These don't seem to have the directory containing org (same org as in the example) so I added
it<br>
;c:\apache-uima\examples\src;<br>
but no difference. I also added the actual org directory, but that was clearly a desperation
move, and also didn't help.<br>
<br>
The file being specified in DocumentAnalyzer as the source is: C:\apache-uima\examples\descriptors\DDD\SensorAnnotator.xml<br>
<br>
Here's the Directory structure<br>
C:<br>
&nbsp; apache-uima<br>
&nbsp;&nbsp;&nbsp; examples<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; src<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; org<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
apache<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
uima<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
DDD<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Senseattributes<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; descriptors<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DDD<br>
<br>
And here's the entire exception<br>
<br>
C:\apache-uima\bin&gt;"C:\Program Files\Java\jre1.6.0_03\bin\java" -cp ";c:\apache-<br>
uima\examples\resources;c:\apache-uima\lib\uima-core.jar;c:\apache-uima\lib\uima<br>
-document-annotation.jar;c:\apache-uima\lib\uima-cpe.jar;c:\apache-uima\lib\uima<br>
-tools.jar;c:\apache-uima\lib\uima-examples.jar;c:\apache-uima\lib\uima-adapter-<br>
soap.jar;c:\apache-uima\lib\uima-adapter-vinci.jar;C:\Program Files\Apache Softw<br>
are Foundation\Tomcat 6.0\webapps\axis\WEB-INF\lib\activation.jar;C:\Program Fil<br>
es\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\lib\axis.jar;C:\Pr<br>
ogram Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\lib\commo<br>
ns-discovery.jar;C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\<br>
axis\WEB-INF\lib\commons-discovery-0.2.jar;C:\Program Files\Apache Software Foun<br>
dation\Tomcat 6.0\webapps\axis\WEB-INF\lib\commons-logging.jar;C:\Program Files\<br>
Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\lib\commons-logging-1<br>
.0.4.jar;C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB<br>
-INF\lib\jaxrpc.jar;C:\Program Files\Apache Software Foundation\Tomcat 6.0\webap<br>
ps\axis\WEB-INF\lib\mail.jar;C:\Program Files\Apache Software Foundation\Tomcat<br>
6.0\webapps\axis\WEB-INF\lib\saaj.jar;c:\apache-uima\lib\jVinci.jar;.;C:\openrdf<br>
-sesame-2.0\lib\slf4j-jdk14-1.3.0.jar;C:\apache-log4j-1.2.15\log4j-1.2.15.jar;C:<br>
\openrdf-sesame-2.0\lib\openrdf-sesame-2.0-onejar.jar;c:\jaxb-ri-20071219\lib\ja<br>
xb-api.jar;C:\Program Files\Java\jre1.6.0_03\lib\ext\QTJava.zip;c:\apache-uima\e<br>
xamples\descriptors\DDD;c:\apache-uima\examples\src\org\apache\uima\DDD;c:\apach<br>
e-uima\examples\src\org\apache\uima\DDD\Senseattributes;c:\apache-uima\examples\<br>
src;c:\apache-uima\examples\src\org;" "-Duima.home=c:\apache-uima" "-Duima.datap<br>
ath=" -DVNS_HOST=localhost -DVNS_PORT=9000 "-Djava.util.logging.config.file=c:\a<br>
pache-uima\config\Logger.properties" -Xms128M -Xmx800M org.apache.uima.tools.doc<br>
analyzer.DocumentAnalyzer<br>
org.apache.uima.resource.ResourceInitializationException: Annotator class "org.a<br>
pache.uima.DDD.Sensor.java" was not found. (Descriptor: file:/C:/apache-uima/exa<br>
mples/descriptors/DDD/SensorAnnotator.xml)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.ini<br>
tializeAnalysisComponent(PrimitiveAnalysisEngine_impl.java:202)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.ini<br>
tialize(PrimitiveAnalysisEngine_impl.java:151)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(Analy<br>
sisEngineFactory_impl.java:94)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(Co<br>
mpositeResourceFactory_impl.java:62)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:258)<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.jav<br>
a:352)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.uima.analysis_engine.asb.impl.ASB_impl.setup(ASB_impl.java<br>
:243)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.ini<br>
tASB(AggregateAnalysisEngine_impl.java:413)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.ini<br>
tializeAggregateAnalysisEngine(AggregateAnalysisEngine_impl.java:361)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.ini<br>
tialize(AggregateAnalysisEngine_impl.java:183)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(Analy<br>
sisEngineFactory_impl.java:94)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(Co<br>
mpositeResourceFactory_impl.java:62)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:258)<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.jav<br>
a:326)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.uima.tools.docanalyzer.DocumentAnalyzer.runProcessingThrea<br>
d(DocumentAnalyzer.java:1167)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.uima.tools.docanalyzer.DocumentAnalyzer$ProcessingThread.r<br>
un(DocumentAnalyzer.java:1267)<br>
Caused by: java.lang.ClassNotFoundException: org.apache.uima.DDD.Sensor.java<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.net.URLClassLoader$1.run(Unknown
Source)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.security.AccessController.doPrivileged(Native
Method)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.net.URLClassLoader.findClass(Unknown
Source)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.ClassLoader.loadClass(Unknown
Source)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.misc.Launcher$AppClassLoader.loadClass(Unknown
Source)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.ClassLoader.loadClass(Unknown
Source)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.ClassLoader.loadClassInternal(Unknown
Source)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.Class.forName0(Native
Method)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.Class.forName(Unknown
Source)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.ini<br>
tializeAnalysisComponent(PrimitiveAnalysisEngine_impl.java:199)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... 15 more<br>
<br>
<br>
Here's the descriptor file<br>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>
&lt;analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier"&gt;<br>
&nbsp; &lt;frameworkImplementation&gt;org.apache.uima.java&lt;/frameworkImplementation&gt;<br>
&nbsp; &lt;primitive&gt;true&lt;/primitive&gt;<br>
&nbsp; &lt;annotatorImplementationName&gt;org.apache.uima.DDD.Sensor.java&lt;/annotatorImplementationName&gt;<br>
&nbsp; &lt;analysisEngineMetaData&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;name&gt;Sensor Annotator&lt;/name&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;description&gt;An example annotator that searches
for sensor definitions in a DDD script&lt;/description&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;version&gt;1.0&lt;/version&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;vendor&gt;The Apache Software Foundation&lt;/vendor&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;configurationParameters/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;configurationParameterSettings/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;typeSystemDescription&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;imports&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;import name="DDDTypeSystem"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/imports&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/typeSystemDescription&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;typePriorities/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;fsIndexCollection/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;capabilities&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;inputs/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;outputs&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;type&gt;org.apache.uima.DDD.Sensor&lt;/type&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;feature&gt;org.apache.uima.DDD.Sensor:name&lt;/feature&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/outputs&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;languagesSupported/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/capability&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/capabilities&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;operationalProperties&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;modifiesCas&gt;true&lt;/modifiesCas&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;multipleDeploymentAllowed&gt;true&lt;/multipleDeploymentAllowed&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;outputsNewCASes&gt;false&lt;/outputsNewCASes&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/operationalProperties&gt;<br>
&nbsp; &lt;/analysisEngineMetaData&gt;<br>
&nbsp; &lt;resourceManagerConfiguration/&gt;<br>
&lt;/analysisEngineDescription&gt;<br>
<br>
Anything else I should provide?<br>
<br>
Dennis<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
<br>
***********************************
<br>
Dennis Geller, Ph.D. Computer and Communication Science   
<br>
Senior Software Developer
<br>
Direct Dial: 781.496.2461   Main Number: 781.935.3966 ext. 261   
<br>
Fax Number:  781.496-2498
<br>
E-mail:  dgeller@aptima.com
<br>
Aptima, Inc.
<br>
12 Gill Street, Suite 1400
<br>
Woburn, MA 01801 USA
<br>
http://www.aptima.com
<br>
************************************ <BR><pre>
The information transmitted is intended only for the person or entity to which it is addressed
and may contain confidential and/or privileged material. Any review, retransmission, dissemination
or other use of, or taking of any action in reliance upon this information by persons or entities
other than the intended recipient is prohibited. If you received this in error, please contact
the sender and delete the material from any computer.
</pre></HTML>

Mime
View raw message