Hi Jaroslaw,

Thanks for your reply. I've set UIMA_HOME to my project's directory, which
contains UIMA-AS libraries and config files (i've modified the
deployAsyncService, runBroker, dd2spring and runUimaClass scripts
accordingly). Why is it that dd2spring.sh works but not the same dd2spring
functionality of deployAsyncService.sh?

I tried debugging in Eclipse:
- UIMA_Service.main() fails at line 455 of SpringContainerDeployer with
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of
element 'analysisEngineDeploymentDescription'.

- uimaEngine.deploy() fails while invoking the main() method of
net.sf.saxon.Transform with the same message.

deployAsyncService.sh gives this error:
11/08/05 12:00:51 INFO service.UIMA_Service: UIMA-AS version 2.3.1
Error
  net.sf.saxon.event.MessageEmitter is not a Receiver
Transformation failed: Run-time errors were reported


Thanks,

..meghana

On 4 August 2011 21:24, Jaroslaw Cwiklik <uim...@gmail.com> wrote:

> Is your UIMA_HOME set correctly? Do you have spring jars in a classpath
> that
> are newer from those in the uima-as distribution?
>
> JC
>
> On Thu, Aug 4, 2011 at 7:49 AM, Meghana <meghana.mara...@germinait.com
> >wrote:
>
> > Hi all,
> >
> > I am trying to deploy my aggregate AE as an AS.
> >
> > When I call uimaEngine.deploy(service, appCtx) it throws the following
> > exception:
> > org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line
> > 3 in XML document from URL
> > [file:/home/me/workspace/uima/descriptors/async/AsyncAggregate.xml] is
> > invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1:
> > Cannot find the declaration of element
> > 'analysisEngineDeploymentDescription'.
> >
> > However, if I run dd2spring.sh on the same deployment descriptor, it
> > generates the Spring XML without any problem. I can then run
> > springDeployer.deploy(springContext) and the rest of the deploy() method
> > using the generated XML, which successfully deploys my AS.
> >
> > On the other hand, if I call deployAsyncService.sh on that deployment
> > descriptor, it fails with the earlier exception again!
> >
> > What could be the issue here? :-s   As far as I know, the UIMA_CLASSPATH
> > and
> > other params are the same in both cases. I'd like to have one entire flow
> > working... either script or code.
> >
> > Thanks!
> >
> > ..meghana
> >
>

Reply via email to