My Oracle Support Banner

Error Extending Spaces: BUILD FAILED ... internal-targets.xml:54: Problem: failed to create task or type (Doc ID 1673986.1)

Last updated on DECEMBER 06, 2022

Applies to:

Oracle WebCenter Portal - Version to [Release 11g]
Information in this document applies to any platform.


+ The WebCenter Portal version currently in use is This issue can occur when the Bundle Patch 18085041 is being installed. The same error can occur simply when extending Spaces.

+ This is the section in the Patch README being implemented:

3.4. This patch contains the fix for Bug 17584431 , which causes performance issues with Content Presenter when having many content profiles, static lists and region definitions.

  After applying this patch you need to execute the below instructions to use the changes provided by this patch:
  (1) Set the following system property to enable the fix - ContentTypeLazyCaching=true.
  For example:
  a) It can be set in of the domain as:
  JAVA_OPTIONS="${JAVA_OPTIONS} -DContentTypeLazyCaching=true"
  b) Add the argument "-DContentTypeLazyCaching=true" to:
  WLS Admin Console -> Environment -> Servers -> WC_Spaces -> Configuration -> Server Start -> Arguments
  if the start of the managed server is being done through the node manager.
  (2) Add the following listener to the application WEB-INF/web.xml to enable the fix.
  This listener on server startup intialises content type cache

  - if you are using WebCenter Portal, the change will need to go onto the 'webcenter' application - refer to KM Note 1557319.1.
  - if you are using Portal Application FrameWork, the change will need to go onto the custom named application.

  (3) Start all servers (Admin Server and all Managed Server(s))


+ As we are using WebCenter Portal(Spaces), the change will need to go onto the 'webcenter' application so we are following Note 1557319.1:
How To Change WebCenter Spaces (webcenter.ear) Application Configuration Files (connections.xml, adf-config.xml, web.xml, etc.)? (Doc ID 1557319.1)
This is the failing step:
3.3.1. The extend.spaces.webapp.war will be generate as soon as the "Run Ant" dropdown menu is opened, and then select "clean-stage". This will take a few minutes - do make sure all is completed without any FAILURES.
The first screenshot in the uploaded ppt file shows this step . Run Ant -> clean-stage is selected.
This is the error:

D:\JDeveloper\mywork\DesignWebCenterSpaces\WebCenterSpacesExtensionLibrary\internal-targets.xml:54: Problem: failed to create task or type if
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken place.



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.