Adam, Thanks. It seems that the problem is that I wiped out my "src" directory when I installed OpenNLP. When I restored those files from the download, the problem was resolved and I was able to take uimaj-examples.jar out of the classpath.
This problem is resolved, sorry to bother you about a problem on my end. However, I'm wondering whether I am having a similar problem with http://issues.apache.org/jira/browse/UIMA-457 where I was unable to build the CASEditor from the sandbox SVN. Do I need to check out the UIMA source from the uimaj-2.1.0 branch in SVN to build this or should I be able to build this just by checking out CasEditor and the UIMA 2.1.0 download from http://incubator.apache.org/uima/downloads.html Thanks, Andrew On 6/21/07, Adam Lally <[EMAIL PROTECTED]> wrote:
Yes, it's intentional that the default classpath for uimaj-examples contains all the UIMA jars _except_ uimaj-examples.jar. That's because Eclipse should be picking up those classes from the source code in your workspace, so it shouldn't need that jar. It is strange that this is not working for you. A couple more questions" 1) Does the classpath (for example for the CPE GUI run configuration that you looked at) also contain an entry for "uimaj-examples" itself (with a folder icon)? This is what should be picking up the classes from your workspace.
Yes.
2) If you expand the uimaj-examples project in your workspace, can you locate the "org.apache.uima.examples.xmi" package (and the other classes you're missing) under the "src" directory?
3) If you can find the source files, can you also find the corresponding class files under the "bin" directory (using the eclipse Navigator view or your file system explorer - the Package Explorer doesn't show them). If you can't find these, Eclipse must not be compiling the source for some reason. -Adam On 6/21/07, Andrew Borthwick <[EMAIL PROTECTED]> wrote: > I don't see anything in Eclipse "problems". > > Note that I see uima-core.jar, uima-documentation-annotation,jar, etc. > listed under the "default classpath" when I look at the classpath for > the UIMA CPE GUI (via Run | Run ... | UIMA CPE GUI | Classpath). When > I added [UIMA-HOME]/lib/UIMA-Examples.jar to the classpath listed > here, it worked. > > Regards, > Andrew > > On 6/21/07, Adam Lally (JIRA) <[email protected]> wrote: > > > > [ 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. > > > > >
