Hi Abraham, Can you please raise a JIRA stating the namespace issue and the application context issue? I like to take it up and see what best can be done here.
On Fri, Aug 15, 2008 at 12:58 AM, Abraham Washington <[EMAIL PROTECTED]>wrote: > thanks for the info. appeciate it. i tried to reference the xsd locally, > but it's throwing a "no declaration can be found for sca:service" error. > > > > < > beans xmlns="http://www.springframework.org/schema/beans" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xmlns:sca="http://www.springframework.org/schema/sca" > > xsi:schemaLocation=" > > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd > > > http://www.springframework.org/schema/sca=C:\development\Organization-Service-Composite\src\main\resources\spring-sca.xsd<http://www.springframework.org/schema/sca=C:%5Cdevelopment%5COrganization-Service-Composite%5Csrc%5Cmain%5Cresources%5Cspring-sca.xsd> > " > > > > <sca:service name="OrganizationService" > > type="org.soa.services.OrganizationService" target= > "OrganizationServiceBean"/> > > > i'll keep trying..thx abe > > > ----- Original Message ---- > From: Mike Edwards <[EMAIL PROTECTED]> > To: [email protected] > Sent: Thursday, August 14, 2008 6:50:26 AM > Subject: Re: sca namespace in spring > > Abe, > > I wondered why your case was different to that of the Spring tests - the > spring-sca.xsd is present > in Tuscany at this location: > > > \java\sca\modules\implementation-spring\src\main\resources\org\springframework\sca\xml > > The file is also present in: > > tuscany-implementation-spring-1.4-SNAPSHOT.jar > > I'm sure that the Spring tests get the xsd from one of these. > > You're right in that the location > > http://www.springframework.org/schema/sca/spring-sca.xsd > > ...does not work. We shall have to fix the spec for this. > > You might try arranging to remove the current location definition and put > the xsd in some local > place that can be accessed when you run your application. > > > Yours, Mike. > > > > Abraham Washington wrote: > > hi all...no luck no matter which way i try. has anyone had any success > > getting the application context using spring has an implementation. not > > sure how I can get a bean if I can't get the application context. > > > > > > > > thx abe > > > > > > > > ----- Original Message ---- > > From: Abraham Washington <[EMAIL PROTECTED]> > > To: [email protected] > > Sent: Monday, August 11, 2008 12:24:12 PM > > Subject: Re: sca namespace in spring > > > > Running it in eclipse using scadomain. sca-1.3. spring 2.0.1. > > > > > > > > when i make the call to get the application context, it hurls. here's > > my beanRefFactory.xml > > > > > > > > <beans> > > > > <bean id="beanRefFactory" > > > > > class="org.springframework.context.support.ClassPathXmlApplicationContext"> > > > > <constructor-arg> > > > > <list> > > > > <value>Organization-spring-context.xml</value> > > > > </list> > > > > </constructor-arg> > > > > </bean> > > > > </beans> > > > > > > > > here's my call to get the applicationContext: > > > > > > org.springframework.context.ApplicationContext applicationContext = > > > > (org.springframework.context.ApplicationContext) > > > org.springframework.context.access.ContextSingletonBeanFactoryLocator./getInstance/("beanRefFactory.xml").useBeanFactory("beanRefFactory").getFactory(); > > > > > > > > > > thx abe > > -- Thanks & Regards, Ramkumar Ramalingam
