I have Tomcat 5.0 set up on a Linux env running JDK 1.4.2. My Tomcat is not customized in any fashion (pretty much running out of the box). I have an external JCE provider (Phaos) that I'd like to use. I have added the provider into my list of approved providers by adding a reference to it under my JDK's java.security. security.provider.6=com.phaos.jce.provider.Phaos
I also have the provider jar (Phaos_JCE_Provider.jar) added to the WEB-INF/lib folder (and hence, into the tomcat classpath). With that background, here is the problem. I find that my Tomcat application does not seem to recognize Phaos as an available provider when I run (causing NoSuchAlgorithmExceptions). Does anyone have any ideas what the problem might be? Some additional pieces of information. - I can run this locally on my Windows system running a very similar configuration without any problem (Tomcat recognizes the provider). - I can run a test program on the Linux machine by adding the provider jar to my classpath and it recognized the provider fine. - I have confirmed that it is not a classpath issue within Tomcat. The Tomcat application can find the jar itself under WEB-INF/lib (used Classloader apis to confirm). - It does not seem to be an issue with permissions on Tomcat. I have added "permission java.security.AllPermission" to all the files under the WEB-INF/lib within the catalina.policy under my application. Still no success finding the provider. I CAN get this to work, IF I add the provider jar under the jre\lib\ext of my JDK and hence make it an installed extension. However, this is not an solution that is acceptable right now. I am looking for a solution that will allow me to keep the jar under the WEB-INF\lib and still be able to recognize the provider. Any ideas on how I can accomplish this? And why I am not able to get it working from within Tomcat while this works fine from a test program? Thanks. Madhuri