uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerry Cwiklik (JIRA)" <uima-...@incubator.apache.org>
Subject [jira] Updated: (UIMA-1531) Need a script to launch a UIMA-AS service via RunWithJarPath
Date Fri, 28 Aug 2009 21:11:32 GMT

     [ 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" = "" ]

"$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


> 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.

View raw message