Question

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.

Was it helpful?

Solution

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:

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

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top