Deploy task bug in oc4j 10.1.3 dp4

Part of oc4j are some ant tasks which you can use to deploy your applications. You can include ant-oracle.xml into your build file, this will declare all the required tasks. But if you try to use the included Ant tasks to deploy to oc4j 10.1.3 DP4 you’ll notice that the ant-oracle.xml script is buggy. Problem is that it uses a resource which used to be part of ant-oracle-classes.jar, but which has been removed for this release. You can find both ant-oracle.xml and ant-oracle-classes.jar in you oc4j installation directory under /j2ee/utilities/.

The fix is easy: open ant-oracle.xml, scroll down until you see the first taskdef. Change the value of the resource attribute to “oracle/antlib.xml”. I also had to add ant-oracle-classes.jar as a pathelement in the common.tasks.class.path section, even though this class is mentioned in the Manifest.mf in ant-oracle.jar in the lib directory of ant.