You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Oleg Efimov (JIRA)" <ji...@apache.org> on 2007/10/09 11:08:50 UTC

[jira] Created: (AXIS2-3258) Extend Spring support to accept proxies

Extend Spring support to accept proxies
---------------------------------------

                 Key: AXIS2-3258
                 URL: https://issues.apache.org/jira/browse/AXIS2-3258
             Project: Axis 2.0 (Axis2)
          Issue Type: New Feature
          Components: deployment, wsdl
    Affects Versions: 1.3
            Reporter: Oleg Efimov
            Priority: Blocker


ServiceBuilder presently requires service class's byte code to obtain method parameter names. This won't work with proxies, thus making Spring support really feeble.

I propose introducing additional service.xml parameter, namely ServiceInterface, to enumerate service methods and parameter names.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: [jira] Created: (AXIS2-3258) Extend Spring support to accept proxies

Posted by BJuma <be...@injazatdatasystems.com>.
>From where I can get those axis2-rmi-*.jar?I didn't find them in the latest
nightly build


iksrazal wrote:
> 
> rmi is new, comming in after the 1.3 release. Try looking for
> axis2-rmi-*.jar and adding it to WEB-INF/lib .
> 
> HTH,
> Robert
> 
> On Nov 12, 2007 8:25 AM, BJuma <be...@injazatdatasystems.com> wrote:
>>
>> I downloaded the latest nightly build along with what I posted below and
>> it
>> works fine. However I am having an exception when the server is starting
>> up
>> which is:
>>   [exec] 17:25:51,287 ERROR
>> org.apache.axis2.deployment.AxisConfigBuilder:319 -
>> org.apache.axis2.rmi.deploy.RMIServiceDeployer
>>      [exec] java.lang.ClassNotFoundException:
>> org.apache.axis2.rmi.deploy.RMIServiceDeployer
>>      [exec] at
>> com.evermind.naming.ContextClassLoader.findClass(ContextClassLoader.java:318)
>>      [exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>>      [exec] at
>> com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.java:143)
>>      [exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>>      [exec] at
>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>>      [exec] at java.lang.Class.forName0(Native Method)
>>      [exec] at java.lang.Class.forName(Class.java:141)
>>      [exec] at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
>>      [exec] at
>> org.apache.axis2.deployment.AxisConfigBuilder.processDeployers(AxisConfigBuilder.java:316)
>>      [exec] at
>> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:233)
>>      [exec] at
>> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:628)
>>      [exec] at
>> org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:146)
>>      [exec] at
>> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:501)
>>      [exec] at
>> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:421)
>>      [exec] at
>> com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2354)
>>      [exec] at
>> com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4795)
>>      [exec] at
>> com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)
>>      [exec] at
>> com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)
>>      [exec] at
>> com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:549)
>>      [exec] at
>> com.evermind.server.Application.getHttpApplication(Application.java:890)
>>      [exec] at
>> com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)
>>      [exec] at
>> com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)
>>      [exec] at
>> com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)
>>      [exec] at
>> com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)
>>      [exec] at
>> com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)
>>      [exec] at
>> com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)
>>      [exec] at
>> com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)
>>      [exec] at
>> com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)
>>
>> Any idea?
>>
>>
>>
>>
>> iksrazal wrote:
>> >
>> > Hmm, the Service needs to be a concrete class, ie, have an
>> > implementation and not be just an interface. Any bean dependencies,
>> > such as for beans that have methods you invoke, have been known to
>> > work in some cases as interfaces by avoiding them be spring proxies.
>> > This particular problem is that there is no proxy class that  This
>> > issue has come up several times before and have had solutions, please
>> > search the forums.
>> >
>> > HTH,
>> > Robert
>> >
>> > On Nov 12, 2007 5:47 AM, BJuma <be...@injazatdatasystems.com>
>> wrote:
>> >>
>> >> Hi,
>> >> I am facing this problem now. My understanding to fix it is by having
>> an
>> >> interface for the current webservice and defining it in the
>> services.xml
>> >> as
>> >> a ServiceClass, like this:
>> >>
>> >>  <service name="SpringAwareService">
>> >>     <description>
>> >>         simple spring example
>> >>     </description>
>> >>         <parameter
>> >> name="ServiceClass">spring.SpringAwareServiceInterface</parameter>
>> >>     <parameter
>> >>
>> name="ServiceObjectSupplier">org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier</parameter>
>> >>     <parameter name="SpringBeanName">springAwareService</parameter>
>> >>     <operation name="getValue">
>> >>         <messageReceiver
>> >> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>> >>     </operation>
>> >>
>> >> </service>
>> >>
>> >> Is this sufficient? I tried it but not worked. Did I miss any thing or
>> >> should I try certain fix build.
>> >>
>> >> Thanks,
>> >>
>> >>
>> >>
>> >> JIRA jira@apache.org wrote:
>> >> >
>> >> > Extend Spring support to accept proxies
>> >> > ---------------------------------------
>> >> >
>> >> >                  Key: AXIS2-3258
>> >> >                  URL:
>> https://issues.apache.org/jira/browse/AXIS2-3258
>> >> >              Project: Axis 2.0 (Axis2)
>> >> >           Issue Type: New Feature
>> >> >           Components: deployment, wsdl
>> >> >     Affects Versions: 1.3
>> >> >             Reporter: Oleg Efimov
>> >> >             Priority: Blocker
>> >> >
>> >> >
>> >> > ServiceBuilder presently requires service class's byte code to
>> obtain
>> >> > method parameter names. This won't work with proxies, thus making
>> >> Spring
>> >> > support really feeble.
>> >> >
>> >> > I propose introducing additional service.xml parameter, namely
>> >> > ServiceInterface, to enumerate service methods and parameter names.
>> >> >
>> >> > --
>> >> > This message is automatically generated by JIRA.
>> >> > -
>> >> > You can reply to this email to add a comment to the issue online.
>> >> >
>> >> >
>> >> >
>> ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> >> > For additional commands, e-mail: axis-dev-help@ws.apache.org
>> >> >
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/-jira--Created%3A-%28AXIS2-3258%29-Extend-Spring-support-to-accept-proxies-tf4592976.html#a13703440
>> >> Sent from the Axis - Dev mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> >> For additional commands, e-mail: axis-dev-help@ws.apache.org
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: axis-dev-help@ws.apache.org
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-jira--Created%3A-%28AXIS2-3258%29-Extend-Spring-support-to-accept-proxies-tf4592976.html#a13705498
>> Sent from the Axis - Dev mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-dev-help@ws.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-jira--Created%3A-%28AXIS2-3258%29-Extend-Spring-support-to-accept-proxies-tf4592976.html#a13768331
Sent from the Axis - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: [jira] Created: (AXIS2-3258) Extend Spring support to accept proxies

Posted by robert lazarski <ro...@gmail.com>.
rmi is new, comming in after the 1.3 release. Try looking for
axis2-rmi-*.jar and adding it to WEB-INF/lib .

HTH,
Robert

On Nov 12, 2007 8:25 AM, BJuma <be...@injazatdatasystems.com> wrote:
>
> I downloaded the latest nightly build along with what I posted below and it
> works fine. However I am having an exception when the server is starting up
> which is:
>   [exec] 17:25:51,287 ERROR
> org.apache.axis2.deployment.AxisConfigBuilder:319 -
> org.apache.axis2.rmi.deploy.RMIServiceDeployer
>      [exec] java.lang.ClassNotFoundException:
> org.apache.axis2.rmi.deploy.RMIServiceDeployer
>      [exec] at
> com.evermind.naming.ContextClassLoader.findClass(ContextClassLoader.java:318)
>      [exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>      [exec] at
> com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.java:143)
>      [exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>      [exec] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>      [exec] at java.lang.Class.forName0(Native Method)
>      [exec] at java.lang.Class.forName(Class.java:141)
>      [exec] at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
>      [exec] at
> org.apache.axis2.deployment.AxisConfigBuilder.processDeployers(AxisConfigBuilder.java:316)
>      [exec] at
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:233)
>      [exec] at
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:628)
>      [exec] at
> org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:146)
>      [exec] at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:501)
>      [exec] at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:421)
>      [exec] at
> com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2354)
>      [exec] at
> com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4795)
>      [exec] at
> com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)
>      [exec] at
> com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)
>      [exec] at
> com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:549)
>      [exec] at
> com.evermind.server.Application.getHttpApplication(Application.java:890)
>      [exec] at
> com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)
>      [exec] at
> com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)
>      [exec] at
> com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)
>      [exec] at
> com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)
>      [exec] at
> com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)
>      [exec] at
> com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)
>      [exec] at
> com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)
>      [exec] at
> com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)
>
> Any idea?
>
>
>
>
> iksrazal wrote:
> >
> > Hmm, the Service needs to be a concrete class, ie, have an
> > implementation and not be just an interface. Any bean dependencies,
> > such as for beans that have methods you invoke, have been known to
> > work in some cases as interfaces by avoiding them be spring proxies.
> > This particular problem is that there is no proxy class that  This
> > issue has come up several times before and have had solutions, please
> > search the forums.
> >
> > HTH,
> > Robert
> >
> > On Nov 12, 2007 5:47 AM, BJuma <be...@injazatdatasystems.com> wrote:
> >>
> >> Hi,
> >> I am facing this problem now. My understanding to fix it is by having an
> >> interface for the current webservice and defining it in the services.xml
> >> as
> >> a ServiceClass, like this:
> >>
> >>  <service name="SpringAwareService">
> >>     <description>
> >>         simple spring example
> >>     </description>
> >>         <parameter
> >> name="ServiceClass">spring.SpringAwareServiceInterface</parameter>
> >>     <parameter
> >> name="ServiceObjectSupplier">org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier</parameter>
> >>     <parameter name="SpringBeanName">springAwareService</parameter>
> >>     <operation name="getValue">
> >>         <messageReceiver
> >> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
> >>     </operation>
> >>
> >> </service>
> >>
> >> Is this sufficient? I tried it but not worked. Did I miss any thing or
> >> should I try certain fix build.
> >>
> >> Thanks,
> >>
> >>
> >>
> >> JIRA jira@apache.org wrote:
> >> >
> >> > Extend Spring support to accept proxies
> >> > ---------------------------------------
> >> >
> >> >                  Key: AXIS2-3258
> >> >                  URL: https://issues.apache.org/jira/browse/AXIS2-3258
> >> >              Project: Axis 2.0 (Axis2)
> >> >           Issue Type: New Feature
> >> >           Components: deployment, wsdl
> >> >     Affects Versions: 1.3
> >> >             Reporter: Oleg Efimov
> >> >             Priority: Blocker
> >> >
> >> >
> >> > ServiceBuilder presently requires service class's byte code to obtain
> >> > method parameter names. This won't work with proxies, thus making
> >> Spring
> >> > support really feeble.
> >> >
> >> > I propose introducing additional service.xml parameter, namely
> >> > ServiceInterface, to enumerate service methods and parameter names.
> >> >
> >> > --
> >> > This message is automatically generated by JIRA.
> >> > -
> >> > You can reply to this email to add a comment to the issue online.
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> >> > For additional commands, e-mail: axis-dev-help@ws.apache.org
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/-jira--Created%3A-%28AXIS2-3258%29-Extend-Spring-support-to-accept-proxies-tf4592976.html#a13703440
> >> Sent from the Axis - Dev mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: axis-dev-help@ws.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-dev-help@ws.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/-jira--Created%3A-%28AXIS2-3258%29-Extend-Spring-support-to-accept-proxies-tf4592976.html#a13705498
> Sent from the Axis - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: [jira] Created: (AXIS2-3258) Extend Spring support to accept proxies

Posted by BJuma <be...@injazatdatasystems.com>.
I downloaded the latest nightly build along with what I posted below and it
works fine. However I am having an exception when the server is starting up
which is:
  [exec] 17:25:51,287 ERROR
org.apache.axis2.deployment.AxisConfigBuilder:319 -
org.apache.axis2.rmi.deploy.RMIServiceDeployer
     [exec] java.lang.ClassNotFoundException:
org.apache.axis2.rmi.deploy.RMIServiceDeployer
     [exec] at
com.evermind.naming.ContextClassLoader.findClass(ContextClassLoader.java:318)
     [exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
     [exec] at
com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.java:143)
     [exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
     [exec] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
     [exec] at java.lang.Class.forName0(Native Method)
     [exec] at java.lang.Class.forName(Class.java:141)
     [exec] at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
     [exec] at
org.apache.axis2.deployment.AxisConfigBuilder.processDeployers(AxisConfigBuilder.java:316)
     [exec] at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:233)
     [exec] at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:628)
     [exec] at
org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:146)
     [exec] at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:501)
     [exec] at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:421)
     [exec] at
com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2354)
     [exec] at
com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4795)
     [exec] at
com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)
     [exec] at
com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)
     [exec] at
com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:549)
     [exec] at
com.evermind.server.Application.getHttpApplication(Application.java:890)
     [exec] at
com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)
     [exec] at
com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)
     [exec] at
com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)
     [exec] at
com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)
     [exec] at
com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)
     [exec] at
com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)
     [exec] at
com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)
     [exec] at
com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)

Any idea?




iksrazal wrote:
> 
> Hmm, the Service needs to be a concrete class, ie, have an
> implementation and not be just an interface. Any bean dependencies,
> such as for beans that have methods you invoke, have been known to
> work in some cases as interfaces by avoiding them be spring proxies.
> This particular problem is that there is no proxy class that  This
> issue has come up several times before and have had solutions, please
> search the forums.
> 
> HTH,
> Robert
> 
> On Nov 12, 2007 5:47 AM, BJuma <be...@injazatdatasystems.com> wrote:
>>
>> Hi,
>> I am facing this problem now. My understanding to fix it is by having an
>> interface for the current webservice and defining it in the services.xml
>> as
>> a ServiceClass, like this:
>>
>>  <service name="SpringAwareService">
>>     <description>
>>         simple spring example
>>     </description>
>>         <parameter
>> name="ServiceClass">spring.SpringAwareServiceInterface</parameter>
>>     <parameter
>> name="ServiceObjectSupplier">org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier</parameter>
>>     <parameter name="SpringBeanName">springAwareService</parameter>
>>     <operation name="getValue">
>>         <messageReceiver
>> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>>     </operation>
>>
>> </service>
>>
>> Is this sufficient? I tried it but not worked. Did I miss any thing or
>> should I try certain fix build.
>>
>> Thanks,
>>
>>
>>
>> JIRA jira@apache.org wrote:
>> >
>> > Extend Spring support to accept proxies
>> > ---------------------------------------
>> >
>> >                  Key: AXIS2-3258
>> >                  URL: https://issues.apache.org/jira/browse/AXIS2-3258
>> >              Project: Axis 2.0 (Axis2)
>> >           Issue Type: New Feature
>> >           Components: deployment, wsdl
>> >     Affects Versions: 1.3
>> >             Reporter: Oleg Efimov
>> >             Priority: Blocker
>> >
>> >
>> > ServiceBuilder presently requires service class's byte code to obtain
>> > method parameter names. This won't work with proxies, thus making
>> Spring
>> > support really feeble.
>> >
>> > I propose introducing additional service.xml parameter, namely
>> > ServiceInterface, to enumerate service methods and parameter names.
>> >
>> > --
>> > This message is automatically generated by JIRA.
>> > -
>> > You can reply to this email to add a comment to the issue online.
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: axis-dev-help@ws.apache.org
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-jira--Created%3A-%28AXIS2-3258%29-Extend-Spring-support-to-accept-proxies-tf4592976.html#a13703440
>> Sent from the Axis - Dev mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-dev-help@ws.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-jira--Created%3A-%28AXIS2-3258%29-Extend-Spring-support-to-accept-proxies-tf4592976.html#a13705498
Sent from the Axis - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: [jira] Created: (AXIS2-3258) Extend Spring support to accept proxies

Posted by robert lazarski <ro...@gmail.com>.
Hmm, the Service needs to be a concrete class, ie, have an
implementation and not be just an interface. Any bean dependencies,
such as for beans that have methods you invoke, have been known to
work in some cases as interfaces by avoiding them be spring proxies.
This particular problem is that there is no proxy class that  This
issue has come up several times before and have had solutions, please
search the forums.

HTH,
Robert

On Nov 12, 2007 5:47 AM, BJuma <be...@injazatdatasystems.com> wrote:
>
> Hi,
> I am facing this problem now. My understanding to fix it is by having an
> interface for the current webservice and defining it in the services.xml as
> a ServiceClass, like this:
>
>  <service name="SpringAwareService">
>     <description>
>         simple spring example
>     </description>
>         <parameter
> name="ServiceClass">spring.SpringAwareServiceInterface</parameter>
>     <parameter
> name="ServiceObjectSupplier">org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier</parameter>
>     <parameter name="SpringBeanName">springAwareService</parameter>
>     <operation name="getValue">
>         <messageReceiver
> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>     </operation>
>
> </service>
>
> Is this sufficient? I tried it but not worked. Did I miss any thing or
> should I try certain fix build.
>
> Thanks,
>
>
>
> JIRA jira@apache.org wrote:
> >
> > Extend Spring support to accept proxies
> > ---------------------------------------
> >
> >                  Key: AXIS2-3258
> >                  URL: https://issues.apache.org/jira/browse/AXIS2-3258
> >              Project: Axis 2.0 (Axis2)
> >           Issue Type: New Feature
> >           Components: deployment, wsdl
> >     Affects Versions: 1.3
> >             Reporter: Oleg Efimov
> >             Priority: Blocker
> >
> >
> > ServiceBuilder presently requires service class's byte code to obtain
> > method parameter names. This won't work with proxies, thus making Spring
> > support really feeble.
> >
> > I propose introducing additional service.xml parameter, namely
> > ServiceInterface, to enumerate service methods and parameter names.
> >
> > --
> > This message is automatically generated by JIRA.
> > -
> > You can reply to this email to add a comment to the issue online.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-dev-help@ws.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/-jira--Created%3A-%28AXIS2-3258%29-Extend-Spring-support-to-accept-proxies-tf4592976.html#a13703440
> Sent from the Axis - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: [jira] Created: (AXIS2-3258) Extend Spring support to accept proxies

Posted by BJuma <be...@injazatdatasystems.com>.
Hi, 
I am facing this problem now. My understanding to fix it is by having an
interface for the current webservice and defining it in the services.xml as
a ServiceClass, like this:

 <service name="SpringAwareService">
    <description>
        simple spring example
    </description>
	<parameter
name="ServiceClass">spring.SpringAwareServiceInterface</parameter>
    <parameter
name="ServiceObjectSupplier">org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier</parameter>
    <parameter name="SpringBeanName">springAwareService</parameter>
    <operation name="getValue">
        <messageReceiver
class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
    </operation>
	
</service> 

Is this sufficient? I tried it but not worked. Did I miss any thing or
should I try certain fix build.

Thanks,



JIRA jira@apache.org wrote:
> 
> Extend Spring support to accept proxies
> ---------------------------------------
> 
>                  Key: AXIS2-3258
>                  URL: https://issues.apache.org/jira/browse/AXIS2-3258
>              Project: Axis 2.0 (Axis2)
>           Issue Type: New Feature
>           Components: deployment, wsdl
>     Affects Versions: 1.3
>             Reporter: Oleg Efimov
>             Priority: Blocker
> 
> 
> ServiceBuilder presently requires service class's byte code to obtain
> method parameter names. This won't work with proxies, thus making Spring
> support really feeble.
> 
> I propose introducing additional service.xml parameter, namely
> ServiceInterface, to enumerate service methods and parameter names.
> 
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-jira--Created%3A-%28AXIS2-3258%29-Extend-Spring-support-to-accept-proxies-tf4592976.html#a13703440
Sent from the Axis - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-3258) Extend Spring support to accept proxies

Posted by "Oleg Efimov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Efimov updated AXIS2-3258:
-------------------------------

    Comment: was deleted

> Extend Spring support to accept proxies
> ---------------------------------------
>
>                 Key: AXIS2-3258
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3258
>             Project: Axis 2.0 (Axis2)
>          Issue Type: New Feature
>          Components: deployment, wsdl
>    Affects Versions: 1.3
>            Reporter: Oleg Efimov
>            Priority: Blocker
>
> ServiceBuilder presently requires service class's byte code to obtain method parameter names. This won't work with proxies, thus making Spring support really feeble.
> I propose introducing additional service.xml parameter, namely ServiceInterface, to enumerate service methods and parameter names.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-3258) Extend Spring support to accept proxies

Posted by "Oleg Efimov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Efimov updated AXIS2-3258:
-------------------------------

    Priority: Trivial  (was: Blocker)

> Extend Spring support to accept proxies
> ---------------------------------------
>
>                 Key: AXIS2-3258
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3258
>             Project: Axis 2.0 (Axis2)
>          Issue Type: New Feature
>          Components: deployment, wsdl
>    Affects Versions: 1.3
>            Reporter: Oleg Efimov
>            Priority: Trivial
>
> ServiceBuilder presently requires service class's byte code to obtain method parameter names. This won't work with proxies, thus making Spring support really feeble.
> I propose introducing additional service.xml parameter, namely ServiceInterface, to enumerate service methods and parameter names.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Closed: (AXIS2-3258) Extend Spring support to accept proxies

Posted by "Oleg Efimov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Efimov closed AXIS2-3258.
------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3

> Extend Spring support to accept proxies
> ---------------------------------------
>
>                 Key: AXIS2-3258
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3258
>             Project: Axis 2.0 (Axis2)
>          Issue Type: New Feature
>          Components: deployment, wsdl
>    Affects Versions: 1.3
>            Reporter: Oleg Efimov
>            Priority: Trivial
>             Fix For: 1.3
>
>
> ServiceBuilder presently requires service class's byte code to obtain method parameter names. This won't work with proxies, thus making Spring support really feeble.
> I propose introducing additional service.xml parameter, namely ServiceInterface, to enumerate service methods and parameter names.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3258) Extend Spring support to accept proxies

Posted by "Oleg Efimov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12533313 ] 

Oleg Efimov commented on AXIS2-3258:
------------------------------------

I would like to elaborate my proposal:


---------------------------------------------------------------------------------------------------------------
org.apache.axis2.Constants:
add new constant SERVICE_INTERFACE

---------------------------------------------------------------------------------------------------------------
org.apache.axis2.deployment.util.Utils:
in method public static void fillAxisService(AxisService, AxisConfiguration, ArrayList, ArrayList) in case SERVICE_INTERFACE is defined, use enhanced schema generator.

> Extend Spring support to accept proxies
> ---------------------------------------
>
>                 Key: AXIS2-3258
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3258
>             Project: Axis 2.0 (Axis2)
>          Issue Type: New Feature
>          Components: deployment, wsdl
>    Affects Versions: 1.3
>            Reporter: Oleg Efimov
>            Priority: Blocker
>
> ServiceBuilder presently requires service class's byte code to obtain method parameter names. This won't work with proxies, thus making Spring support really feeble.
> I propose introducing additional service.xml parameter, namely ServiceInterface, to enumerate service methods and parameter names.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3258) Extend Spring support to accept proxies

Posted by "Oleg Efimov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12533322 ] 

Oleg Efimov commented on AXIS2-3258:
------------------------------------

Oh, guys, seems that simply introducing interface as ServiceClass parameter along with ServiceObjectSupplier parameter solves the problem!

> Extend Spring support to accept proxies
> ---------------------------------------
>
>                 Key: AXIS2-3258
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3258
>             Project: Axis 2.0 (Axis2)
>          Issue Type: New Feature
>          Components: deployment, wsdl
>    Affects Versions: 1.3
>            Reporter: Oleg Efimov
>            Priority: Blocker
>
> ServiceBuilder presently requires service class's byte code to obtain method parameter names. This won't work with proxies, thus making Spring support really feeble.
> I propose introducing additional service.xml parameter, namely ServiceInterface, to enumerate service methods and parameter names.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org