Tagged: jboss

JBoss and BouncyCastleProvider – SecurityException : “cannot authenticate the provider”

Are you having problems trying to use the BouncyCastleProvider from your app on Jboss 5.x + (i.e. like the errors listed below)? If so and you don’t want to spend hours trying to workaround this issue in Jboss, just follow this guy’s instructions and get back to business: http://www.randombugs.com/java/javalangsecurityexception-jce-authenticate-provider-bc.html

Some background regarding this Jboss issue at https://issues.jboss.org/browse/AS7-308

Errors that can be fixed by doing the above:

java.lang.SecurityException: JCE cannot authenticate the provider BC: org.jasypt.exceptions.EncryptionInitializationException: java.lang.SecurityException: JCE cannot authenticate the provider BC


Caused by: java.util.jar.JarException: Cannot parse vfs: /path/to/your/bouncycastle.jar



Book Review: JBoss in Action

This is a review of the the book JBoss in Action by Javid Jamae and Peter Johnson. The last time I looked at JBoss was about 2 years ago when our team was evaluating migrating our in house DAM application to the platform. We looked at JBoss mainly due to its integrated JGroups distributed caching capabilities which was what we wanted to use to enable our app to move horizontally. Anyways, long story short, that team no longer exists and I am working with Flex/AS3 now, so I picked up this book to keep up to speed on the latest going on with JBoss and to get an overview of its features.

This book is excellent. For such a complex application server, the authors do an excellent job of tackling each major JEE container service that JBoss provides, in a clear and concise manner and well explained and with small examples. This book is targeted towards advanced Java developers and even JEE app server admins, however I also feel that an intermediate Java developer could pick up this book and get started with this container just as easily. The book covers all the major JEE container services as well as JBoss Portal, and finally some excellent coverage on moving to production which covers clustering and tuning etc.

Overall I would give this book an A++.