Thank you guys got the issue resolved by replacing the bouncy castle jar as in [1].
[1]. http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-Exception-occurs-when-running-ESB-sample-200-td89572.html On Mon, Feb 9, 2015 at 12:07 PM, Chathura Priyankara <[email protected]> wrote: > Hi Malith, > > I got the same issue when I'm having both JDK 1.7 and 1.8 installed in my > computer. However I was able to solve the problem and run the ESB sample > 100 successfully after making JDK 1.7 as the default Java version in my > machine. > > Thanks! > Best regards, > > On Mon, Feb 9, 2015 at 11:11 AM, Chathura Priyankara <[email protected]> > wrote: > >> Hi Malith, >> >> I got the same issue when I'm having both java 1.7 and 1.8 installed in >> my computer. How ever I was able to solve the problem and run the ESB >> sample 100 successfully after making Java 1.7 as the default Java version >> in my machine. >> >> Thanks! >> Best regrads, >> >> On Mon, Feb 9, 2015 at 11:03 AM, Thusitha Thilina Dayaratne < >> [email protected]> wrote: >> >>> Hi Malith, >>> >>> I got the same error when I tried with JDK 1.7u7. I was able to fix that >>> using [1] >>> [1] - >>> http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html >>> >>> Thanks >>> >>> On Mon, Feb 9, 2015 at 10:33 AM, Malith Munasinghe <[email protected]> >>> wrote: >>> >>>> >>>> While doing ESB 4.8.1 sample #100 Using WS-Security for Outgoing >>>> Messages I encountered the following error [1] on ESB. Also the >>>> axis2Server threw the error [2]. JDK 1.7u75 is used with necessary >>>> prerequisites mentioned on the documentation. >>>> >>>> Also I referred to [3], [4] links for a resolution as well but the >>>> error continues. >>>> >>>> When I ran the same sample using JDK 1.8 expected results were >>>> achieved. >>>> >>>> Is there anything that I have to do to get it working on JDK 1.7 as >>>> well ? >>>> >>>> >>>> *[1] ESB Error* >>>> >>>> [2015-02-09 09:45:38,191] ERROR - AxisEngine InvalidSecurity >>>> org.apache.axis2.AxisFault: InvalidSecurity >>>> at >>>> org.apache.rampart.handler.PostDispatchVerificationHandler.invoke(PostDispatchVerificationHandler.java:164) >>>> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340) >>>> at org.apache.axis2.engine.Phase.invoke(Phase.java:313) >>>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261) >>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167) >>>> at >>>> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225) >>>> at >>>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >>>> at java.lang.Thread.run(Thread.java:745) >>>> [2015-02-09 09:45:38,193] ERROR - ClientWorker Fault processing >>>> response message through Axis2 >>>> org.apache.axis2.AxisFault: InvalidSecurity >>>> at >>>> org.apache.rampart.handler.PostDispatchVerificationHandler.invoke(PostDispatchVerificationHandler.java:164) >>>> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340) >>>> at org.apache.axis2.engine.Phase.invoke(Phase.java:313) >>>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261) >>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167) >>>> at >>>> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225) >>>> at >>>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >>>> at java.lang.Thread.run(Thread.java:745) >>>> >>>> >>>> >>>> *[2] axis2Server error* >>>> >>>> 15/02/09 09:45:37 ERROR engine.AxisEngine: An unsupported signature or >>>> encryption algorithm was used (unsupported key transport encryption >>>> algorithm: No such algorithm: >>>> http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p); nested exception is: >>>> java.security.NoSuchAlgorithmException: Cannot find any provider >>>> supporting RSA/ECB/OAEPPadding >>>> org.apache.axis2.AxisFault: An unsupported signature or encryption >>>> algorithm was used (unsupported key transport encryption algorithm: No such >>>> algorithm: http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p); nested >>>> exception is: >>>> java.security.NoSuchAlgorithmException: Cannot find any provider >>>> supporting RSA/ECB/OAEPPadding >>>> at >>>> org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180) >>>> at >>>> org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95) >>>> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340) >>>> at org.apache.axis2.engine.Phase.invoke(Phase.java:313) >>>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261) >>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167) >>>> at >>>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) >>>> at >>>> org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:459) >>>> at >>>> org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:279) >>>> at >>>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >>>> at java.lang.Thread.run(Thread.java:745) >>>> Caused by: org.apache.ws.security.WSSecurityException: An unsupported >>>> signature or encryption algorithm was used (unsupported key transport >>>> encryption algorithm: No such algorithm: >>>> http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p); nested exception is: >>>> java.security.NoSuchAlgorithmException: Cannot find any provider >>>> supporting RSA/ECB/OAEPPadding >>>> at >>>> org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(WSSecurityUtil.java:785) >>>> at >>>> org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:156) >>>> at >>>> org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:119) >>>> at >>>> org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:95) >>>> at >>>> org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:332) >>>> at >>>> org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:249) >>>> at org.apache.rampart.RampartEngine.process(RampartEngine.java:214) >>>> at >>>> org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92) >>>> ... 11 more >>>> Caused by: java.security.NoSuchAlgorithmException: Cannot find any >>>> provider supporting RSA/ECB/OAEPPadding >>>> at javax.crypto.Cipher.getInstance(Cipher.java:524) >>>> at >>>> org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(WSSecurityUtil.java:777) >>>> ... 18 more >>>> 15/02/09 09:45:37 ERROR nhttp.ServerWorker: Error processing POST >>>> request >>>> org.apache.axis2.AxisFault: An unsupported signature or encryption >>>> algorithm was used (unsupported key transport encryption algorithm: No such >>>> algorithm: http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p); nested >>>> exception is: >>>> java.security.NoSuchAlgorithmException: Cannot find any provider >>>> supporting RSA/ECB/OAEPPadding >>>> at >>>> org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180) >>>> at >>>> org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95) >>>> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340) >>>> at org.apache.axis2.engine.Phase.invoke(Phase.java:313) >>>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261) >>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167) >>>> at >>>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) >>>> at >>>> org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:459) >>>> at >>>> org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:279) >>>> at >>>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >>>> at java.lang.Thread.run(Thread.java:745) >>>> Caused by: org.apache.ws.security.WSSecurityException: An unsupported >>>> signature or encryption algorithm was used (unsupported key transport >>>> encryption algorithm: No such algorithm: >>>> http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p); nested exception is: >>>> java.security.NoSuchAlgorithmException: Cannot find any provider >>>> supporting RSA/ECB/OAEPPadding >>>> at >>>> org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(WSSecurityUtil.java:785) >>>> at >>>> org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:156) >>>> at >>>> org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:119) >>>> at >>>> org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:95) >>>> at >>>> org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:332) >>>> at >>>> org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:249) >>>> at org.apache.rampart.RampartEngine.process(RampartEngine.java:214) >>>> at >>>> org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92) >>>> ... 11 more >>>> Caused by: java.security.NoSuchAlgorithmException: Cannot find any >>>> provider supporting RSA/ECB/OAEPPadding >>>> at javax.crypto.Cipher.getInstance(Cipher.java:524) >>>> at >>>> org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(WSSecurityUtil.java:777) >>>> ... 18 more >>>> >>>> [3] >>>> http://evanthika.blogspot.com/2014/02/solving-orgapachewssecuritywssecurityex.html >>>> >>>> [4] >>>> http://stackoverflow.com/questions/20182314/error-engine-axisengine-an-unsupported-signature-or-encryption-algorithm-was-us >>>> >>>> >>>> -- >>>> Malith Munasinghe | Software Engineer >>>> M: +94 (071) 9401122 >>>> E: [email protected] >>>> W: http://wso2.com >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Thusitha Dayaratne >>> Software Engineer | WSO2 Inc >>> >>> Email [email protected] >>> Mobile +94712756809 >>> Blog alokayasoya.blogspot.com >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Chathura Priyankara >> Software Engineer | WSO2 Inc. >> Mobile : +94718795340 >> Blog : www.codeoncloud.blogspot.com >> > > > > -- > Chathura Priyankara > Software Engineer | WSO2 Inc. > Mobile : +94718795340 > Blog : www.codeoncloud.blogspot.com > -- Malith Munasinghe | Software Engineer M: +94 (071) 9401122 E: [email protected] W: http://wso2.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
