Hi, Schema location should point to one of the locations from file META-INF/spring.schemas in servicemix-quartz component. You may open JAR with this component and check what location is correct. By default you may use: http://servicemix.apache.org/quartz/1.0/servicemix-quartz.xsd.
Best regards, Lukasz -----Original Message----- From: bhishek_80 [mailto:[email protected]] Sent: Tuesday, December 21, 2010 1:50 PM To: [email protected] Subject: Problem registering quartz service Hi pls help in Sorting out an interesting problem in quartz Our env: SMX4 we want to deploy the below quartz.xml file in servicemix ======== quartz.xml ================= <?xml version="1.0"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:quartz="http://servicemix.apache.org/quartz/1.0" xmlns:b="http://test.com/amh" xsi:schemaLocation=" http://www.springframework.org/schema/beans file:///d:/deploy/spring-beans.xsd http://servicemix.apache.org/quartz/1.0 file:///d:/deploy/servicemix-quartz.xsd"> <quartz:endpoint service="b:schedulerService" endpoint="endpoint" targetService="b:XXX"> <quartz:trigger> <quartz:simple repeatInterval="60000" startDelay="60000" /> </quartz:trigger> </quartz:endpoint> <bean class="org.apache.servicemix.common.osgi.EndpointExporter" /> </beans> ========================================== we've created this xml by trimming the quartz.xml file that comes by default with smx4 package. when we are placing it in the deploy directory with internet connection ON the quartz service "b:schedulerService" is registered successfully without any issue. Now we are creating our target environment by executing the following steps. 1. We are making the internet connection OFF. This is ABSOLUTELY REQUIRED. 2. Running servicemix with deploy directory absolutely empty 3. Placing the quartz.xml in the deploy directory of servicemix 4. We can see that our quartz service "b:schedulerService" is registered successfully 5. we stop servicemix 6. we start servicemix (now the deploy directory contains quartz.xml placed in step 3) 7. We are getting the following error in the servicemix.log ===================== ERROR LOG ========================== 18:15:49,345 | ERROR | ExtenderThread-1 | ContextLoaderListener | BundleApplicationContextListener 50 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=quartz.xml, config=osgibundle:/META-INF/spring/*.xml)) org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://servicemix.apache.org/quartz/1.0] Offending resource: URL [bundle://617.0:0/META-INF/spring/quartz.xml] at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(Fail FastProblemReporter.java:68) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext. java:85) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext. java:80) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(Bea nDefinitionParserDelegate.java:281) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCust omElement(BeanDefinitionParserDelegate.java:1294) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCust omElement(BeanDefinitionParserDelegate.java:1287) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.pa rseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.re gisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDe finitions(XmlBeanDefinitionReader.java:507) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefi nitions(XmlBeanDefinitionReader.java:398) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefini tions(XmlBeanDefinitionReader.java:342) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefini tions(XmlBeanDefinitionReader.java:310) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadB eanDefinitions(AbstractBeanDefinitionReader.java:143) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadB eanDefinitions(AbstractBeanDefinitionReader.java:178) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadB eanDefinitions(AbstractBeanDefinitionReader.java:149) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loa dBeanDefinitions(OsgiBundleXmlApplicationContext.java:176) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loa dBeanDefinitions(OsgiBundleXmlApplicationContext.java:142) at org.springframework.context.support.AbstractRefreshableApplicationContext.re freshBeanFactory(AbstractRefreshableApplicationContext.java:123) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBe anFactory(AbstractApplicationContext.java:422) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicati onContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicati onContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL (PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicati onContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247 ) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWa iterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextEx ecutor.java:222) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWa iterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExe cutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicati onContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2 .run(ContextLoaderListener.java:718) at java.lang.Thread.run(Thread.java:619) ========================================================== Any help/guide line is keenly appreciated. Let me know if you require any more input. -- View this message in context: http://servicemix.396122.n5.nabble.com/Problem-registering-quartz-service-tp 3313453p3313453.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
