Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 127938 - AntTask cannot execute
Summary: AntTask cannot execute
Status: CLOSED DUPLICATE of bug 126259
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: jst.ws (show other bugs)
Version: 1.0.1   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 1.5 M5   Edit
Assignee: Joan Haggarty CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-14 18:34 EST by Kelvin Cheung CLA
Modified: 2006-06-13 11:41 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kelvin Cheung CLA 2006-02-14 18:34:30 EST
At line 204 of AntEnvironment, it always tries to new up a "transform" object.  It turns out that this is optional and the AntTask fails on one of the mappings defined in org.eclipse.jst.ws.creation.ui (the CoreException is thrown back to the CommandEngine and it stops before going to adopter's extension).

Object transform = null;
try
{
 transform = ce.createExecutableExtension(MAPPER_TRANSFORM_ATTRIBUTE);	 
}
catch (CoreException cex) {
 Status errorStatus = new Status(Status.ERROR, "ws_ant", 5092, cex.getMessage(), cex);
 getStatusHandler().reportError(errorStatus);
  getLog().log(ILog.ERROR, "ws_ant", 5092, this, "getMappingExtensions", EnvironmentMessages.bind(EnvironmentMessages.MSG_ERR_ANT_DATA_TRANSFORM, key, transform));
  throw new CoreException(errorStatus);
}

This is the exception:
       [wsgen] Executable extension definition for "transform" not found.
       [wsgen] java.lang.IllegalArgumentException: Executable extension definition for "transform" not found.
       [wsgen] 	at org.eclipse.wst.command.internal.env.ant.AntOperationManager.initBeforeExecute(AntOperationManager.java:42)
       [wsgen] 	at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:382)
       [wsgen] 	at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:327)
       [wsgen] 	at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:226)
       [wsgen] 	at org.eclipse.wst.command.internal.env.ant.AntController.<init>(AntController.java:73)
       [wsgen] 	at ws.ant.task.WebServiceGenerationAntTask.execute(WebServiceGenerationAntTask.java:26)
       [wsgen] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
       [wsgen] 	at org.apache.tools.ant.Task.perform(Task.java:364)
       [wsgen] 	at org.apache.tools.ant.Target.execute(Target.java:341)
       [wsgen] 	at org.apache.tools.ant.Target.performTasks(Target.java:369)
       [wsgen] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
       [wsgen] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
       [wsgen] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
       [wsgen] 	at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
       [wsgen] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
       [wsgen] 	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:704)
       [wsgen] 	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:455)
       [wsgen] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [wsgen] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
       [wsgen] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
       [wsgen] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
       [wsgen] 	at java.lang.reflect.Method.invoke(Method.java:391)
       [wsgen] 	at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
       [wsgen] 	at org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:215)
       [wsgen] 	at java.lang.Thread.run(Thread.java:816)
       [wsgen] IWAB0014E Unexpected exception occured.
Comment 1 Joan Haggarty CLA 2006-02-15 08:43:47 EST
This is a duplicate of 126259

If you remove properties from the properties file that you didn't specifically set yourself (i.e. the ones that just have sample settings) this problem should go away.

*** This bug has been marked as a duplicate of 126259 ***
Comment 2 Kelvin Cheung CLA 2006-02-15 10:03:48 EST
Thanks Joan,

Comment out the properties does the trick (for our BUJAVA scenario, it is the ServiceProjectName and ServiceEARProjectName that need to get commented out).

Regards,

Kelvin
Comment 3 Kelvin Cheung CLA 2006-03-28 16:11:26 EST
verified in WTP 102
Comment 4 Chris Brealey CLA 2006-06-13 11:41:48 EDT
Closed.