September 07, 2010, 07:27:31 AM
Welcome,
Guest
. Please
login
or
register
.
September 07, 2010, 07:27:31 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
508
Posts in
100
Topics by
101
Members - Latest Member:
savanah34
Search:
Advanced search
StrongAuth, Inc. Forums
Home
|
Help
|
Search
|
Login
|
Register
StrongAuth, Inc. Forums
StrongKey Forum
J2EE Application Servers
JBoss
Strong Key Cleint Set Up Problem
« previous
next »
Pages:
[
1
]
Author
Topic: Strong Key Cleint Set Up Problem (Read 1655 times)
jayant
Guest
Strong Key Cleint Set Up Problem
«
on:
August 12, 2009, 08:11:40 AM »
Hi,
I had setup a strong key server using sun app server and my strong key application has properly deployed.I created a client pogram that request to SKS to get keys.This works fine for me as both client and server are on same machine.
I tried to create a new web application that will request for keys using servet and deployed to jboss server which is on other machine.
I am not able to request to SKS server and follwing error was thrown:
2009-08-12 21:29:35,933 ERROR [STDERR] Aug 12, 2009 9:29:35 PM com.strongauth.symkey.utility.common log
WARNING: KeyCachePolicy in local cache directory has expired: /usr/local/etc/symkey/cache/kcp.xml in com.strongauth.symkey.skcl.KCPImpl
2009-08-12 21:29:35,933 ERROR [STDERR] Aug 12, 2009 9:29:35 PM com.strongauth.symkey.utility.common log
SEVERE: Could not find/get a KeyCachePolicy for this client; using only the network for symmetric keys: in com.strongauth.symkey.skcl.SKSImpl
2009-08-12 21:29:35,933 ERROR [STDERR] Aug 12, 2009 9:29:35 PM com.strongauth.symkey.utility.common log
INFO: No matching key found in cache; going to SKS server on network: in getFromNetworkHelper
2009-08-12 21:29:35,934 ERROR [STDERR] com.sun.xml.wss.XWSSecurityException: java.lang.IllegalArgumentException: SOAPElement expected
2009-08-12 21:29:35,934 ERROR [STDERR] at com.sun.xml.wss.impl.misc.XWSSProcessor2_0Impl.secureOutboundMessage(XWSSProcessor2_0Impl.java:79)
2009-08-12 21:29:35,934 ERROR [STDERR] at com.strongauth.symkey.skcl.getFromNetworkHelper.execute(getFromNetworkHelper.java:161)
2009-08-12 21:29:35,934 ERROR [STDERR] at com.strongauth.symkey.skcl.SKSImpl.getSymkey(SKSImpl.java:582)[/color]2009-08-12 21:29:35,935 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2009-08-12 21:29:35,935 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2009-08-12 21:29:35,935 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2009-08-12 21:29:35,935 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2009-08-12 21:29:35,935 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2009-08-12 21:29:35,935 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2009-08-12 21:29:35,935 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
2009-08-12 21:29:35,935 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
2009-08-12 21:29:35,935 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
2009-08-12 21:29:35,935 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
2009-08-12 21:29:35,935 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
2009-08-12 21:29:35,935 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
2009-08-12 21:29:35,935 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
2009-08-12 21:29:35,935 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
2009-08-12 21:29:35,935 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
2009-08-12 21:29:35,935 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
2009-08-12 21:29:35,935 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
2009-08-12 21:29:35,935 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
2009-08-12 21:29:35,935 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
2009-08-12 21:29:35,936 ERROR [STDERR] Caused by: java.lang.IllegalArgumentException: SOAPElement expected
2009-08-12 21:29:35,936 ERROR [STDERR] at org.jboss.ws.soap.SOAPHeaderImpl.convertToHeaderElement(SOAPHeaderImpl.java:55)
2009-08-12 21:29:35,936 ERROR [STDERR] at org.jboss.ws.soap.SOAPHeaderImpl.insertBefore(SOAPHeaderImpl.java:186)
2009-08-12 21:29:35,936 ERROR [STDERR] at com.sun.xml.wss.impl.XMLUtil.prependChildElement(XMLUtil.java:300)
2009-08-12 21:29:35,936 ERROR [STDERR] at com.sun.xml.wss.impl.XMLUtil.prependChildElement(XMLUtil.java:307)
2009-08-12 21:29:35,936 ERROR [STDERR] at com.sun.xml.wss.impl.SecurableSoapMessage.findWsseSecurityHeaderBlock(SecurableSoapMessage.java:197)
2009-08-12 21:29:35,936 ERROR [STDERR] at com.sun.xml.wss.impl.SecurableSoapMessage.findOrCreateSecurityHeader(SecurableSoapMessage.java:225)
2009-08-12 21:29:35,936 ERROR [STDERR] at com.sun.xml.wss.impl.filter.TimestampFilter.process(TimestampFilter.java:120)
2009-08-12 21:29:35,936 ERROR [STDERR] at com.sun.xml.wss.impl.HarnessUtil.processWSSPolicy(HarnessUtil.java:68)
2009-08-12 21:29:35,936 ERROR [STDERR] at com.sun.xml.wss.impl.HarnessUtil.processDeep(HarnessUtil.java:218)
2009-08-12 21:29:35,936 ERROR [STDERR] at com.sun.xml.wss.impl.SecurityAnnotator.processMessagePolicy(SecurityAnnotator.java:143)
2009-08-12 21:29:35,936 ERROR [STDERR] at com.sun.xml.wss.impl.SecurityAnnotator.secureMessage(SecurityAnnotator.java:118)
2009-08-12 21:29:35,936 ERROR [STDERR] at com.sun.xml.wss.impl.misc.XWSSProcessor2_0Impl.secureOutboundMessage(XWSSProcessor2_0Impl.java:77)
I am new to webservice and strong.Please help regarding this issues.Also i tried to run xenc from the machine where jboss is running and it runs fine.
«
Last Edit: August 12, 2009, 08:14:30 AM by jayant
»
Logged
arshadnoor
Administrator
Full Member
Posts: 212
Re: Strong Key Cleint Set Up Problem
«
Reply #1 on:
August 12, 2009, 06:08:15 PM »
Hi Jayant,
While I'm glad that you got StrongKey working with the Sun AppServer, I'm sorry that you're facing problems with your web application on JBoss. You shouldn't have to since a web-application that follows the xenc model is no different from xenc requesting a symmetric key from the SKS server. It is not required that the client be on the same machine as the SKS server - it should work from another machine just as it does from the local machine.
Based on the error you've shown, it appears that your KeyCachePolicy has expired. Technically, when this happens, the SKCL will automatically go out and get a new KCP from the server. If xenc is not seeing a problem with the same key-cache directory, then something is missing in your web-servlet. I am assuming you've linked in the SKCL jar file into your web application and deployed it like any other servlet/J2EE application.
Try deleting everything from the cache directory (except the cache directory itself) and run the servlet. See if it is actually getting a new KCP from the SKS server. It must and will. If it does not, post the messages from your servlet log that includes the SKCL messages. You might want to consider taking your log-level to a slightly more fine-grained level to get more detail on the sequence of activities as it passes from your servlet into the SKCL.
Logged
jayant
Guest
Re: Strong Key Cleint Set Up Problem
«
Reply #2 on:
August 13, 2009, 06:25:50 AM »
Hi Arshad,
Thanks for an immediate reply regarding my query.I tried deleting all the client specific directories but still facing the same problem.One thing i missed to specify that my jboss is running on linux machine.I tried switching to windows machine and it works file.
There is a problem while invoking the code "
SOAPMessage secureMsg = xwsp.secureOutboundMessage(pc);"
.Is there any extra configuration one needs to do while using strong key cleint on linux.Please see below the detailed log:
FINE: Leaving method body: : getKCP() in com.strongauth.symkey.skcl.KCPImpl
2009-08-13 14:00:02,931 ERROR [STDERR] Aug 13, 2009 2:00:02 PM com.strongauth.symkey.utility.common log
SEVERE: Could not find/get a KeyCachePolicy for this client; using only the network for symmetric keys: in com.strongauth.symkey.skcl.SKSImpl
2009-08-13 14:00:02,934 ERROR [STDERR] Aug 13, 2009 2:00:02 PM com.strongauth.symkey.utility.common log
FINE: Entering method body: : setup() in getFromNetworkHelper
2009-08-13 14:00:02,934 ERROR [STDERR] Aug 13, 2009 2:00:02 PM com.strongauth.symkey.utility.common log
FINE: Executing method: : SOAPConnectionFactory in getFromNetworkHelper
2009-08-13 14:00:02,935 ERROR [STDERR] Aug 13, 2009 2:00:02 PM com.strongauth.symkey.utility.common log
FINE: Executing method: : SOAPConnection in getFromNetworkHelper
2009-08-13 14:00:02,935 ERROR [STDERR] Aug 13, 2009 2:00:02 PM com.strongauth.symkey.utility.common log
FINE: Executing method: in getFromNetworkHelper: SOAPFactory in getFromNetworkHelper
2009-08-13 14:00:02,936 ERROR [STDERR] Aug 13, 2009 2:00:02 PM com.strongauth.symkey.utility.common log
FINE: Executing method: in getFromNetworkHelper: MessageFactory in getFromNetworkHelper
2009-08-13 14:00:02,936 ERROR [STDERR] Aug 13, 2009 2:00:02 PM com.strongauth.symkey.utility.common log
FINE: Leaving method body: : setup() in getFromNetworkHelper
2009-08-13 14:00:02,937 ERROR [STDERR] Aug 13, 2009 2:00:02 PM com.strongauth.symkey.utility.common log
INFO: No matching key found in cache; going to SKS server on network: in getFromNetworkHelper
2009-08-13 14:00:02,937 ERROR [STDERR] Aug 13, 2009 2:00:02 PM com.strongauth.symkey.utility.common log
FINE: Executing method: : createMessage in getFromNetworkHelper
2009-08-13 14:00:02,937 ERROR [STDERR] Aug 13, 2009 2:00:02 PM com.strongauth.symkey.utility.common log
FINE: Executing method: : getSOAPBody in getFromNetworkHelper
2009-08-13 14:00:02,938 ERROR [STDERR] Aug 13, 2009 2:00:02 PM com.strongauth.symkey.utility.common log
FINE: Executing method: : createName in getFromNetworkHelper
2009-08-13 14:00:02,938 ERROR [STDERR] Aug 13, 2009 2:00:02 PM com.strongauth.symkey.utility.common log
FINE: Executing method: : addBodyElement: {http://www.strongauth.com/2006/01/symkey}SymkeyRequest in getFromNetworkHelper
2009-08-13 14:00:02,939 ERROR [STDERR] Aug 13, 2009 2:00:02 PM com.strongauth.symkey.utility.common log
FINE: Executing method: : createName(gkid) in getFromNetworkHelper
2009-08-13 14:00:02,939 ERROR [STDERR] Aug 13, 2009 2:00:02 PM com.strongauth.symkey.utility.common log
FINE: Executing method: : addChildElement in getFromNetworkHelper
2009-08-13 14:00:02,940 ERROR [STDERR] Aug 13, 2009 2:00:02 PM com.strongauth.symkey.utility.common log
FINE: Executing method: : addTextNode in getFromNetworkHelper
2009-08-13 14:00:02,944 ERROR [STDERR] Aug 13, 2009 2:00:02 PM com.strongauth.symkey.utility.common log
FINE: Executing method: : new ProcessingContext() - outbound in getFromNetworkHelper
2009-08-13 14:00:02,945 ERROR [STDERR] Aug 13, 2009 2:00:02 PM com.sun.xml.wss.impl.SecurableSoapMessage init
CONFIG: WSS0100: Method Processor.createFor creating instance of com.sun.xml.wss.impl.SecurableSoapMessage
2009-08-13 14:00:02,945 ERROR [STDERR] com.sun.xml.wss.XWSSecurityException: java.lang.IllegalArgumentException: SOAPElement expected
2009-08-13 14:00:02,946 ERROR [STDERR] at com.sun.xml.wss.impl.misc.XWSSProcessor2_0Impl.secureOutboundMessage(XWSSProcessor2_0Impl.java:79)
2009-08-13 14:00:02,946 ERROR [STDERR] at com.strongauth.symkey.skcl.getFromNetworkHelper.execute(getFromNetworkHelper.java:161)
2009-08-13 14:00:02,946 ERROR [STDERR] at com.strongauth.symkey.skcl.SKSImpl.getSymkey(SKSImpl.java:582)
2009-08-13 14:00:02,946 ERROR [STDERR] at com.test.crypto.strongkey.symkey.service.PKICryptoService.getKey(PKICryptoService.java:93)
2009-08-13 14:00:02,946 ERROR [STDERR] at com.test.crypto.strongkey.symkey.PKIEncryptionDecryptionServlet.service(PKIEncryptionDecryptionServlet.java:51)
2009-08-13 14:00:02,946 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2009-08-13 14:00:02,946 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2009-08-13 14:00:02,946 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2009-08-13 14:00:02,946 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2009-08-13 14:00:02,946 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2009-08-13 14:00:02,946 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2009-08-13 14:00:02,946 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
2009-08-13 14:00:02,946 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
2009-08-13 14:00:02,946 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
2009-08-13 14:00:02,946 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
2009-08-13 14:00:02,946 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
2009-08-13 14:00:02,947 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
2009-08-13 14:00:02,947 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
2009-08-13 14:00:02,947 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
2009-08-13 14:00:02,947 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
2009-08-13 14:00:02,947 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
2009-08-13 14:00:02,947 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
2009-08-13 14:00:02,947 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
2009-08-13 14:00:02,947 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
2009-08-13 14:00:02,947 ERROR [STDERR] Caused by: java.lang.IllegalArgumentException: SOAPElement expected
2009-08-13 14:00:02,947 ERROR [STDERR] at org.jboss.ws.soap.SOAPHeaderImpl.convertToHeaderElement(SOAPHeaderImpl.java:55)
2009-08-13 14:00:02,947 ERROR [STDERR] at org.jboss.ws.soap.SOAPHeaderImpl.insertBefore(SOAPHeaderImpl.java:186)
2009-08-13 14:00:02,947 ERROR [STDERR] at com.sun.xml.wss.impl.XMLUtil.prependChildElement(XMLUtil.java:300)
2009-08-13 14:00:02,947 ERROR [STDERR] at com.sun.xml.wss.impl.XMLUtil.prependChildElement(XMLUtil.java:307)
2009-08-13 14:00:02,947 ERROR [STDERR] at com.sun.xml.wss.impl.SecurableSoapMessage.findWsseSecurityHeaderBlock(SecurableSoapMessage.java:197)
2009-08-13 14:00:02,947 ERROR [STDERR] at com.sun.xml.wss.impl.SecurableSoapMessage.findOrCreateSecurityHeader(SecurableSoapMessage.java:225)
2009-08-13 14:00:02,947 ERROR [STDERR] at com.sun.xml.wss.impl.filter.TimestampFilter.process(TimestampFilter.java:120)
2009-08-13 14:00:02,948 ERROR [STDERR] at com.sun.xml.wss.impl.HarnessUtil.processWSSPolicy(HarnessUtil.java:68)
2009-08-13 14:00:02,948 ERROR [STDERR] at com.sun.xml.wss.impl.HarnessUtil.processDeep(HarnessUtil.java:218)
2009-08-13 14:00:02,948 ERROR [STDERR] at com.sun.xml.wss.impl.SecurityAnnotator.processMessagePolicy(SecurityAnnotator.java:143)
2009-08-13 14:00:02,948 ERROR [STDERR] at com.sun.xml.wss.impl.SecurityAnnotator.secureMessage(SecurityAnnotator.java:118)
2009-08-13 14:00:02,948 ERROR [STDERR] at com.sun.xml.wss.impl.misc.XWSSProcessor2_0Impl.secureOutboundMessage(XWSSProcessor2_0Impl.java:77)
2009-08-13 14:00:02,948 ERROR [STDERR] ... 23 more
2009-08-13 14:00:02,948 ERROR [STDERR] Aug 13, 2009 2:00:02 PM com.strongauth.symkey.utility.common log
FINE: Leaving method body: : getSymkey() in com.strongauth.symkey.skcl.SKSImpl
2009-08-13 14:00:02,949 ERROR [STDERR] ERROR Occured:Key not found
2009-08-13 14:00:02,949 ERROR [STDERR] com.test.crypto.strongkey.symkey.exception.PKICryptoException: Key not found
2009-08-13 14:00:02,949 ERROR [STDERR] at com.test.crypto.strongkey.symkey.service.PKICryptoService.getKey(PKICryptoService.java:95)
2009-08-13 14:00:02,949 ERROR [STDERR] at com.test.crypto.strongkey.symkey.PKIEncryptionDecryptionServlet.service(PKIEncryptionDecryptionServlet.java:51)
2009-08-13 14:00:02,949 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2009-08-13 14:00:02,949 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2009-08-13 14:00:02,949 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2009-08-13 14:00:02,949 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2009-08-13 14:00:02,949 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2009-08-13 14:00:02,949 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2009-08-13 14:00:02,949 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
2009-08-13 14:00:02,949 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
2009-08-13 14:00:02,949 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
2009-08-13 14:00:02,949 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
2009-08-13 14:00:02,949 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
2009-08-13 14:00:02,949 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
2009-08-13 14:00:02,950 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
2009-08-13 14:00:02,950 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
2009-08-13 14:00:02,950 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
2009-08-13 14:00:02,950 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
2009-08-13 14:00:02,950 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
2009-08-13 14:00:02,950 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
2009-08-13 14:00:02,950 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
2009-08-13 14:00:02,950 ERROR [STDERR] com.test.crypto.strongkey.symkey.exception.PKICryptoException: com.test.crypto.strongkey.symkey.exception.PKICryptoException: Key not found
2009-08-13 14:00:02,950 ERROR [STDERR] at com.test.crypto.strongkey.symkey.service.PKICryptoService.getKey(PKICryptoService.java:100)
2009-08-13 14:00:02,950 ERROR [STDERR] at com.test.crypto.strongkey.symkey.PKIEncryptionDecryptionServlet.service(PKIEncryptionDecryptionServlet.java:51)
2009-08-13 14:00:02,950 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2009-08-13 14:00:02,950 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2009-08-13 14:00:02,950 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2009-08-13 14:00:02,950 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2009-08-13 14:00:02,950 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2009-08-13 14:00:02,951 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2009-08-13 14:00:02,951 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
2009-08-13 14:00:02,951 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
2009-08-13 14:00:02,951 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
2009-08-13 14:00:02,951 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
2009-08-13 14:00:02,951 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
2009-08-13 14:00:02,951 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
2009-08-13 14:00:02,951 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
2009-08-13 14:00:02,951 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
2009-08-13 14:00:02,951 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
2009-08-13 14:00:02,951 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
2009-08-13 14:00:02,951 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
2009-08-13 14:00:02,951 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
2009-08-13 14:00:02,951 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
2009-08-13 14:00:02,951 ERROR [STDERR] Caused by: com.test.crypto.strongkey.symkey.exception.PKICryptoException: Key not found
2009-08-13 14:00:02,951 ERROR [STDERR] at com.test.crypto.strongkey.symkey.service.PKICryptoService.getKey(PKICryptoService.java:95)
2009-08-13 14:00:02,951 ERROR [STDERR] ... 20 more
2009-08-13 14:00:02,955 DEBUG [bC] 24a42c89:1250152202955 HTTPConnResp.getResponseString()
2009-08-13 14:00:02,958 DEBUG [bC] 39ce508a:1250152202958 responseText: Error
Apart from this,i have one more question.When a new key is generated and for requesting that new key through a specific end entity,I need to add a key grant for that end entity from strong key GUI.Is it possible to provide a key grant for an end entity for all key that are generated.
Logged
arshadnoor
Administrator
Full Member
Posts: 212
Re: Strong Key Cleint Set Up Problem
«
Reply #3 on:
August 13, 2009, 09:36:41 AM »
Hi Jayant,
It is possible that you're running into an issue that others have seen with the SOAP libraries from Sun. Take a look at the last message on this thread:
http://www.strongauth.com/forum/index.php?topic=54.0
and download the alternate SOAP libraries and see if they solve the problem on Linux.
Another trick you might try is to copy the saaj-impl.jar and saaj-api.jar from your Windows implementation to the Linux machine and see if that makes a difference. It could be that your Linux jars are corrupt.
Quote
Apart from this,i have one more question.When a new key is generated and for requesting that new key through a specific end entity,I need to add a key grant for that end entity from strong key GUI.Is it possible to provide a key grant for an end entity for all key that are generated.
Yes, it is possible. What you need to do is first create a KeyGroup and add the end-entity to the KeyGroup. Then you create a KeyGrant that gives the KeyGroup access to all keys created by a specific end-entity. If you want the end-entity to have access to ALL keys created by all end-entities, then create a Group (which is different from a KeyGroup) and add the end-entities that create symmetric keys to that Group. Finally, give the KeyGroup a grant to all keys created by the Group. The end result is that any end-entity within that KeyGroup will have access to all keys created by end-entities within the Group.
I hope you don't find this confusing. Just remember that a Group is nothing more than a collection of end-entities. A KeyGroup is a collection of end-entities (again) who have access to keys generated by end-entities or Groups.
Logged
jayant
Guest
Re: Strong Key Cleint Set Up Problem
«
Reply #4 on:
August 14, 2009, 07:50:38 AM »
Hi Arshad,
Got the problem and now my App was running fine.
There was a problem with jboss classloader which overrides classes in the jars used for strong key.There is an attribute in jbossweb-tomcat55.sar\META-INF\jboss-service.xml named "UseJBossWebLoader" which is set to true causing my strong key App not working.When i set this attribute to false,my app runs fine.So i found an alternative solution to deploy my servelt in different jboss instance which has this attribute set to false.
And thanks for your immediate replys.Will ask more quereis as i get involved more in strong key.
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
CSRTool Forum
-----------------------------
=> Announcements
=> Bugs
=> Installation
=> RSA
=> ECDSA
=> Building CSRTool
=> Feature Requests
=> Documentation
=> Miscellaneous
-----------------------------
StrongKey Forum
-----------------------------
=> Announcements
=> Bugs
=> Installation
=> RDBMS
===> MySQL
===> Oracle
===> DB2
===> SQL Server
=> J2EE Application Servers
===> Sun
===> JBoss
===> WebSphere
=> SKCL
=> SKS servers
=> Administration Console
=> Cryptography & Digital Certificates
=> xenc
=> Documentation
=> Feature Requests
=> Miscellaneous