RASP4UIMA installation

50 views
Skip to first unread message

Christopher Rupp

unread,
Oct 19, 2007, 10:07:49 AM10/19/07
to digita...@googlegroups.com, Christop...@cl.cam.ac.uk

Hi,

I got an XML parsing error with the verification step in installing the
RASP4UIMA
release. This could be a problem with the UIMA 2.2.0 release itself, because
I haven't used that for anything else. But this seems like a pretty dumb error
to have.

Cheers,

C.J.

--
Dr. C.J. Rupp

University of Cambridge Computer Laboratory
William Gates Building
15 JJ Thomson Avenue
Cambridge CB3 0FD, UK

Tel: +44 1223 767025
Fax: +44 1223 334678
Email: cr...@cl.cam.ac.uk

PEAR Installer feedback:

Verification of com.digitalpebble.rasp4uima failed =>
org.apache.uima.util.InvalidXMLException: Invalid descriptor at
file:/tmp/cr351/RASP4UIMA/com.digitalpebble.rasp4uima/desc/CombinedRASPDescript
or.xml.
at org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:193)
at org.apache.uima.util.impl.XMLParser_impl.parseResourceManagerConfiguration(
XMLParser_impl.java:760)
at org.apache.uima.util.impl.XMLParser_impl.parseResourceManagerConfiguration(
XMLParser_impl.java:748)
at org.apache.uima.pear.util.UIMAUtil.identifyUimaComponentCategory(UIMAUtil.j
ava:242)
at org.apache.uima.pear.util.UIMAUtil.identifyUimaComponentCategory(UIMAUtil.j
ava:125)
at org.apache.uima.pear.tools.InstallationTester.<init>
(InstallationTester.java:96)
at org.apache.uima.pear.tools.InstallationController.verifyComponentInstallati
on(InstallationController.java:1097)
at org.apache.uima.pear.tools.InstallationController.verifyComponent(Installat
ionController.java:1968)
at org.apache.uima.tools.pear.install.InstallPear.installPear(InstallPear.java
:388)
at org.apache.uima.tools.pear.install.InstallPear.access$000(InstallPear.java:
79)
at org.apache.uima.tools.pear.install.InstallPear$RunInstallation.run(InstallP
ear.java:108)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to
create or change an object in a way which is incorrect with regard to
namespaces.
at org.apache.xml.utils.DOMBuilder.startElement(DOMBuilder.java:348)
at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Transform
erIdentityImpl.java:1020)
at org.apache.uima.util.impl.SaxDeserializer_impl.startElement(SaxDeserializer
_impl.java:201)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(A
bstractSAXParser.java:533)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartE
lement(XMLNSDocumentScannerImpl.java:330)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentD
ispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:779)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Frag
mentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1794)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scan
Document(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co
nfiguration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co
nfiguration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:1
48)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstract
SAXParser.java:1242)
at org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:176)
... 11 more

julien nioche

unread,
Oct 22, 2007, 5:49:40 AM10/22/07
to DigitalPebble
Hi Christopher,

Thank you for your message. I checked with the members of the uima
user list and the most likely explanation is that there is a problem
with the version of the xml parser that you are using. Could you give
more details about your configuration (e.g. version of Java)? Thanks

Julien

On Oct 19, 3:07 pm, Christopher Rupp <Christopher.R...@cl.cam.ac.uk>
wrote:

Christopher Rupp

unread,
Oct 22, 2007, 9:15:59 AM10/22/07
to Christopher Rupp, digita...@googlegroups.com, Christop...@cl.cam.ac.uk

Hi,

Christop...@cl.cam.ac.uk said:
> But this seems like a pretty dumb error to have.

Well, I was right about that. I got round the NAMESPACE_ERR by unsetting the
CLASSPATH in the shell, so I was apparently loading an older XML parser package
than the default in jdk1.5.0_03.

My next problem appears to be more specific to RASP:

Caused by: org.apache.uima.resource.ResourceInitializationException: EXCEPTION
MESSAGE LOCALIZATION FAILED: java.util.MissingResourceException: Can't find
resource for bundle java.util.PropertyResourceBundle, key Script
/usr/local/bin/RASP/morph/morpha.amd64_linux does not exist

My RASP is installed in local scratch space, as rasp3, and the correct morph
image for this architecture is morpha.x86_64_linux. Is there anywhere to set
these values in the configuration?

I've appended the feedback from the PEAR installer again, but I think I've
isolated
the problem correctly this time.

Cheers,

C.J.

Verification of com.digitalpebble.rasp4uima failed =>

org.apache.uima.resource.ResourceInitializationException: Initialization of
annotator class "com.digitalpebble.rasp.morph.MorphoAnnotator" failed.
(Descriptor: file:/tmp/cr351/RASP4UIMA/com.digitalpebble.rasp4uima/desc/Morpher
.xml)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initializ
eAnalysisComponent(PrimitiveAnalysisEngine_impl.java:247)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initializ
e(PrimitiveAnalysisEngine_impl.java:151)
at org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEng
ineFactory_impl.java:94)
at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(Composit
eResourceFactory_impl.java:62)
at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:258)
at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:352)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl.setup(ASB_impl.java:243)
at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initASB(A
ggregateAnalysisEngine_impl.java:413)
at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initializ
eAggregateAnalysisEngine(AggregateAnalysisEngine_impl.java:361)
at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initializ
e(AggregateAnalysisEngine_impl.java:183)
at org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEng
ineFactory_impl.java:94)
at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(Composit
eResourceFactory_impl.java:62)
at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:258)
at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:303)
at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:383)
at org.apache.uima.pear.tools.InstallationTester.testAnalysisEngine(Installati
onTester.java:214)
at org.apache.uima.pear.tools.InstallationTester.doTest(InstallationTester.jav
a:113)
at org.apache.uima.pear.tools.InstallationController.verifyComponentInstallati
on(InstallationController.java:1098)


at org.apache.uima.pear.tools.InstallationController.verifyComponent(Installat
ionController.java:1968)
at org.apache.uima.tools.pear.install.InstallPear.installPear(InstallPear.java
:388)
at org.apache.uima.tools.pear.install.InstallPear.access$000(InstallPear.java:
79)
at org.apache.uima.tools.pear.install.InstallPear$RunInstallation.run(InstallP
ear.java:108)
at java.lang.Thread.run(Thread.java:595)

Caused by: org.apache.uima.resource.ResourceInitializationException: EXCEPTION
MESSAGE LOCALIZATION FAILED: java.util.MissingResourceException: Can't find
resource for bundle java.util.PropertyResourceBundle, key Script
/usr/local/bin/RASP/morph/morpha.amd64_linux does not exist
at com.digitalpebble.rasp.morph.MorphoAnnotator.initialize(MorphoAnnotator.jav
a:68)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initializ
eAnalysisComponent(PrimitiveAnalysisEngine_impl.java:245)
... 22 more


DigitalPebble

unread,
Oct 22, 2007, 9:27:17 AM10/22/07
to digita...@googlegroups.com
Hi Christopher,

You need to specify the location of your RASP installation via system parameters, e.g. adding -Drasp.home=/localPath/RASP3 to the Java command in the runPearInstaller or cpeGUI scripts.

There was a problem with the naming of the executables on 64 platforms but this should have been fixed in the version of RASP4UIMA currently on the website. A quick fix for that is to create a symlink between morpha.amd64_linux and morpha.x86_64_linux

Let me know if you have other problems

Julien


On 22/10/2007, Christopher Rupp < Christop...@cl.cam.ac.uk> wrote:


Hi,


My next problem appears to be more specific to RASP:

Caused by: org.apache.uima.resource.ResourceInitializationException: EXCEPTION
MESSAGE LOCALIZATION FAILED: java.util.MissingResourceException: Can't find
resource for bundle java.util.PropertyResourceBundle , key Script



--
http://www.digitalpebble.com
Open Source Solutions for Text Engineering
Reply all
Reply to author
Forward
0 new messages