0

I am very new to WebSphere. I have managed to install .war file successfully but application is not starting/running. I found it is depending on Environment settings and other parameters from log file.

Now I have a .car file which on import will complete all settings and my application will run without any issues.

Please help me how to import .car file into WebSphere.

poke
  • 369,085
  • 72
  • 557
  • 602
prashanth
  • 85
  • 1
  • 3
  • 14

2 Answers2

4

This has been tested with Eclipse Mars 4.5.2 and IBM Websphere Application Server 8.5

  1. Start your Websphere server using Eclipse or from command prompt.

  2. Navigate to %WAS_INSTALL_DIR%\WebSphere\AppServer\profiles\profile_name\bin.

  3. Launch wsadmin batch script and login using your profile security credentials.

  4. Use the following commands

    $AdminTask importWasprofile {-archive c:\backup\was_restore.car}
    
    $AdminConfig save
    

Further details can be found at: https://www-304.ibm.com/support/docview.wss?uid=swg21207526

Pawan J
  • 51
  • 5
  • WAS 8.5 is installed but unable to start because of error "WCMD0002E: Command "startServer.bat" requires a profile.". How can I import a profile to WAS without even starting it. I already have a *.car created which I can import. please suggest. – Raghuveer Jun 29 '17 at 12:32
0

See details about importing car files here - ConfigArchiveOperations command.

If you exported whole profile, then to import use:

AdminTask.importWasprofile('[-archive c:/myCell.car]')

Instead of car files, you can consider also using property based configuration - Using properties files to manage system configuration

Gas
  • 17,601
  • 4
  • 46
  • 93
  • Thanks for your answer. I have executed the above command. Now I am getting error: com.ibm.wsspi.configarchive.ConfigArchiveException com.ibm.wsspi.configarchive.ConfigArchiveException: fail to deploy application isclite I searched for solution WASPreUpgrade and WASPostUpgrade will help but Iam struck here also cmd: C:\Program Files (x86)\IBM\WebSphere\AppServer\bin>WASPreUpgrade.bat "C:\CCM\Backup File" "C:\Program Files (x86)\IBM\WebSphere\AppServer" Error: MIGR0272E: The migration function cannot complete the command. I don't understand what is in the command – prashanth Apr 24 '15 at 08:55
  • @prashanth `isclite` is admin console, so it is already deployed. Dont use Post/Pre upgrade commands as they are used for version to version migration purposes. You can try reimport with the `-deleteExistingServers true` parameter, it will replace your whole configuration. Before making any changes you should do the `backupconfig` to have backup in case something goes wrong. – Gas Apr 24 '15 at 12:25