tags:

views:

33

answers:

0

I am using Jboss and ant to compile my XSD's. But while running the and build script am getting the error msg like unable to parse the schema. Error message is provided.

In line

<property environment="env" /> 
 <property name="build.server" value="cluster"/> 
 <property name="xsd.build" value="${basedir}/build"/>
 <property name="gensrc" value="${basedir}/gensrc"/>
 <property name="xsd" value="${basedir}/xsd"/>
 <property name="dist" value="${basedir}/dist"/>
 <property name="docs" value="${basedir}/docs"/>
 <property name="packNm" value="com.gmaci.webapp.policyadmin.jaxb"/>
 <property name="packDir" value="com/gmaci/webapp/policyadmin/jaxb"/>
 <!--property name="lib" value="../../../lib"/-->

 <property name="gmacilib.dir" value="${env.JBOSS_HOME}/server/${build.server}/gmaci/lib"/>
 <property name="jbosslib.dir" value="${env.JBOSS_HOME}/lib" />
 <property name="endorsedlib.dir" value="${env.JBOSS_HOME}/lib/endorsed" />
 <property name="serverlib.dir" value="${env.JBOSS_HOME}/server/${build.server}/lib"/>
 <path id="classpath">
  <fileset dir="${gmacilib.dir}" includes="*.jar"/> 
  <fileset dir="${endorsedlib.dir}" includes="*.jar"/>
  <fileset dir="${jbosslib.dir}" includes="*.jar"/>
  <fileset dir="${serverlib.dir}" includes="*.jar"/>
  <fileset dir="${env.JWSDP_HOME}/jwsdp-shared/lib">
   <include name="namespace.jar"/>
   <include name="xsdlib.jar"/>
   <include name="relaxngDatatype.jar"/>
  </fileset>
  <pathelement location="build"/>
  <pathelement location="."/>
 </path>

 <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
  <classpath refid="classpath" />
 </taskdef>
    <tstamp>
        <format property="build.time" pattern="MM/dd/yyyy hh:mm aa"/>
    </tstamp>        
 <target name="init">
  <tstamp/>
  <mkdir dir="${xsd.build}/lib"/>
  <mkdir dir="${gensrc}"/>
  <mkdir dir="${dist}"/>
  <mkdir dir="${docs}"/>
 </target>

 <target name="compile" depends="clean,init">
  <echo message="Compiling the schema..."/>
****<xjc extension="true" schema="${xsd}/abc.xsd" target="${gensrc}" package="${packNm}"/>****