cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Java Mapping

Former Member
0 Kudos

Hi,

I'm having the following error in PI:

com.sap.aii.ibrep.server.mapping.rt.WrappedMappingRuntimeException: Unable to find resource org/bouncycastle/jce/provider/BouncyCastleProvider.class (http://www.xxx.com.br, -1) in the following software component versions: b8040540-dfb8-11dc-b688-c07f0a600396         

I already deployed a .sda file containing the jar with that class. 

Can anyone help me?

Thanks in advanced.

Accepted Solutions (0)

Answers (1)

Answers (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

This is the problem. In your java mapping you have to include this jar to use in the import statement. You dont package the jar something like named bcprov-jdk15-xxx.jar . The jar version xxx could be anything. Please check whether you package the above named jar in your java mapping file.

Also you might want to use findjar.com to see the appropriate compatible and available jar using the class name, Don't you think how easy to find it?

http://www.jarfinder.com/index.php/java/info/org.bouncycastle.jce.provider.BouncyCastleProvider

Former Member
0 Kudos

Hi,

Thanks.

But, just to explain improved.

In nwds the code works. I already have the .jars.

I tried all the alternatives:

Import project with the .jars in PI;

Deploy the .jars in java server;

But anithing works.

I've developed other java mapping, but this is the first to third-party API. And I'm encountering this error.

Some hint?

obs: i'm following this topic:

http://scn.sap.com/people/sandeep.maurya4/blog/2011/01/23/pgp-encryptiondecryption-using-java-code#c...

baskar_gopalakrishnan2
Active Contributor
0 Kudos

That means there is a discrepancy in terms of jar (versions) between NWDS and PI jar. You really need to check each jar and version between the two.  Sometime some extra jars might be available in your local nwds classpath and that might help.  But the error clearly shows that at runtime jvm does not find that class.