You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Christian Ribeaud <ch...@finebrain.com> on 2007/06/15 07:24:34 UTC
Spring ProxyFactoryBean and Axis2
Hi,
If I try to load my Axis2 WS via Spring as following:
...
<parameter name="ServiceObjectSupplier">
org.apache.axis2.extensions.spring.receivers
.SpringAppContextAwareObjectSupplier
</parameter>
<parameter name="SpringBeanName">my-service</parameter>
...
Everything works fine. But recently we wanted to create kind of proxy around
the service via the MethodInterceptor implemented in Spring. So I made
following changes in my 'applicationContext.xml' file:
...
<bean id="my-service"
class="org.springframework.aop.framework.ProxyFactoryBean"
singleton="false">
<property name="proxyInterfaces">
<value>myServiceInterface</value>
</property>
<property name="target">
<ref local="my-service-target" />
</property>
<property name="interceptorNames">
<list>
<value>simpleAdvice</value>
</list>
</property>
<property name="optimize" value="false" />
<property name="proxyTargetClass" value="false" />
</bean>
...
As you can read it from this configuration file, we do not want to use
CGLIB2. We prefer the Proxy class. I get a DeploymentException caused by:
java.io.IOException: Unable to load bytecode for class $Proxy0
Any ideas? Are they some issues using with Spring ProxyFactoryBean use in
Axis2? Thanks, regards and have a nice day,
christian
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org