Do you have this spring bean wired in your serviceContect.xml file?

<!-- Configure spring to give a hook to axis2 without a ServletContext -->
  <bean id="applicationContext"
    class=" org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder" />

HTH,
Robert

On 11/9/06, Matthew Hannay < [EMAIL PROTECTED]> wrote:

I am wiring up my aar to be spring aware
and I am asuming that the only part
of the doc at
http://svn.apache.org/repos/asf/webservices/axis2/branches/java/1_1/xdocs/1_1/spring.html
to follow is the part headed "Spring Inside AAR"

I follow this and drop my aar in to the axis war
and start up the server the app deploys and
all the debug suggests that the spring wiring is ok.

However when I run the unit test the server spits it!!
444589 [http-8080-Processor25] DEBUG
org.apache.axis2.transport.http.AxisServlet
  - org.apache.axis2.AxisFault: Axis2 Can't find
Spring's ApplicationContext; ne
sted exception is:
        java.lang.Exception: Axis2 Can't find Spring's
ApplicationContext

Structure of aar
Myservice.aar
-------------
    serviceContect.xml
    lib/axis2spring.jar
    lib/other spring 2.0 jars
    META-INF/services.xml
    META-INF/service.wsdl
    /au/.../*.class


In the aar and the axis2/web-inf/lib Ihave removed the

spring 1-2-8 jars and replaced them with spring 2.0

I am using the snapshot for 08/11/2006

Any clues?

Matt





Send instant messages to your online friends http://au.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to