You might be hitting the same issue as reported by Simon Laws [1]. But I'm not sure what is the solution at the moment. Maybe remove the package from your local repo or try to mvn -U.
[1] http://www.mail-archive.com/tuscany-dev%40ws.apache.org/msg19676.html On 7/10/07, Graham Charters <[EMAIL PROTECTED]> wrote:
Hi Raymond, Thanks for the quick response. I tried "mvn clean install" and I'm still seeing the problem caused by the bad codegen-ecore-2.2.3.jar. It results in lots of errors to do with missing package org.eclipse.emf.codegen.ecore.genmodel. Regards, Graham. On 10/07/07, Raymond Feng <[EMAIL PROTECTED]> wrote: > Hi, > > Please run "mvn clean install". > > Thanks, > Raymond > ----- Original Message ----- > From: "Graham Charters" <[EMAIL PROTECTED]> > To: "tuscany-dev" <[email protected]> > Sent: Tuesday, July 10, 2007 8:56 AM > Subject: Build problems > > > > Hi, > > > > I'm trying to build Tuscany Java and have hit a couple of problems. > > I've started with a clean repository, and checked out the latest from > > svn (a few times throughout July 9th/10th). When I do mvn at the top > > level, I get a test case failure with the following exception: > > > > testTransformation(org.apache.tuscany.sca.databinding.xml.JavaBean2XMLStreamReaderTestCase) > > Time elapsed: 0.031 sec <<< ERROR! > > java.lang.IncompatibleClassChangeError: > > org/apache/tuscany/sca/databinding/impl/SimpleTypeMapperImpl.getXMLType(Ljava/lang/Class;)Lorg/apach > > e/tuscany/sca/interfacedef/util/TypeInfo; > > at > > org.apache.tuscany.sca.databinding.xml.BeanUtil.isSimpleType(BeanUtil.java:49) > > at > > org.apache.tuscany.sca.databinding.xml.BeanUtil.getXMLStreamReader(BeanUtil.java:100) > > at > > org.apache.tuscany.sca.databinding.xml.BeanUtil.getXMLStreamReader(BeanUtil.java:184) > > at > > org.apache.tuscany.sca.databinding.javabeans.JavaBean2XMLStreamReader.transform(JavaBean2XMLStreamReader.java:35) > > at > > org.apache.tuscany.sca.databinding.xml.JavaBean2XMLStreamReaderTestCase.testTransformation(JavaBean2XMLStreamReaderTestCase.java: > > 43) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.lang.reflect.Method.invoke(Method.java:615) > > at junit.framework.TestCase.runTest(TestCase.java:168) > > at junit.framework.TestCase.runBare(TestCase.java:134) > > at junit.framework.TestResult$1.protect(TestResult.java:110) > > at junit.framework.TestResult.runProtected(TestResult.java:128) > > at junit.framework.TestResult.run(TestResult.java:113) > > at junit.framework.TestCase.run(TestCase.java:124) > > at junit.framework.TestSuite.runTest(TestSuite.java:232) > > at junit.framework.TestSuite.run(TestSuite.java:227) > > at > > org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35) > > at > > org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) > > at > > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138) > > at > > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125) > > at org.apache.maven.surefire.Surefire.run(Surefire.java:132) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.lang.reflect.Method.invoke(Method.java:615) > > at > > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290) > > at > > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818) > > > > When I try to build Eclipse projects using "mvn -Peclipse > > eclipse:eclipse" I get the following exception: > > > > [INFO] [tuscany-sdo:generate {execution: generate-po-sdo}] > > [INFO] Generating SDO interfaces from > > C:\temp\LAMP\Eclipse-3.2.1\eclipse\workspaces\osgi\Tuscany\sca\modules\databinding-sdo\src\test\resour > > ces\ipo.xsd > > [INFO] ------------------------------------------------------------------------ > > [ERROR] FATAL ERROR > > [INFO] ------------------------------------------------------------------------ > > [INFO] org.eclipse.emf.codegen.ecore.genmodel.GenModelFactory > > [INFO] ------------------------------------------------------------------------ > > [INFO] Trace > > java.lang.NoClassDefFoundError: > > org.eclipse.emf.codegen.ecore.genmodel.GenModelFactory > > at > > org.apache.tuscany.sdo.generate.JavaGenerator.ecore2GenModel(JavaGenerator.java:540) > > at > > org.apache.tuscany.sdo.generate.JavaGenerator.createGenPackages(JavaGenerator.java:438) > > at > > org.apache.tuscany.sdo.generate.JavaGenerator.generatePackages(JavaGenerator.java:394) > > at > > org.apache.tuscany.sdo.generate.XSD2JavaGenerator.generateFromXMLSchema(XSD2JavaGenerator.java:187) > > at > > org.apache.tuscany.sdo.generate.XSD2JavaGenerator.generateFromXMLSchema(XSD2JavaGenerator.java:153) > > at > > org.apache.tuscany.sdo.plugin.GeneratorMojo.execute(GeneratorMojo.java:270) > > at > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:896) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:739) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:510) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.lang.reflect.Method.invoke(Method.java:615) > > at > > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > > at > > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > > > This appears to be caused by a corrupt codegen-ecore-2.2.3.jar (It's > > doesn't open in WinZip and is about 2/3 the size of the 2.2.2 > > version). > > > > Are these known problems (I couldn't see anything on the dev list). > > Should I be raising Jira's for these? > > > > Many thanks for any help. > > > > Graham. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Luciano Resende Apache Tuscany Committer http://people.apache.org/~lresende http://lresende.blogspot.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
