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(FailFastProblemReporter.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(BeanDefinitionParserDelegate.java:281) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1294) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:176) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:142) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.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-tp3313453p3313453.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
