Hey Guys,
I seem to have the same problem, but only since upgrading my Jboss to 4.03.
In my case I know that I am using the same Spring.jar because I have placed my spring.jar into the default/lib directory so that all my web apps/ejbs access the same spring.jar.
For my example from an ActionSupport class:
Code:
service = (Service) this.getWebApplicationContext().getBean("service");
System.out.println(service.test());
With a bean definition:
Code:
<bean id="service"
class="org.springframework.ejb.access.LocalStatelessSessionProxyFactoryBean">
<property name="jndiName">
<value>ServiceLocal</value>
</property>
<property name="resourceRef">
<value>false</value>
</property>
<property name="businessInterface">
<value>Service</value>
</property>
</bean>
If service.test() returns void then I have no problems, but if it returns any type of object it throws a ClassCastException inside the proxy i.e. (before actually return but after all session bean has returned).
Please, any ideas.
Damian