Would it be possible to do this with a custom factory? Something that takes arguments for the source file, interfaces, etc via properties and then returns the ruby 1.1 bean?
Type: Posts; User: Vita Rara; Keyword(s):
Would it be possible to do this with a custom factory? Something that takes arguments for the source file, interfaces, etc via properties and then returns the ruby 1.1 bean?
I have the following in my web.xml
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
...
But you don't need the workaround. The issue has been fixed in the current 2.0 release.
Also your method wouldn't handle recompilation of dependent references held by long lived singletons. (ie....
I have created a patch for Groovy-1.1-beta-3-SNAPSHOT that fixes the JDK dynamic proxy issue. It has not been applied to the SVN trunk yet. You can retrieve the patch from:
...
Do you by chance know what AopProxy implementation is used to manufacture the proxy object using the TransactionProxyFactoryBean methodology?
There are four of them in...
No quick solution yet. There's a conversation going on over on the Groovy-dev list:
http://www.nabble.com/JDK-Style-Proxy-Issue-tf4137792.html
I've isolated the issue down to the use of proxies...
I think this is a Groovy issue, and not a Spring issue. I have simplified the test, removing all dependencies on Spring. Please see:
http://mark.mjm.net/~mark/GroovyProxyTest.tar.gz
The issue...
OK, a little more investigation turns up this post over on the Groovy User list:
http://www.nabble.com/using-MOP-to-implement-wrappers-decorators-tf3545582.html#a9968363
That test fails under...
Chris,
I should have emailed you directly. Thanks for digging into this. I just about ran out of mental energy yesterday working on this. I'll take a look at JdkDynamicAopProxy, not that I think...
I am attempting to upgrade to Groovy 1.1 beta into an application that has been using Spring and Groovy 1.0. (I want to be able to use annotations and generics.)
When attempting to use a Groovy...
Alef,
Thanks for the heads up. I should have searched the JIRA.
Take care,
Mark
Ugh... I had the wrong Spring dependency in my pom.xml file. Changed it to 2.0.3 and the issue is gone.
Too many pom files and example apps floating around for me.
Mark
This seems to be somewhat related to http://opensource.atlassian.com/projects/spring/browse/SPR-3223
I am instantiating a Groovy bean using a GroovyClassLoader, and then handing it to a Spring...
I have the following Groovy bean:
package groovyworks;
import com.opensymphony.xwork2.ActionSupport;
class MyAction extends ActionSupport {
I turned up the logging level on Spring, and realized that the lang namespace now depends on having JRuby and Bsh on the classpath. I added those dependencies, and the applicationContext now loads.
...
I tried working with the 2.0.3 release, but I am getting the following error when starting my context when I have lang:* tags in my config.
[ERROR] 18:13:50,562...
Thank you. Thank you. Thank you.
You dug a ways back to find this post. You're advice worked and now my context starts, initializes and loads my JPA persistence context and I can run my...
I updated to the CVS head for Spring. As soon as I add a lang:groovy bean I get the following error:
Embedded error: Configuration problem: Unable to locate NamespaceHandler for namespace...
I posted the following on the JIRA issue. If anyone else has an answer I'd really like to know.
Hi Rick,
First, I'm not angry at anyone. I love Spring. (As much as I can love something intangible like a framework. I sure know I don't love EJB though. ;) ) I also greatly appreciate your...
This is long, my apologies, but if you're interested in using scripted beans please read it.
So, basically the scripting support in Spring is pretty useless. Yes you can instantiate a bean...
I've done a bit more research on this issue.
I did the following:
Created a GroovyClassLoader
Created an ApplicationContext and set its classloader to the GroovyClassLoader
Refreshed my...
I'm getting this same error, "warning can't determine implemented interfaces of missing type..."
My groovy classes implements LOTS of interfaces. They descend from...
Using the guidance posted by Chris I've created a patch against 2.0.2 that allows scripted beans to have either prototype or singleton scope.
The patch is attached to the JIRA issue posted above....
Hi Chris,
Could you attach a patch against 2.0.3 to the JIRA issue? I spent several days looking at this issue (in between conference sessions) this week. If you already have working code I'd like...