Thank you for your help, Marshall. Upon further investigation there
is some strange configuration issue that is happening within my ant
build.xml script. I took it apart and started rebuilding and the
errors went away. The finer points of ant aren't appropriate for this
forum, but that seems to be the source.
Thank you.
John C.
On Feb 19, 2008 12:02 PM, Marshall Schor <[EMAIL PROTECTED]> wrote:
> Hi John,
>
> I googled:
>
> MBeantrustpermission accesscontrolexception
>
> and found
>
> Re: access denied (javax.management.MBeanTrustPermission register)
> Just add the following lines to your java.policy file unter
> <JRE_HOME>/lib/security.grant {// JMX Java Management
> eXtensionspermission javax.management.MBeanTrustPermission "register";};
>
> Maybe that will help in your environment?
>
> -Marshall
>
>
> John Cabral wrote:
> > Hi, Marshall;
> > Actually, I probably misrepresented the description. UIMA is running
> > by itself (i.e., not inside a tomcat server) and I was trying to send
> > it a file that was either on the same drive on the same machine or
> > made avalable via a tomcat server. That said, the permissions sounds
> > like a good strategy to pursue. Are there any secondary keywords you
> > could recommend for good googling?
> >
> > Thanks,
> > John C.
> >
> > On Feb 16, 2008 7:31 AM, Marshall Schor <[EMAIL PROTECTED]> wrote:
> >
> >> Hi John,
> >>
> >> First, a disclaimer - I'm no expert here :-).. This sounds like an
> >> issue of running inside the Tomcat server with insufficient
> >> "permissions". Did you have this running in the Tomcat server before
> >> you did your generalization?
> >>
> >> -Marshall
> >>
> >>
> >> John Cabral wrote:
> >>
> >>> 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.
> >>>
> >>>
> >>>
> >>>
> >>
> >
> >
> >
>
>