p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

cryptography thread: exception "Cannot set up certs on trusted CAs" on WSAD


Message #1 by "martin chu" <martin_chu999@s...> on Fri, 2 Aug 2002 04:57:12
Hi, 

I am using the WSAD (Websphere Studio Application Developer) to test the 
encryption and decryption of some password and got the captioned exception.
I have checked that all the four jars exist in the jre/lib/ext library :
ibmjcefw.jar
ibmjceprovider.jar
local_policy.jar
us_export_policy.jar

Also set the java.security file to include the IBMJCE provider.

However, what event I try, I still get the same exception, 
I am wondering whether it is deal with the name of the path since
somebody in the web just raised that the path name cannot have space on 
it. Do anybody know the reason? Or do the WSAD cannot support the use of
decryption with IBMJCE ? I have tried for many hours and I am waiting for 
your help and the project is at a halt :(,

Thanks a lot
martin, 
the exception is attached for your reference
[:626 CST02年7月25日 14?r03分] 76d40930 ExceptionUtil X CNTR0020E:在 bean 
BeanId(sdr273#sdr291EJB1.jar#SecurityControl, null) 上处理方法 sendOrder 
时发生非应用程序异常:java.lang.ExceptionInInitializerError: 
java.lang.SecurityException: Cannot set up certs for trusted CAs
	at javax.crypto.a.<clinit>(Unknown Source)
	at javax.crypto.Cipher.getInstance(Unknown Source)
	at core.sc.util.jce.JCETool.decipherStr(JCETool.java:75)
	at core.sc.scs.ejb.cmd.AuthenticationCmd.checkAuthKey
(AuthenticationCmd.java:862)
	at core.sc.scs.ejb.cmd.AuthenticationCmd.signOn
(AuthenticationCmd.java:90)
	at core.sc.scs.ejb.service.AuthenticationService.signOn
(AuthenticationService.java:85)
	at core.sc.scs.ejb.controller.UserSignOnController.signOn
(UserSignOnController.java:172)
	at core.sc.scs.ejb.controller.UserSignOnController.getResponse
(UserSignOnController.java:111)
	at core.sc.scs.ejb.AccessController.getMessage
(AccessController.java:181)
	at core.sc.scs.ejb.AccessController.processOrder
(AccessController.java:62)
	at core.sc.scs.ejb.ScsBean.sendOrder(ScsBean.java:64)
	at core.sc.scs.ejb.EJSRemoteStatelessScs.sendOrder
(EJSRemoteStatelessScs.java:81)
	at core.sc.scs.ejb._Scs_Stub.sendOrder(_Scs_Stub.java:270)
	at core.sc.scs.ejb.client.ScsMessenger.sendOrder
(ScsMessenger.java:57)
	at core.sc.txm.ejb.TxnController.processOrder
(TxnController.java:178)
	at core.sc.txm.ejb.TxnController.processOrder
(TxnController.java:133)
	at core.sc.txm.ejb.TxnManagerBean.receiveRequest
(TxnManagerBean.java:64)
	at core.sc.txm.ejb.EJSRemoteStatelessTxnManager.receiveRequest
(EJSRemoteStatelessTxnManager.java:25)
	at core.sc.txm.ejb._TxnManager_Stub.receiveRequest
(_TxnManager_Stub.java:297)
	at core.sc.txm.ejb.client.TxnConnector.sendRequest
(TxnConnector.java:67)
	at core.util.screen.CBMsgHandler.sendRequest(CBMsgHandler.java:116)
	at core.util.screen.ScreenLogicOld.sendRequest
(ScreenLogicOld.java:748)
	at core.util.screen.ScreenBasic.sendRequest(ScreenBasic.java:237)
	at core.util.screen.SystemScreen.signOn(SystemScreen.java:132)
	at java.lang.reflect.Method.invoke(Native Method)
	at core.util.screen.TrxServlet.handleHttpRequest
(TrxServlet.java:165)
	at core.util.screen.TrxServlet.doGet(TrxServlet.java:72)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at com.ibm.servlet.engine.webapp.StrictServletInstance.doService
(ServletManager.java:827)
	at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service
(StrictLifecycleServlet.java:167)
	at com.ibm.servlet.engine.webapp.IdleServletState.service
(StrictLifecycleServlet.java:297)
	at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
(StrictLifecycleServlet.java:110)
	at com.ibm.servlet.engine.webapp.ServletInstance.service
(ServletManager.java:472)
	at 
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch
(ServletManager.java:1012)
	at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch
(ServletManager.java:913)
	at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch
(WebAppRequestDispatcher.java:523)
	at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch
(WebAppRequestDispatcher.java:282)
	at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward
(WebAppRequestDispatcher.java:112)
	at com.ibm.servlet.engine.webapp.InvokerServlet.service
(InvokerServlet.java:267)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at com.ibm.servlet.engine.webapp.StrictServletInstance.doService
(ServletManager.java:827)
	at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service
(StrictLifecycleServlet.java:167)
	at com.ibm.servlet.engine.webapp.IdleServletState.service
(StrictLifecycleServlet.java:297)
	at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
(StrictLifecycleServlet.java:110)
	at com.ibm.servlet.engine.webapp.ServletInstance.service
(ServletManager.java:472)
	at 
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch
(ServletManager.java:1012)
	at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch
(ServletManager.java:913)
	at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch
(WebAppRequestDispatcher.java:523)
	at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch
(WebAppRequestDispatcher.java:282)
	at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward
(WebAppRequestDispatcher.java:112)
	at org.apache.jasper.runtime.PageContextImpl.forward
(PageContextImpl.java:498)
	at _main_jsp_0._jspService(_main_jsp_0.java:83)
	at org.apache.jasper.runtime.HttpJspBase.service
(HttpJspBase.java:142)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
(JspServlet.java:300)
	at org.apache.jasper.runtime.JspServlet.serviceJspFile
(JspServlet.java:430)
	at org.apache.jasper.runtime.JspServlet.service
(JspServlet.java:565)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at com.ibm.servlet.engine.webapp.StrictServletInstance.doService
(ServletManager.java:827)
	at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service
(StrictLifecycleServlet.java:167)
	at com.ibm.servlet.engine.webapp.IdleServletState.service
(StrictLifecycleServlet.java:297)
	at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
(StrictLifecycleServlet.java:110)
	at com.ibm.servlet.engine.webapp.ServletInstance.service
(ServletManager.java:472)
	at 
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch
(ServletManager.java:1012)
	at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch
(ServletManager.java:913)
	at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch
(WebAppRequestDispatcher.java:523)
	at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch
(WebAppRequestDispatcher.java:282)
	at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward
(WebAppRequestDispatcher.java:112)
	at com.ibm.servlet.engine.srt.WebAppInvoker.doForward
(WebAppInvoker.java:91)
	at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook
(WebAppInvoker.java:184)
	at 
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation
(CachedInvocation.java:67)
	at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI
(ServletRequestProcessor.java:122)
	at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service
(OSEListener.java:315)
	at com.ibm.servlet.engine.http11.HttpConnection.handleRequest
(HttpConnection.java:60)
	at com.ibm.ws.http.HttpConnection.readAndHandleRequest
(HttpConnection.java:323)
	at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
	at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

  Return to Index