Results 1 to 3 of 3

Thread: Problem extending menu on Spring batch admin

  1. #1
    Join Date
    May 2011
    Posts
    1

    Default Problem extending menu on Spring batch admin

    Hi,
    I'm trying to add a new menu to the existing menu , according to the instruction in this link : http://static.springsource.org/sprin...ce/design.html
    I need to override on : META-INF/spring/batch/servlet/override/*.xml
    Here the content of my xml :
    Code:
    	<bean id="fabricationMenu" class="org.springframework.batch.admin.web.resources.BaseMenu">
    		<property name="url" value="/fabricationJob.html"/>
    		<property name="label" value="Fabrication Job" />
    	</bean>
    but I got exception like couldn't instantiate this bean :
    Code:
    Caused by: java.lang.NoSuchMethodException: org.springframework.batch.admin.web.resources.BaseMenu.<init>()
    	at java.lang.Class.getConstructor0(Class.java:2706)
    	at eption: org.springframework.batch.admin.web.resources.BaseMenu.<init>()
    	at java.lang.Class.getConstructor0(Class.java:2706)
    	at java.lang.Class.getDeclaredConstructor(Class.java:1985)
    	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
    Anybody can shine me a light ?
    Thanks alot before

  2. #2
    Join Date
    Jun 2005
    Posts
    4,232

    Default

    The stack trace is telling you that BaseMenu does not have a default constructor. Maybe you just need to look at the source code and figure out which <constructor-arg/> elements you need to add?

  3. #3
    Join Date
    Jun 2011
    Posts
    6

    Default

    Hi,

    You can find a tutorial and the source code. It explains how to add a menu item into spring batch admin:

    http://alain-cieslik.com/2011/07/04/...g-batch-admin/

    Alain

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •