Forum Stats

  • 3,853,371 Users
  • 2,264,212 Discussions
  • 7,905,331 Comments

Discussions

deploy aar asset using wlst

Krzysztof Sedek
Krzysztof Sedek Member Posts: 9
edited Dec 7, 2017 11:24AM in WebCenter Portal

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 importThe 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.

Best Answer

  • Daniel Merchán
    Daniel Merchán Enterprise Achitect Member Posts: 2,192 Gold Trophy
    edited Sep 13, 2017 8:44AM 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.

Answers

  • Daniel Merchán
    Daniel Merchán Enterprise Achitect Member Posts: 2,192 Gold Trophy
    edited Sep 13, 2017 8:44AM 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.

This discussion has been closed.