When i try to build the application, i get the following error :
[echo] EJB compiling docmgmt-ejb for websphere...
[echo]
was-ejbdeploy:
[wsejbdeploy] Starting workbench.
[wsejbdeploy] o0610.07
[wsejbdeploy] Configuration location:
[wsejbdeploy] file:C:/IBM60/WebSphere/AppServer/deploytool/itp/configuration/
[wsejbdeploy] Debug options:
[wsejbdeploy] file:/C:/dev/vsriniva_Core_4_2_defect/WFX_Core/core/staging/resource/docmgmt-ejb-j
ar/.options not found
[wsejbdeploy] Time to load bundles: 32
[wsejbdeploy] Starting application: 1148315182610
[wsejbdeploy] [*Error] An unexpected exception was thrown. Halting execution.
[wsejbdeploy] Shutting down workbench.
[wsejbdeploy] Error executing deployment: java.lang.ClassCastException. Error is com.ibm.etools.ejbd
eploy.batch.impl.PrivateOptions.
[wsejbdeploy] java.lang.ClassCastException: com.ibm.etools.ejbdeploy.batch.impl.PrivateOptions
[wsejbdeploy] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.run(BatchExtension.java:202)
[wsejbdeploy] at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:
335)
[wsejbdeploy] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
[wsejbdeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wsejbdeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
[wsejbdeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
[wsejbdeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:60)
[wsejbdeploy] at java.lang.reflect.Method.invoke(Method.java:391)
[wsejbdeploy] at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.run(BootLoaderLoader.java:41
2)
[wsejbdeploy] at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute(BatchDeploy.java:144)
[wsejbdeploy] at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:83)
[wsejbdeploy] at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:313)
[wsejbdeploy] EJBDeploy level: o0610.07
The ANT task that does the EJB deploy is as follows :