Tuesday, November 1, 2011

taskdef class weblogic.ant.taskdefs.management.WLSTTask cannot be found

In my build.xml I have declared

taskdef name="wlst" classname="weblogic.ant.taskdefs.management.WLSTTask"

and I get the blessed error



The solution could simply be adding a "classpath" element to the taskdef:

taskdef classpath="${bea.home}/wlserver_10.3/server/lib/weblogic.jar" name="wlst" classname="weblogic.ant.taskdefs.management.WLSTTask"


In fact taskdef uses the same attributes as typedef

http://ant.apache.org/manual/Tasks/typedef.html

No comments: