I am trying to cipher a string and am using weblogic6.0, when i run it as an application the code works, but not when i put it on the application server.

Amol Sant

The JDK/JRE used by weblogic is different from the one that you use on the command line.

Check the security file (java.security) for that JDK available under libsecurity and make changes if required for the provider you are using. Also check the classpath used by Weblogic. If required edit the startweblogic.cmd file to include the required files in the classpath. You can put the required files (generally jce1_2_1.jar and sunjce_provider.jar) in the libext of the jdk used by weblogic.