Announcement Announcement Module
Collapse
No announcement yet.
problem with Spring (Batch) Template project Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • problem with Spring (Batch) Template project

    hello
    Im newbie of Spring Batch an Spring batch admin.
    By following instrucion found in Spring Batch admin reference manual, I started to build a sample Web application for batch administration.
    After dowloading the last STS I create a new project with new-> Other and then Spring->Spring Template Project
    The new project ( I called it "Batch-admin-console") appears in may Project explorer.
    I run it as Maven Install.

    As soon as I try to start it ( with run as-> run on server) on a tomcat 7.0 server, I get the first problem:
    The module.context.xml fail to run!
    the problem is that the schemas are not reachable due to a rule in the firewall of my company.
    After gooogling a lot, I see that somebody else, faced with the same problem, has simply changed the definition of the Schema definition from this version:
    Code:
    <beans xmlns="http://www.springframework.org/schema/beans" xmlns:aop="http://www.springframework.org/schema/aop"
    	xmlns:tx="http://www.springframework.org/schema/tx" xmlns:p="http://www.springframework.org/schema/p" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
    		http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.0.xsd
    		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
    		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd">
    to this version


    Code:
    <beans xmlns="http://www.springframework.org/schema/beans" xmlns:aop="http://www.springframework.org/schema/aop"
    	xmlns:tx="http://www.springframework.org/schema/tx" xmlns:p="http://www.springframework.org/schema/p" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
    		http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.1.xsd
    		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd">
    by doing this my simple sample application begins to run!
    my first question:
    Why the Spring Template Project build up a new application with an out-to-date schema definition?

    Now I want to try to upload the configuration following the chapter 2.5. Configuration Upload
    At this poin I should be able to access the file upload view by clicking the
    "Files" menu in the top navigation.
    ok but... where's the file menu?
    It seems the application has been built with an old version of Spring-batch admin....
    I get a look in the pom, I see that the Parent is spring-batch-admin-parent with version 1.0.0.M1....
    I try to manually download the Spring-Batch Zip files: the last version is 1.2.2 may it be this the problem?

    I try to change that in the pom but it seem it do not work with any other version
    My last question: What can I do?
Working...
X