Issues of migrating Worklight from v6.0 to v6.1

2019-09-02 03:35发布

问题:

Migrating my project(made up of 3 apps and 2 adapters) from Worklight v6.0 to Worklight v6.1 i'm facing problems over adapters migration.

I had already deployed .war, .wlapp and .adapter files in production environment using an Ant script(for .war file). The application server used is Websphere, the dbms server used is Derby.

I upgraded the worklight studio's plugin to the latest version, created a new, clean workspace, exported the project from the old workspace and imported in the new one.

For what concerns development environment everything works.

For what concerns production environment i successfully deployed all the applications(but don't work yet becouse the adapters lack). When i try to deploy the adapter(each one) i get the following exception:

Failed to deploy adapter 'adapter1.adapter'. The 'adapter' version '6.0.0' is different than the version of the Worklight project '6.1.0.00.20131219-1900'. Use Worklight Studio '6.1.0.00.20131219-1900' to build and deploy the application.

I tried also to create a new adapter and deploy it but i'm still getting the same error.

回答1:

Edited the answer entirely based on edits to the question

All artifacts produced by Worklight Studio: .adapter, .wlapp and .war must be generated using the same Worklight Studio version.

Make sure that after importing the project to Worklight 6.1, that you are building all the the project's applications and adapters.

Next, you need to deploy the re-generated .war file and then deploy the .wlapp and .adapter files.

To verify that the adapter is of the same version as the project's .war file, extract the .adapter file from the bin folder and open the XML file. You should see the platform version like this:

<ns2:adapter xmlns:ns2="http://www.worklight.com/integration"
name="test" platformVersion="6.1.0.00.20131126-0630">

IBM Worklight Information Center topics to read:

  • Installing and configuring
  • Upgrading from one version of IBM Worklight to another

You can also see this in Worklight Console > About > Additional Support Information: