[ http://issues.apache.org/jira/browse/TUSCANY-317?page=comments#action_12378604 ]
Jean-Sebastien Delfino commented on TUSCANY-317: ------------------------------------------------ Meeraj, Thanks a lot for contributing this groovy container. Pretty cool stuff!! I checked it in under http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/container.groovy. It will be easier for others to take a look at it this way. I also added a maven pom.xml file and a test case. The test case fails with the exception below, but I think it's because I was just trying to guess the levels of dependency jars and probably didn't get them right. In pom.xml I specified groovy-1.0-jsr-05.jar and let maven figure all the other dependencies, except for pp3 (for some reason the referenced level couldn't be found so I forced another level of pp3). With the right level of the dependency jars it should work... I'm impatient to see our BigBank scenario run with Groovy components :) it shoudn't be too complicated to do... Here's the exception: [surefire] Running org.apache.tuscany.samples.groovy.GreetingTestCase [surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.776 sec [surefire] [surefire] testGreetings(org.apache.tuscany.samples.groovy.GreetingTestCase) Time elapsed: 1.762 sec <<< ERROR! java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V at org.codehaus.groovy.classgen.ReflectorGenerator.generate(ReflectorGenerator.java:79) at groovy.lang.MetaClassImpl.loadReflector(MetaClassImpl.java:1696) at groovy.lang.MetaClassImpl.generateReflector(MetaClassImpl.java:1649) at groovy.lang.MetaClassImpl.checkInitialised(MetaClassImpl.java:1566) at groovy.lang.MetaClassRegistry.getMetaClass(MetaClassRegistry.java:145) at groovy.lang.MetaClassImpl.addNewStaticMethodsFrom(MetaClassImpl.java:1282) at groovy.lang.MetaClassImpl.addInheritedMethods(MetaClassImpl.java:194) at groovy.lang.MetaClassImpl.checkInitialised(MetaClassImpl.java:1563) at groovy.lang.MetaClassRegistry.checkInitialised(MetaClassRegistry.java:246) at groovy.lang.MetaClassRegistry.<init>(MetaClassRegistry.java:118) at groovy.lang.MetaClassRegistry.<init>(MetaClassRegistry.java:94) at org.codehaus.groovy.runtime.Invoker.<init>(Invoker.java:101) at org.codehaus.groovy.runtime.InvokerHelper.<clinit>(InvokerHelper.java:80) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.codehaus.groovy.ast.ModuleNode.class$(ModuleNode.java:248) at org.codehaus.groovy.ast.ModuleNode.createStatementsClass(ModuleNode.java:239) at org.codehaus.groovy.ast.ModuleNode.getClasses(ModuleNode.java:111) at org.codehaus.groovy.ast.CompileUnit.addModule(CompileUnit.java:84) at org.codehaus.groovy.control.CompilationUnit$6.call(CompilationUnit.java:599) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:861) at org.codehaus.groovy.control.CompilationUnit.convert(CompilationUnit.java:587) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:447) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:300) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:262) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:257) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:243) at org.apache.tuscany.container.groovy.invoker.GroovyScript.runScript(GroovyScript.java:54) at org.apache.tuscany.container.groovy.invoker.GroovyInvoker.invokeTarget(GroovyInvoker.java:66) at org.apache.tuscany.container.groovy.invoker.GroovyInvoker.invoke(GroovyInvoker.java:85) at org.apache.tuscany.core.wire.impl.InvokerInterceptor.invoke(InvokerInterceptor.java:39) at org.apache.tuscany.core.wire.jdk.JDKInvocationHandler.invoke(JDKInvocationHandler.java:112) at $Proxy17.greet(Unknown Source) at org.apache.tuscany.samples.groovy.GreetingTestCase.testGreetings(GreetingTestCase.java:51) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) 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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242) at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216) at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215) at org.apache.maven.surefire.Surefire.run(Surefire.java:163) at org.apache.maven.surefire.Surefire.run(Surefire.java:87) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:285) at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:201) at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:366) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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) > Java SCA Groovy Container > ------------------------- > > Key: TUSCANY-317 > URL: http://issues.apache.org/jira/browse/TUSCANY-317 > Project: Tuscany > Type: New Feature > Reporter: Meeraj Kunnumpurath > Assignee: Jean-Sebastien Delfino > Priority: Minor > Attachments: container.groovy.zip > > SCA Container for running Groovy scripts. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
