Chavan, Girish | 1 Oct 23:12

Eclipse RCP bundleresource urls returned for UimaContext.getResourceURL method

Hi All,

This is really an Eclipse RCP specific question. The problem is that when any of the TAEs use
UIMAContext.getResourceURL method to get any of their resources, and the TAE is being run from within an
Eclipse RCP application, the returned URLs are of the form bundleresource://188/path/to/your/resource

This is not understood by the remaining TAE code which is expecting a File:// URL.

This occurs because the Eclipse ClassLoader does this URL mangling before returning the correct URL.

The exact place where this call to the classloader takes place is in org.apache.uima.resource.RelativePathResolver.resolveRelativePath()

Has anybody faced this problem before and knows of a clean solution?

Based on my research I see two possible solutions:

1.       Explicitly set the classloader that is used by the  RelativePathResolver . By using our own classloader
and not the Eclipse classloader we completely sidestep the problem.

2.       Modify the RelativePathResolver to undo the bundleresource URL coding and return a normal file:// url .
This would require using a custom uima-core.jar which is not very attractive.

Any ideas/suggestions?

Thanks,
Girish Chavan, MSIS
Department of Biomedical Informatics (DBMI)
University of Pittsburgh
UPMC Cancer Pavilion, 302D
5150 Centre Avenue
(Continue reading)

Radwen ANIBA | 5 Oct 11:33
Picon

Webservices

Any Idea ?

>Hi !

>I followed some tutorials on the net about using webservices with UIMA, from
>Vinci to UIMA AS, but all deals with making a webservice from a single
>simple analysis engine, my question is when we have a full application made
>using uima, is it possible to generate a webservice for the whole
>application, and if yes does this works the same way as single analysis
>engines ?

>If somebody have support documents or links that would be very much
>appreciated

>Very best regards

>Radwen

Radwen
Tommaso Teofili | 5 Oct 15:19
Picon
Gravatar

Re: Webservices

Hi Radwen,
what do you mean for "a webservice for the whole application"?
Are you meaning that you want to webserve an aggregate AE or the whole
package (consisting of non-UIMA stuff too)?
Regards,
Tommaso

2009/10/5 Radwen ANIBA <aradwen@...>

> Any Idea ?
>
> >Hi !
>
> >I followed some tutorials on the net about using webservices with UIMA,
> from
> >Vinci to UIMA AS, but all deals with making a webservice from a single
> >simple analysis engine, my question is when we have a full application
> made
> >using uima, is it possible to generate a webservice for the whole
> >application, and if yes does this works the same way as single analysis
> >engines ?
>
> >If somebody have support documents or links that would be very much
> >appreciated
>
> >Very best regards
>
> >Radwen
>
>
(Continue reading)

Radwen ANIBA | 5 Oct 15:24
Picon

Re: Webservices

Hi Tommaso,

Yes and no, By webservice I mean the whole application , the entire CPE, is
it possible to turn it into a webservice ?

Regards

2009/10/5 Tommaso Teofili <tommaso.teofili@...>

> Hi Radwen,
> what do you mean for "a webservice for the whole application"?
> Are you meaning that you want to webserve an aggregate AE or the whole
> package (consisting of non-UIMA stuff too)?
> Regards,
> Tommaso
>
>
> 2009/10/5 Radwen ANIBA <aradwen@...>
>
> > Any Idea ?
> >
> > >Hi !
> >
> > >I followed some tutorials on the net about using webservices with UIMA,
> > from
> > >Vinci to UIMA AS, but all deals with making a webservice from a single
> > >simple analysis engine, my question is when we have a full application
> > made
> > >using uima, is it possible to generate a webservice for the whole
> > >application, and if yes does this works the same way as single analysis
(Continue reading)

Jaroslaw Cwiklik | 5 Oct 16:04
Picon

Re: Webservices

CPM is an embeddable component which you may wrap as a service.

Jerry C

On Mon, Oct 5, 2009 at 9:24 AM, Radwen ANIBA <aradwen@...> wrote:

> Hi Tommaso,
>
> Yes and no, By webservice I mean the whole application , the entire CPE, is
> it possible to turn it into a webservice ?
>
> Regards
>
> 2009/10/5 Tommaso Teofili <tommaso.teofili@...>
>
> > Hi Radwen,
> > what do you mean for "a webservice for the whole application"?
> > Are you meaning that you want to webserve an aggregate AE or the whole
> > package (consisting of non-UIMA stuff too)?
> > Regards,
> > Tommaso
> >
> >
> > 2009/10/5 Radwen ANIBA <aradwen@...>
> >
> > > Any Idea ?
> > >
> > > >Hi !
> > >
> > > >I followed some tutorials on the net about using webservices with
(Continue reading)

Radwen ANIBA | 5 Oct 16:10
Picon

Re: Webservices

Thank you Jaroslaw,

Ok that's great but well neither on the web nor even in UIMA doc (may be i'm
wrong) there is a clear documentation for that , do you have any link or
documentation that serves as a start point so that I can follow it ?

Thank you

Radwen

2009/10/5 Jaroslaw Cwiklik <uimaee@...>

> CPM is an embeddable component which you may wrap as a service.
>
> Jerry C
>
> On Mon, Oct 5, 2009 at 9:24 AM, Radwen ANIBA <aradwen@...> wrote:
>
> > Hi Tommaso,
> >
> > Yes and no, By webservice I mean the whole application , the entire CPE,
> is
> > it possible to turn it into a webservice ?
> >
> > Regards
> >
> > 2009/10/5 Tommaso Teofili <tommaso.teofili@...>
> >
> > > Hi Radwen,
> > > what do you mean for "a webservice for the whole application"?
(Continue reading)

Jaroslaw Cwiklik | 5 Oct 16:21
Picon

Re: Webservices

Look in: UIMA Tutorial and Developers' Guides

Section 2.3. Running a CPE from Your Own Java Application

Let me know if you need further clarification. As previously mentioned
the CPE can be embedded in your application. You can create an instance
of it in your own application using CPM's API. You can initialize it from a
static descriptor or you can create the descriptor at runtime using
available
API. The programmatic approach is documented in

3.3.2. Configuring a Collection Processing Engine
Descriptor Programmatically

of the UIMA Tutorial and Developer's Guide

Hope that this helps.

Jerry

On Mon, Oct 5, 2009 at 10:10 AM, Radwen ANIBA <aradwen@...> wrote:

> Thank you Jaroslaw,
>
> Ok that's great but well neither on the web nor even in UIMA doc (may be
> i'm
> wrong) there is a clear documentation for that , do you have any link or
> documentation that serves as a start point so that I can follow it ?
>
> Thank you
(Continue reading)

Matthias Wendt | 6 Oct 11:02
Picon
Favicon

Problem installing UIMA-AS Deployment Descriptor Ed. for Eclipse

Hello folks,

I cannot install the deploymentDesricptor Editor on Eclipse Galileo 
(3.5.1). Error log entry is appended. Does anybody have the same problem?

Best Regards,

Matthias

eclipse.buildId=M20090917-0800
java.version=1.6.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=de_DE
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.jee.product

Error
Tue Oct 06 10:30:08 CEST 2009
Missing requirement: UIMA-AS Deployment Descriptor Editor 2.2.2.incubating
(org.apache.uima.as.deployeditor.feature.group 2.2.2.incubating) requires
'org.apache.uima.deployeditor [2.2.2.incubating]' but it could not be found
Tong Fin | 6 Oct 18:54
Picon

Re: Problem installing UIMA-AS Deployment Descriptor Ed. for Eclipse

Matthias,
Could you please describe the steps that you did to install the Deployment
Descriptor Editor since the log said that "Missing requirement: UIMA-AS
Deployment Descriptor Editor 2.2.2.incubating".

-- Tong

On Tue, Oct 6, 2009 at 5:02 AM, Matthias Wendt
<matthias.wendt@...>wrote:

> Hello folks,
>
> I cannot install the deploymentDesricptor Editor on Eclipse Galileo
> (3.5.1). Error log entry is appended. Does anybody have the same problem?
>
> Best Regards,
>
> Matthias
>
>
>
>
>
>
Matthias Wendt | 6 Oct 19:37
Picon
Favicon

Re: Problem installing UIMA-AS Deployment Descriptor Ed. for Eclipse

Hi Tong,

OK, that was too few information.

I was trying to install the editor from the "Help > Install New 
Software" dialog using the eclipse update site 
"http://www.apache.org/dist/incubator/uima/eclipse-update-site/".

The "UIMA Runtime" and "UIMA tools" were already installed both in 
version 2.2.2.incubating. Then I chose "UIMA-AS Deployment Descriptor 
Editor" clicked "Next > Finish > OK".

The install operation seems to do something, but I always end up with 
the error message that I sent.

Thanks for checking
Matthias

Tong Fin schrieb:
> Matthias,
> Could you please describe the steps that you did to install the Deployment
> Descriptor Editor since the log said that "Missing requirement: UIMA-AS
> Deployment Descriptor Editor 2.2.2.incubating".
>
> -- Tong
>
> On Tue, Oct 6, 2009 at 5:02 AM, Matthias Wendt
> <matthias.wendt@...>wrote:
>
>   
(Continue reading)


Gmane