Hi Robert, I have exactly read and applied this one first.
You mean: <service name="SpringAwareService"> <description> simple spring example </description> <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> => It results in a situation where the WSDL file is generated but ZERO methods are in the Service. If you manually add one like this: <operation name="getValue"> (of course with a different method name that really exist in our case and with a SpringBean that does exist et cetera it results in: Service Object cannot be found ... which means that much like it was not able to find the Bean. Sebastian 2011/8/21 robert lazarski <robertlazar...@gmail.com>: > On Sun, Aug 21, 2011 at 7:10 AM, seba.wag...@gmail.com > <seba.wag...@gmail.com> wrote: >> Hi, >> >> we are trying to inject Spring Services into an Axis2 Service Class. >> Unfortunately the Spring application Context is loaded AFTER Webapp >> initializes the Axis2 Servlet. >> >> My first approach was to use a SpringInit-Java Class that gets the >> application-Context: >> http://code.google.com/p/openmeetings/source/browse/branches/dev/injection/src/userservice/org/openmeetings/axis/services/SpringInit.java >> > > That is not axis2 code, but it roughly follows one of the axis2 Spring > guide examples for spring inside the AAR and non servlet container use > cases. You may not have read the docs. > > http://axis.apache.org/axis2/java/core/docs/spring.html > > You sinply may be using the wrong config for your use case. The > example code you linked to is not intended to be typically used when > servlet container hooks itself can do the job. The "With a > ServletContext" example may be a better ft for what you are tring to > do. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org > For additional commands, e-mail: java-user-h...@axis.apache.org > > -- Sebastian Wagner http://www.webbase-design.de http://openmeetings.googlecode.com http://www.wagner-sebastian.com seba.wag...@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org