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

Last updated on MARCH 08, 2017

Applies to:

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

Symptoms

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

+ This is the section in the 11.1.1.8.3 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.

  ACTIONS
  --------
  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 setDomainEnv.sh 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
  oracle.webcenter.content.integration.spi.ucm.ContentTypeFetchAndCacheListener
  

  Eg,
  - 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:

BUILD FAILED
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.

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms