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).