Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Ant task WSDLValidate causes ClassCastException
Ant task WSDLValidate causes ClassCastException [message #104244] Mon, 16 May 2005 10:58 Go to next message
Eclipse UserFriend
Hi,

I am trying to validate a WSDL file (which is valid with XML Spy) with the
following Ant script :

<?xml version="1.0"?>
<project name="wsdlValidate" default="all" basedir=".">

<path id="validatewsdl.classpath">
<pathelement location="wsdlvalidateui.jar"/>
<pathelement location="wsdlvalidate.jar"/>
<pathelement location="jars\wsdl4j.jar"/>
<pathelement location="jars\qname.jar"/>
</path>
<taskdef name="WSDLValidate"
classname=" org.eclipse.wst.wsdl.validation.internal.ui.ant.WSDLValidate "
classpathref="validatewsdl.classpath"/>

<target name="all" description="Validates a WSDL file">
<WSDLValidate file="test.wsdl"/>
</target>
</project>

When I run the script, I get the following stack trace (shown with the Ant
debug option) :
E:\tmp\wsdlValidate\build.xml:14: java.lang.ClassCastException
at org.apache.tools.ant.Task.perform(Task.java:373)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214 )
at org.apache.tools.ant.Project.executeTargets(Project.java:106 2)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: java.lang.ClassCastException
at
org.eclipse.wst.wsdl.validation.internal.ui.ant.WSDLValidate .execute(WSDLValidate.java:261)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
... 8 more
--- Nested Exception ---
java.lang.ClassCastException
at
org.eclipse.wst.wsdl.validation.internal.ui.ant.WSDLValidate .execute(WSDLValidate.java:261)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214 )
at org.apache.tools.ant.Project.executeTargets(Project.java:106 2)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

Does anybody encountered the same problem ? Does exist any workaround ?

Thanks for your help.

RC
Re: Ant task WSDLValidate causes ClassCastException [message #104337 is a reply to message #104244] Mon, 16 May 2005 12:13 Go to previous message
Eclipse UserFriend
Hi Romain,

Sounds like a bug. Please open a bugzilla bug against the wst.wsdl
component, assign it to lmandel@ca.ibm.com, and I'll take a look.

Thanks for reporting.

Lawrence
Previous Topic:Installation Problems
Next Topic:Problems invoking code from plug-in
Goto Forum:
  


Current Time: Fri May 02 09:22:20 EDT 2025

Powered by FUDForum. Page generated in 0.03267 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top