Skip to main content



      Home
Home » Eclipse Projects » Virgo » Issue with a servlet that uses RSA code
Issue with a servlet that uses RSA code [message #715817] Mon, 15 August 2011 12:44 Go to next message
Eclipse UserFriend
Hi,

I have a problem with a 'Web Application Bundle project' that I'm developing
using the SpringSource Tool suite, I deploy the application on Virgo 3.0.0 M5

The project is a port of code that works in another OSGI product

When running a servlet of the application I get the following exception,
It occurs when the servlet tries to load a file on disk :

root cause
java.lang.ExceptionInInitializerError
com.xxx.bcm.BCM.<clinit>(BCM.java:1144)
com.xxx.mds.resource.archive.bcm.BCMCipher.decrypt(BCMCipher.java:55)
com.xxx.mds.resource.archive.Archive.load(Archive.java:624)
...
root cause
java.lang.SecurityException
com.rsa.cryptoj.f.ug.d(Unknown Source)
com.rsa.cryptoj.f.ug.b(Unknown Source)
com.rsa.cryptoj.f.nd.b(Unknown Source)
com.rsa.cryptoj.f.nd.c(Unknown Source)
com.rsa.jsafe.CryptoJ.isFIPS140Compliant(Unknown Source)
com.xxx.bcm.internal.BcmRsaLib.initialize(BcmRsaLib.java:214)
com.xxx.bcm.internal.BcmRsaLib.<clinit>(BcmRsaLib.java:289)
com.xxx.bcm.BCM.<clinit>(BCM.java:1144)

the RSA code is obfuscated, the exception occurs there but I don't know
exactly what is the problem :

private static void d()
{
JarFile localJarFile = hK.f();
if (localJarFile == null)
throw new SecurityException("Toolkit not encapsulated by a jar.");
try
{
Manifest localManifest = localJarFile.getManifest();
if (localManifest == null)
throw new SecurityException("The jar does not contain a manifest.");
a(localJarFile, localManifest);
Enumeration localEnumeration = localJarFile.entries();
while (localEnumeration.hasMoreElements())
{
JarEntry localJarEntry = (JarEntry)localEnumeration.nextElement();
if (localJarEntry.isDirectory())
continue;
a(localJarEntry);
}
}
catch (Throwable localThrowable)
{
throw new SecurityException(localThrowable.getMessage());
}
finally
{
a(localJarFile);
}
}

The RSA jar file is embedded in an eclipse plugin that I put in the Virgo
repository.

Thanks for your help

Didier
Re: Issue with a servlet that uses RSA code [message #715832 is a reply to message #715817] Mon, 15 August 2011 13:21 Go to previous messageGo to next message
Eclipse UserFriend
Judging from the missing SecurityException message it seems you have some problem in "a" method of CryptoJ.

However I have no idea what this method does Sad
Re: Issue with a servlet that uses RSA code [message #716344 is a reply to message #715832] Wed, 17 August 2011 02:13 Go to previous messageGo to next message
Eclipse UserFriend
the problem is still there, in my plugins probably, but I found a workaround to make the application work
regards,
Didier
Re: Issue with a servlet that uses RSA code [message #757440 is a reply to message #716344] Fri, 18 November 2011 08:15 Go to previous message
Eclipse UserFriend
Hi Didier,

we are running a small webapplication, what means a little war project which connects to a bo server using SDK version 4, fetching some data.

Sadly, we run into the same error message as stated by your first post. bcm does not connect using cryptoj. Are you, or anybody else, able to describe what you have done to get bcm to initialize, even if it is a small workaround only? What is the problem here with bcm+cryptoj?

cheers,
mcoss
Previous Topic:Problem with Hibernate and org.springframework.orm-3.0.5.RELEASE
Next Topic:Bundlor 1.1.0.M02 released
Goto Forum:
  


Current Time: Wed May 21 02:15:39 EDT 2025

Powered by FUDForum. Page generated in 0.04996 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top