Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

deploy aar asset using wlst

Krzysztof SedekSep 13 2017 — edited Dec 7 2017

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.

This post has been answered by Daniel Merchán on Sep 13 2017
Jump to Answer

Comments

Daniel Merchán
Answer

Hi.

Open an Oracle SR because this may is a bug. I could not import an AAR file generated with JDev using the mentioned WLST scripts.

I was also checking internal code to check if it was a missmatch on names (because sometimes the resourceType is pageTemplate or siteTemplate), but the code takes care of both names.


Note: As an alternative you may can consider using the WCP REST API (which is the one used by JDev for deploying).

Kind regards.

Marked as Answer by Krzysztof Sedek · Sep 27 2020
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 11 2017
Added on Sep 13 2017
1 comment
414 views