Wednesday 10 December 2014

Spring MVC : Preventing Duplicate Form Submission without Spring Security



Spring MVC so far has no out of box solution to prevent duplicate form submission yet , while below are the possible solutions :

Option 1 , javascript : disable submit button 


Option 2 , Post-Redirect-Get pattern : send a redirect after submit 


Option 3 , tokening : unique token between client and server 


Both option 1 and option 2 have drawbacks , let's see how to implement option 3.

Friday 21 November 2014

JBoss : ClassNotFoundException org.bouncycastle.jce.provider.BouncyCastleProvider


1. WHAT happened 

I downloaded jboss EAP 6.3.0.GA (AS 7.4.0.Final)  and when launching the server in standalone mode with jdk 1.7.0_25, below error is shown in the console :



 [The provider BC could not be added: org.bouncycastle.jce.provider.BouncyCastleProvider from [Module "org.apache.ws.security:main" from local module loader ......
java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider from [Module "org.apache.ws.security:main" from local module loader ......
Flag Counter