From: Syed H. T. <ha...@cs...> - 2009-03-25 18:08:47
|
Hi, I have downloaded OBO API source from SVN, and I am trying to look at the OboInOwl transformation. I simply run NCBOStyleOWLTest.java as a JUnit test to see NCBOOboInOWLMetadataMapping, and I get the following 2 errors: "testContents" -- java.lang.NoSuchFieldError: index at org.semanticweb.owl.util.OWLObjectTypeIndexProvider.<clinit>(OWLObjectTypeIndexProvider.java:59) at uk.ac.manchester.cs.owl.OWLObjectImpl.<clinit>(OWLObjectImpl.java:50) at uk.ac.manchester.cs.owl.AbstractInMemOWLOntologyFactory.createOWLOntology(AbstractInMemOWLOntologyFactory.java:63) at uk.ac.manchester.cs.owl.ParsableOWLOntologyFactory.loadOWLOntology(ParsableOWLOntologyFactory.java:150) at uk.ac.manchester.cs.owl.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:461) at uk.ac.manchester.cs.owl.OWLOntologyManagerImpl.loadOntologyFromPhysicalURI(OWLOntologyManagerImpl.java:430) at org.obo.owl.dataadapter.OWLAdapter.readOntology(OWLAdapter.java:421) at org.obo.owl.dataadapter.OWLAdapter.doOperation(OWLAdapter.java:385) at org.obo.owl.test.NCBOStyleOWLTest.getSessionFromResources(NCBOStyleOWLTest.java:53) at org.obo.owl.test.AbstractOWLTest.setUp(AbstractOWLTest.java:47) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) "testHasLoaded" -- java.lang.NoClassDefFoundError at uk.ac.manchester.cs.owl.AbstractInMemOWLOntologyFactory.createOWLOntology(AbstractInMemOWLOntologyFactory.java:63) at uk.ac.manchester.cs.owl.ParsableOWLOntologyFactory.loadOWLOntology(ParsableOWLOntologyFactory.java:150) at uk.ac.manchester.cs.owl.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:461) at uk.ac.manchester.cs.owl.OWLOntologyManagerImpl.loadOntologyFromPhysicalURI(OWLOntologyManagerImpl.java:430) at org.obo.owl.dataadapter.OWLAdapter.readOntology(OWLAdapter.java:421) at org.obo.owl.dataadapter.OWLAdapter.doOperation(OWLAdapter.java:385) at org.obo.owl.test.NCBOStyleOWLTest.getSessionFromResources(NCBOStyleOWLTest.java:53) at org.obo.owl.test.AbstractOWLTest.setUp(AbstractOWLTest.java:47) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) This one looks like a missing class/JAR file. Is there another JAR file I need from somewhere to get this to work? Has anyone got any idea of what I am doing wrong? Regards, Hamid ha...@cs... |