On Fri, Sep 9, 2011 at 6:36 PM, Barry Hathaway <bhath...@nycap.rr.com> wrote: > I'm running Axis2 in a Tomcat container and would like to have Spring inject > some > properties specified in Tomcat's context.xml file into one of my Spring > beans. > As such, I have: > > <beans> > <bean id="applicationContext" > > class="org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder" > /> > > <bean id="servletPropertyPlaceHolder" > class="org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer"> > <description> > Resolves placeholders via Tomcat's context file for web app > </description> > <property name="searchContextAttributes" value="true"/> > </bean> > > <bean id="sadlServiceProvider" > class="com.ge.research.sadl.sadlserver.axis.provider.SadlServiceProvider"> > <property name="kbaseRoot" value="${sadlServer.kbaseRoot}" /> > </bean> > </beans> > > This is failing. It is as if the ServletContextPropertyPlaceholderConfigurer > bean is never getting called > and is falling back to the standard PropertyPlaceholderConfigurer bean. (By > the way, if I add the variable > to the Tomcat JVM options via -DsadlServer.kbaseRoot=xxx then it does work). > > Any ideas? > Thanks. > > Barry Hathaway
I'm not sure what sadlServer.kbaseRoot is, must be a typo. But if that works for you, what's the problem? Are you using the axis2 spring guide? - R --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org