Since the 'inside the aar' config can't use servletContext because of classloader issues, you need to use the ApplicationContextHolder hook as explained in the 'inside the aar' docs. When using SpringAppContextAwareObjectSupplier as you are doing, that requires the ApplicationContextHolder .

HTH,
Robert

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

Do I need to wire the ApplicationContextHolder up?
isnt this only for outside a container?

From what i can gather all I need to do is
put the entries in the services.xml
and this should take care of the class loading and
service deployment

<parameter name="ServiceTCCL"
locked="false">composite</parameter>
        <parameter name="ServiceObjectSupplier"
locked="false">

org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier
        </parameter>
        <parameter name="SpringBeanName"
locked="false">
            AddressBook_v1_0_0Skeleton
        </parameter>

and the axis spring config/init class class
<service name="AddressBook_v1_0_0"
class="au.gov.qld.health.s8online.config.AxisSpringConfig">


Matt

--- robert lazarski <[EMAIL PROTECTED]> wrote:

> 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]
> >
> >
>




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