I've been trying to generalize my code so that I'm not passing a text
string directly into the CAS when I run UIMA.  I would like to do this
so that I can pass in file paths to Word docs or other types of files
and have UIMA then extract the text within the engine.

The method I am testing out is

<code>
//create an analysis engine
AnalysisEngine ae = UIMAFramework.produceAnalysisEngine(specifier);

// create a CAS
CAS cas = ae.newCAS();

// set the URI of the document we want to process
cas.setSofaDataURI(fileURI, mimetype);

// process
ae.process(cas);

<code>

I'm trying this with a plain old text file.  This is throwing an error
with this report:

[java] Feb 15, 2008 2:43:19 PM
org.apache.uima.internal.JmxMBeanAgent.registerMBean
[java] WARNING: JMX failiure: Failed to register
MBean.java.lang.reflect.InvocationTargetException

....

[java] Caused by: java.security.AccessControlException: access denied
(javax.management.MBeanTrustPermission register)

Anyone familiar with MBeans or JMX so that I can start researching
this? This package is not listed in the UIMA Javadocs.  (P.S.  It
happens with a local file path name and when I store the txt file on
the tomcat server and try to get to it via http).  Alternatively, is
this the wrong way to pass in a reference to a file?

Thank you.

Reply via email to