Announcement Announcement Module
Collapse
No announcement yet.
Problem extending menu on Spring batch admin Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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?

    Comment


    • #3
      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

      Comment

      Working...
      X