0 Replies Latest reply on Nov 2, 2012 2:34 PM by geeky2

    not able to use jce libs in jboss 5.1

    geeky2

      hello,

       

      environment:

           java version "1.6.0_32"

           jboss - 5.1

       

      while porting an application over to jboss 5.1 - we have run in to this issue:

       

      (http://stackoverflow.com/questions/6481627/java-security-illegal-key-size-or-default-parameters),

       

      resulting in these error messages in the logs (messages were snipped)

       

      the fix is to pull updated libs down


      -rw-r--r-- 1 mark users 2481 Nov 16  2006 local_policy.jar

      -r--r--r-- 1 mark users 8386 Nov 16  2006 README.txt

      -rw-r--r-- 1 mark users 2465 Nov 16  2006 US_export_policy.jar

       

      and place them in the $JAVA_HOME/jre/lib/security directory.

       

      to mimimize the impact - we would like to place them in the $JBOSS_HOME/server/lib or the $JBOSS_HOME/server/default/lib directory.

       

      but this does not seem to help,

       

      any suggestions?

      thx

      mark

       

       

       

      13:21:21,987 INFO  [STDOUT] Cryptography-->decryptKey()-->                                                
      13:21:23,020 ERROR [STDERR] java.security.InvalidKeyException: Illegal key size or default parameters     
      13:21:23,023 ERROR [STDERR] at javax.crypto.Cipher.a(DashoA13*..)                                     
      13:21:23,023 ERROR [STDERR] at javax.crypto.Cipher.a(DashoA13*..)                                     
      13:21:23,023 ERROR [STDERR] at javax.crypto.Cipher.a(DashoA13*..)                                     
      13:21:23,023 ERROR [STDERR] at javax.crypto.Cipher.init(DashoA13*..)                                  
      13:21:23,023 ERROR [STDERR] at javax.crypto.Cipher.init(DashoA13*..)                                  
      13:21:23,024 ERROR [STDERR] at com.sears.hs.subscription.security.Algorithm4.decryptKey(Algorithm4.java:57)
      13:21:23,024 ERROR [STDERR] at com.sears.hs.subscription.business.impl.MembershipBOImpl.decryptCCNumber(MembershipBOImpl.java:86)                                                                                    
      13:21:23,024 ERROR [STDERR] at com.sears.hs.subscription.business.impl.MembershipBOImpl.lookupMembership(MembershipBOImpl.java:368)                                                                                  
      13:21:23,024 ERROR [STDERR] at com.sears.hs.subscription.business.impl.MembershipBOImpl.editMembership(MembershipBOImpl.java:104)                                                                                    
      13:21:23,024 ERROR [STDERR] at com.sears.hs.subscription.manager.impl.MembershipManagerImpl.editMembership(MembershipManagerImpl.java:83)                                                                            
      13:21:23,024 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)            
      13:21:23,024 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                                                                                         
      13:21:23,025 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                                                                                 
      13:21:23,025 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)                       
      13:21:23,025 ERROR [STDERR] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)                                                                                            
      13:21:23,025 ERROR [STDERR] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)                                                                     
      13:21:23,025 ERROR [STDERR] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)                                                                             
      13:21:23,025 ERROR [STDERR] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)                                                                            
      13:21:23,025 ERROR [STDERR] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)                                                                             
      13:21:23,026 ERROR [STDERR] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)                                                                                              
      13:21:23,026 ERROR [STDERR] at $Proxy300.editMembership(Unkn