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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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
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
394 views