Question

The Mobile Browser Simulator in my Worklight v6.1 installation will not launch. I am on Windows 7, with only 1 other app configured for the Worklight Server. The server will not start as long as the MBS is in server.xml. If I comment out MBS the server will start but then I have no MBS. Is there a way to reinstall the MBS only? The error is a java.lang.NullPointerException.

I set "Never publish automatically," and as soon as I click the Start button in the Servers view I get

' Publishing to Worklight Development Server...' has encountered a problem.  Publishing failed

The details are

   Publishing failed
      Publish _MobileBrowserSimulator
         OK
         Publish _MobileBrowserSimulator failed.
         java.lang.NullPointerException
         Publish of application _MobileBrowserSimulator failed.
      Publish MobileEnterprise

Any ideas how I can recover this?

Was it helpful?

Solution

You should not modify any publish settings, as the development server relies on these. The MBS must be able to be published, otherwise of course you will not have the preview abilities in Worklight Console.

Try starting Eclipse with a fresh new workspace.
Create a new project and application (don't add any environments just yet). Start the server, run the app on the server, see if everything passes OK. If yes, carry on...


As for "re-installing" the MBS,

One thing you can try to do is to delete the "Worklight Development Server" project from the Project Explorer view in Eclipse and then re-start Eclipse. This process will re-generate all server entities, including the MBS.

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