Thanks guys! I changed the paths in the descriptor file to the paths on my
server and its working like a charm!

On Sat, Jul 25, 2015 at 3:02 PM, Peter Klügl <[email protected]>
wrote:

> Hi,
>
> some examples and documentation of PEARs for UIMA Ruta is on my TODO list,
> but it will take some more time until I will be able to provide it.
>
> Here's some additional information to Silvestre's correct answer:
>
> The descriptor builder in the UIMA Ruta Workbench sets the values of the
> lookup paths by using one absolute path, e.g., to the script folder of your
> project on your machine. If you need to build the descriptors with the
> normal Workbench functionality and you want to use the configuration
> parameter paths, then you need to reconfigure the analysis engine (not
> always an option).
>
> UIMA Ruta 2.3.0 introduced the new ruta-maven-plugin for building the
> descriptors in a maven build process. Here you can specify several paths
> for the lookup parameters and these can be relative or absolute or a mix of
> both.
>
> UIMA Ruta supports a classpath lookup as fallback if the resource/script
> is not found in the configuration parameter paths (e.g., scriptPath).
>
> So, you have several options to solve your problem:
>
> The easiest option would be to build the PEAR in a way that the scripts
> are found by the classpath lookup. My best guess would be that you just
> copied the script folder into your pear? That does not work. You need to
> copy the content of the script folder to the root of your classpath in your
> PEAR, or add the copied folder to the classpath. That means that the
> folders script/descriptor/resources need to be on your classpath. Now, you
> can ignore the absolute paths in the descriptor since the rules are loaded
> using the classpath.
>
> Another option would be to use (additional) relative paths to the current
> working directory. I haven't tried this yet for PEARs. For this, you need
> to build the descriptors using the ruta-maven-plugin. In the configuration
> in your pom, you can set the paths as you like.
>
> You could also reconfigure the descriptor when building the pear
> exchanging the absolute paths by relative ones that work for your PEAR.
>
> The UIMA dataPath is only supported for some limited use cases and no
> option here unfortunately.
>
> Best,
>
> Peter
>
> Am 25.07.2015 um 14:30 schrieb Silvestre Losada:
>
>> I think you have full path in your descriptor file. And is pointing to
>> your
>> local envionment path. You have to use path of the server in your
>> descriptor or use relative path to your classpath
>>
>> El Sáb 25/07/2015, 9:19, Peter van den Toorn <[email protected]
>> >
>>
>> escribió:
>>
>>  Hello everyone.
>>>
>>> Im struggling to get my UIMA RUTA pipeline to work in simple server. I
>>> have
>>> a working UIMA
>>> RUTA pipeline in the RUTA workbench. I added UIMA nature to the project
>>> and
>>> after adding the
>>> required jar files i generated the pear file.
>>>
>>> The pear file runs successful on my local simple server instance. However
>>> when i try to use the
>>> same pear file to my hosted server (tomcat) the log file show the
>>> following
>>> error:
>>>
>>> Caused by: java.io.FileNotFoundException: Script [Main] cannot be found
>>> at
>>> [{[/Users/petervandentoorn/Documents/workspace/reviews/script]}] or
>>> classpath with extension
>>> .ruta
>>>
>>> I checked the contents of the pear package, and the ruta files are all in
>>> the package. I don't
>>> understand why simple server can't find the files in the pear package. I
>>> also don't understand
>>> why UIMA is using the paths of my local system. I thought the whole idea
>>> of
>>> pear files are that
>>> they can be exchanged between systems etc.
>>>
>>> I hope someone can help me with this issue. It would be much appreciated.
>>>
>>> Best regards,
>>>
>>> --
>>> This e-mail and its attachments are confidential and may contain legally
>>> privileged information. The information in this e-mail is intended solely
>>> for the addressee(s). If you are not the intended recipient, please
>>> notify
>>> the sender and delete it from your system. Any disclosure, copying,
>>> distribution or any other action taken or omitted to be taken to prevent
>>> any information becoming public, is prohibited and may be unlawful. Pon
>>> IT
>>> B.V. (operating under the trade name Pon) is a limited liability company
>>> under Dutch law with its registered office in Almere and is listed in the
>>> Commercial Register of the Chamber of Commerce for Gooi-, Eem- en
>>> Flevoland
>>> in Almere under file number 24227191
>>>
>>>
>


-- 
*Peter van den Toorn*

Manager Competence Center Business Intelligence
..............................................................................................................
*Pon IT B.V.*
Pon IT Shared Services Center
Zuiderinslag 2 :: 3833 BP Leusden :: The Netherlands
P.O. Box 72 :: 3800 HB Amersfoort :: The Netherlands
*T* +31 (0)33 49 49 944 :: *M* +31 (0)6 54 66 50 42
*E* [email protected] :: *I* www.pon.com

-- 
This e-mail and its attachments are confidential and may contain legally
privileged information. The information in this e-mail is intended solely
for the addressee(s). If you are not the intended recipient, please notify
the sender and delete it from your system. Any disclosure, copying,
distribution or any other action taken or omitted to be taken to prevent
any information becoming public, is prohibited and may be unlawful. Pon IT
B.V. (operating under the trade name Pon) is a limited liability company
under Dutch law with its registered office in Almere and is listed in the
Commercial Register of the Chamber of Commerce for Gooi-, Eem- en Flevoland
in Almere under file number 24227191

Reply via email to