Error - signer information does not match signer information of other classes in the same package.

Error - signer information does not match signer information of other classes in the same package.

book

Article ID: KB0091169

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
Description:
========
Error - signer information does not match signer information of other classes in the same package.

Environment:
========
Version: 5.8.0        
Hardware: all      
OS: Windows 7

Symptoms:
=======

Customer uses Java complied code to get mail from the mail server. Code is working OK when executed individually, from either the command prompt or Eclipse. When the code is imported in TIBCO, the following error messaged is generated:


-class "com.sun.mail.util.SharedByteArrayInputStream"'s signer information does not match signer information of other classes in the same package.


For building Java code, customer used mail.jar file from tibco\tpcl\5.6\tomcat\common\lib directory.


Cause:
====
There is a conflict in the class com.sun.mail.util.SharedByteArrayInputStream. It is caused by co-existence of different versions of the mail.jar or libs with different versions of this class.

Resolution:
=======
This is a typical class conflict issue. The general solution for this is to move C:/tibco/tpcl/5.6/tomcat/common/lib/mail.jar to the beginning of property "tibco.env.CUSTOM_CP_EXT" and to make sure that the classes in those jar file will loaded first. If this still does not work you should check if there is any mail.jar under these folders or com.sun.mail.util.SharedByteArrayInputStream in any jars. If yes, you should move the conflict mail.jar file from the other folder in the class path and just keep the one in C:/tibco/tpcl/5.6/tomcat/common/lib/mail.jar.

Issue/Introduction

Error - signer information does not match signer information of other classes in the same package.