You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Matthew Hannay <ma...@yahoo.com.au> on 2006/11/09 09:30:20 UTC

axis to spring

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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: axis to spring

Posted by Martin Gainty <mg...@hotmail.com>.
Good Morning Matt-

in other words make sure your spring jars are located in $CATALINA_HOME/YourWebapp/web-inf/lib 
and not in
bootstrap ($JAVA_HOME/jre/lib/ext)
system ($CATALINA_HOME/bin)
common ($CATALINA_HOME/lib)

Earlier versions of tomcat also had server classes located in $CATALINA_HOME/server/lib and $CATALINA_HOME/server/classes
also common classes located in $CATALINA_HOME/common/lib and $CATALINA_HOME/common/classes
(if you're running tomcat 4.x or tomcat 5.x)

HTH,
M-
This e-mail communication and any attachments may contain confidential and privileged information for the use of the 
designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its 
contents
  ----- Original Message ----- 
  From: robert lazarski 
  To: axis-user@ws.apache.org 
  Sent: Monday, November 27, 2006 10:02 PM
  Subject: Re: axis to spring


  I noticed that I had the axis2-spring-SNAPSHOT.jar after I uploaded the zip and wasn't concerned since the Classloader stuff is elsewhere .. nevertheless I did copy the axis2-spring-1.1.jar over and I got the same correct result. The 1.1 jar is now in the axis2.zip - the war - off my server. Be sure you don't have any spring jars in a higher classloader. 

  Robert


  On 11/27/06, Matthew Hannay <ma...@yahoo.com.au> wrote:
    I have noticed that you are using snap shot jars and I
    am only using the 1.1 release jars?

    Matt

    --- robert lazarski <ro...@gmail.com> wrote:

    > Here's my output ... its late here but it seems
    > right to me ... I can put my
    > full war up if you think it'll help - you may have
    > an environment issue:
    >
    >  /home/iksrazal/spa1> ant rc 
    > Buildfile: build.xml
    >
    > clean:
    >    [delete] Deleting directory
    > /home/iksrazal/spa1/build
    >    [delete] Deleting directory
    > /home/iksrazal/spa1/dist
    >
    > prepare: 
    >     [mkdir] Created dir:
    > /home/iksrazal/spa1/build/classes
    >     [mkdir] Created dir: /home/iksrazal/spa1/dist
    >
    > compile_client:
    >      [echo] Compiling client files
    >     [javac] Compiling 1 source file to 
    > /home/iksrazal/spa1/build/classes
    >      [copy] Copying 5 files to
    > /home/iksrazal/spa1/build/classes
    >
    > rc:
    >      [java] Response: <example1:string
    > xmlns:tns=" http://spring"
    >
    xmlns:example1="http://springExample.org/example1">Spring,
    > AAR
    > #1</example1:string>
    >
    > BUILD SUCCESSFUL 
    > Total time: 17 seconds
    > [linux-iksrazal(iksrazal)]
    >  /home/iksrazal/spa1>
    > [linux-iksrazal(iksrazal)]
    >  /home/iksrazal/spa1> cd ../spa2
    > [linux-iksrazal(iksrazal)]
    >  /home/iksrazal/spa2> ant rc 
    > Buildfile: build.xml
    >
    > clean:
    >    [delete] Deleting directory
    > /home/iksrazal/spa2/build
    >    [delete] Deleting directory
    > /home/iksrazal/spa2/dist
    >
    > prepare: 
    >     [mkdir] Created dir:
    > /home/iksrazal/spa2/build/classes
    >     [mkdir] Created dir: /home/iksrazal/spa2/dist
    >
    > compile_client:
    >      [echo] Compiling client files
    >     [javac] Compiling 2 source files to 
    > /home/iksrazal/spa2/build/classes
    >      [copy] Copying 5 files to
    > /home/iksrazal/spa2/build/classes
    >
    > rc:
    >      [java] Response: <example1:string
    > xmlns:tns=" http://spring"
    >
    xmlns:example1="http://springExample.org/example1">Spring,
    > AAR
    > #2</example1:string>
    >
    > BUILD SUCCESSFUL 
    > Total time: 11 seconds
    > [linux-iksrazal(iksrazal)]
    >  /home/iksrazal/spa2>
    >
    > So I can't reproduce the 'Spring, AAR #2' message
    > out of sp1 . I can't think
    > of why the spring bean names would matter, if they 
    > were overwriting having
    > the same names I think would be the test case.  So
    > keep digging, a
    > clue-by-four might hit me eventauly ;-).
    >
    > Robert
    >
    > On 11/27/06, Matthew Hannay 
    > <ma...@yahoo.com.au> wrote:
    > >
    > > robert,
    > >
    > > Thanks for your example, however the spring config
    > for
    > > the second deployed been over writes the first.
    > >
    > > It works as your beans are the same name.
    > > My beand definitions for each aar are different!!
    > >
    > > What I did - 
    > > 1. fresh tomcat 5.5.20
    > > 2. droped the axis2 1.1 war into the web apps
    > > directory
    > > 3. built spa1 and spa2 and put them in the
    > services
    > > 4. startup tomcat. 
    > >
    > > If you deploy both aars, spa1 and spa2, run your
    > 'ant
    > > rc' for spa1 you get
    > >
    > >
    > ---------------------------------------------------
    > > [java] Response: <example1:string 
    > > xmlns:tns="http://spring" xmlns:example1=
    > > http://springExample.org/example1">Spring, AAR
    > > #2</example1:string> 
    > >
    > ---------------------------------------------------
    > >
    > > If I only deploy spa1 I get:
    > >
    > ----------------------------------------------------
    > > [java] Response: <example1:string 
    > > xmlns:tns="http://spring" xmlns:example1=
    > > http://springExample.org/example1">Spring, AAR
    > > #1</example1:string> 
    > >
    > >
    > > Note the over written injected value!!
    > >
    > > Matt
    > >
    > >
    > > --- robert lazarski <robertlazarski@gmail.com >
    > wrote:
    > >
    > > > I just gave axis2 std-bin 1.1 a run with 2 aar's
    > > > having the same spring
    > > > beans supplied with different messages, and it
    > works 
    > > > for me. You can
    > > > download both env's with just the name of the
    > > > services changed, names of the
    > > > aar's changed etc, different messages injected
    > to 
    > > > the spring beans etc here
    > > > to test if you'd like:
    > > >
    > > >
    > >
    >
    http://www.braziloutsource.com/random/axis2_spring_2_aar.zip 
    > > >
    > > > Just cd to each dir and run 'ant rc' to execute
    > the
    > > > client after installing
    > > > the aar files - tomcat 5.5 in my case. Also, as
    > > > explained in the docs remove 
    > > > _all_ spring files from the war WEB-INF/lib -
    > those
    > > > are primarily there for
    > > > the ServletContext / not inside the aar case.
    > > > Everything needed is inside 
    > > > the aar's .
    > > >
    > > > BTW, the axis2 service classloader should and
    > > > seemingly does in this case
    > > > have complete aar seperation, ie do a '
    > > > 
    > >
    >
    ClassPathXmlApplicationContext.setClasspath(AxisService.getClassLoader())
    > > > and that should be enough. There were some
    > > > classloader issues during
    > > > the 1.1dev cycle but from what I see at this
    > point
    > > > eveything is
    > > > working as
    > > > expected. If you still have problems please
    > create a
    > > > jira and upload your 
    > > > AAR files.
    > > >
    > > > HTH,
    > > > Robert
    > > >
    > > > On 11/27/06, Matthew Hannay
    > > > < matt_hannay1@yahoo.com.au> wrote:
    > > > >
    > > > > I have looked at the Spring code for the
    > > > >     ClassPathXmlApplicationContext
    > > > > and the java docs say: 
    > > > >
    > > > > *
    > > > > * <p>Note: In case of multiple config
    > locations,
    > > > > later bean definitions will
    > > > > * override ones defined in earlier loaded 
    > files.
    > > > This
    > > > > can be leveraged to
    > > > > * deliberately override certain bean
    > definitions
    > > > via
    > > > > an extra XML file. 
    > > > > *
    >
    === message truncated ===




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

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




Re: axis to spring

Posted by Matthew Hannay <ma...@yahoo.com.au>.
OK Ok Dum-ArseProgrammerException thrown

I turned the Debug logging back on
and relised that I had not deleted the 
spring2-axis.jar from the.../WEB-INF/lib dir
I removed the other spring jars but just missed this
one ..... all's good mate ....thanks for your help
rob.

Matt 

--- robert lazarski <ro...@gmail.com> wrote:

> I noticed that I had the axis2-spring-SNAPSHOT.jar
> after I uploaded the zip
> and wasn't concerned since the Classloader stuff is
> elsewhere ...
> nevertheless I did copy the axis2-spring-1.1.jar
> over and I got the same
> correct result. The 1.1 jar is now in the axis2.zip
> - the war - off my
> server. Be sure you don't have any spring jars in a
> higher classloader.
> 
> Robert
> 
> On 11/27/06, Matthew Hannay
> <ma...@yahoo.com.au> wrote:
> >
> > I have noticed that you are using snap shot jars
> and I
> > am only using the 1.1 release jars?
> >
> > Matt
> >
> > --- robert lazarski <ro...@gmail.com>
> wrote:
> >
> > > Here's my output ... its late here but it seems
> > > right to me ... I can put my
> > > full war up if you think it'll help - you may
> have
> > > an environment issue:
> > >
> > >  /home/iksrazal/spa1> ant rc
> > > Buildfile: build.xml
> > >
> > > clean:
> > >    [delete] Deleting directory
> > > /home/iksrazal/spa1/build
> > >    [delete] Deleting directory
> > > /home/iksrazal/spa1/dist
> > >
> > > prepare:
> > >     [mkdir] Created dir:
> > > /home/iksrazal/spa1/build/classes
> > >     [mkdir] Created dir:
> /home/iksrazal/spa1/dist
> > >
> > > compile_client:
> > >      [echo] Compiling client files
> > >     [javac] Compiling 1 source file to
> > > /home/iksrazal/spa1/build/classes
> > >      [copy] Copying 5 files to
> > > /home/iksrazal/spa1/build/classes
> > >
> > > rc:
> > >      [java] Response: <example1:string
> > > xmlns:tns="http://spring"
> > >
> >
>
xmlns:example1="http://springExample.org/example1">Spring,
> > > AAR
> > > #1</example1:string>
> > >
> > > BUILD SUCCESSFUL
> > > Total time: 17 seconds
> > > [linux-iksrazal(iksrazal)]
> > >  /home/iksrazal/spa1>
> > > [linux-iksrazal(iksrazal)]
> > >  /home/iksrazal/spa1> cd ../spa2
> > > [linux-iksrazal(iksrazal)]
> > >  /home/iksrazal/spa2> ant rc
> > > Buildfile: build.xml
> > >
> > > clean:
> > >    [delete] Deleting directory
> > > /home/iksrazal/spa2/build
> > >    [delete] Deleting directory
> > > /home/iksrazal/spa2/dist
> > >
> > > prepare:
> > >     [mkdir] Created dir:
> > > /home/iksrazal/spa2/build/classes
> > >     [mkdir] Created dir:
> /home/iksrazal/spa2/dist
> > >
> > > compile_client:
> > >      [echo] Compiling client files
> > >     [javac] Compiling 2 source files to
> > > /home/iksrazal/spa2/build/classes
> > >      [copy] Copying 5 files to
> > > /home/iksrazal/spa2/build/classes
> > >
> > > rc:
> > >      [java] Response: <example1:string
> > > xmlns:tns="http://spring"
> > >
> >
>
xmlns:example1="http://springExample.org/example1">Spring,
> > > AAR
> > > #2</example1:string>
> > >
> > > BUILD SUCCESSFUL
> > > Total time: 11 seconds
> > > [linux-iksrazal(iksrazal)]
> > >  /home/iksrazal/spa2>
> > >
> > > So I can't reproduce the 'Spring, AAR #2'
> message
> > > out of sp1 . I can't think
> > > of why the spring bean names would matter, if
> they
> > > were overwriting having
> > > the same names I think would be the test case. 
> So
> > > keep digging, a
> > > clue-by-four might hit me eventauly ;-).
> > >
> > > Robert
> > >
> > > On 11/27/06, Matthew Hannay
> > > <ma...@yahoo.com.au> wrote:
> > > >
> > > > robert,
> > > >
> > > > Thanks for your example, however the spring
> config
> > > for
> > > > the second deployed been over writes the
> first.
> > > >
> > > > It works as your beans are the same name.
> > > > My beand definitions for each aar are
> different!!
> > > >
> > > > What I did -
> > > > 1. fresh tomcat 5.5.20
> > > > 2. droped the axis2 1.1 war into the web apps
> > > > directory
> > > > 3. built spa1 and spa2 and put them in the
> > > services
> > > > 4. startup tomcat.
> > > >
> > > > If you deploy both aars, spa1 and spa2, run
> your
> > > 'ant
> > > > rc' for spa1 you get
> > > >
> > > >
> > >
> ---------------------------------------------------
> > > > [java] Response: <example1:string
> > > > xmlns:tns="http://spring" xmlns:example1=
> > > > http://springExample.org/example1">Spring, AAR
> > > > #2</example1:string>
> > > >
> > >
> ---------------------------------------------------
> > > >
> > > > If I only deploy spa1 I get:
> > > >
> > >
> ----------------------------------------------------
> > > > [java] Response: <example1:string
> > > > xmlns:tns="http://spring" xmlns:example1=
> > > > http://springExample.org/example1">Spring, AAR
> > > > #1</example1:string>
> > > >
> > > >
> > > > Note the over written injected value!!
> > > >
> > > > Matt
> > > >
> > > >
> > > > --- robert lazarski <ro...@gmail.com>
> > > wrote:
> > > >
> > > > > I just gave axis2 std-bin 1.1 a run with 2
> aar's
> > > > > having the same spring
> > > > > beans supplied with different messages, and
> it
> > > works
> > > > > for me. You can
> > > > > download both env's with just the name of
> the
> > > > > services changed, names of the
> > > > > aar's changed etc, different messages
> injected
> > > to
> > > > > the spring beans etc here
> > > > > to test if you'd like:
> > > > >
> > > > >
> > > >
> > >
> >
>
http://www.braziloutsource.com/random/axis2_spring_2_aar.zip
> > > > >
> > > > > Just cd to each dir and run 'ant rc' to
> execute
> > > the
> > > > > client after installing
> 
=== message truncated ===




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

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


Re: axis to spring

Posted by robert lazarski <ro...@gmail.com>.
I noticed that I had the axis2-spring-SNAPSHOT.jar after I uploaded the zip
and wasn't concerned since the Classloader stuff is elsewhere ...
nevertheless I did copy the axis2-spring-1.1.jar over and I got the same
correct result. The 1.1 jar is now in the axis2.zip - the war - off my
server. Be sure you don't have any spring jars in a higher classloader.

Robert

On 11/27/06, Matthew Hannay <ma...@yahoo.com.au> wrote:
>
> I have noticed that you are using snap shot jars and I
> am only using the 1.1 release jars?
>
> Matt
>
> --- robert lazarski <ro...@gmail.com> wrote:
>
> > Here's my output ... its late here but it seems
> > right to me ... I can put my
> > full war up if you think it'll help - you may have
> > an environment issue:
> >
> >  /home/iksrazal/spa1> ant rc
> > Buildfile: build.xml
> >
> > clean:
> >    [delete] Deleting directory
> > /home/iksrazal/spa1/build
> >    [delete] Deleting directory
> > /home/iksrazal/spa1/dist
> >
> > prepare:
> >     [mkdir] Created dir:
> > /home/iksrazal/spa1/build/classes
> >     [mkdir] Created dir: /home/iksrazal/spa1/dist
> >
> > compile_client:
> >      [echo] Compiling client files
> >     [javac] Compiling 1 source file to
> > /home/iksrazal/spa1/build/classes
> >      [copy] Copying 5 files to
> > /home/iksrazal/spa1/build/classes
> >
> > rc:
> >      [java] Response: <example1:string
> > xmlns:tns="http://spring"
> >
> xmlns:example1="http://springExample.org/example1">Spring,
> > AAR
> > #1</example1:string>
> >
> > BUILD SUCCESSFUL
> > Total time: 17 seconds
> > [linux-iksrazal(iksrazal)]
> >  /home/iksrazal/spa1>
> > [linux-iksrazal(iksrazal)]
> >  /home/iksrazal/spa1> cd ../spa2
> > [linux-iksrazal(iksrazal)]
> >  /home/iksrazal/spa2> ant rc
> > Buildfile: build.xml
> >
> > clean:
> >    [delete] Deleting directory
> > /home/iksrazal/spa2/build
> >    [delete] Deleting directory
> > /home/iksrazal/spa2/dist
> >
> > prepare:
> >     [mkdir] Created dir:
> > /home/iksrazal/spa2/build/classes
> >     [mkdir] Created dir: /home/iksrazal/spa2/dist
> >
> > compile_client:
> >      [echo] Compiling client files
> >     [javac] Compiling 2 source files to
> > /home/iksrazal/spa2/build/classes
> >      [copy] Copying 5 files to
> > /home/iksrazal/spa2/build/classes
> >
> > rc:
> >      [java] Response: <example1:string
> > xmlns:tns="http://spring"
> >
> xmlns:example1="http://springExample.org/example1">Spring,
> > AAR
> > #2</example1:string>
> >
> > BUILD SUCCESSFUL
> > Total time: 11 seconds
> > [linux-iksrazal(iksrazal)]
> >  /home/iksrazal/spa2>
> >
> > So I can't reproduce the 'Spring, AAR #2' message
> > out of sp1 . I can't think
> > of why the spring bean names would matter, if they
> > were overwriting having
> > the same names I think would be the test case.  So
> > keep digging, a
> > clue-by-four might hit me eventauly ;-).
> >
> > Robert
> >
> > On 11/27/06, Matthew Hannay
> > <ma...@yahoo.com.au> wrote:
> > >
> > > robert,
> > >
> > > Thanks for your example, however the spring config
> > for
> > > the second deployed been over writes the first.
> > >
> > > It works as your beans are the same name.
> > > My beand definitions for each aar are different!!
> > >
> > > What I did -
> > > 1. fresh tomcat 5.5.20
> > > 2. droped the axis2 1.1 war into the web apps
> > > directory
> > > 3. built spa1 and spa2 and put them in the
> > services
> > > 4. startup tomcat.
> > >
> > > If you deploy both aars, spa1 and spa2, run your
> > 'ant
> > > rc' for spa1 you get
> > >
> > >
> > ---------------------------------------------------
> > > [java] Response: <example1:string
> > > xmlns:tns="http://spring" xmlns:example1=
> > > http://springExample.org/example1">Spring, AAR
> > > #2</example1:string>
> > >
> > ---------------------------------------------------
> > >
> > > If I only deploy spa1 I get:
> > >
> > ----------------------------------------------------
> > > [java] Response: <example1:string
> > > xmlns:tns="http://spring" xmlns:example1=
> > > http://springExample.org/example1">Spring, AAR
> > > #1</example1:string>
> > >
> > >
> > > Note the over written injected value!!
> > >
> > > Matt
> > >
> > >
> > > --- robert lazarski <ro...@gmail.com>
> > wrote:
> > >
> > > > I just gave axis2 std-bin 1.1 a run with 2 aar's
> > > > having the same spring
> > > > beans supplied with different messages, and it
> > works
> > > > for me. You can
> > > > download both env's with just the name of the
> > > > services changed, names of the
> > > > aar's changed etc, different messages injected
> > to
> > > > the spring beans etc here
> > > > to test if you'd like:
> > > >
> > > >
> > >
> >
> http://www.braziloutsource.com/random/axis2_spring_2_aar.zip
> > > >
> > > > Just cd to each dir and run 'ant rc' to execute
> > the
> > > > client after installing
> > > > the aar files - tomcat 5.5 in my case. Also, as
> > > > explained in the docs remove
> > > > _all_ spring files from the war WEB-INF/lib -
> > those
> > > > are primarily there for
> > > > the ServletContext / not inside the aar case.
> > > > Everything needed is inside
> > > > the aar's .
> > > >
> > > > BTW, the axis2 service classloader should and
> > > > seemingly does in this case
> > > > have complete aar seperation, ie do a '
> > > >
> > >
> >
> ClassPathXmlApplicationContext.setClasspath(AxisService.getClassLoader())
> > > > and that should be enough. There were some
> > > > classloader issues during
> > > > the 1.1dev cycle but from what I see at this
> > point
> > > > eveything is
> > > > working as
> > > > expected. If you still have problems please
> > create a
> > > > jira and upload your
> > > > AAR files.
> > > >
> > > > HTH,
> > > > Robert
> > > >
> > > > On 11/27/06, Matthew Hannay
> > > > <ma...@yahoo.com.au> wrote:
> > > > >
> > > > > I have looked at the Spring code for the
> > > > >     ClassPathXmlApplicationContext
> > > > > and the java docs say:
> > > > >
> > > > > *
> > > > > * <p>Note: In case of multiple config
> > locations,
> > > > > later bean definitions will
> > > > > * override ones defined in earlier loaded
> > files.
> > > > This
> > > > > can be leveraged to
> > > > > * deliberately override certain bean
> > definitions
> > > > via
> > > > > an extra XML file.
> > > > > *
> >
> === message truncated ===
>
>
>
>
> Send instant messages to your online friends http://au.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: axis to spring

Posted by Matthew Hannay <ma...@yahoo.com.au>.
I have noticed that you are using snap shot jars and I
am only using the 1.1 release jars?

Matt

--- robert lazarski <ro...@gmail.com> wrote:

> Here's my output ... its late here but it seems
> right to me ... I can put my
> full war up if you think it'll help - you may have
> an environment issue:
> 
>  /home/iksrazal/spa1> ant rc
> Buildfile: build.xml
> 
> clean:
>    [delete] Deleting directory
> /home/iksrazal/spa1/build
>    [delete] Deleting directory
> /home/iksrazal/spa1/dist
> 
> prepare:
>     [mkdir] Created dir:
> /home/iksrazal/spa1/build/classes
>     [mkdir] Created dir: /home/iksrazal/spa1/dist
> 
> compile_client:
>      [echo] Compiling client files
>     [javac] Compiling 1 source file to
> /home/iksrazal/spa1/build/classes
>      [copy] Copying 5 files to
> /home/iksrazal/spa1/build/classes
> 
> rc:
>      [java] Response: <example1:string
> xmlns:tns="http://spring"
>
xmlns:example1="http://springExample.org/example1">Spring,
> AAR
> #1</example1:string>
> 
> BUILD SUCCESSFUL
> Total time: 17 seconds
> [linux-iksrazal(iksrazal)]
>  /home/iksrazal/spa1>
> [linux-iksrazal(iksrazal)]
>  /home/iksrazal/spa1> cd ../spa2
> [linux-iksrazal(iksrazal)]
>  /home/iksrazal/spa2> ant rc
> Buildfile: build.xml
> 
> clean:
>    [delete] Deleting directory
> /home/iksrazal/spa2/build
>    [delete] Deleting directory
> /home/iksrazal/spa2/dist
> 
> prepare:
>     [mkdir] Created dir:
> /home/iksrazal/spa2/build/classes
>     [mkdir] Created dir: /home/iksrazal/spa2/dist
> 
> compile_client:
>      [echo] Compiling client files
>     [javac] Compiling 2 source files to
> /home/iksrazal/spa2/build/classes
>      [copy] Copying 5 files to
> /home/iksrazal/spa2/build/classes
> 
> rc:
>      [java] Response: <example1:string
> xmlns:tns="http://spring"
>
xmlns:example1="http://springExample.org/example1">Spring,
> AAR
> #2</example1:string>
> 
> BUILD SUCCESSFUL
> Total time: 11 seconds
> [linux-iksrazal(iksrazal)]
>  /home/iksrazal/spa2>
> 
> So I can't reproduce the 'Spring, AAR #2' message
> out of sp1 . I can't think
> of why the spring bean names would matter, if they
> were overwriting having
> the same names I think would be the test case.  So
> keep digging, a
> clue-by-four might hit me eventauly ;-).
> 
> Robert
> 
> On 11/27/06, Matthew Hannay
> <ma...@yahoo.com.au> wrote:
> >
> > robert,
> >
> > Thanks for your example, however the spring config
> for
> > the second deployed been over writes the first.
> >
> > It works as your beans are the same name.
> > My beand definitions for each aar are different!!
> >
> > What I did -
> > 1. fresh tomcat 5.5.20
> > 2. droped the axis2 1.1 war into the web apps
> > directory
> > 3. built spa1 and spa2 and put them in the
> services
> > 4. startup tomcat.
> >
> > If you deploy both aars, spa1 and spa2, run your
> 'ant
> > rc' for spa1 you get
> >
> >
> ---------------------------------------------------
> > [java] Response: <example1:string
> > xmlns:tns="http://spring" xmlns:example1=
> > http://springExample.org/example1">Spring, AAR
> > #2</example1:string>
> >
> ---------------------------------------------------
> >
> > If I only deploy spa1 I get:
> >
> ----------------------------------------------------
> > [java] Response: <example1:string
> > xmlns:tns="http://spring" xmlns:example1=
> > http://springExample.org/example1">Spring, AAR
> > #1</example1:string>
> >
> >
> > Note the over written injected value!!
> >
> > Matt
> >
> >
> > --- robert lazarski <ro...@gmail.com>
> wrote:
> >
> > > I just gave axis2 std-bin 1.1 a run with 2 aar's
> > > having the same spring
> > > beans supplied with different messages, and it
> works
> > > for me. You can
> > > download both env's with just the name of the
> > > services changed, names of the
> > > aar's changed etc, different messages injected
> to
> > > the spring beans etc here
> > > to test if you'd like:
> > >
> > >
> >
>
http://www.braziloutsource.com/random/axis2_spring_2_aar.zip
> > >
> > > Just cd to each dir and run 'ant rc' to execute
> the
> > > client after installing
> > > the aar files - tomcat 5.5 in my case. Also, as
> > > explained in the docs remove
> > > _all_ spring files from the war WEB-INF/lib -
> those
> > > are primarily there for
> > > the ServletContext / not inside the aar case.
> > > Everything needed is inside
> > > the aar's .
> > >
> > > BTW, the axis2 service classloader should and
> > > seemingly does in this case
> > > have complete aar seperation, ie do a '
> > >
> >
>
ClassPathXmlApplicationContext.setClasspath(AxisService.getClassLoader())
> > > and that should be enough. There were some
> > > classloader issues during
> > > the 1.1dev cycle but from what I see at this
> point
> > > eveything is
> > > working as
> > > expected. If you still have problems please
> create a
> > > jira and upload your
> > > AAR files.
> > >
> > > HTH,
> > > Robert
> > >
> > > On 11/27/06, Matthew Hannay
> > > <ma...@yahoo.com.au> wrote:
> > > >
> > > > I have looked at the Spring code for the
> > > >     ClassPathXmlApplicationContext
> > > > and the java docs say:
> > > >
> > > > *
> > > > * <p>Note: In case of multiple config
> locations,
> > > > later bean definitions will
> > > > * override ones defined in earlier loaded
> files.
> > > This
> > > > can be leveraged to
> > > > * deliberately override certain bean
> definitions
> > > via
> > > > an extra XML file.
> > > > *
> 
=== message truncated ===




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

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


Re: axis to spring

Posted by robert lazarski <ro...@gmail.com>.
Here's my output ... its late here but it seems right to me ... I can put my
full war up if you think it'll help - you may have an environment issue:

 /home/iksrazal/spa1> ant rc
Buildfile: build.xml

clean:
   [delete] Deleting directory /home/iksrazal/spa1/build
   [delete] Deleting directory /home/iksrazal/spa1/dist

prepare:
    [mkdir] Created dir: /home/iksrazal/spa1/build/classes
    [mkdir] Created dir: /home/iksrazal/spa1/dist

compile_client:
     [echo] Compiling client files
    [javac] Compiling 1 source file to /home/iksrazal/spa1/build/classes
     [copy] Copying 5 files to /home/iksrazal/spa1/build/classes

rc:
     [java] Response: <example1:string xmlns:tns="http://spring"
xmlns:example1="http://springExample.org/example1">Spring, AAR
#1</example1:string>

BUILD SUCCESSFUL
Total time: 17 seconds
[linux-iksrazal(iksrazal)]
 /home/iksrazal/spa1>
[linux-iksrazal(iksrazal)]
 /home/iksrazal/spa1> cd ../spa2
[linux-iksrazal(iksrazal)]
 /home/iksrazal/spa2> ant rc
Buildfile: build.xml

clean:
   [delete] Deleting directory /home/iksrazal/spa2/build
   [delete] Deleting directory /home/iksrazal/spa2/dist

prepare:
    [mkdir] Created dir: /home/iksrazal/spa2/build/classes
    [mkdir] Created dir: /home/iksrazal/spa2/dist

compile_client:
     [echo] Compiling client files
    [javac] Compiling 2 source files to /home/iksrazal/spa2/build/classes
     [copy] Copying 5 files to /home/iksrazal/spa2/build/classes

rc:
     [java] Response: <example1:string xmlns:tns="http://spring"
xmlns:example1="http://springExample.org/example1">Spring, AAR
#2</example1:string>

BUILD SUCCESSFUL
Total time: 11 seconds
[linux-iksrazal(iksrazal)]
 /home/iksrazal/spa2>

So I can't reproduce the 'Spring, AAR #2' message out of sp1 . I can't think
of why the spring bean names would matter, if they were overwriting having
the same names I think would be the test case.  So keep digging, a
clue-by-four might hit me eventauly ;-).

Robert

On 11/27/06, Matthew Hannay <ma...@yahoo.com.au> wrote:
>
> robert,
>
> Thanks for your example, however the spring config for
> the second deployed been over writes the first.
>
> It works as your beans are the same name.
> My beand definitions for each aar are different!!
>
> What I did -
> 1. fresh tomcat 5.5.20
> 2. droped the axis2 1.1 war into the web apps
> directory
> 3. built spa1 and spa2 and put them in the services
> 4. startup tomcat.
>
> If you deploy both aars, spa1 and spa2, run your 'ant
> rc' for spa1 you get
>
> ---------------------------------------------------
> [java] Response: <example1:string
> xmlns:tns="http://spring" xmlns:example1=
> http://springExample.org/example1">Spring, AAR
> #2</example1:string>
> ---------------------------------------------------
>
> If I only deploy spa1 I get:
> ----------------------------------------------------
> [java] Response: <example1:string
> xmlns:tns="http://spring" xmlns:example1=
> http://springExample.org/example1">Spring, AAR
> #1</example1:string>
>
>
> Note the over written injected value!!
>
> Matt
>
>
> --- robert lazarski <ro...@gmail.com> wrote:
>
> > I just gave axis2 std-bin 1.1 a run with 2 aar's
> > having the same spring
> > beans supplied with different messages, and it works
> > for me. You can
> > download both env's with just the name of the
> > services changed, names of the
> > aar's changed etc, different messages injected to
> > the spring beans etc here
> > to test if you'd like:
> >
> >
> http://www.braziloutsource.com/random/axis2_spring_2_aar.zip
> >
> > Just cd to each dir and run 'ant rc' to execute the
> > client after installing
> > the aar files - tomcat 5.5 in my case. Also, as
> > explained in the docs remove
> > _all_ spring files from the war WEB-INF/lib - those
> > are primarily there for
> > the ServletContext / not inside the aar case.
> > Everything needed is inside
> > the aar's .
> >
> > BTW, the axis2 service classloader should and
> > seemingly does in this case
> > have complete aar seperation, ie do a '
> >
> ClassPathXmlApplicationContext.setClasspath(AxisService.getClassLoader())
> > and that should be enough. There were some
> > classloader issues during
> > the 1.1dev cycle but from what I see at this point
> > eveything is
> > working as
> > expected. If you still have problems please create a
> > jira and upload your
> > AAR files.
> >
> > HTH,
> > Robert
> >
> > On 11/27/06, Matthew Hannay
> > <ma...@yahoo.com.au> wrote:
> > >
> > > I have looked at the Spring code for the
> > >     ClassPathXmlApplicationContext
> > > and the java docs say:
> > >
> > > *
> > > * <p>Note: In case of multiple config locations,
> > > later bean definitions will
> > > * override ones defined in earlier loaded files.
> > This
> > > can be leveraged to
> > > * deliberately override certain bean definitions
> > via
> > > an extra XML file.
> > > *
> > >
> > > I'll work out what needs to be done to ensure that
> > > loaded contexts can be maintained and post my
> > > findings.
> > >
> > > Matt
> > >
> > >
> > > --- Matthew Hannay <ma...@yahoo.com.au>
> > wrote:
> > >
> > > > I sure am using the Axis2 Service classloader.
> > > >
> > > > It still over writes.
> > > >
> > > > Matt
> > > >
> > > > --- robert lazarski <ro...@gmail.com>
> > > > wrote:
> > > >
> > > > > Your startUp() code has to use the Axis2
> > Service
> > > > > classloader:
> > > > >
> > > > > public void startUp(ConfigurationContext
> > ignore,
> > > > > AxisService service) {
> > > > >
> > > > >         try {
> > > > >             System.out.println("Starting
> > spring
> > > > > init");
> > > > >             ClassLoader classLoader =
> > > > > service.getClassLoader();
> > > > >             ClassPathXmlApplicationContext
> > appCtx
> > > > =
> > > > > new
> > > > >             ClassPathXmlApplicationContext(new
> > > > > String[] {"
> > > > > applicationContext.xml"}, false);
> > > > >
> > > > appCtx.setClassLoader(classLoader);
> > > > >                 appCtx.refresh();
> > > > >             System.out.println("spring
> > loaded");
> > > > >         } catch (Exception ex) {
> > > > >             ex.printStackTrace();
> > > > >         }
> > > > >     }
> > > > >
> > > > > If you are still getting the appCtx
> > overwritten
> > > > with
> > > > > that code in both
> > > > > AAR's, let us know and we'll take a look at
> > it.
> > > > >
> > > > > Robert
> > > > >
> > > > > On 11/22/06, Matthew Hannay
> > > > > <ma...@yahoo.com.au> wrote:
> > > > > >
> > > > > >
> > > > > > I am just getting back to this after a few
> > days
> > > > > ....
> > > > > >
> > > > > >
> > > > > > > Are you looking at the latest docs ?
> > > > > > Yeah, I am using the latest docs. However
> > > > looking
> > > > > at
> > > > > > the new 1.1 doco I't makes things a lot
> > clearer.
> > > > > >
> > > > > > However I have worked out what my problem is
> > > > > > and this could potentially be an axis bug.
> > > > > >
> > > > > > I have 2 aars each configured to run the
> > spring
> > > > > init
> > > > > > on startup.
> > > > > >
> > > > > > what I am finding is the second deployed aar
> > > > over
> > > > > > writes the applicationContext of the first!!
> > > > > >
> > > > > > so when I hit the first service I get a no
> > > > spring
> > > > > bean
> > > > > > found error.
> > > > > >
> > > > > > The aar deployed second works fine and if I
> > only
> > > > > depoy
> > > > > > the first aar it works fine too.
> > > > > >
> > > > > > To me it looks like the second aar blows
> > away
> > > > the
> > > > > > first
> > > > > > aar's environment? I have not fished through
> > the
> > > > > code
> > > > > > to verify this yet.
> > > > > >
> > > > > > Does any one have any insight? Should I
> > raise
> > > > this
> > > > > as
> > > > > > a JIRA?
> > > > > >
> > > > > > Matt
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --- robert lazarski
> > <ro...@gmail.com>
> > > > > wrote:
> > > > > >
> > > > > > > Are you looking at the latest docs ?
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> > >
> >
>
> http://svn.apache.org/repos/asf/webservices/axis2/branches/java/1_1/xdocs/1_1/spring.html
> > > > > > >
> > > > > > > Give me an idea of what's lacking and I'll
> > try
> > > > > and
> > > > > > > get it in for the
> > > > > > > imminent 1.1 release.
> > > > > > >
> > > > > > > Robert
> > > > > > >
> > > > > > > On 11/13/06, Matthew Hannay
> >
> === message truncated ===
>
>
>
>
> Send instant messages to your online friends http://au.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: axis to spring

Posted by robert lazarski <ro...@gmail.com>.
Give this about 15 minutes or so:

http://www.braziloutsource.com/random/axis2.zip

Good luck,
Robert

On 11/27/06, Matthew Hannay <ma...@yahoo.com.au> wrote:
>
> robert,
>
> Your WAR might be useful as this is killing me!!
>
> Matt
>
> --- Matthew Hannay <ma...@yahoo.com.au> wrote:
>
> >
> > I also removed the unwanted jars from the
> > axis2\webinf\lib
> >
> > Matt
> >
> > --- Matthew Hannay <ma...@yahoo.com.au>
> > wrote:
> >
> > > robert,
> > >
> > > Thanks for your example, however the spring config
> > > for
> > > the second deployed been over writes the first.
> > >
> > > It works as your beans are the same name.
> > > My beand definitions for each aar are different!!
> > >
> > > What I did -
> > > 1. fresh tomcat 5.5.20
> > > 2. droped the axis2 1.1 war into the web apps
> > > directory
> > > 3. built spa1 and spa2 and put them in the
> > services
> > > 4. startup tomcat.
> > >
> > > If you deploy both aars, spa1 and spa2, run your
> > > 'ant
> > > rc' for spa1 you get
> > >
> > >
> > ---------------------------------------------------
> > > [java] Response: <example1:string
> > > xmlns:tns="http://spring" xmlns:example1=
> > > http://springExample.org/example1">Spring, AAR
> > > #2</example1:string>
> > >
> > ---------------------------------------------------
> > >
> > > If I only deploy spa1 I get:
> > >
> > ----------------------------------------------------
> > > [java] Response: <example1:string
> > > xmlns:tns="http://spring" xmlns:example1=
> > > http://springExample.org/example1">Spring, AAR
> > > #1</example1:string>
> > >
> > >
> > > Note the over written injected value!!
> > >
> > > Matt
> > >
> > >
> > > --- robert lazarski <ro...@gmail.com>
> > > wrote:
> > >
> > > > I just gave axis2 std-bin 1.1 a run with 2 aar's
> > > > having the same spring
> > > > beans supplied with different messages, and it
> > > works
> > > > for me. You can
> > > > download both env's with just the name of the
> > > > services changed, names of the
> > > > aar's changed etc, different messages injected
> > to
> > > > the spring beans etc here
> > > > to test if you'd like:
> > > >
> > > >
> > >
> >
> http://www.braziloutsource.com/random/axis2_spring_2_aar.zip
> > > >
> > > > Just cd to each dir and run 'ant rc' to execute
> > > the
> > > > client after installing
> > > > the aar files - tomcat 5.5 in my case. Also, as
> > > > explained in the docs remove
> > > > _all_ spring files from the war WEB-INF/lib -
> > > those
> > > > are primarily there for
> > > > the ServletContext / not inside the aar case.
> > > > Everything needed is inside
> > > > the aar's .
> > > >
> > > > BTW, the axis2 service classloader should and
> > > > seemingly does in this case
> > > > have complete aar seperation, ie do a '
> > > >
> > >
> >
> ClassPathXmlApplicationContext.setClasspath(AxisService.getClassLoader())
> > > > and that should be enough. There were some
> > > > classloader issues during
> > > > the 1.1dev cycle but from what I see at this
> > point
> > > > eveything is
> > > > working as
> > > > expected. If you still have problems please
> > create
> > > a
> > > > jira and upload your
> > > > AAR files.
> > > >
> > > > HTH,
> > > > Robert
> > > >
> > > > On 11/27/06, Matthew Hannay
> > > > <ma...@yahoo.com.au> wrote:
> > > > >
> > > > > I have looked at the Spring code for the
> > > > >     ClassPathXmlApplicationContext
> > > > > and the java docs say:
> > > > >
> > > > > *
> > > > > * <p>Note: In case of multiple config
> > locations,
> > > > > later bean definitions will
> > > > > * override ones defined in earlier loaded
> > files.
> > > > This
> > > > > can be leveraged to
> > > > > * deliberately override certain bean
> > definitions
> > > > via
> > > > > an extra XML file.
> > > > > *
> > > > >
> > > > > I'll work out what needs to be done to ensure
> > > that
> > > > > loaded contexts can be maintained and post my
> > > > > findings.
> > > > >
> > > > > Matt
> > > > >
> > > > >
> > > > > --- Matthew Hannay <ma...@yahoo.com.au>
> > > > wrote:
> > > > >
> > > > > > I sure am using the Axis2 Service
> > classloader.
> > > > > >
> > > > > > It still over writes.
> > > > > >
> > > > > > Matt
> > > > > >
> > > > > > --- robert lazarski
> > <ro...@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > Your startUp() code has to use the Axis2
> > > > Service
> > > > > > > classloader:
> > > > > > >
> > > > > > > public void startUp(ConfigurationContext
> > > > ignore,
> > > > > > > AxisService service) {
> > > > > > >
> > > > > > >         try {
> > > > > > >             System.out.println("Starting
> > > > spring
> > > > > > > init");
> > > > > > >             ClassLoader classLoader =
> > > > > > > service.getClassLoader();
> > > > > > >             ClassPathXmlApplicationContext
> > > > appCtx
> > > > > > =
> > > > > > > new
> > > > > > >
> > > ClassPathXmlApplicationContext(new
> > > > > > > String[] {"
> > > > > > > applicationContext.xml"}, false);
> > > > > > >
> > > > > > appCtx.setClassLoader(classLoader);
> > > > > > >                 appCtx.refresh();
> > > > > > >             System.out.println("spring
> > > > loaded");
> > > > > > >         } catch (Exception ex) {
> > > > > > >             ex.printStackTrace();
> > > > > > >         }
> > > > > > >     }
> > > > > > >
> > > > > > > If you are still getting the appCtx
> > > > overwritten
> > > > > > with
> > > > > > > that code in both
> > > > > > > AAR's, let us know and we'll take a look
> > at
> > > > it.
> > > > > > >
> > > > > > > Robert
> > > > > > >
> > > > > > > On 11/22/06, Matthew Hannay
> > > > > > > <ma...@yahoo.com.au> wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > > I am just getting back to this after a
> > few
> > > > days
> > > > > > > ....
> > > > > > > >
> > > > > > > >
> > > > > > > > > Are you looking at the latest docs ?
> >
> === message truncated ===
>
>
>
>
> Send instant messages to your online friends http://au.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: axis to spring

Posted by Matthew Hannay <ma...@yahoo.com.au>.
robert,

Your WAR might be useful as this is killing me!!

Matt

--- Matthew Hannay <ma...@yahoo.com.au> wrote:

> 
> I also removed the unwanted jars from the
> axis2\webinf\lib
> 
> Matt
> 
> --- Matthew Hannay <ma...@yahoo.com.au>
> wrote:
> 
> > robert,
> > 
> > Thanks for your example, however the spring config
> > for
> > the second deployed been over writes the first.
> > 
> > It works as your beans are the same name.
> > My beand definitions for each aar are different!!
> > 
> > What I did -
> > 1. fresh tomcat 5.5.20
> > 2. droped the axis2 1.1 war into the web apps
> > directory
> > 3. built spa1 and spa2 and put them in the
> services
> > 4. startup tomcat.
> > 
> > If you deploy both aars, spa1 and spa2, run your
> > 'ant
> > rc' for spa1 you get 
> > 
> >
> ---------------------------------------------------
> > [java] Response: <example1:string
> > xmlns:tns="http://spring" xmlns:example1=
> > http://springExample.org/example1">Spring, AAR
> > #2</example1:string> 
> >
> ---------------------------------------------------
> > 
> > If I only deploy spa1 I get:
> >
> ----------------------------------------------------
> > [java] Response: <example1:string
> > xmlns:tns="http://spring" xmlns:example1=
> > http://springExample.org/example1">Spring, AAR
> > #1</example1:string>
> > 
> > 
> > Note the over written injected value!!
> > 
> > Matt
> > 
> > 
> > --- robert lazarski <ro...@gmail.com>
> > wrote:
> > 
> > > I just gave axis2 std-bin 1.1 a run with 2 aar's
> > > having the same spring
> > > beans supplied with different messages, and it
> > works
> > > for me. You can
> > > download both env's with just the name of the
> > > services changed, names of the
> > > aar's changed etc, different messages injected
> to
> > > the spring beans etc here
> > > to test if you'd like:
> > > 
> > >
> >
>
http://www.braziloutsource.com/random/axis2_spring_2_aar.zip
> > > 
> > > Just cd to each dir and run 'ant rc' to execute
> > the
> > > client after installing
> > > the aar files - tomcat 5.5 in my case. Also, as
> > > explained in the docs remove
> > > _all_ spring files from the war WEB-INF/lib -
> > those
> > > are primarily there for
> > > the ServletContext / not inside the aar case.
> > > Everything needed is inside
> > > the aar's .
> > > 
> > > BTW, the axis2 service classloader should and
> > > seemingly does in this case
> > > have complete aar seperation, ie do a '
> > >
> >
>
ClassPathXmlApplicationContext.setClasspath(AxisService.getClassLoader())
> > > and that should be enough. There were some
> > > classloader issues during
> > > the 1.1dev cycle but from what I see at this
> point
> > > eveything is
> > > working as
> > > expected. If you still have problems please
> create
> > a
> > > jira and upload your
> > > AAR files.
> > > 
> > > HTH,
> > > Robert
> > > 
> > > On 11/27/06, Matthew Hannay
> > > <ma...@yahoo.com.au> wrote:
> > > >
> > > > I have looked at the Spring code for the
> > > >     ClassPathXmlApplicationContext
> > > > and the java docs say:
> > > >
> > > > *
> > > > * <p>Note: In case of multiple config
> locations,
> > > > later bean definitions will
> > > > * override ones defined in earlier loaded
> files.
> > > This
> > > > can be leveraged to
> > > > * deliberately override certain bean
> definitions
> > > via
> > > > an extra XML file.
> > > > *
> > > >
> > > > I'll work out what needs to be done to ensure
> > that
> > > > loaded contexts can be maintained and post my
> > > > findings.
> > > >
> > > > Matt
> > > >
> > > >
> > > > --- Matthew Hannay <ma...@yahoo.com.au>
> > > wrote:
> > > >
> > > > > I sure am using the Axis2 Service
> classloader.
> > > > >
> > > > > It still over writes.
> > > > >
> > > > > Matt
> > > > >
> > > > > --- robert lazarski
> <ro...@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Your startUp() code has to use the Axis2
> > > Service
> > > > > > classloader:
> > > > > >
> > > > > > public void startUp(ConfigurationContext
> > > ignore,
> > > > > > AxisService service) {
> > > > > >
> > > > > >         try {
> > > > > >             System.out.println("Starting
> > > spring
> > > > > > init");
> > > > > >             ClassLoader classLoader =
> > > > > > service.getClassLoader();
> > > > > >             ClassPathXmlApplicationContext
> > > appCtx
> > > > > =
> > > > > > new
> > > > > >            
> > ClassPathXmlApplicationContext(new
> > > > > > String[] {"
> > > > > > applicationContext.xml"}, false);
> > > > > >
> > > > > appCtx.setClassLoader(classLoader);
> > > > > >                 appCtx.refresh();
> > > > > >             System.out.println("spring
> > > loaded");
> > > > > >         } catch (Exception ex) {
> > > > > >             ex.printStackTrace();
> > > > > >         }
> > > > > >     }
> > > > > >
> > > > > > If you are still getting the appCtx
> > > overwritten
> > > > > with
> > > > > > that code in both
> > > > > > AAR's, let us know and we'll take a look
> at
> > > it.
> > > > > >
> > > > > > Robert
> > > > > >
> > > > > > On 11/22/06, Matthew Hannay
> > > > > > <ma...@yahoo.com.au> wrote:
> > > > > > >
> > > > > > >
> > > > > > > I am just getting back to this after a
> few
> > > days
> > > > > > ....
> > > > > > >
> > > > > > >
> > > > > > > > Are you looking at the latest docs ?
> 
=== message truncated ===




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

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


Re: axis to spring

Posted by Matthew Hannay <ma...@yahoo.com.au>.
I also removed the unwanted jars from the
axis2\webinf\lib

Matt

--- Matthew Hannay <ma...@yahoo.com.au> wrote:

> robert,
> 
> Thanks for your example, however the spring config
> for
> the second deployed been over writes the first.
> 
> It works as your beans are the same name.
> My beand definitions for each aar are different!!
> 
> What I did -
> 1. fresh tomcat 5.5.20
> 2. droped the axis2 1.1 war into the web apps
> directory
> 3. built spa1 and spa2 and put them in the services
> 4. startup tomcat.
> 
> If you deploy both aars, spa1 and spa2, run your
> 'ant
> rc' for spa1 you get 
> 
> ---------------------------------------------------
> [java] Response: <example1:string
> xmlns:tns="http://spring" xmlns:example1=
> http://springExample.org/example1">Spring, AAR
> #2</example1:string> 
> ---------------------------------------------------
> 
> If I only deploy spa1 I get:
> ----------------------------------------------------
> [java] Response: <example1:string
> xmlns:tns="http://spring" xmlns:example1=
> http://springExample.org/example1">Spring, AAR
> #1</example1:string>
> 
> 
> Note the over written injected value!!
> 
> Matt
> 
> 
> --- robert lazarski <ro...@gmail.com>
> wrote:
> 
> > I just gave axis2 std-bin 1.1 a run with 2 aar's
> > having the same spring
> > beans supplied with different messages, and it
> works
> > for me. You can
> > download both env's with just the name of the
> > services changed, names of the
> > aar's changed etc, different messages injected to
> > the spring beans etc here
> > to test if you'd like:
> > 
> >
>
http://www.braziloutsource.com/random/axis2_spring_2_aar.zip
> > 
> > Just cd to each dir and run 'ant rc' to execute
> the
> > client after installing
> > the aar files - tomcat 5.5 in my case. Also, as
> > explained in the docs remove
> > _all_ spring files from the war WEB-INF/lib -
> those
> > are primarily there for
> > the ServletContext / not inside the aar case.
> > Everything needed is inside
> > the aar's .
> > 
> > BTW, the axis2 service classloader should and
> > seemingly does in this case
> > have complete aar seperation, ie do a '
> >
>
ClassPathXmlApplicationContext.setClasspath(AxisService.getClassLoader())
> > and that should be enough. There were some
> > classloader issues during
> > the 1.1dev cycle but from what I see at this point
> > eveything is
> > working as
> > expected. If you still have problems please create
> a
> > jira and upload your
> > AAR files.
> > 
> > HTH,
> > Robert
> > 
> > On 11/27/06, Matthew Hannay
> > <ma...@yahoo.com.au> wrote:
> > >
> > > I have looked at the Spring code for the
> > >     ClassPathXmlApplicationContext
> > > and the java docs say:
> > >
> > > *
> > > * <p>Note: In case of multiple config locations,
> > > later bean definitions will
> > > * override ones defined in earlier loaded files.
> > This
> > > can be leveraged to
> > > * deliberately override certain bean definitions
> > via
> > > an extra XML file.
> > > *
> > >
> > > I'll work out what needs to be done to ensure
> that
> > > loaded contexts can be maintained and post my
> > > findings.
> > >
> > > Matt
> > >
> > >
> > > --- Matthew Hannay <ma...@yahoo.com.au>
> > wrote:
> > >
> > > > I sure am using the Axis2 Service classloader.
> > > >
> > > > It still over writes.
> > > >
> > > > Matt
> > > >
> > > > --- robert lazarski <ro...@gmail.com>
> > > > wrote:
> > > >
> > > > > Your startUp() code has to use the Axis2
> > Service
> > > > > classloader:
> > > > >
> > > > > public void startUp(ConfigurationContext
> > ignore,
> > > > > AxisService service) {
> > > > >
> > > > >         try {
> > > > >             System.out.println("Starting
> > spring
> > > > > init");
> > > > >             ClassLoader classLoader =
> > > > > service.getClassLoader();
> > > > >             ClassPathXmlApplicationContext
> > appCtx
> > > > =
> > > > > new
> > > > >            
> ClassPathXmlApplicationContext(new
> > > > > String[] {"
> > > > > applicationContext.xml"}, false);
> > > > >
> > > > appCtx.setClassLoader(classLoader);
> > > > >                 appCtx.refresh();
> > > > >             System.out.println("spring
> > loaded");
> > > > >         } catch (Exception ex) {
> > > > >             ex.printStackTrace();
> > > > >         }
> > > > >     }
> > > > >
> > > > > If you are still getting the appCtx
> > overwritten
> > > > with
> > > > > that code in both
> > > > > AAR's, let us know and we'll take a look at
> > it.
> > > > >
> > > > > Robert
> > > > >
> > > > > On 11/22/06, Matthew Hannay
> > > > > <ma...@yahoo.com.au> wrote:
> > > > > >
> > > > > >
> > > > > > I am just getting back to this after a few
> > days
> > > > > ....
> > > > > >
> > > > > >
> > > > > > > Are you looking at the latest docs ?
> > > > > > Yeah, I am using the latest docs. However
> > > > looking
> > > > > at
> > > > > > the new 1.1 doco I't makes things a lot
> > clearer.
> > > > > >
> > > > > > However I have worked out what my problem
> is
> > > > > > and this could potentially be an axis bug.
> > > > > >
> > > > > > I have 2 aars each configured to run the
> > spring
> > > > > init
> > > > > > on startup.
> > > > > >
> > > > > > what I am finding is the second deployed
> aar
> > > > over
> > > > > > writes the applicationContext of the
> first!!
> > > > > >
> > > > > > so when I hit the first service I get a no
> > > > spring
> > > > > bean
> > > > > > found error.
> 
=== message truncated ===




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

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


Re: axis to spring

Posted by Matthew Hannay <ma...@yahoo.com.au>.
robert,

Thanks for your example, however the spring config for
the second deployed been over writes the first.

It works as your beans are the same name.
My beand definitions for each aar are different!!

What I did -
1. fresh tomcat 5.5.20
2. droped the axis2 1.1 war into the web apps
directory
3. built spa1 and spa2 and put them in the services
4. startup tomcat.

If you deploy both aars, spa1 and spa2, run your 'ant
rc' for spa1 you get 

---------------------------------------------------
[java] Response: <example1:string
xmlns:tns="http://spring" xmlns:example1=
http://springExample.org/example1">Spring, AAR
#2</example1:string> 
---------------------------------------------------

If I only deploy spa1 I get:
----------------------------------------------------
[java] Response: <example1:string
xmlns:tns="http://spring" xmlns:example1=
http://springExample.org/example1">Spring, AAR
#1</example1:string>


Note the over written injected value!!

Matt


--- robert lazarski <ro...@gmail.com> wrote:

> I just gave axis2 std-bin 1.1 a run with 2 aar's
> having the same spring
> beans supplied with different messages, and it works
> for me. You can
> download both env's with just the name of the
> services changed, names of the
> aar's changed etc, different messages injected to
> the spring beans etc here
> to test if you'd like:
> 
>
http://www.braziloutsource.com/random/axis2_spring_2_aar.zip
> 
> Just cd to each dir and run 'ant rc' to execute the
> client after installing
> the aar files - tomcat 5.5 in my case. Also, as
> explained in the docs remove
> _all_ spring files from the war WEB-INF/lib - those
> are primarily there for
> the ServletContext / not inside the aar case.
> Everything needed is inside
> the aar's .
> 
> BTW, the axis2 service classloader should and
> seemingly does in this case
> have complete aar seperation, ie do a '
>
ClassPathXmlApplicationContext.setClasspath(AxisService.getClassLoader())
> and that should be enough. There were some
> classloader issues during
> the 1.1dev cycle but from what I see at this point
> eveything is
> working as
> expected. If you still have problems please create a
> jira and upload your
> AAR files.
> 
> HTH,
> Robert
> 
> On 11/27/06, Matthew Hannay
> <ma...@yahoo.com.au> wrote:
> >
> > I have looked at the Spring code for the
> >     ClassPathXmlApplicationContext
> > and the java docs say:
> >
> > *
> > * <p>Note: In case of multiple config locations,
> > later bean definitions will
> > * override ones defined in earlier loaded files.
> This
> > can be leveraged to
> > * deliberately override certain bean definitions
> via
> > an extra XML file.
> > *
> >
> > I'll work out what needs to be done to ensure that
> > loaded contexts can be maintained and post my
> > findings.
> >
> > Matt
> >
> >
> > --- Matthew Hannay <ma...@yahoo.com.au>
> wrote:
> >
> > > I sure am using the Axis2 Service classloader.
> > >
> > > It still over writes.
> > >
> > > Matt
> > >
> > > --- robert lazarski <ro...@gmail.com>
> > > wrote:
> > >
> > > > Your startUp() code has to use the Axis2
> Service
> > > > classloader:
> > > >
> > > > public void startUp(ConfigurationContext
> ignore,
> > > > AxisService service) {
> > > >
> > > >         try {
> > > >             System.out.println("Starting
> spring
> > > > init");
> > > >             ClassLoader classLoader =
> > > > service.getClassLoader();
> > > >             ClassPathXmlApplicationContext
> appCtx
> > > =
> > > > new
> > > >             ClassPathXmlApplicationContext(new
> > > > String[] {"
> > > > applicationContext.xml"}, false);
> > > >
> > > appCtx.setClassLoader(classLoader);
> > > >                 appCtx.refresh();
> > > >             System.out.println("spring
> loaded");
> > > >         } catch (Exception ex) {
> > > >             ex.printStackTrace();
> > > >         }
> > > >     }
> > > >
> > > > If you are still getting the appCtx
> overwritten
> > > with
> > > > that code in both
> > > > AAR's, let us know and we'll take a look at
> it.
> > > >
> > > > Robert
> > > >
> > > > On 11/22/06, Matthew Hannay
> > > > <ma...@yahoo.com.au> wrote:
> > > > >
> > > > >
> > > > > I am just getting back to this after a few
> days
> > > > ....
> > > > >
> > > > >
> > > > > > Are you looking at the latest docs ?
> > > > > Yeah, I am using the latest docs. However
> > > looking
> > > > at
> > > > > the new 1.1 doco I't makes things a lot
> clearer.
> > > > >
> > > > > However I have worked out what my problem is
> > > > > and this could potentially be an axis bug.
> > > > >
> > > > > I have 2 aars each configured to run the
> spring
> > > > init
> > > > > on startup.
> > > > >
> > > > > what I am finding is the second deployed aar
> > > over
> > > > > writes the applicationContext of the first!!
> > > > >
> > > > > so when I hit the first service I get a no
> > > spring
> > > > bean
> > > > > found error.
> > > > >
> > > > > The aar deployed second works fine and if I
> only
> > > > depoy
> > > > > the first aar it works fine too.
> > > > >
> > > > > To me it looks like the second aar blows
> away
> > > the
> > > > > first
> > > > > aar's environment? I have not fished through
> the
> > > > code
> > > > > to verify this yet.
> > > > >
> > > > > Does any one have any insight? Should I
> raise
> > > this
> > > > as
> > > > > a JIRA?
> > > > >
> > > > > Matt
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --- robert lazarski
> <ro...@gmail.com>
> > > > wrote:
> > > > >
> > > > > > Are you looking at the latest docs ?
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> >
>
http://svn.apache.org/repos/asf/webservices/axis2/branches/java/1_1/xdocs/1_1/spring.html
> > > > > >
> > > > > > Give me an idea of what's lacking and I'll
> try
> > > > and
> > > > > > get it in for the
> > > > > > imminent 1.1 release.
> > > > > >
> > > > > > Robert
> > > > > >
> > > > > > On 11/13/06, Matthew Hannay
> 
=== message truncated ===




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

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


Re: axis to spring

Posted by robert lazarski <ro...@gmail.com>.
I just gave axis2 std-bin 1.1 a run with 2 aar's having the same spring
beans supplied with different messages, and it works for me. You can
download both env's with just the name of the services changed, names of the
aar's changed etc, different messages injected to the spring beans etc here
to test if you'd like:

http://www.braziloutsource.com/random/axis2_spring_2_aar.zip

Just cd to each dir and run 'ant rc' to execute the client after installing
the aar files - tomcat 5.5 in my case. Also, as explained in the docs remove
_all_ spring files from the war WEB-INF/lib - those are primarily there for
the ServletContext / not inside the aar case. Everything needed is inside
the aar's .

BTW, the axis2 service classloader should and seemingly does in this case
have complete aar seperation, ie do a '
ClassPathXmlApplicationContext.setClasspath(AxisService.getClassLoader())
and that should be enough. There were some classloader issues during
the 1.1dev cycle but from what I see at this point eveything is
working as
expected. If you still have problems please create a jira and upload your
AAR files.

HTH,
Robert

On 11/27/06, Matthew Hannay <ma...@yahoo.com.au> wrote:
>
> I have looked at the Spring code for the
>     ClassPathXmlApplicationContext
> and the java docs say:
>
> *
> * <p>Note: In case of multiple config locations,
> later bean definitions will
> * override ones defined in earlier loaded files. This
> can be leveraged to
> * deliberately override certain bean definitions via
> an extra XML file.
> *
>
> I'll work out what needs to be done to ensure that
> loaded contexts can be maintained and post my
> findings.
>
> Matt
>
>
> --- Matthew Hannay <ma...@yahoo.com.au> wrote:
>
> > I sure am using the Axis2 Service classloader.
> >
> > It still over writes.
> >
> > Matt
> >
> > --- robert lazarski <ro...@gmail.com>
> > wrote:
> >
> > > Your startUp() code has to use the Axis2 Service
> > > classloader:
> > >
> > > public void startUp(ConfigurationContext ignore,
> > > AxisService service) {
> > >
> > >         try {
> > >             System.out.println("Starting spring
> > > init");
> > >             ClassLoader classLoader =
> > > service.getClassLoader();
> > >             ClassPathXmlApplicationContext appCtx
> > =
> > > new
> > >             ClassPathXmlApplicationContext(new
> > > String[] {"
> > > applicationContext.xml"}, false);
> > >
> > appCtx.setClassLoader(classLoader);
> > >                 appCtx.refresh();
> > >             System.out.println("spring loaded");
> > >         } catch (Exception ex) {
> > >             ex.printStackTrace();
> > >         }
> > >     }
> > >
> > > If you are still getting the appCtx overwritten
> > with
> > > that code in both
> > > AAR's, let us know and we'll take a look at it.
> > >
> > > Robert
> > >
> > > On 11/22/06, Matthew Hannay
> > > <ma...@yahoo.com.au> wrote:
> > > >
> > > >
> > > > I am just getting back to this after a few days
> > > ....
> > > >
> > > >
> > > > > Are you looking at the latest docs ?
> > > > Yeah, I am using the latest docs. However
> > looking
> > > at
> > > > the new 1.1 doco I't makes things a lot clearer.
> > > >
> > > > However I have worked out what my problem is
> > > > and this could potentially be an axis bug.
> > > >
> > > > I have 2 aars each configured to run the spring
> > > init
> > > > on startup.
> > > >
> > > > what I am finding is the second deployed aar
> > over
> > > > writes the applicationContext of the first!!
> > > >
> > > > so when I hit the first service I get a no
> > spring
> > > bean
> > > > found error.
> > > >
> > > > The aar deployed second works fine and if I only
> > > depoy
> > > > the first aar it works fine too.
> > > >
> > > > To me it looks like the second aar blows away
> > the
> > > > first
> > > > aar's environment? I have not fished through the
> > > code
> > > > to verify this yet.
> > > >
> > > > Does any one have any insight? Should I raise
> > this
> > > as
> > > > a JIRA?
> > > >
> > > > Matt
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --- robert lazarski <ro...@gmail.com>
> > > wrote:
> > > >
> > > > > Are you looking at the latest docs ?
> > > > >
> > > > >
> > > >
> > > >
> > >
> >
>
> http://svn.apache.org/repos/asf/webservices/axis2/branches/java/1_1/xdocs/1_1/spring.html
> > > > >
> > > > > Give me an idea of what's lacking and I'll try
> > > and
> > > > > get it in for the
> > > > > imminent 1.1 release.
> > > > >
> > > > > Robert
> > > > >
> > > > > On 11/13/06, Matthew Hannay
> > > > > <ma...@yahoo.com.au> wrote:
> > > > > >
> > > > > >
> > > > > > Can somthing be done to make the
> > documentation
> > > a
> > > > > > little more specific?
> > > > > >
> > > > > >
> > > > > >
> > > > > > Matt
> > > > > >
> > > > > > --- robert lazarski
> > <ro...@gmail.com>
> > > > > wrote:
> > > > > >
> > > > > > > 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
> > > > > > > <ma...@yahoo.com.au> 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
> > > > > > > >
> >
> === message truncated ===
>
>
>
>
> Send instant messages to your online friends http://au.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: axis to spring

Posted by Matthew Hannay <ma...@yahoo.com.au>.
I have looked at the Spring code for the 
    ClassPathXmlApplicationContext 
and the java docs say:

*
 * <p>Note: In case of multiple config locations,
later bean definitions will
 * override ones defined in earlier loaded files. This
can be leveraged to
 * deliberately override certain bean definitions via
an extra XML file.
 *

I'll work out what needs to be done to ensure that
loaded contexts can be maintained and post my
findings.

Matt


--- Matthew Hannay <ma...@yahoo.com.au> wrote:

> I sure am using the Axis2 Service classloader.
> 
> It still over writes.
> 
> Matt
> 
> --- robert lazarski <ro...@gmail.com>
> wrote:
> 
> > Your startUp() code has to use the Axis2 Service
> > classloader:
> > 
> > public void startUp(ConfigurationContext ignore,
> > AxisService service) {
> > 
> >         try {
> >             System.out.println("Starting spring
> > init");
> >             ClassLoader classLoader =
> > service.getClassLoader();
> >             ClassPathXmlApplicationContext appCtx
> =
> > new
> >             ClassPathXmlApplicationContext(new
> > String[] {"
> > applicationContext.xml"}, false);
> >                
> appCtx.setClassLoader(classLoader);
> >                 appCtx.refresh();
> >             System.out.println("spring loaded");
> >         } catch (Exception ex) {
> >             ex.printStackTrace();
> >         }
> >     }
> > 
> > If you are still getting the appCtx overwritten
> with
> > that code in both
> > AAR's, let us know and we'll take a look at it.
> > 
> > Robert
> > 
> > On 11/22/06, Matthew Hannay
> > <ma...@yahoo.com.au> wrote:
> > >
> > >
> > > I am just getting back to this after a few days
> > ....
> > >
> > >
> > > > Are you looking at the latest docs ?
> > > Yeah, I am using the latest docs. However
> looking
> > at
> > > the new 1.1 doco I't makes things a lot clearer.
> > >
> > > However I have worked out what my problem is
> > > and this could potentially be an axis bug.
> > >
> > > I have 2 aars each configured to run the spring
> > init
> > > on startup.
> > >
> > > what I am finding is the second deployed aar
> over
> > > writes the applicationContext of the first!!
> > >
> > > so when I hit the first service I get a no
> spring
> > bean
> > > found error.
> > >
> > > The aar deployed second works fine and if I only
> > depoy
> > > the first aar it works fine too.
> > >
> > > To me it looks like the second aar blows away
> the
> > > first
> > > aar's environment? I have not fished through the
> > code
> > > to verify this yet.
> > >
> > > Does any one have any insight? Should I raise
> this
> > as
> > > a JIRA?
> > >
> > > Matt
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --- robert lazarski <ro...@gmail.com>
> > wrote:
> > >
> > > > Are you looking at the latest docs ?
> > > >
> > > >
> > >
> > >
> >
>
http://svn.apache.org/repos/asf/webservices/axis2/branches/java/1_1/xdocs/1_1/spring.html
> > > >
> > > > Give me an idea of what's lacking and I'll try
> > and
> > > > get it in for the
> > > > imminent 1.1 release.
> > > >
> > > > Robert
> > > >
> > > > On 11/13/06, Matthew Hannay
> > > > <ma...@yahoo.com.au> wrote:
> > > > >
> > > > >
> > > > > Can somthing be done to make the
> documentation
> > a
> > > > > little more specific?
> > > > >
> > > > >
> > > > >
> > > > > Matt
> > > > >
> > > > > --- robert lazarski
> <ro...@gmail.com>
> > > > wrote:
> > > > >
> > > > > > 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
> > > > > > <ma...@yahoo.com.au> 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
> > > > > > >
> 
=== message truncated ===




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

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


Re: axis to spring

Posted by Matthew Hannay <ma...@yahoo.com.au>.
I sure am using the Axis2 Service classloader.

It still over writes.

Matt

--- robert lazarski <ro...@gmail.com> wrote:

> Your startUp() code has to use the Axis2 Service
> classloader:
> 
> public void startUp(ConfigurationContext ignore,
> AxisService service) {
> 
>         try {
>             System.out.println("Starting spring
> init");
>             ClassLoader classLoader =
> service.getClassLoader();
>             ClassPathXmlApplicationContext appCtx =
> new
>             ClassPathXmlApplicationContext(new
> String[] {"
> applicationContext.xml"}, false);
>                 appCtx.setClassLoader(classLoader);
>                 appCtx.refresh();
>             System.out.println("spring loaded");
>         } catch (Exception ex) {
>             ex.printStackTrace();
>         }
>     }
> 
> If you are still getting the appCtx overwritten with
> that code in both
> AAR's, let us know and we'll take a look at it.
> 
> Robert
> 
> On 11/22/06, Matthew Hannay
> <ma...@yahoo.com.au> wrote:
> >
> >
> > I am just getting back to this after a few days
> ....
> >
> >
> > > Are you looking at the latest docs ?
> > Yeah, I am using the latest docs. However looking
> at
> > the new 1.1 doco I't makes things a lot clearer.
> >
> > However I have worked out what my problem is
> > and this could potentially be an axis bug.
> >
> > I have 2 aars each configured to run the spring
> init
> > on startup.
> >
> > what I am finding is the second deployed aar over
> > writes the applicationContext of the first!!
> >
> > so when I hit the first service I get a no spring
> bean
> > found error.
> >
> > The aar deployed second works fine and if I only
> depoy
> > the first aar it works fine too.
> >
> > To me it looks like the second aar blows away the
> > first
> > aar's environment? I have not fished through the
> code
> > to verify this yet.
> >
> > Does any one have any insight? Should I raise this
> as
> > a JIRA?
> >
> > Matt
> >
> >
> >
> >
> >
> >
> >
> >
> > --- robert lazarski <ro...@gmail.com>
> wrote:
> >
> > > Are you looking at the latest docs ?
> > >
> > >
> >
> >
>
http://svn.apache.org/repos/asf/webservices/axis2/branches/java/1_1/xdocs/1_1/spring.html
> > >
> > > Give me an idea of what's lacking and I'll try
> and
> > > get it in for the
> > > imminent 1.1 release.
> > >
> > > Robert
> > >
> > > On 11/13/06, Matthew Hannay
> > > <ma...@yahoo.com.au> wrote:
> > > >
> > > >
> > > > Can somthing be done to make the documentation
> a
> > > > little more specific?
> > > >
> > > >
> > > >
> > > > Matt
> > > >
> > > > --- robert lazarski <ro...@gmail.com>
> > > wrote:
> > > >
> > > > > 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
> > > > > <ma...@yahoo.com.au> 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
> <ro...@gmail.com>
> > > > > 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
> > > > > > >
> 
=== message truncated ===




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

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


Re: axis to spring

Posted by robert lazarski <ro...@gmail.com>.
Your startUp() code has to use the Axis2 Service classloader:

public void startUp(ConfigurationContext ignore, AxisService service) {

        try {
            System.out.println("Starting spring init");
            ClassLoader classLoader = service.getClassLoader();
            ClassPathXmlApplicationContext appCtx = new
            ClassPathXmlApplicationContext(new String[] {"
applicationContext.xml"}, false);
                appCtx.setClassLoader(classLoader);
                appCtx.refresh();
            System.out.println("spring loaded");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

If you are still getting the appCtx overwritten with that code in both
AAR's, let us know and we'll take a look at it.

Robert

On 11/22/06, Matthew Hannay <ma...@yahoo.com.au> wrote:
>
>
> I am just getting back to this after a few days ....
>
>
> > Are you looking at the latest docs ?
> Yeah, I am using the latest docs. However looking at
> the new 1.1 doco I't makes things a lot clearer.
>
> However I have worked out what my problem is
> and this could potentially be an axis bug.
>
> I have 2 aars each configured to run the spring init
> on startup.
>
> what I am finding is the second deployed aar over
> writes the applicationContext of the first!!
>
> so when I hit the first service I get a no spring bean
> found error.
>
> The aar deployed second works fine and if I only depoy
> the first aar it works fine too.
>
> To me it looks like the second aar blows away the
> first
> aar's environment? I have not fished through the code
> to verify this yet.
>
> Does any one have any insight? Should I raise this as
> a JIRA?
>
> Matt
>
>
>
>
>
>
>
>
> --- robert lazarski <ro...@gmail.com> wrote:
>
> > Are you looking at the latest docs ?
> >
> >
>
> http://svn.apache.org/repos/asf/webservices/axis2/branches/java/1_1/xdocs/1_1/spring.html
> >
> > Give me an idea of what's lacking and I'll try and
> > get it in for the
> > imminent 1.1 release.
> >
> > Robert
> >
> > On 11/13/06, Matthew Hannay
> > <ma...@yahoo.com.au> wrote:
> > >
> > >
> > > Can somthing be done to make the documentation a
> > > little more specific?
> > >
> > >
> > >
> > > Matt
> > >
> > > --- robert lazarski <ro...@gmail.com>
> > wrote:
> > >
> > > > 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
> > > > <ma...@yahoo.com.au> 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 <ro...@gmail.com>
> > > > 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
> > > > > > <ma...@yahoo.com.au> 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:
> > > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > > For additional commands, e-mail:
> > > > > > axis-user-help@ws.apache.org
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Send instant messages to your online friends
> > > > http://au.messenger.yahoo.com
> > > > >
> > > > >
> >
> === message truncated ===
>
>
>
>
>
> Send instant messages to your online friends http://au.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: axis to spring

Posted by Matthew Hannay <ma...@yahoo.com.au>.
I am just getting back to this after a few days ....


> Are you looking at the latest docs ?
Yeah, I am using the latest docs. However looking at
the new 1.1 doco I't makes things a lot clearer.

However I have worked out what my problem is
and this could potentially be an axis bug.

I have 2 aars each configured to run the spring init 
on startup.

what I am finding is the second deployed aar over 
writes the applicationContext of the first!!

so when I hit the first service I get a no spring bean
found error.

The aar deployed second works fine and if I only depoy
the first aar it works fine too.

To me it looks like the second aar blows away the
first
aar's environment? I have not fished through the code
to verify this yet.

Does any one have any insight? Should I raise this as
a JIRA?

Matt

 






--- robert lazarski <ro...@gmail.com> wrote:

> Are you looking at the latest docs ?
> 
>
http://svn.apache.org/repos/asf/webservices/axis2/branches/java/1_1/xdocs/1_1/spring.html
> 
> Give me an idea of what's lacking and I'll try and
> get it in for the
> imminent 1.1 release.
> 
> Robert
> 
> On 11/13/06, Matthew Hannay
> <ma...@yahoo.com.au> wrote:
> >
> >
> > Can somthing be done to make the documentation a
> > little more specific?
> >
> >
> >
> > Matt
> >
> > --- robert lazarski <ro...@gmail.com>
> wrote:
> >
> > > 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
> > > <ma...@yahoo.com.au> 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 <ro...@gmail.com>
> > > 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
> > > > > <ma...@yahoo.com.au> 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:
> > > > > axis-user-unsubscribe@ws.apache.org
> > > > > > For additional commands, e-mail:
> > > > > axis-user-help@ws.apache.org
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > > Send instant messages to your online friends
> > > http://au.messenger.yahoo.com
> > > >
> > > >
> 
=== message truncated ===





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

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


Re: axis to spring

Posted by robert lazarski <ro...@gmail.com>.
Are you looking at the latest docs ?

http://svn.apache.org/repos/asf/webservices/axis2/branches/java/1_1/xdocs/1_1/spring.html

Give me an idea of what's lacking and I'll try and get it in for the
imminent 1.1 release.

Robert

On 11/13/06, Matthew Hannay <ma...@yahoo.com.au> wrote:
>
>
> Can somthing be done to make the documentation a
> little more specific?
>
>
>
> Matt
>
> --- robert lazarski <ro...@gmail.com> wrote:
>
> > 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
> > <ma...@yahoo.com.au> 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 <ro...@gmail.com>
> > 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
> > > > <ma...@yahoo.com.au> 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:
> > > > axis-user-unsubscribe@ws.apache.org
> > > > > For additional commands, e-mail:
> > > > axis-user-help@ws.apache.org
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > >
> > > Send instant messages to your online friends
> > http://au.messenger.yahoo.com
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail:
> > axis-user-help@ws.apache.org
> > >
> > >
> >
>
>
>
>
> Send instant messages to your online friends http://au.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: axis to spring

Posted by Matthew Hannay <ma...@yahoo.com.au>.
Can somthing be done to make the documentation a
little more specific?



Matt

--- robert lazarski <ro...@gmail.com> wrote:

> 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
> <ma...@yahoo.com.au> 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 <ro...@gmail.com>
> 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
> > > <ma...@yahoo.com.au> 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:
> > > axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail:
> > > axis-user-help@ws.apache.org
> > > >
> > > >
> > >
> >
> >
> >
> >
> > Send instant messages to your online friends
> http://au.messenger.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail:
> axis-user-help@ws.apache.org
> >
> >
> 




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

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


Re: axis to spring

Posted by robert lazarski <ro...@gmail.com>.
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 <ma...@yahoo.com.au> 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 <ro...@gmail.com> 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
> > <ma...@yahoo.com.au> 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:
> > axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail:
> > axis-user-help@ws.apache.org
> > >
> > >
> >
>
>
>
>
> Send instant messages to your online friends http://au.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: axis to spring

Posted by Matthew Hannay <ma...@yahoo.com.au>.
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 <ro...@gmail.com> 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
> <ma...@yahoo.com.au> 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:
> axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail:
> axis-user-help@ws.apache.org
> >
> >
> 




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

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


Re: axis to spring

Posted by robert lazarski <ro...@gmail.com>.
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 <ma...@yahoo.com.au> 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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>