0
votes

I am coming across an urgent issue when doing migration from development environment to dev/test environment. I always get the error

The server was unable to process the request from the application. Please try again later.

Note: the dev environment is ready (worklight console and application center). I can access them via two urls of ...:9080/worklight/console/ and ...:9080/applicationcenter/applications/Applications.html

I saw the "Help-IBM Worklight" doc and followed steps it list, but it didn't work.

The steps I've taken:

  1. change application-descriptor.xml's worklightServerRootURL to: http://www.test.com:9080/worklight
  2. change worklight.properties:
publicWorkLightHostname=www.test.com
# http or https
publicWorkLightProtocol = http
# For default port leave empty
publicWorkLightPort=9080
publicWorkLightContext=/worklight

Followed by:

  1. Build All and Deploy
  2. Rename the MyTest.war file to worklight.war (I saw a .war file named "worklight.war" had been deployed, which is used for worklight console, I think.)

When I access the url "www.test.com:9080/worklight/apps/services/api/ISMD/android/" directly, I get the error:

AuthenticationContext.getOrCreateAuthenticationContext()

Any help?

1
the war file is much more than Worklight Console, it contains worklight.properties and authenticationConfig.xml; you must re-deploy this .war file in your application server for your changes to take place.Idan Adar

1 Answers

0
votes

You did not mention in your steps whether or not you have re-deployed the .war file. You did not mention what is the application server you are running on in your dev/test environment.

The war file is much more than Worklight Console; it also contains worklight.properties and authenticationConfig.xml among other artifacts; you must re-deploy this .war file in your application server for your changes to take place.

In addition, this APAR suggests a configuration issue when such an error is logged. Try re-deployment first.