Hi,
In JDeveloper 12.2.1.2 we created an Asset project. In this project we created a skin. This skin must be deployed to the Portal server. There are two ways.
In the development environment we can use JDeveloper to deploy to the Portal server, but in other environments we must use WLST to deploy assets.
When I want to use WLST I get an error when I want to deploy the asset to the Portal server.
In the next steps I describe what I did.
First I deployed the skin-asset as an .aar file in JDeveloper. Then I started WLST in the Webcenter install directory and create a connection. Then I executed this command: importWebCenterResource(appName='webcenter', fileName='skin_asset.aar', resourceType='skin'). This is the error I get : The archive specified is invalid. Specify a valid archive, and try again.
The next step what I did is to deploy the skin to the Portal server via JDeveloper. This works fine. The deployment is to the same environment with the same user.
Then I export the skin via WLST with this command: exportWebCenterResource(appName='webcenter', fileName='exp_skin.aar', resourceType='skin', resourceName='skin', spaceName='TestPortal')
This works fine. This is the notification I get: Asset export complete. Asset archive available at: exp_skin.aar.
Afther this I want to import the exported skin to test if I had filled in the right parameters for the import. So in WLST i execute this command: importWebCenterResource(appName='webcenter', fileName='exp_skin.aar', resourceType='skin', spaceName='TestPortal')
There are no errors, the asset is imported.
So, my conclusion is that the skin-asset project is correct. What I can see is that the content of the Jdeveloper-aar is different then the content of the aar-file that is exported from the Portal server.
But why can JDeveloper deploy the asset correct and why does the deployment of an exported asset via WLST not work? Are there any additional steps to import an asset via WLST?