I'm still confused.
My POJO-based service resides in:
$CATALALINA_HOME/webapps/axis2/WEB-INF/services
I updated $CATALALINA_HOME/webapps/axis2/WEB-INF/web.xml
to add the listener and contextParm. Spring now complains that it
cannot find the bean for my service (com.x.x.x.x)
since it now lives under the services subdirectory.
Barry
On 9/12/2011 7:15 AM, Martin Gainty wrote:
Barry
$CATALALINA_HOME/webapps/WebAppName/WEB-INF/web.xml is correct
spring-config.xml should be located on classpath e.g. /WEB-INF/classes
Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig.
Diese Nachricht dient lediglich dem Austausch von Informationen und
entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten
Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den
Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est
interdite. Ce message sert à l'information seulement et n'aura pas n'importe
quel effet légalement obligatoire. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Sat, 10 Sep 2011 20:05:43 -0400
> From: bhath...@nycap.rr.com
> To: java-user@axis.apache.org
> Subject: Re: Spring property injection failing in Tomcat
>
> OK, I re-read the docs and I guess I was using SpringInit because it
was
> in the examples
> and it appears I really don't need it. So, looking at the docs, it says
> to put a listener
> and a context parm in web.xml. What web.xml does the docs refer to?
> Is it the web.xml associated with Axis2 or do I need an web.xml in my
> application?
> Normally in Axis2 a web service does not have a web.xml. If one is
> needed where does
> it go (/ or /WEB-INF/)?
> Thanks.
>
> Barry
>
> On 9/10/2011 4:49 PM, robert lazarski wrote:
> > On Sat, Sep 10, 2011 at 4:27 PM, Barry
Hathaway<bhath...@nycap.rr.com> wrote:
> >> After taking Robert's suggesting of RTFM rather than just
following the
> >> examples,
> >> I realized the my ServiceObjectSupplier in services.xml might be
incorrect.
> >> I changed it
> >> and nothing changed. I am still not able to have Spring grab my
> >> sadlServer.kbaseRoot
> >> parameter out of Tomcat's context.xml and inject it into my bean.
> >>
> >> My services.xml is:
> >>
> >> <serviceGroup>
> >> <service name="SadlServiceSpringInit"
> >> class="com.ge.research.sadl.sadlserver.axis.provider.SpringInit">
> > Its unusual to init Spring in an Axis2 service, most commonly that
> > would be done as in the docs, via web.xml.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
> For additional commands, e-mail: java-user-h...@axis.apache.org
>