This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: SecurityException loading DB driver?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 29, 2010
05:27 PM
SecurityException loading DB driver?
I need to include a database driver for my CustomCode action to connect to a DB. When I try to include the jar as dependency for that action the install.bin exits with the following error:
java.lang.SecurityExceptions: no mainfiest section for signature file entry.....
This is followed by the driver class name.
I've searched through the help & these forums, but can't figure out a solution.
Does anyone know how can I include the driver jar file in my IA project?
java.lang.SecurityExceptions: no mainfiest section for signature file entry.....
This is followed by the driver class name.
I've searched through the help & these forums, but can't figure out a solution.
Does anyone know how can I include the driver jar file in my IA project?
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 29, 2010
11:59 PM
Is your jar signed?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 30, 2010
12:39 AM
If your jar file is signed, then please remove the signature entries i.e. *.dsa and *.sf file in your meta-inf directory and please try again.
This is a known issue with IA.
Thanks,
This is a known issue with IA.
Thanks,
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 30, 2010
02:49 PM
I removed the single .sf file that was in the jar and now it works. Thanks.
But that raises a couple questions.
1. Why does IA care if I include a jar that's signed? (Is an "issue" a bug?)
2. If this is a jar file from a DB vendor with their driver can I include it with the .sf file removed?
But that raises a couple questions.
1. Why does IA care if I include a jar that's signed? (Is an "issue" a bug?)
2. If this is a jar file from a DB vendor with their driver can I include it with the .sf file removed?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 01, 2010
01:27 AM
Hi jkehoe,
A signed jar contains a SHA1 digest in its manifest.mf file and signature files *.mf. These signature files ensure that the jar is not corrupted or modified in any way. Now when IA build generates a single executable for you, then it has to repackage these jars. Hence the signature entries no longer hold good for your new repackaged installer. Hence this results in Java Security throwing an exception while initializing.
Technically speaking, this is been acknowledged as a bug for IA.
Whether it is okay to remove the signature files out of your DB jars which you are redistributing is a question that I think is to be answered based on the terms and conditions of the jar file.
Thanks,
A signed jar contains a SHA1 digest in its manifest.mf file and signature files *.mf. These signature files ensure that the jar is not corrupted or modified in any way. Now when IA build generates a single executable for you, then it has to repackage these jars. Hence the signature entries no longer hold good for your new repackaged installer. Hence this results in Java Security throwing an exception while initializing.
Technically speaking, this is been acknowledged as a bug for IA.
Whether it is okay to remove the signature files out of your DB jars which you are redistributing is a question that I think is to be answered based on the terms and conditions of the jar file.
Thanks,
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 01, 2010
09:59 AM
Thanks for the clarification. Is there a schedule for fixing this limitation?
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)