This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Web Services and the fly likes java.lang.SecurityException: Jurisdiction policy files are not signed by trusted sign Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "java.lang.SecurityException: Jurisdiction policy files are not signed by trusted sign" Watch "java.lang.SecurityException: Jurisdiction policy files are not signed by trusted sign" New topic
Author

java.lang.SecurityException: Jurisdiction policy files are not signed by trusted sign

Parul Saxena
Greenhorn

Joined: Jan 24, 2008
Posts: 6
Hi,

We have implemented encryption and decryption of some token data in jsp using JCE(Java Cryptography extensions), we are able to run successfully this code on windows with Weblogic and Tomcat but receiving following exception while running it on Solaris with iPlanet.

JDK version: jdk142_13.

Also a standalone application with the same cryptography code is able to give the desired results on the solaris with same jdk version.

Added following jars in the classpath for iPlanet:
->jce.jar
->jsse.jar
->sunjce_provider.jar

[11/Mar/2008:07:46:20] failure ( 3748): Internal error: Unexpected error condition thrown (unknown exception,no description), stack: java.lang.ExceptionInInitializerError
at javax.crypto.Cipher.a(DashoA12275)
at javax.crypto.Cipher.getInstance(DashoA12275)
at _jsps._vzESPGetToken_jsp.encryptData(_vzESPGetToken_jsp.java:56)
at _jsps._vzESPGetToken_jsp._jspService(_vzESPGetToken_jsp.java:163)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:897)
at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:464)
Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
at javax.crypto.SunJCE_b.<clinit>(DashoA12275)
... 8 more
Caused by: java.lang.SecurityException: Jurisdiction policy files are not signed by trusted signers!
at javax.crypto.SunJCE_b.g(DashoA12275)
at javax.crypto.SunJCE_b.f(DashoA12275)
at javax.crypto.SunJCE_t.run(DashoA12275)
at java.security.AccessController.doPrivileged(Native Method)
... 9 more

We have already put lots of efforts and still not able to resolve the issue, this is happening only when we are trying to access jsp on iPlanet.

If anyone is having any suggestions, please reply.
Its very urgent.

Thanks,
Parul
Sireesha Gaddipati
Greenhorn

Joined: Apr 25, 2008
Posts: 1
I am having the same problem. Did you fid a solution yet?

Thanks,
Sireesha
rakesh sugirtharaj
Ranch Hand

Joined: Dec 16, 2007
Posts: 151
I dont know the soluton but this error probably occurs because of the difference in jvms - between IBM and Sun's versions. does someone know the solution?


Cheers!
RSR
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.SecurityException: Jurisdiction policy files are not signed by trusted sign