For Programmers: Free Programming Magazines  


Home > Archive > Java Security > September 2004 > Error by adding security provider









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Error by adding security provider
Michael

2004-09-27, 4:02 pm

Dear all,

I have encountered the following problem:

We are authenticating a client with a server.
The client uses jdk 1.3.
The server uses jdk 1.4

On the server side, we have a class named Crypto.class with following
call to the security provider Bouncy Castle:

...
Debug.printDebugMessage("com.tpg.util.Crypto", "dynamic provider
registration");
java.security.Security.addProvider(new
org.bouncycastle.jce.provider.BouncyCastleProvider());
Debug.printDebugMessage("com.tpg.util.Crypto", "provider registered");
...

The server code got stuck on the call of addProvider with the
following messages:

[27/Sep/2004:17:28:51] INFO (22840): CORE3282: stdout: Mon Sep 27
17:28:14 GMT+01:00 2004 [com.tpg.util.Crypto] dynamic provider
registration
[27/Sep/2004:17:28:51] SEVERE (22840):
NRU-com.tpg.backoffice.service.cmm.ejb.FPMTxnEJBBean: Cannot load from
BACKUPSTORE FOR Key: <40b8e5d31>
[27/Sep/2004:17:28:51] WARNING (22840):
[NRU-com.tpg.backoffice.service.cmm.ejb.FPMTxnEJBBean.1]: Invalid
sessionID: 40b8e5d31
[27/Sep/2004:17:28:51] SEVERE (22840): EJB5017: Exception while
running preinvoke : ejbName = [FPMTxnEJB]
[27/Sep/2004:17:28:51] SEVERE (22840):
javax.ejb.NoSuchObjectLocalException: The EJB does not exist.
at com.sun.ejb.containers.StatefulSessionContainer.getContext(StatefulSessionContainer.java:756)
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:495)
at com.sun.ejb.containers.StatefulSessionContainer.removeBean(StatefulSessionContainer.java:407)
at com.sun.ejb.containers.EJBObjectImpl.remove(EJBObjectImpl.java:159)
at com.tpg.backoffice.service.cmm.ejb._IFPMTxnEJB_Stub.remove(_IFPMTxnEJB_Stub.java:430)
at com.tpg.backoffice.service.generic.servlet.CommandProxyServlet.destroySession(CommandProxyServlet.java:180)
at com.tpg.backoffice.service.generic.servlet.CommandProxyServlet.doPost(CommandProxyServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at com.tpg.backoffice.service.generic.servlet.CommandProxyServlet.service(CommandProxyServlet.java:215)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.StandardWrapperValve. invokeServletService(StandardWrapperValv
e.java:720)
at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:158)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:850)

I have tried several ways:
1. using the new jce (downloaded from Bouncy Castle) for jdk 1.4 by
adding it in the <JAVA_HOME>jre/lib/ext, or by adding it in de lib to
be packed with the ejb's
2. comment out the addProvider, and add an entry in the java.security
file for Bouncy Castle (the static way)

But still receive the above error messages.

So, if any one has seen such problem before, please help !

Michael
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com