Archives for the ‘852 Extension Library’ Category

4 May 2012
10

XPages TIP: What to check when Domino doesn’t install OSGI plugins from UpdateSite

Hi everyone.

So, yesterday I faced a doozy. We wanted the XPages Extension Library installed on one of our Client’s Servers using the UpdateSite that ships with Lotus Domino 8.5.3. Interestingly enough, no matter what we tried, it just wouldn’t install.

 

FIRST THINGS FIRST

In order to use the UpdateSite to deploy OSGI plugins, you’ll need to do the following:

1. Create a Database called “Whatever UpdateSite” in the Domino Data Directory, using the UpdateSite Template that ships with the Lotus Domino 8.5.3 Server.

2. In the Domino Server’s notes.ini, add the following ini Variable:

OSGI_HTTP_DYNAMIC_BUNDLES=yourupdatesitefilename.nsf

3. In the UpdateSite Database, import your OSGI Plugins.

4. Restart the Domino Server. (Note: A Server restart is only required if you modified the notes.ini. Other than that, a Restart Task HTTP will do the trick).

5. During the restart of the HTTP Task, you should see at some point a message along the lines of installing OSGI plugins. If you don’t see this message, then it’s not working.

 

BACK TO THE MATTER AT HAND

If you’ve done everything mentioned above, and the Server still won’t install the OSGI plugins, then the problem most likely lies with the Security settings for the specific Domino Server. When you import the OSGI Plugins into the UpadateSite database, the System automatically performs a Signing of all the Imports that took place. This means that it will sign the Imported Profiles with your current Lotus Notes ID.

So, it’s important that your Notes ID has access to perform XPages based operations on that Specific Server. To confirm this, do the following:

1. In the Domino Server’s Address Book, navigate to the All Server Documents view, and open the relevant Server Document (Note: You’ll need some Admin Access to perform these operations)

2. Click on the Edit Server button.

3. Navigate to the Security Tab.

4. In the Top right section of the Security Tab, you’ll see a field called “Sign agents or XPages to run on behalf of the invoker:“. If this field is empty, then every signature will be authorized on that Server as a default. Otherwise, you’ll need to be part of the list either as a User or as part of a Group. If the list is not empty and you are not featured in any way, the OSGI Plugins will NOT be installed.

 

That should do the trick. I don’t know of any other reason that the OSGI plugins won’t install from the UpdateSite Database.

Until next time…happy coding.

 

Cheers,

John

28 Oct 2011
0

Xpages Video Tutorial – What Domino Designer is not telling you

Hi everyone. I’ve been recently blessed with some awesome information that I have to re-distribute. Last week I worked on an Xpage that made use of the DynamicViewPanel Custom Control that ships with the 852 XPages Extension Library. I needed to expand on certain functionality that just didn’t seem available, until I had a small chat with Mr Paul Withers.

He showed me how to access Properties and Methods of Java Objects that make up what we know as Xpages and Custom Controls. This allowed me in my Xpages, to get a handle on whichever Custom Control, and execute methods I didn’t know were there. You can imagine the possibilities.

A Quick Example:

Let’s say I have an Expand/Collapse Pager on my Xpage, and it’s bound to a ViewPanel. What if I wanted to expand, collapse the View Data based on certain Xpage Events, instead of manually clicking on the Expand/Collapse Pager. Thanks to a certain Eclipse View, and a button called “F4“, I  can view all the Properties and Methods that make up the Expand/Collapse Pager, (two of them been “expandAll” and “collapseAll“), and manipulate the View Panel Data during an onPageLoad or onClick event, instead of clicking on the actual Expand/Collapse Pager.

Now that’s what I call flexibility. In the embedded video below, which is published through David Leedy’s NotesIn9 Video Series, Mr Paul Withers will show you how to access these Properties and Methods.

IMPORTANT NOTE: To access these Properties and Methods, please make sure your Application is built. You do this by clicking on the “ProjectBuild Project” Menu.

One Final Note: Paul Withers, Paul Hannan, Declan Sciolla-Lynch, Jeremy Hodge and Tim Tripcony, are busy working on a book called “XPages Extension Library: A step-by-step guide to the next generation of XPages components“. I’m positive that many out there are waiting very impatiently for this to be released.

I hope you all found this Post valuable. Be sure to check out NotesIn9.com for more great video tutorials. Also check out Paul’s Blog.

28 Oct 2011
1

Xpage Video Tutorial – Remote Services (RPC)

Hi Everyone. Check out my latest Video Tutorial on using Remote Services in your Xpages. Thanks Mr David Leedy for running my Tutorial as part of your NotesIn9 Video Cast.

To run Remote Services in your Xpage, you will need Notes and Domino version 852 and above, and you’ll also need to install the 852 Xpages Extension Library, which you can download from OpenNTF.

Be sure to subscribe to NotesIn9 for more great Lotus Notes and Xpage Video Tutorials.

Enjoy :)