Hi all,
I'm trying to put together a demo app using Appfuse and Spring's
dynamic language support for JRuby to present to a Ruby group next week.
I've run into a ton of problems: first when using Hibernate I was
unable to get past the conflict with the ASM versions when running
jetty:run-war, but it ran fine when doing tests. I tried switching to
JPA and now I can run jetty, but I have an error just as odd (below)
when I try to instantiate any jruby beans. I've tested even the
simplest case, and it seems even instantiating a empty class using
the lang:jruby causes this issue. This worked fine before I switched
to JPA so I suspect there is some sort of conflict. Has anyone ever
run into this?
I suspect I need to do something fancy with my pom.xml. All I've done
is add the following:
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>2.1_3</version>
</dependency>
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby-complete</artifactId>
<version>1.0.3</version>
</dependency>
The error I get is:
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'loadPathOutputter': BeanPostProcessor before
instantiation of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'scriptedObject.loadPathOutputter':
Instantiation of bean failed; nested exception is
org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public java.lang.Object
org.springframework.scripting.jruby.JRubyScriptFactory.getScriptedObject
(org.springframework.scripting.ScriptSource,java.lang.Class[]) throws
java.io.IOException,org.springframework.scripting.ScriptCompilationExcep
tion] threw exception; nested exception is
java.lang.IllegalArgumentException:
org.jruby.RubyObjectInvokerinitializexx1
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory$1.run(AbstractAutowireCapableBeanFactory.java:405)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:220)
Thanks in advance for your help!
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]