Pranesh
Pranesh

Reputation: 11

Xpages Bootstrap setup error

I am new to xpages and to bootstrap also.

I have a query Sample code URL. I am trying to use the sample code in my xpage but I get the below error:

Cannot find the library org.openntf.xsp.bootstrap.library, required by the application /Pranesh/Tracking.nsf.

I have setup the bootstrap files in Designer. Also done the same on Dom server in Plugin and features file as mentioned in the Ext Lib Installation guide.

Upvotes: 1

Views: 729

Answers (2)

Csaba Kiss
Csaba Kiss

Reputation: 190

You can also use Bootstrap with a local webserver.:

  1. Download the latest extension library from here: OpenNTF
  2. Follow the instructions to install it in your Domino Desginer.
  3. Copy the plugins and the features directories from

C:\Program Files (x86)\IBM\Notes\Data\workspace\applications\eclipse

to

C:\Program Files (x86)\IBM\Notes\Data\domino\workspace\applications\eclipse

Bootstrap will work as a charm.

Upvotes: 0

Mark Leusink
Mark Leusink

Reputation: 3757

The error message indicates that the Bootstrap4XPages library isn't installed on the server (assuming you're accessing the application on the server).

Best practice to install plugins like this is, just as Per mentioned, through a so called update site database. That process is described here. Basically it involves the following steps:

  • create an update site database on your server (from the Eclipse Update Site template)
  • add the update site to your notes.ini file:

    OSGI_HTTP_DYNAMIC_BUNDLES=updatesite.nsf

  • (if you've changed the notes.ini: restart the server)
  • import the plugin to the update site database and restart the HTTP task

Don't forget to restart the HTTP task after you've installed the library. To check if it was succesfully installed you can issue the following command in the server console:

tell http osgi ss org.openntf

This command will show you the installed plugins from the org.openntf package. It should list the Bootstrap plugin as org.openntf.xsp.bootstrap_<version>.

Upvotes: 6

Related Questions