You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Andrew Borthwick (JIRA)" <ui...@incubator.apache.org> on 2007/06/21 01:26:26 UTC

[jira] Created: (UIMA-463) Can't find org.apache.uima.examples.xmi

Can't find org.apache.uima.examples.xmi
---------------------------------------

                 Key: UIMA-463
                 URL: https://issues.apache.org/jira/browse/UIMA-463
             Project: UIMA
          Issue Type: Bug
          Components: Examples
         Environment: Eclipse 3.2.2, ubuntu linux 7.04, JRE:  java-1.5.0-sun-1.5.0.11
            Reporter: Andrew Borthwick


When trying to run the example FileSystemCollectionReader.xml, which is find in [UIMA-HOME]/examples/descriptors/collection_reader/FileSystemCollectionReader.xml


I get the below message.  I also get the same message with org.apache.uima.examples.cpe.FileSystemCollectionReader and everything else in org.apache.uima.examples.cpe

Thanks,
Andrew Borthwick
__________________________________________
org.apache.uima.resource.ResourceInitializationException: The class org.apache.uima.examples.xmi.XmiWriterCasConsumer could not be found. (Descriptor: /home/andrew/uima/apache-uima/examples/descriptors/cas_consumer/XmiWriterCasConsumer.xml)
	at org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize(CollectionProcessingEngine_impl.java:83)
	at org.apache.uima.impl.UIMAFramework_impl._produceCollectionProcessingEngine(UIMAFramework_impl.java:395)
	at org.apache.uima.UIMAFramework.produceCollectionProcessingEngine(UIMAFramework.java:807)
	at org.apache.uima.tools.cpm.CpmPanel.startProcessing(CpmPanel.java:538)
	at org.apache.uima.tools.cpm.CpmPanel.access$000(CpmPanel.java:96)
	at org.apache.uima.tools.cpm.CpmPanel$1.construct(CpmPanel.java:678)
	at org.apache.uima.tools.util.gui.SwingWorker$2.run(SwingWorker.java:130)
	at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.uima.resource.ResourceConfigurationException: The class org.apache.uima.examples.xmi.XmiWriterCasConsumer could not be found. (Descriptor: /home/andrew/uima/apache-uima/examples/descriptors/cas_consumer/XmiWriterCasConsumer.xml)
	at org.apache.uima.collection.impl.cpm.container.CPEFactory.isDefinitionInstanceOf(CPEFactory.java:661)
	at org.apache.uima.collection.impl.cpm.container.CPEFactory.produceIntegratedCasProcessor(CPEFactory.java:1076)
	at org.apache.uima.collection.impl.cpm.container.CPEFactory.getCasProcessors(CPEFactory.java:550)
	at org.apache.uima.collection.impl.cpm.BaseCPMImpl.init(BaseCPMImpl.java:253)
	at org.apache.uima.collection.impl.cpm.BaseCPMImpl.<init>(BaseCPMImpl.java:127)
	at org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize(CollectionProcessingEngine_impl.java:75)



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


[jira] Commented: (UIMA-463) Can't find org.apache.uima.examples.xmi

Posted by "Andrew Borthwick (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506738 ] 

Andrew Borthwick commented on UIMA-463:
---------------------------------------

I resolved this for myself by adding uima-examples.jar from [UIMA-HOME]/lib to my Classpath in Eclipse.  

I a bit of a newbie at Eclipse, but shouldn't this have been documented?  This wasn't getting picked up by the uimaj-examples default classpath.  

> Can't find org.apache.uima.examples.xmi
> ---------------------------------------
>
>                 Key: UIMA-463
>                 URL: https://issues.apache.org/jira/browse/UIMA-463
>             Project: UIMA
>          Issue Type: Bug
>          Components: Examples
>         Environment: Eclipse 3.2.2, ubuntu linux 7.04, JRE:  java-1.5.0-sun-1.5.0.11
>            Reporter: Andrew Borthwick
>
> When trying to run the example FileSystemCollectionReader.xml, which is find in [UIMA-HOME]/examples/descriptors/collection_reader/FileSystemCollectionReader.xml
> I get the below message.  I also get the same message with org.apache.uima.examples.cpe.FileSystemCollectionReader and everything else in org.apache.uima.examples.cpe
> Thanks,
> Andrew Borthwick
> __________________________________________
> org.apache.uima.resource.ResourceInitializationException: The class org.apache.uima.examples.xmi.XmiWriterCasConsumer could not be found. (Descriptor: /home/andrew/uima/apache-uima/examples/descriptors/cas_consumer/XmiWriterCasConsumer.xml)
> 	at org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize(CollectionProcessingEngine_impl.java:83)
> 	at org.apache.uima.impl.UIMAFramework_impl._produceCollectionProcessingEngine(UIMAFramework_impl.java:395)
> 	at org.apache.uima.UIMAFramework.produceCollectionProcessingEngine(UIMAFramework.java:807)
> 	at org.apache.uima.tools.cpm.CpmPanel.startProcessing(CpmPanel.java:538)
> 	at org.apache.uima.tools.cpm.CpmPanel.access$000(CpmPanel.java:96)
> 	at org.apache.uima.tools.cpm.CpmPanel$1.construct(CpmPanel.java:678)
> 	at org.apache.uima.tools.util.gui.SwingWorker$2.run(SwingWorker.java:130)
> 	at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.uima.resource.ResourceConfigurationException: The class org.apache.uima.examples.xmi.XmiWriterCasConsumer could not be found. (Descriptor: /home/andrew/uima/apache-uima/examples/descriptors/cas_consumer/XmiWriterCasConsumer.xml)
> 	at org.apache.uima.collection.impl.cpm.container.CPEFactory.isDefinitionInstanceOf(CPEFactory.java:661)
> 	at org.apache.uima.collection.impl.cpm.container.CPEFactory.produceIntegratedCasProcessor(CPEFactory.java:1076)
> 	at org.apache.uima.collection.impl.cpm.container.CPEFactory.getCasProcessors(CPEFactory.java:550)
> 	at org.apache.uima.collection.impl.cpm.BaseCPMImpl.init(BaseCPMImpl.java:253)
> 	at org.apache.uima.collection.impl.cpm.BaseCPMImpl.<init>(BaseCPMImpl.java:127)
> 	at org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize(CollectionProcessingEngine_impl.java:75)

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


[jira] Commented: (UIMA-463) Can't find org.apache.uima.examples.xmi

Posted by "Adam Lally (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506895 ] 

Adam Lally commented on UIMA-463:
---------------------------------

Hmm, it shouldn't be necessary to add uimaj-examples.jar to the classpath for the uimaj-examples project, because the source code for the examples should be in the uimaj-examples project itself.  So Eclipse should compile it and make those classes available in your project classpath.

Can you check the Eclipse "Problems" view and see if it lists any compilation errors?

> Can't find org.apache.uima.examples.xmi
> ---------------------------------------
>
>                 Key: UIMA-463
>                 URL: https://issues.apache.org/jira/browse/UIMA-463
>             Project: UIMA
>          Issue Type: Bug
>          Components: Examples
>         Environment: Eclipse 3.2.2, ubuntu linux 7.04, JRE:  java-1.5.0-sun-1.5.0.11
>            Reporter: Andrew Borthwick
>
> When trying to run the example FileSystemCollectionReader.xml, which is find in [UIMA-HOME]/examples/descriptors/collection_reader/FileSystemCollectionReader.xml
> I get the below message.  I also get the same message with org.apache.uima.examples.cpe.FileSystemCollectionReader and everything else in org.apache.uima.examples.cpe
> Thanks,
> Andrew Borthwick
> __________________________________________
> org.apache.uima.resource.ResourceInitializationException: The class org.apache.uima.examples.xmi.XmiWriterCasConsumer could not be found. (Descriptor: /home/andrew/uima/apache-uima/examples/descriptors/cas_consumer/XmiWriterCasConsumer.xml)
> 	at org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize(CollectionProcessingEngine_impl.java:83)
> 	at org.apache.uima.impl.UIMAFramework_impl._produceCollectionProcessingEngine(UIMAFramework_impl.java:395)
> 	at org.apache.uima.UIMAFramework.produceCollectionProcessingEngine(UIMAFramework.java:807)
> 	at org.apache.uima.tools.cpm.CpmPanel.startProcessing(CpmPanel.java:538)
> 	at org.apache.uima.tools.cpm.CpmPanel.access$000(CpmPanel.java:96)
> 	at org.apache.uima.tools.cpm.CpmPanel$1.construct(CpmPanel.java:678)
> 	at org.apache.uima.tools.util.gui.SwingWorker$2.run(SwingWorker.java:130)
> 	at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.uima.resource.ResourceConfigurationException: The class org.apache.uima.examples.xmi.XmiWriterCasConsumer could not be found. (Descriptor: /home/andrew/uima/apache-uima/examples/descriptors/cas_consumer/XmiWriterCasConsumer.xml)
> 	at org.apache.uima.collection.impl.cpm.container.CPEFactory.isDefinitionInstanceOf(CPEFactory.java:661)
> 	at org.apache.uima.collection.impl.cpm.container.CPEFactory.produceIntegratedCasProcessor(CPEFactory.java:1076)
> 	at org.apache.uima.collection.impl.cpm.container.CPEFactory.getCasProcessors(CPEFactory.java:550)
> 	at org.apache.uima.collection.impl.cpm.BaseCPMImpl.init(BaseCPMImpl.java:253)
> 	at org.apache.uima.collection.impl.cpm.BaseCPMImpl.<init>(BaseCPMImpl.java:127)
> 	at org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize(CollectionProcessingEngine_impl.java:75)

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


[jira] Closed: (UIMA-463) Can't find org.apache.uima.examples.xmi

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

Andrew Borthwick closed UIMA-463.
---------------------------------

    Resolution: Invalid

Problem was on my end.  I was missing a directory

> Can't find org.apache.uima.examples.xmi
> ---------------------------------------
>
>                 Key: UIMA-463
>                 URL: https://issues.apache.org/jira/browse/UIMA-463
>             Project: UIMA
>          Issue Type: Bug
>          Components: Examples
>         Environment: Eclipse 3.2.2, ubuntu linux 7.04, JRE:  java-1.5.0-sun-1.5.0.11
>            Reporter: Andrew Borthwick
>
> When trying to run the example FileSystemCollectionReader.xml, which is find in [UIMA-HOME]/examples/descriptors/collection_reader/FileSystemCollectionReader.xml
> I get the below message.  I also get the same message with org.apache.uima.examples.cpe.FileSystemCollectionReader and everything else in org.apache.uima.examples.cpe
> Thanks,
> Andrew Borthwick
> __________________________________________
> org.apache.uima.resource.ResourceInitializationException: The class org.apache.uima.examples.xmi.XmiWriterCasConsumer could not be found. (Descriptor: /home/andrew/uima/apache-uima/examples/descriptors/cas_consumer/XmiWriterCasConsumer.xml)
> 	at org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize(CollectionProcessingEngine_impl.java:83)
> 	at org.apache.uima.impl.UIMAFramework_impl._produceCollectionProcessingEngine(UIMAFramework_impl.java:395)
> 	at org.apache.uima.UIMAFramework.produceCollectionProcessingEngine(UIMAFramework.java:807)
> 	at org.apache.uima.tools.cpm.CpmPanel.startProcessing(CpmPanel.java:538)
> 	at org.apache.uima.tools.cpm.CpmPanel.access$000(CpmPanel.java:96)
> 	at org.apache.uima.tools.cpm.CpmPanel$1.construct(CpmPanel.java:678)
> 	at org.apache.uima.tools.util.gui.SwingWorker$2.run(SwingWorker.java:130)
> 	at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.uima.resource.ResourceConfigurationException: The class org.apache.uima.examples.xmi.XmiWriterCasConsumer could not be found. (Descriptor: /home/andrew/uima/apache-uima/examples/descriptors/cas_consumer/XmiWriterCasConsumer.xml)
> 	at org.apache.uima.collection.impl.cpm.container.CPEFactory.isDefinitionInstanceOf(CPEFactory.java:661)
> 	at org.apache.uima.collection.impl.cpm.container.CPEFactory.produceIntegratedCasProcessor(CPEFactory.java:1076)
> 	at org.apache.uima.collection.impl.cpm.container.CPEFactory.getCasProcessors(CPEFactory.java:550)
> 	at org.apache.uima.collection.impl.cpm.BaseCPMImpl.init(BaseCPMImpl.java:253)
> 	at org.apache.uima.collection.impl.cpm.BaseCPMImpl.<init>(BaseCPMImpl.java:127)
> 	at org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize(CollectionProcessingEngine_impl.java:75)

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