ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Neu" <peter....@gmx.net>
Subject Error with consecutive web service tasks
Date Mon, 20 Nov 2006 09:40:19 GMT
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message