Note that there are some explanatory texts on larger screens.

plurals
  1. POSpring-Ibatis Deployement exception
    text
    copied!<p><strong>Exception:</strong> </p> <pre><code> Caused by: org.springframework.core.NestedIOException: Failed to parse config resource: ServletContext resource [/WEB-INF/SqlMapConfig.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: java.io.IOException: Could not find resource WEB-INF/ADCampaignDetailsSQLMap.xml </code></pre> <p><strong>SqlMapConfig.xml file:</strong></p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL MAP Config 2.0//EN" "http://www.ibatis.com/dtd/sql-map-config-2.dtd"&gt; &lt;sqlMapConfig&gt; &lt;settings useStatementNamespaces="true"/&gt; &lt;sqlMap resource="WEB-INF/ADCampaignDetailsSQLMap.xml"/&gt; &lt;/sqlMapConfig&gt; </code></pre> <p>ADCampaignDetailsSQLMap.xml is placed inside WEB-INF of my project folder</p> <p>And the Above exception is raised when i copied the war file to webapps folder ..</p> <p>Can any one give me solution for this?</p> <p>thanks in advance</p> <p><strong>Edit:</strong></p> <h2>build.xml</h2> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;project name="adblendservice" default="war" &gt; &lt;property environment="env" /&gt; &lt;property name="builddir" value="build/" /&gt; &lt;property name="srcdir" value="src/main/java/" /&gt; &lt;property name="deploydir" value="deploy/" /&gt; &lt;property name="wardir" value="src/main/webapp/" /&gt; &lt;property name="libdir" value="${wardir}/WEB-INF/lib/" /&gt; &lt;property file="build.properties" /&gt; &lt;path id="project-classpath" &gt; &lt;fileset dir="web/WEB-INF/lib" includes="*.jar" /&gt; &lt;fileset dir="${tomcat-home}/lib" includes="*.jar" /&gt; &lt;!-- &lt;fileset dir="${tomcat-home}/common/lib" includes="*.jar" /&gt; &lt;fileset dir="${tomcat-home}/server/lib" includes="*.jar" /&gt; --&gt; &lt;/path&gt; &lt;target name="clean" &gt; &lt;delete dir="${builddir}" failonerror="true" /&gt; &lt;echo message="Creating build directories" /&gt; &lt;/target&gt; &lt;target name="war" &gt; &lt;mkdir dir="${builddir}" /&gt; &lt;mkdir dir="${builddir}/adblendservice/WEB-INF/classes" /&gt; &lt;mkdir dir="${deploydir}" /&gt; &lt;path id="basepath" &gt; &lt;fileset dir="${wardir}/WEB-INF/lib" &gt; &lt;include name="**/*.jar" /&gt; &lt;/fileset&gt; &lt;/path&gt; &lt;javac destdir="${builddir}/adblendservice/WEB-INF/classes" includeantruntime="false" srcdir="${srcdir}" &gt; &lt;classpath refid="basepath" /&gt; &lt;/javac&gt; &lt;war update="update" warfile="${builddir}/adblendservice.war" webxml="${wardir}/WEB-INF/web.xml" &gt; &lt;classes dir="${builddir}/adblendservice/WEB-INF/classes" /&gt; &lt;fileset dir="${srcdir}" &gt; &lt;include name="**/*.xml" /&gt; &lt;/fileset&gt; &lt;lib dir="${wardir}/WEB-INF/lib" /&gt; &lt;fileset dir="${wardir}" &gt; &lt;include name="**/*.xml" /&gt; &lt;/fileset&gt; &lt;/war&gt; &lt;/target&gt; &lt;target name="deploy" depends="clean, war" &gt; &lt;copy file="${builddir}/adblendservice.war" todir="${deploydir}" &gt; &lt;/copy&gt; &lt;/target&gt; &lt;/project&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload