Inheritance of .class-files in the package explorer in a Domino application

September 5, 2011 § 2 Comments

We have had great problems with XPages in one of our applications.

We have an application that is based on a template. The XPages in the application calls java code that has been added to the package explorer in .java-files and jars.

We had determined that the problem somehow had to do with the signing of the design elements (we mostly got error like ‘sessionAsSigner not found’), but we could not really understand what happened. But now we have learned that the complied .class files in an application is by default set to disallow inheritance. This means that the production database did not inherent the updated .class-files from the template. This then led to the signing problem. So I think that the thing to do is first update and sign the template. Then clean (without build) the production appplication. Thirdly you should inherent the template and then build the producgtion application. And finally sign the production db with the same ID as the template (haven’t tested yet but it seems right).

Advertisements

Tagged: , ,

§ 2 Responses to Inheritance of .class-files in the package explorer in a Domino application

  • Mark Leusink says:

    As far as I know for sessionAsSigner calls to work at all, all design elements need to be signed with the same ID. Which is pretty annoying by the way if you’re working with multiple developers on the same application…

    • javakingen says:

      That is my understanding also. And as the “good old” Domino design elements does not work like that (for example developer A could have signed agent X and developer B could have signed script library Y that is used by A and it would still work) it is, as you say, really annoying.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

What’s this?

You are currently reading Inheritance of .class-files in the package explorer in a Domino application at Strange Epiphany.

meta

%d bloggers like this: