I am trying to generate war file od spring mvc project using apache ant in jenkins. Jenkins is generating war file and also auto deploying but problem is that this war file is not properly building. Here is my build.xml:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project name="myproject" default="war">
<path id="compile.classpath">
<fileset dir="WebContent/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="init">
<mkdir dir="build/classes"/>
<mkdir dir="dist" />
</target>
<target name="compile" depends="init" >
<javac destdir="build/classes" debug="true" srcdir="src">
<classpath refid="compile.classpath"/>
</javac>
</target>
<target name="war" depends="compile">
<war destfile="dist/myproject.war" webxml="WebContent/WEB-INF/web.xml">
<fileset dir="WebContent"/>
<lib dir="WebContent/WEB-INF/lib"/>
<classes dir="build/classes"/>
</war>
</target>
<target name="clean">
<delete dir="dist" />
<delete dir="build" />
</target>
</project>
and here I am getting after deploying on tomcat Kindly look at stack trace. :( here is my stack trace