Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 16:44 Go to next message
Didier Bolf is currently offline Didier Bolf
Messages: 2
Registered: August 2011
Junior Member
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 17:21 Go to previous messageGo to next message
Hristo Iliev is currently offline Hristo Iliev
Messages: 156
Registered: May 2010
Location: Sofia, Bulgaria
Senior Member

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 06:13 Go to previous messageGo to next message
Didier Bolf is currently offline Didier Bolf
Messages: 2
Registered: August 2011
Junior Member
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 13:15 Go to previous message
mcoss Missing name is currently offline mcoss Missing name
Messages: 7
Registered: November 2011
Junior Member
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 Sep 17 05:49:10 GMT 2014

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

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