Hello,

I'm facing a strange error with some tasks which involve web service
building. This is the error. 

java.lang.ClassCastException:
org.apache.xerces.parsers.XIncludeAwareParserConfiguration


The target which runs all sub targets is here: 

<target name="do.all">
        <antcall target="compile.service"/>
        <antcall target="generate.wsdl"/>
          <antcall target="generate.service"/>
         <antcall target="deploy.service"/> 
    </target>

The error occurs when the third sub target is started. If I run each target
alone or skip the last 2 targets everything runs
smoothly.  Generate wsdl target looks like this:

<target name="generate.wsdl" >
        <taskdef name="java2wsdl"
                 classname="org.apache.ws.java2wsdl.Java2WSDLTask"
                 classpathref="axis2.classpath"/>
        <java2wsdl className="${className}"
                   outputLocation="${build.dir}"
                   targetNamespace="${targetNamespace}"
                   schemaTargetNamespace="${targetNamespace}xsd">
            <classpath>
                <pathelement path="${axis2.classpath}"/>
                <pathelement location="${build.dir}/classes"/>
            </classpath>
        </java2wsdl>
    </target>

Any ideas what could be wrong?

Cheers,
Pete




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to