Hello,
We're trying to figure out how to deploy assets to WebCenter Portal using WLST.
We created PageTemplateAsset project which deploys perfectly fine to our WebCenter Portal while deployed via JDeveloper 12.2.1.2.0.
Unfortunately, we don't have an access to the WebLogic server where the application is going to be run and we have to prepare *.aar file which will be deployed using WLST scripts.
According to docs (WebCenter Portal Custom WLST Commands), we were trying to use importWebCenterResource() method.
We built an *.aar file using JDeveloper and tried to import the page template. This *.aar file is exactly the same as if we used ojdeploy tool.
Unfortunately, we receive the following error:
importWebCenerResource(appName="webcenter", fileName="/home/oracle/template.aar", resourceType="pageTemplate")
Error occurred while performing import
The asset archive specified is invalid. Specify a valid archive, and try again.
Check the WebCenter Portal log files for additional details.
Out of curiosity, we exported the template from the WebCenter Portal using exportWebCenterResource() method and the *.aar archive exported from the WCP was different to the one created by JDeveloper.
Providing this exported archive while invoking importWebCenterResource(), deployment finishes successfully.
Has anyone found a way to deploy a JDeveloper created template asset using WLST scripts only?
We also tried to follow Doc ID 1999250.1 to debug WLST commands. Unfortunately, providing mentioned parameters while running JDeveloper didn't change anything and no logs were written.