You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org> on 2009/08/27 23:26:59 UTC

[jira] Created: (UIMA-1531) Need a script to launch a UIMA-AS service via RunWithJarPath

Need a script to launch a UIMA-AS service via RunWithJarPath
------------------------------------------------------------

                 Key: UIMA-1531
                 URL: https://issues.apache.org/jira/browse/UIMA-1531
             Project: UIMA
          Issue Type: New Feature
          Components: Async Scaleout
            Reporter: Jerry Cwiklik
             Fix For: 2.3AS


Use existing RunWithJarPath.class from the core to enable loading jars dynamically when launching UIMA AS service. Currently setUimaClasspath is called to setup static classpath before deployment of UIMA_Service. For more flexibility it would be better to 
load all jar files from specified locations instead of depending on them to be statically defined in setUimaClasspath. One of the reasons for supporting dynamically loaded jars is the naming scheme used by ActiveMQ. Each version comes with a differently named jars like for example
apache-activemq-4.1.1.jar, activemq-all-5.2.0.jar, etc.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (UIMA-1531) Need a script to launch a UIMA-AS service via RunWithJarPath

Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerry Cwiklik updated UIMA-1531:
--------------------------------

    Affects Version/s: 2.3AS

> Need a script to launch a UIMA-AS service via RunWithJarPath
> ------------------------------------------------------------
>
>                 Key: UIMA-1531
>                 URL: https://issues.apache.org/jira/browse/UIMA-1531
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Async Scaleout
>    Affects Versions: 2.3AS
>            Reporter: Jerry Cwiklik
>            Assignee: Jerry Cwiklik
>             Fix For: 2.3AS
>
>
> Use existing RunWithJarPath.class from the core to enable loading jars dynamically when launching UIMA AS service. Currently setUimaClasspath is called to setup static classpath before deployment of UIMA_Service. For more flexibility it would be better to 
> load all jar files from specified locations instead of depending on them to be statically defined in setUimaClasspath. One of the reasons for supporting dynamically loaded jars is the naming scheme used by ActiveMQ. Each version comes with a differently named jars like for example
> apache-activemq-4.1.1.jar, activemq-all-5.2.0.jar, etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (UIMA-1531) Need a script to launch a UIMA-AS service via RunWithJarPath

Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerry Cwiklik updated UIMA-1531:
--------------------------------

          Component/s: Core Java Framework
    Affects Version/s: 2.3

Fix for this effects both, the core and uima as

> Need a script to launch a UIMA-AS service via RunWithJarPath
> ------------------------------------------------------------
>
>                 Key: UIMA-1531
>                 URL: https://issues.apache.org/jira/browse/UIMA-1531
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Async Scaleout, Core Java Framework
>    Affects Versions: 2.3, 2.3AS
>            Reporter: Jerry Cwiklik
>            Assignee: Jerry Cwiklik
>             Fix For: 2.3AS
>
>
> Use existing RunWithJarPath.class from the core to enable loading jars dynamically when launching UIMA AS service. Currently setUimaClasspath is called to setup static classpath before deployment of UIMA_Service. For more flexibility it would be better to 
> load all jar files from specified locations instead of depending on them to be statically defined in setUimaClasspath. One of the reasons for supporting dynamically loaded jars is the naming scheme used by ActiveMQ. Each version comes with a differently named jars like for example
> apache-activemq-4.1.1.jar, activemq-all-5.2.0.jar, etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (UIMA-1531) Need a script to launch a UIMA-AS service via RunWithJarPath

Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerry Cwiklik updated UIMA-1531:
--------------------------------


Marshall created a new project: uimaj-bootstrap that contains UimaBootstrap.java. This class is a renamed version of RunWithJarPath that used to be in the uima-tools. It loads jars from specified locations at runtime. 

The deployAsyncService scripts in the bin directory have been modified to use new dynamic class loading instead using static classpath set up in  setUimaClasspath script. The relevant part of the script (for unix) is below:

if [ "$ACTIVEMQ_HOME" = "" ]
then
  ACTIVEMQ_HOME=$UIMA_HOME/apache-activemq-4.1.1
fi

"$UIMA_JAVA_CALL" -cp "$UIMA_HOME/lib/uimaj-bootstrap.jar"  "-Duima.datapath=$UIMA_DATAPATH" "-Djava.util.logging.config.file=$UIMA_LOGGER_CONFIG_FILE" $UIMA_JVM_OPTS -Dorg.apache.uima.jarpath="$UIMA_HOME/lib:$ACTIVEMQ_HOME:$ACTIVEMQ_HOME/lib:$ACTIVEMQ_HOME/lib/optional:$USER_JAR_PATH" org.apache.uima.bootstrap.UimaBootstrap org.apache.uima.adapter.jms.service.UIMA_Service -saxonURL "file:$UIMA_HOME/saxon/saxon8.jar" -xslt "$UIMA_HOME/bin/dd2spring.xsl" -dd $*

By default ActiveMQ 4.1. jars will be used. If you want to use a different version of AMQ set ACTIVEMQ_HOME=<activemq home>. The script loads uima jars, amq jars and spring jar. If you
want to load jars from different locations set USER_JAR_PATH.

Before using this you need to check out then uimaj-bootstrap project from uima svn.
Build it with maven and install uimaj-bootstrap.jar in the UIMA_HOME/lib directory.

Let me know if you run into any problems

Jerry


> Need a script to launch a UIMA-AS service via RunWithJarPath
> ------------------------------------------------------------
>
>                 Key: UIMA-1531
>                 URL: https://issues.apache.org/jira/browse/UIMA-1531
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Async Scaleout
>            Reporter: Jerry Cwiklik
>             Fix For: 2.3AS
>
>
> Use existing RunWithJarPath.class from the core to enable loading jars dynamically when launching UIMA AS service. Currently setUimaClasspath is called to setup static classpath before deployment of UIMA_Service. For more flexibility it would be better to 
> load all jar files from specified locations instead of depending on them to be statically defined in setUimaClasspath. One of the reasons for supporting dynamically loaded jars is the naming scheme used by ActiveMQ. Each version comes with a differently named jars like for example
> apache-activemq-4.1.1.jar, activemq-all-5.2.0.jar, etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (UIMA-1531) Need a script to launch a UIMA-AS service via RunWithJarPath

Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765667#action_12765667 ] 

Jerry Cwiklik commented on UIMA-1531:
-------------------------------------

Most of UIMA scripts in /bin repeat the same set up steps of:
- checking for UIMA_HOME
- calling setUimaClassPath
- setting UIMA_JAVA_CALL variable
- running java using exactly the same -D's

As Burn said, it would be nice to remove this redundancy and replace it with a common script that would perform common setup steps and finally start the jvm with common options. Existing scripts will still be used with their contents simplified. The common script will take as arguments the class (containing the main method) and variables required by the main program. The script will use Bootstrap loader to load classes and jars from UIMA_CLASSPATH,UIMA_JAR_PATH, and ACTIVEMQ_HOME. 


> Need a script to launch a UIMA-AS service via RunWithJarPath
> ------------------------------------------------------------
>
>                 Key: UIMA-1531
>                 URL: https://issues.apache.org/jira/browse/UIMA-1531
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Async Scaleout
>    Affects Versions: 2.3AS
>            Reporter: Jerry Cwiklik
>            Assignee: Jerry Cwiklik
>             Fix For: 2.3AS
>
>
> Use existing RunWithJarPath.class from the core to enable loading jars dynamically when launching UIMA AS service. Currently setUimaClasspath is called to setup static classpath before deployment of UIMA_Service. For more flexibility it would be better to 
> load all jar files from specified locations instead of depending on them to be statically defined in setUimaClasspath. One of the reasons for supporting dynamically loaded jars is the naming scheme used by ActiveMQ. Each version comes with a differently named jars like for example
> apache-activemq-4.1.1.jar, activemq-all-5.2.0.jar, etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (UIMA-1531) Need a script to launch a UIMA-AS service via RunWithJarPath

Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerry Cwiklik closed UIMA-1531.
-------------------------------

    Resolution: Fixed

Removed AMQ specific jars from setUimaClasspath scripts, modified deployAsyncService and runRemoteAsyncAE to use executable jar

> Need a script to launch a UIMA-AS service via RunWithJarPath
> ------------------------------------------------------------
>
>                 Key: UIMA-1531
>                 URL: https://issues.apache.org/jira/browse/UIMA-1531
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Async Scaleout
>            Reporter: Jerry Cwiklik
>            Assignee: Jerry Cwiklik
>             Fix For: 2.3AS
>
>
> Use existing RunWithJarPath.class from the core to enable loading jars dynamically when launching UIMA AS service. Currently setUimaClasspath is called to setup static classpath before deployment of UIMA_Service. For more flexibility it would be better to 
> load all jar files from specified locations instead of depending on them to be statically defined in setUimaClasspath. One of the reasons for supporting dynamically loaded jars is the naming scheme used by ActiveMQ. Each version comes with a differently named jars like for example
> apache-activemq-4.1.1.jar, activemq-all-5.2.0.jar, etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (UIMA-1531) Need a script to launch a UIMA-AS service via RunWithJarPath

Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerry Cwiklik closed UIMA-1531.
-------------------------------

    Resolution: Fixed

> Need a script to launch a UIMA-AS service via RunWithJarPath
> ------------------------------------------------------------
>
>                 Key: UIMA-1531
>                 URL: https://issues.apache.org/jira/browse/UIMA-1531
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Async Scaleout
>            Reporter: Jerry Cwiklik
>             Fix For: 2.3AS
>
>
> Use existing RunWithJarPath.class from the core to enable loading jars dynamically when launching UIMA AS service. Currently setUimaClasspath is called to setup static classpath before deployment of UIMA_Service. For more flexibility it would be better to 
> load all jar files from specified locations instead of depending on them to be statically defined in setUimaClasspath. One of the reasons for supporting dynamically loaded jars is the naming scheme used by ActiveMQ. Each version comes with a differently named jars like for example
> apache-activemq-4.1.1.jar, activemq-all-5.2.0.jar, etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (UIMA-1531) Need a script to launch a UIMA-AS service via RunWithJarPath

Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerry Cwiklik reopened UIMA-1531:
---------------------------------

      Assignee: Jerry Cwiklik

Add "-Duima.datapath=%UIMA_DATAPATH%" "-Djava.util.logging.config.file=%UIMA_LOGGER_CONFIG_FILE%" %UIMA_JVM_OPTS% to the command line that launches the service in deployAsyncService.cmd.
Also update runRemoteAsyncAE scripts to use dynamic loaded jars.

> Need a script to launch a UIMA-AS service via RunWithJarPath
> ------------------------------------------------------------
>
>                 Key: UIMA-1531
>                 URL: https://issues.apache.org/jira/browse/UIMA-1531
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Async Scaleout
>            Reporter: Jerry Cwiklik
>            Assignee: Jerry Cwiklik
>             Fix For: 2.3AS
>
>
> Use existing RunWithJarPath.class from the core to enable loading jars dynamically when launching UIMA AS service. Currently setUimaClasspath is called to setup static classpath before deployment of UIMA_Service. For more flexibility it would be better to 
> load all jar files from specified locations instead of depending on them to be statically defined in setUimaClasspath. One of the reasons for supporting dynamically loaded jars is the naming scheme used by ActiveMQ. Each version comes with a differently named jars like for example
> apache-activemq-4.1.1.jar, activemq-all-5.2.0.jar, etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Reopened: (UIMA-1531) Need a script to launch a UIMA-AS service via RunWithJarPath

Posted by Thilo Goetz <tw...@gmx.de>.
Marshall Schor wrote:
> 
> Eddie Epstein (JIRA) wrote:
>>      [ https://issues.apache.org/jira/browse/UIMA-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>>
>> Eddie Epstein reopened UIMA-1531:
>> ---------------------------------
>>
>>
>> In the previous version of UIMA AS, the CVD application could be used to run a uima-as service via a jms-client descriptor. This doesn't work now because of missing UIMA AS jars from the CVD classpath. This is also true for other core UIMA command line scripts.
>>
>> One workaround could be to create an appropriate UIMA_CLASSPATH with a bunch of jars. An more user friendly workaround would be to add support for UIMA_JAR_PATH to the core UIMA command scripts.
>>
>> Comments?
>>   
> Seems like a good idea to me, +1  -Marshall

I still think it's a bad idea to put more class loading mysteries
in the way of our users.

--Thilo

>>   
>>> Need a script to launch a UIMA-AS service via RunWithJarPath
>>> ------------------------------------------------------------
>>>
>>>                 Key: UIMA-1531
>>>                 URL: https://issues.apache.org/jira/browse/UIMA-1531
>>>             Project: UIMA
>>>          Issue Type: New Feature
>>>          Components: Async Scaleout
>>>    Affects Versions: 2.3AS
>>>            Reporter: Jerry Cwiklik
>>>            Assignee: Jerry Cwiklik
>>>             Fix For: 2.3AS
>>>
>>>
>>> Use existing RunWithJarPath.class from the core to enable loading jars dynamically when launching UIMA AS service. Currently setUimaClasspath is called to setup static classpath before deployment of UIMA_Service. For more flexibility it would be better to 
>>> load all jar files from specified locations instead of depending on them to be statically defined in setUimaClasspath. One of the reasons for supporting dynamically loaded jars is the naming scheme used by ActiveMQ. Each version comes with a differently named jars like for example
>>> apache-activemq-4.1.1.jar, activemq-all-5.2.0.jar, etc.
>>>     
>>   

Re: [jira] Reopened: (UIMA-1531) Need a script to launch a UIMA-AS service via RunWithJarPath

Posted by Marshall Schor <ms...@schor.com>.

Eddie Epstein (JIRA) wrote:
>      [ https://issues.apache.org/jira/browse/UIMA-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Eddie Epstein reopened UIMA-1531:
> ---------------------------------
>
>
> In the previous version of UIMA AS, the CVD application could be used to run a uima-as service via a jms-client descriptor. This doesn't work now because of missing UIMA AS jars from the CVD classpath. This is also true for other core UIMA command line scripts.
>
> One workaround could be to create an appropriate UIMA_CLASSPATH with a bunch of jars. An more user friendly workaround would be to add support for UIMA_JAR_PATH to the core UIMA command scripts.
>
> Comments?
>   
Seems like a good idea to me, +1  -Marshall
>   
>> Need a script to launch a UIMA-AS service via RunWithJarPath
>> ------------------------------------------------------------
>>
>>                 Key: UIMA-1531
>>                 URL: https://issues.apache.org/jira/browse/UIMA-1531
>>             Project: UIMA
>>          Issue Type: New Feature
>>          Components: Async Scaleout
>>    Affects Versions: 2.3AS
>>            Reporter: Jerry Cwiklik
>>            Assignee: Jerry Cwiklik
>>             Fix For: 2.3AS
>>
>>
>> Use existing RunWithJarPath.class from the core to enable loading jars dynamically when launching UIMA AS service. Currently setUimaClasspath is called to setup static classpath before deployment of UIMA_Service. For more flexibility it would be better to 
>> load all jar files from specified locations instead of depending on them to be statically defined in setUimaClasspath. One of the reasons for supporting dynamically loaded jars is the naming scheme used by ActiveMQ. Each version comes with a differently named jars like for example
>> apache-activemq-4.1.1.jar, activemq-all-5.2.0.jar, etc.
>>     
>
>   

[jira] Reopened: (UIMA-1531) Need a script to launch a UIMA-AS service via RunWithJarPath

Posted by "Eddie Epstein (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eddie Epstein reopened UIMA-1531:
---------------------------------


In the previous version of UIMA AS, the CVD application could be used to run a uima-as service via a jms-client descriptor. This doesn't work now because of missing UIMA AS jars from the CVD classpath. This is also true for other core UIMA command line scripts.

One workaround could be to create an appropriate UIMA_CLASSPATH with a bunch of jars. An more user friendly workaround would be to add support for UIMA_JAR_PATH to the core UIMA command scripts.

Comments?

> Need a script to launch a UIMA-AS service via RunWithJarPath
> ------------------------------------------------------------
>
>                 Key: UIMA-1531
>                 URL: https://issues.apache.org/jira/browse/UIMA-1531
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Async Scaleout
>    Affects Versions: 2.3AS
>            Reporter: Jerry Cwiklik
>            Assignee: Jerry Cwiklik
>             Fix For: 2.3AS
>
>
> Use existing RunWithJarPath.class from the core to enable loading jars dynamically when launching UIMA AS service. Currently setUimaClasspath is called to setup static classpath before deployment of UIMA_Service. For more flexibility it would be better to 
> load all jar files from specified locations instead of depending on them to be statically defined in setUimaClasspath. One of the reasons for supporting dynamically loaded jars is the naming scheme used by ActiveMQ. Each version comes with a differently named jars like for example
> apache-activemq-4.1.1.jar, activemq-all-5.2.0.jar, etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (UIMA-1531) Need a script to launch a UIMA-AS service via RunWithJarPath

Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerry Cwiklik closed UIMA-1531.
-------------------------------

    Resolution: Fixed

Modified UIMA core and AS scripts to use a common launcher class. Localized setup steps in one file that gets called by all scripts 

> Need a script to launch a UIMA-AS service via RunWithJarPath
> ------------------------------------------------------------
>
>                 Key: UIMA-1531
>                 URL: https://issues.apache.org/jira/browse/UIMA-1531
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Async Scaleout, Core Java Framework
>    Affects Versions: 2.3, 2.3AS
>            Reporter: Jerry Cwiklik
>            Assignee: Jerry Cwiklik
>             Fix For: 2.3AS
>
>
> Use existing RunWithJarPath.class from the core to enable loading jars dynamically when launching UIMA AS service. Currently setUimaClasspath is called to setup static classpath before deployment of UIMA_Service. For more flexibility it would be better to 
> load all jar files from specified locations instead of depending on them to be statically defined in setUimaClasspath. One of the reasons for supporting dynamically loaded jars is the naming scheme used by ActiveMQ. Each version comes with a differently named jars like for example
> apache-activemq-4.1.1.jar, activemq-all-5.2.0.jar, etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (UIMA-1531) Need a script to launch a UIMA-AS service via RunWithJarPath

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754639#action_12754639 ] 

Marshall Schor commented on UIMA-1531:
--------------------------------------

Is there a reason for having a different setUimaClassPath for uima-as at this point?  (assuming the base uima setUimaClassPath gets updated to support the UIMACPP_HOME environmental variable)

> Need a script to launch a UIMA-AS service via RunWithJarPath
> ------------------------------------------------------------
>
>                 Key: UIMA-1531
>                 URL: https://issues.apache.org/jira/browse/UIMA-1531
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Async Scaleout
>    Affects Versions: 2.3AS
>            Reporter: Jerry Cwiklik
>            Assignee: Jerry Cwiklik
>             Fix For: 2.3AS
>
>
> Use existing RunWithJarPath.class from the core to enable loading jars dynamically when launching UIMA AS service. Currently setUimaClasspath is called to setup static classpath before deployment of UIMA_Service. For more flexibility it would be better to 
> load all jar files from specified locations instead of depending on them to be statically defined in setUimaClasspath. One of the reasons for supporting dynamically loaded jars is the naming scheme used by ActiveMQ. Each version comes with a differently named jars like for example
> apache-activemq-4.1.1.jar, activemq-all-5.2.0.jar, etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.