On Sat, Sep 10, 2011 at 4:27 PM, Barry Hathaway <bhath...@nycap.rr.com> wrote:
> After taking Robert's suggesting of RTFM rather than just following the
> examples,
> I realized the my ServiceObjectSupplier in services.xml might be incorrect.
> I changed it
> and nothing changed. I am still not able to have Spring grab my
> sadlServer.kbaseRoot
> parameter out of Tomcat's context.xml and inject it into my bean.
>
> My services.xml is:
>
> <serviceGroup>
> <service name="SadlServiceSpringInit"
> class="com.ge.research.sadl.sadlserver.axis.provider.SpringInit">

Its unusual to init Spring in an Axis2 service, most commonly that
would be done as in the docs, via web.xml.

> <description>
>      This web service initializes Spring.
> </description>
> <parameter name="ServiceClass"
>>com.ge.research.sadl.sadlserver.axis.provider.SpringInit</parameter>
> <parameter name="ServiceTCCL" >composite</parameter>

You only need ServiceTCCL when loading Spring in the aar and not the
Servlet Container, the docs try to make it clear its typically not
needed.

> <parameter name="load-on-startup" >true</parameter>
> <operation name="springInit">
> <messageReceiver
> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
> </operation>
> </service>
> <service name="SadlService" scope="soapsession">
> <description>
>      SadlService Spring POJO Axis2 AAR deployment

Not sure how the Spring / POJO stuff works myself, I've never used it.
Not sure I can help there. The docs I refer to are here:

http://axis.apache.org/axis2/java/core/docs/spring.html

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to