[jira] Commented: (TUSCANY-317) Java SCA Groovy Container
[ http://issues.apache.org/jira/browse/TUSCANY-317?page=comments#action_12402229 ] Jim Marino commented on TUSCANY-317: I've started simplifying more as well as to accomodate recent spec changes in the sandbox under jboynes (in the spi project). > Java SCA Groovy Container > - > > Key: TUSCANY-317 > URL: http://issues.apache.org/jira/browse/TUSCANY-317 > Project: Tuscany > Type: New Feature > Versions: Java-Mx > Reporter: Meeraj Kunnumpurath > Assignee: ant elder > Priority: Minor > Fix For: Java-Mx > Attachments: container.groovy.zip, 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
[jira] Commented: (TUSCANY-317) Java SCA Groovy Container
[ http://issues.apache.org/jira/browse/TUSCANY-317?page=comments#action_12402224 ] ant elder commented on TUSCANY-317: --- Oh, be great if you could use diff patches instead of a zip as its easier for us to see what you've changed, and also, JIRA doesn't keep the attachments in order so if you can use unique names for each patch it would help as well. Thanks! > Java SCA Groovy Container > - > > Key: TUSCANY-317 > URL: http://issues.apache.org/jira/browse/TUSCANY-317 > Project: Tuscany > Type: New Feature > Versions: Java-Mx > Reporter: Meeraj Kunnumpurath > Assignee: ant elder > Priority: Minor > Fix For: Java-Mx > Attachments: container.groovy.zip, 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
[jira] Commented: (TUSCANY-317) Java SCA Groovy Container
[ http://issues.apache.org/jira/browse/TUSCANY-317?page=comments#action_12402223 ] ant elder commented on TUSCANY-317: --- I've applied these latest changes to the sandbox code. The enhancements to the core extension classes look like they've made the container impl a lot simpler, I'll look at what can be done with them and the JavaScript container. After the M1 release we should look at all the extension API stuff to enable as simple as possble container impls. > Java SCA Groovy Container > - > > Key: TUSCANY-317 > URL: http://issues.apache.org/jira/browse/TUSCANY-317 > Project: Tuscany > Type: New Feature > Versions: Java-Mx > Reporter: Meeraj Kunnumpurath > Assignee: ant elder > Priority: Minor > Fix For: Java-Mx > Attachments: container.groovy.zip, 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
[jira] Commented: (TUSCANY-317) Java SCA Groovy Container
[ http://issues.apache.org/jira/browse/TUSCANY-317?page=comments#action_12378881 ] ant elder commented on TUSCANY-317: --- Crikey, doesn't Groovy have a ton of dependencies. This NoSuchMethodError seems to be a dependency conflict within groovy itself, there's a post about it: http://mail-archives.apache.org/mod_mbox/jakarta-hivemind-dev/200505.mbox/[EMAIL PROTECTED] but thats from a year ago, you'd think it would have been fixed by now so I may be misunderstanding whats going wrong. The only way I've been able to get this to work with both maven and eclipse is by editing the JMock cglib pom in my maven repository and commenting out the cglib dependency: C:\Documents and Settings\ant\.m2\repository\jmock\jmock-cglib\1.0.1\jmock-cglib-1.0.1.pom There must be a better solution than this? > 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
[jira] Commented: (TUSCANY-317) Java SCA Groovy Container
[ http://issues.apache.org/jira/browse/TUSCANY-317?page=comments#action_12378841 ] Meeraj Kunnumpurath commented on TUSCANY-317: - Seems to be wrong version of asm, if you have asm 2.2 higher up in the classpath, the test seems to be working. Ta > 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
[jira] Commented: (TUSCANY-317) Java SCA Groovy Container
[ http://issues.apache.org/jira/browse/TUSCANY-317?page=comments#action_12378611 ] Meeraj Kunnumpurath commented on TUSCANY-317: - Thanks Jean. I will have a look at it. I am in the process of refactoring it use the simplified extension support classes in core. Ta > 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
[jira] Commented: (TUSCANY-317) Java SCA Groovy Container
[ 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.(MetaClassRegistry.java:118) at groovy.lang.MetaClassRegistry.(MetaClassRegistry.java:94) at org.codehaus.groovy.runtime.Invoker.(Invoker.java:101) at org.codehaus.groovy.runtime.InvokerHelper.(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.framew