Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8096823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:34:09+00:00 2026-06-05T21:34:09+00:00

I am using a custom MVC application that has dependencies on SPring Batch as

  • 0

I am using a custom MVC application that has dependencies on SPring Batch as described in their documentation, and assisted by this SO question Integrating Spring Batch Admin into an existing application.

The trouble now is that as the web-app starts to map various URLs to the appropriate controller the job-configurations step bombs out.

2012-06-04 10:17:54,966 INFO [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - <Mapped URL path [/resources/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'>
2012-06-04 10:17:55,512 INFO [org.springframework.ui.freemarker.SpringTemplateLoader] - <SpringTemplateLoader for FreeMarker: using resource loader [WebApplicationContext for namespace 'admin-servlet': startup date [Mon Jun 04 10:17:54 EDT 2012]; parent: Root WebApplicationContext] and template loader path [/WEB-INF/web/]>
2012-06-04 10:17:55,512 INFO [org.springframework.ui.freemarker.SpringTemplateLoader] - <SpringTemplateLoader for FreeMarker: using resource loader [WebApplicationContext for namespace 'admin-servlet': startup date [Mon Jun 04 10:17:54 EDT 2012]; parent: Root WebApplicationContext] and template loader path [classpath:/org/springframework/batch/admin/web/]>
2012-06-04 10:17:55,512 INFO [org.springframework.batch.admin.web.freemarker.HippyFreeMarkerConfigurer] - <ClassTemplateLoader for Spring macros added to FreeMarker configuration>
2012-06-04 10:17:55,528 INFO [org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping] - <Mapped URL path [/configuration] onto handler 'configurationHandler'>
2012-06-04 10:17:56,230 INFO [org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping] - <Mapped URL path [/job-configuration] onto handler '/job-configuration'>
...
2012-06-04 10:17:56,230 ERROR [org.springframework.web.servlet.DispatcherServlet] - <Context initialization failed>
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/job-configuration.json': Cannot resolve reference to bean 'job-configurations' while setting bean property 'requestChannel'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'job-configurations' is defined

Anyone encounter this? The app has a dependencies on a simple spring-batch jar that works fully in isolation, and i would expect it to pull any needed job beans from that artifact.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T21:34:10+00:00Added an answer on June 5, 2026 at 9:34 pm

    I raised this question up to some of my colleagues, and it seems to be what I would consider a flaw in the design of spring batch admin that goes against many typical Spring design patterns.

    The dependent spring batch admin jar “knows too much” about the context of the solution including the datasource. The problem with this is that in a decent web-app, the datasource may be dynamically determined at run time based on a number or environmental variables (environment, datacenter, app server) and is not as simple as Dave Syer’s (Mysql or HSQL) approach. I have read posts in spring forum where he stands by this however, bordering insults to the questionee..

    It is increasingly complicated if your batch job uses multiple datasources (i.e. source and destination DBs). And was not as simple as just loading a datasource in the webapp, because all the related beans were already wired with Dave’s HSQL driver DS, and related .sql files and init scripts.

    And this led to me to override essentially every datasource related bean from the batch admin jar, including jobrepository (expected), jobExplorer, jobService, and a few others with a distinct file in the META-INF/spring/batch/override directory. Each file leverages spring 3.1’s Profile namespace to load the proper datasource, and inject to all the required beans.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using custom model binder in ASP.NET MVC 2 that looks like this:
I'm using spring MVC, and I have a custom authentication/security system that I had
In an ASP.NET MVC application when using a custom Dependency Injection container (in this
I have just created a mid-sized web-application using Java, a custom MVC framework, javascript.
I work on an application that uses Spring MVC and Hibernate. I am implementing
I am working on an ASP.Net Mvc 3 application using FormsAuthentication with a custom
I'm having an application using MVC. It has a canvas and property grid. When
I have several controllers in a spring mvc application. They are regular beans that
I have written an ASP.NET MVC application that allows the user to specify their
I am rewriting urls in my ASP.net application (not mvc) using a custom module.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.