Below is the pom.xml of my spring batch project and I get the below exception if I deploy in jboss 5 , but the same war works fine if I deploy in local windows machine.
Which version of spring jars have you packaged as part of the war? Does it have 2.5.6? Does your war referring it @ run time from anywhere else?
I can see the below ways to identify the root cause, 1. Start the server in remote debug mode. 2. If not, may be try out jboss scoped class loading,
Create jboss-web.xml under WEB-INF,
<jboss-web>
<class-loading java2ClassLoadingCompliance="false">
<loader-repository>
com.example:archive=<<webarchive name>>
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
</loader-repository>
</class-loading>
<jboss-web>
Replace it with <> your web archive file name.
See, if this helps...
You are mixing Spring 3.1.1 with Spring 2.5.6. Add explicit dependencies or dependency management entries for those Spring dependencies that are still on 2.5.6 to upgrade them to 3.1.1 or downgrade your project.