Thanks,
I made a huge progress but stuck up with the following error: [I have already installed jar files 'com.springsource.com.thoughtworks.xstream-1.3.1.jar' , com.springsource.org.codehaus.jettison-1.0.1.jar in Spring DM Server]
Code:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobRepository': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/codehaus/jettison/mapped/Configuration
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1401)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 116 common frames omitted
Caused by: java.lang.NoClassDefFoundError: org/codehaus/jettison/mapped/Configuration
at com.thoughtworks.xstream.io.json.JettisonMappedXmlDriver.<init>(JettisonMappedXmlDriver.java:48)
at org.springframework.batch.core.repository.dao.XStreamExecutionContextStringSerializer.init(XStreamExecutionContextStringSerializer.java:65)
at org.springframework.batch.core.repository.dao.XStreamExecutionContextStringSerializer.afterPropertiesSet(XStreamExecutionContextStringSerializer.java:60)
at org.springframework.batch.core.repository.dao.JdbcExecutionContextDao.afterPropertiesSet(JdbcExecutionContextDao.java:170)
at org.springframework.batch.core.repository.support.JobRepositoryFactoryBean.createExecutionContextDao(JobRepositoryFactoryBean.java:205)
at org.springframework.batch.core.repository.support.AbstractJobRepositoryFactoryBean.getTarget(AbstractJobRepositoryFactoryBean.java:162)
at org.springframework.batch.core.repository.support.AbstractJobRepositoryFactoryBean.initializeProxy(AbstractJobRepositoryFactoryBean.java:150)
at org.springframework.batch.core.repository.support.AbstractJobRepositoryFactoryBean.afterPropertiesSet(AbstractJobRepositoryFactoryBean.java:157)
at org.springframework.batch.core.repository.support.JobRepositoryFactoryBean.afterPropertiesSet(JobRepositoryFactoryBean.java:156)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398)
... 123 common frames omitted
The following is my MANIFEST.MF
Code:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: MyJob Plug-in
Bundle-SymbolicName: MyJob
Bundle-Version: 1.0.0
Bundle-Activator: myjob.Activator
Import-Package: org.osgi.framework;version="1.3.0"
Import-Template:
org.springframework.*;version="3.0.0.RELEASE",
org.springframework.batch.*;version="2.1.0.RELEASE",
org.springframework.integration.*;version="2.0.0.M2",
javax.jms.*;version="1.1.0",
com.springsource.org.apache.commons.*;version="1.2.2.osgi",
com.springsource.org.hsqldb.*;version="1.8.0.10",
com.springsource.org.codehaus.jettison.*;version="1.0.1",
com.springsource.com.thoughtworks.xstream.*;version="1.3.1"
Import-Bundle:
org.springframework.integration;version="2.0.0.M2",
org.springframework.integration.adapter;version="2.0.0.M2",
org.springframework.integration.event;version="2.0.0.M2",
org.springframework.integration.file;version="2.0.0.M2",
org.springframework.batch.core;version="2.1.0.RELEASE",
org.springframework.batch.infrastructure;version="2.1.0.RELEASE",
org.springframework.aop;version="3.0.0.RELEASE",
com.springsource.org.apache.commons.dbcp;version="1.2.2.osgi",
com.springsource.org.hsqldb;version="1.8.0.10",
com.springsource.org.codehaus.jettison;version="1.0.1",
com.springsource.com.thoughtworks.xstream;version="1.3.1"
Import-Library:
org.springframework.spring;version="3.0.0.RELEASE"