This could be a JDK 1.4/1.5 thing since enum became a reserved word in JDK 5. Just a random thought.
I've noticed recently that clustered-ehcache-1.3 project has the Eclipse JDK setting set to 1.5 instead of 1.4, which seems wrong. I thought there was another project too, but I don't have anything else changed locally. This prevented me from running some ehcache tests. Maybe the Maven builder is set wrong too? BTW, for future reference, I actually am an XMLBeans expert, although I haven't seen this particular problem before and nothing jumps out at me. Alex ----- Original Message ----- From: "Jason Voegele" <[EMAIL PROTECTED]> To: [email protected] Sent: Friday, October 19, 2007 3:06:45 PM (GMT-0600) America/Chicago Subject: [tc-dev] NoClassDefFoundError I am getting a NoClassDefFoundError when running the clustered-ehcache tests with Maven. The NoClassDefFoundError originates from some XMLBeans generated class, and since I am far from being an XMLBeans expert, I'm hoping someone can help me figure this one out. Here is the error: Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.013 sec <<< FAILURE! test(com.tctest.CacheEvictor130Test) Time elapsed: 0.001 sec <<< ERROR! java.lang.NoClassDefFoundError » at com.tc.config.schema.setup.TestTVSConfigurationSetupManagerFactory.<init>(TestTVSConfigurationSetupManagerFactory.java:163) » at com.tc.object.BaseDSOTestCase.createDistributedConfigFactory(BaseDSOTestCase.java:54) » at com.tc.object.BaseDSOTestCase.configFactory(BaseDSOTestCase.java:47) » at com.tctest.TransparentTestBase.setUp(TransparentTestBase.java:112) » at junit.framework.TestCase.runBare(TestCase.java:125) » at com.tc.test.TCTestCase.runBare(TCTestCase.java:158) » at com.tc.object.BaseDSOTestCase.runBare(BaseDSOTestCase.java:37) The origin of the exception is line 163 of TestTVSConfigurationSetupManagerFactory, which is this: private Enum persistenceMode = PersistenceMode.TEMPORARY_SWAP_ONLY; When I comment out the initializer, I do not get the exception, so it must be something to do with the PersistenceMode.TEMPORARY_SWAP_ONLY part. I have verified that the classpath contains the requisite JAR file (which in this case is tcconfig-2.5-SNAPSHOT.jar). Furthermore, javap indicates that the class file for PersistenceMode does indeed have a TEMPORARY_SWAP_ONLY static field of type PersistenceMode.Enum (see attached for javap output). What is especially strange is that all of the tests were running and passing a couple of days ago, and I can't see anything that has changed since then as being relevant. Does anyone have any ideas? -- Jason Voegele A computer scientist is someone who fixes things that aren't broken. _______________________________________________ tc-dev mailing list [email protected] http://lists.terracotta.org/mailman/listinfo/tc-dev
