Are you using the Sun JVM? Paul
Kattubadi Basher Ahamed wrote: > > HI, > I am trying to do sample Sample 200: Using WS-Security with policy > attachments for proxy services > > Prerequisites: > You may also need to download and install the unlimited strength policy files > for your JDK before using Apache Rampart (e.g. see > http://java.sun.com/javase/downloads/index_jdk5.jsp) > > SO , I download this (Other Downloads Java Cryptography Extension (JCE) > Unlimited Strength Jurisdiction Policy Files 5.0) and unzip and put jce > folder in java home > > Start the Synapse configuration numbered 200: i.e. wso2server -Desb.sample=200 > Start the Axis2 server and deploy the SimpleStockQuoteService if not already > done > And Client > ant stockquote -Dtrpurl=http://localhost:8280/services/StockQuoteProxy > -Dpolicy=./../../repository/samples/resources/policy/client_policy_3.xml > > > I am getting bellow error:$$$$$$$$$$$ > > C:\DownLoad\BEA_Tools\WS02\wso2esb-2.0.1\samples\axis2Client>ant stockquote > -Dtrpurl=http://localhost:8280/services/StockQuoteProxy > -Dpolicy=./../../repository/samples/resourc > es/policy/client_policy_3.xml > Buildfile: build.xml > > init: > > compile: > > stockquote: > [java] 2009-03-17 09:42:53,735 [-] [main] ERROR SandeshaModule Could not > load module policies. Using default values. > [java] 2009-03-17 09:42:53,829 [-] [main] INFO MailTransportSender > MAILTO Sender started > [java] 2009-03-17 09:42:53,860 [-] [main] INFO JMSSender JMS Sender > started > [java] Using WS-Security > [java] org.apache.axis2.AxisFault: Error during encryption > [java] at > org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:70) > [java] at org.apache.axis2.engine.Phase.invoke(Phase.java:317) > [java] at > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264) > [java] at > org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:429) > [java] at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401) > [java] at > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) > [java] at > org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) > [java] at > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:548) > [java] at > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) > [java] at samples.userguide.StockQuoteClient.executeClient(Unknown > Source) > [java] at samples.userguide.StockQuoteClient.main(Unknown Source) > [java] Caused by: org.apache.rampart.RampartException: Error during > encryption > [java] at > org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:544) > [java] at > org.apache.rampart.builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:93) > [java] at > org.apache.rampart.MessageBuilder.build(MessageBuilder.java:147) > [java] at > org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:64) > [java] ... 10 more > [java] Caused by: org.apache.ws.security.WSSecurityException: Cannot > encrypt data; nested exception is: > [java] org.apache.xml.security.encryption.XMLEncryptionException: > Illegal key size or default parameters > [java] Original Exception was java.security.InvalidKeyException: Illegal > key size or default parameters > [java] at > org.apache.ws.security.message.WSSecEncrypt.doEncryption(WSSecEncrypt.java:571) > [java] at > org.apache.ws.security.message.WSSecEncrypt.doEncryption(WSSecEncrypt.java:458) > [java] at > org.apache.ws.security.message.WSSecEncrypt.encryptForInternalRef(WSSecEncrypt.java:355) > [java] at > org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:530) > [java] ... 13 more > [java] Caused by: > org.apache.xml.security.encryption.XMLEncryptionException: Illegal key size > or default parameters > [java] Original Exception was java.security.InvalidKeyException: Illegal > key size or default parameters > [java] at > org.apache.xml.security.encryption.XMLCipher.encryptData(Unknown Source) > [java] at > org.apache.xml.security.encryption.XMLCipher.encryptData(Unknown Source) > [java] at > org.apache.xml.security.encryption.XMLCipher.encryptElementContent(Unknown > Source) > [java] at > org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown Source) > [java] at > org.apache.ws.security.message.WSSecEncrypt.doEncryption(WSSecEncrypt.java:564) > [java] ... 16 more > > BUILD SUCCESSFUL > > _______________________________________________ > Esb-java-dev mailing list > [email protected] > https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev > -- Paul Fremantle CTO and Co-Founder, WSO2 OASIS WS-RX TC Co-chair VP, Apache Synapse Office: +44 844 484 8143 Cell: +44 798 447 4618 blog: http://pzf.fremantle.org [email protected] "Oxygenating the Web Service Platform", www.wso2.com _______________________________________________ Esb-java-dev mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev
