Hello,
we want to start a webapplication with spring-mvc and having a spring-batch application at once.
Tomcat fails to start, it seems to be version conflict error.
The pom.xml contains the following dependencies:Code:rz 30, 2012 4:06:28 PM org.apache.catalina.startup.Catalina start Information: Server startup in 32 ms Mrz 30, 2012 4:06:38 PM org.apache.catalina.startup.HostConfig deployDescriptor Information: Deploying configuration descriptor \bla\tomcat\Unnamed_spike-springbatch\conf\Catalina\localhost\ROOT.xml 16:06:38,541 INFO pool-2-thread-1 DispatcherServlet:301 - FrameworkServlet 'Spring MVC Dispatcher Servlet': initialization started Mrz 30, 2012 4:06:38 PM org.apache.catalina.core.ApplicationContext log java.lang.NoSuchMethodError: org.springframework.web.context.ConfigurableWebApplicationContext.setId(Ljava/lang/String;)V at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:430) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
how can the problem be solved?Code:<!-- Spring --> <dependency> <groupId>org.springframework.batch</groupId> <artifactId>spring-batch-core</artifactId> <version>${spring.batch.version}</version> </dependency> <dependency> <groupId>org.springframework.batch</groupId> <artifactId>spring-batch-integration</artifactId> <version>1.2.1.RELEASE</version> </dependency> <dependency> <groupId>org.springframework.batch</groupId> <artifactId>spring-batch-infrastructure</artifactId> <version>${spring.batch.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${spring.framework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>${spring.framework.version}</version> </dependency> <!--<dependency>--> <!--<groupId>org.springframework.batch</groupId>--> <!--<artifactId>spring-batch-admin-resources</artifactId>--> <!--<version>1.2.1.RELEASE</version>--> <!--</dependency>--> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.18</version> </dependency> <!-- Servlet --> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> <version>2.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> <properties> <spring.batch.version>2.1.7.RELEASE</spring.batch.version> <spring.framework.version>3.0.5.RELEASE</spring.framework.version> <spring.integration.version>2.0.3.RELEASE</spring.integration.version> </properties>
cheers, kieran


Reply With Quote