uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eddie Epstein" <eaepst...@gmail.com>
Subject Re: MeetingFinderCPE_Managed_Unix.xml Example Exception
Date Fri, 12 Oct 2007 21:36:55 GMT
The problem here is that the CPE GUI tool does not support the more exotic
features of the CPM, including the ability to deploy a managed service. To
run this test case, use the runCPE command with the example CPE descriptor
as argument.

    runCPE.sh$UIMA_HOME/examples/descriptors/collection_processing_engine/MeetingFinderCPE_Managed_Unix.xml

When I did this on Windows it worked fine, but on Linux it hung because the
deployed service didn't have a proper environment. In order to get it
working on Linux, I added a PATH environment for the new process in the
descriptor, e.g.

            <runInSeparateProcess>
                <exec dir="." executable="java">
                                        <env key="PATH"

value="/myPathTo/jdk1.5.0/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/eddie/apache-uima/bin"/>
                    <env key="CLASSPATH"
                        value="src:/home/eddie/apache-uima/lib/uima-
core.jar:/home/eddie/apache-uima/lib/uima-cpe.jar:/home/eddie/apache-uima/lib/uima-examples.jar:/home/eddie/apache-uima/lib/uima-adapter-vinci.jar:/home/eddie/apache-uima/lib/jVinci.jar
"/>
                    <arg>-DLOG=service.log</arg>
                    <arg>
org.apache.uima.adapter.vinci.VinciAnalysisEngineService_impl</arg>
                    <arg>${descriptor}</arg>
                </exec>
            </runInSeparateProcess>

Regards,
Eddie



On 10/12/07, Katherine Enderling <katherine_enderling@cognia.com> wrote:
>
> When I try to run the MeetingFinderCPE_Managed_Unix.xml example using the
> UIMA CPE GUI tool in eclipse I get the error below. I get the same error
> trying to run my own managed Vinci service.
> Can anyone help?
> Thanks very much!
> Katherine
>
> Error loading CPE Descriptor
>
> /Volumes/DATA/Programming/apache-uima/examples/descriptors/collection_proces
> sing_engine/MeetingFinderCPE_Managed_Unix.xml
> org.apache.uima.util.InvalidXM
> LException: Invalid descriptor at
>
> file:/Volumes/DATA/Programming/apache-uima/examples/deploy/vinci/Deploy_Meet
> ingDetectorTAE.xml.
>     at
> org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:193)
>
> at
> org.apache.uima.util.impl.XMLParser_impl.parseResourceSpecifier
> (XMLParser_im
> pl.java:365)
>     at
> org.apache.uima.util.impl.XMLParser_impl.parseResourceSpecifier
> (XMLParser_im
> pl.java:346)
>     at
> org.apache.uima.tools.cpm.CpmPanel.openCpeDescriptor(CpmPanel.java:1781)
>
> at org.apache.uima.tools.cpm.CpmPanel.actionPerformed(CpmPanel.java:845)
>
> at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java
> :1882)
>
> at
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java
> :2202)
>     at
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java
> :4
> 20)
>     at
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
>
> at javax.swing.AbstractButton.doClick(AbstractButton.java:334)
>     at
> javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
>
> at
> javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased
> (BasicMenuItemUI
> .java:1041)
>     at
> java.awt.Component.processMouseEvent(Component.java:5554)
>     at
> javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
>     at
> java.awt.Component.processEvent(Component.java:5319)
>     at
> java.awt.Container.processEvent(Container.java:2010)
>     at
> java.awt.Component.dispatchEventImpl(Component.java:4021)
>     at
> java.awt.Container.dispatchEventImpl(Container.java:2068)
>     at
> java.awt.Component.dispatchEvent(Component.java:3869)
>     at
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
>
> at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
>
> at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
>     at
> java.awt.Container.dispatchEventImpl(Container.java:2054)
>     at
> java.awt.Window.dispatchEventImpl(Window.java:1774)
>     at
> java.awt.Component.dispatchEvent(Component.java:3869)
>     at
> java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
>     at
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(
> EventDispatchThread.ja
> va:269)
>     at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(
> EventDispatchThread.java
> :190)
>     at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
>     at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
>     at
> java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
> Caused by:
> org.apache.uima.util.InvalidXMLException: The XML parser encountered an
> unknown element type: deployment.
>     at
> org.apache.uima.util.impl.XMLParser_impl.buildObject
> (XMLParser_impl.java:276
> )
>     at
> org.apache.uima.util.impl.SaxDeserializer_impl.getObject
> (SaxDeserializer_imp
> l.java:114)
>     at
> org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:184)
>
> ... 30 more
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message