Java archive (JAR) files containing OSGi files cause IBM Worklight console issues

Technote (troubleshooting)


Problem(Abstract)

When you add a JAR file that contains 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 you open the Worklight console, the browser displays the following error:

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


Cause

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

Resolving the problem

To resolve the issue, you need to modify the Java archive (JAR) file. Use the following steps:

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

Complete these steps only if you are using the eXtreme Scale API in a development environment. If you are using the Worklight server on the Liberty Profile with the eXtreme Scale client feature, then you do not 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

Add comments

Document information


More support for:

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

Machine Translation

Content navigation