[
https://issues.apache.org/jira/browse/AXIS2-4538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12771892#action_12771892
]
Roberto commented on AXIS2-4538:
--------------------------------
Thank you very much. It worked perfectly. Both with CGLIB and JDK proxies. I
wonder why this info is not in the Spring Guide for Axis2 webservices. It can
be considered as a basic configuration hint.
I use <parameter name="useOriginalwsdl">false</parameter>, so that axis2
automatically generates the wsdl, so an extra benefit, is that now only the
methods in the interface are implemented, so I don't need to exclude all the
Spring setters.
I just found something extrange. The interface I use, extends from another
interface. Axis2, does not detect the inherited methods. That is:
public interface IDatosPersonalesWebService {
public Respuesta guardaPersona(PersonaWS personaWS);
}
public interface IWebServiceAccessController extends IDatosPersonalesWebService
{
public Respuesta modificaPersona(PersonaWS personaWS);
}
<parameter name="ServiceClass"
locked="true">mywebservice.IWebServiceAccessController </parameter>
In this case, only the operation modificaPersona is detected and appears in the
wsdl, while the inherited operation guardaPersona is missing
> axis2 deployment failure for web services proxied by Spring
> -----------------------------------------------------------
>
> Key: AXIS2-4538
> URL: https://issues.apache.org/jira/browse/AXIS2-4538
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.4.1
> Environment: Windows XP SP2
> tomcat 5.5.25
> JDK 1.5.0_15
> Spring 2.5.3
> Reporter: Roberto
>
> This is a duplicate of bug AXIS2-3230 which was supposed to be fixed.
> I have a webservice which bean is provided by Spring.
> <service name="HabilitadosWeb" scope="application"
> targetNamespace="http://www.map.es/habilitados/">
> <description>Servicio Habilitados</description>
> <parameter
> name="ServiceObjectSupplier">org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier</parameter>
> <parameter name="SpringBeanName">habilitadosWebService</parameter>
> <parameter name="useOriginalwsdl">false</parameter>
> ....
>
> </service>
> It deploys correctly until I try to put an aspect around it. It happens both
> with Java standard proxies or CGLIB ones.
> Then, I get an error like this:
> The following error occurred during schema generation: Unable to load
> bytecode for class
> mypackage.WebServiceAccessController$$EnhancerByCGLIB$$80c0408d
> OR
> org.apache.axis2.deployment.DeploymentException: The following error occurred
> during schema generation: Unable to load bytecode for class $Proxy4
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.