Hi guys,

I've been trying to wire up the Batch Admin UI with my Grails app but so far have had limited success.

We have an Integration/Batch job running in our Grails app. I'd like to see the Batch Admin UI to look at the status and outcomes of the job as they run.

I've followed the steps outlined here: http://stackoverflow.com/questions/6...ng-application

When I go to \myapp\batch I get the Batch Admin homepage, but if I click on any of the other links like \jobs\, I get a 404 error and it looks like the Grails application is looking for it in \views\jobs\. Could I use the UrlMappings.groovy file in Grails to fix this, perhaps?

Below is my configuration, it'd be great if someone could let me know if there is anything wrong with it, or even if it is possible to use this UI in Grails. I'm using the 1.2.2 snapshot version of spring batch admin manager since I was already using spring integration 2.1.

Thanks,
Tony


web.xml (generated by the Grails command for install-templates)

Code:
<servlet>
        <servlet-name>Batch Servlet</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>classpath*:/org/springframework/batch/admin/web/resources/servlet-config.xml,classpath*:/org/springframework/batch/admin/web/resources/webapp-config.xml</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
	<servlet-name>Batch Servlet</servlet-name>
	<url-pattern>/batch/*</url-pattern>
</servlet-mapping>
applicationContext.xml

Code:
<bean id="resourceService" class="org.springframework.batch.admin.web.resources.DefaultResourceService">
	   <property name="servletPath" value="/batch" />
</bean>