Skip to main content

JARs Containing OSGi Files Cause Worklight Console Issues


Technote (troubleshooting)


Problem(Abstract)

When you add a JAR containing OSGi files in the server/lib directory under a Worklight application and subsequently attempt to open the Worklight console in your browser, the request fails.

Symptom

When opening the Worklight console, the browser displays the following error:

HTTP ERROR 404
Problem accessing /console/index.html. Reason:
ProxyServlet: /console/index.html.


Cause

This is occurring because the eXtreme Scale client library contains OSGi framework classes that conflict with OSGi classes in Worklight Developer Edition.

Resolving the problem

To resolve the issue you need to strip down the JAR. Use the following steps:

  • Expand it in any folder and then remove org/OSGi folder.
  • Issue the command java cf * in that folder
  • Re-compress the JAR

You should only do this if you are using the eXtreme Scale API in a development environment. If you are using Worklight server on the Liberty Profile with the eXtreme Scale client feature, then you don't need the ogclient.jar library and you can remove it.

Cross reference information
Segment Product Component Platform Version Edition
Mobile- Speech and Enterprise Access IBM Mobile Foundation Server AIX, HP-UX, Linux, Solaris, Windows 5.0.5 Consumer, Enterprise

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

IBM Worklight

Server


Software version:
5.0.5


Operating system(s):
AIX, HP-UX, Linux Red Hat - xSeries, Linux SUSE - xSeries, Solaris, Windows


Software edition:
Consumer, Enterprise


Reference #:
1620870


Modified date:
2012-12-24

Translate my page

Content navigation