WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

How to deploy fresh EAR with property based files configuration?

  • 1.  How to deploy fresh EAR with property based files configuration?

    Posted Tue October 19, 2021 10:36 AM
    Hi!
    I want repeat exact EAR installation on fresh installed app server, thus i extract property file from old app with AdminTask.extractConfigProperties with options [[SimpleOutputFormat true] [PortablePropertiesFile true
    Then I change 
    #Environment Variables
    applicationName=newname
    cellName=samecell
    serverName=newserver
    nodeName=newnode
    add EarFileLocation=path_to_extracted_ear
    But when I try apply property file I got ADMG0660E: Properties File Validation during command applyConfigProperties failed
    and in apply log file errors ADMG0806I: Invalid Resource Id specified Cell=samecell:Deployment=newname:ApplicationDeployment=.
    then
    ADMG0826I: Error found in section ResourceType=Application
    ConfigType=ApplicationDeployment:ContainingConfigType=Deployment:AttributeName=null
    ConfigId=Cell=samecell:Deployment=newname:ApplicationDeployment=
    Error=java.lang.NullPointerException and all fail.

    I saw Using application properties files to install, update, and delete enterprise application files
    but don`t understand how property file must be modified properly 

    Server and node already created and all property exists. WAS 8.5.5.9 ND 

     
     


    ------------------------------
    Oleg SAgay
    ------------------------------


  • 2.  RE: How to deploy fresh EAR with property based files configuration?

    Posted Wed October 20, 2021 04:11 AM
    Hello Oleg,
    did you run the export and the import on the same system? How did you export the existing application? Did you export it as a portable property file? Like the following example shows:
    AdminTask.extractConfigProperties(wmInfo, ['-propertiesFileName', fileName, "-options", [["PortablePropertiesFile", "true"]]])​


    That's at least how we are exporting and import config objects using properties files. Can you give it a try?

    Thanks and hope this helps - Hermann



    ------------------------------
    Hermann Huebler
    2innovate IT Consulting GmbH
    Vienna
    Austria

    #IBMChampion
    ------------------------------