DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39061>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39061

           Summary: Cannot undeploy application due to javax.crypto.Cipher
           Product: Tomcat 5
           Version: 5.5.15
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Webapps:Manager
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


When using ant to undeploy my web application the manager does not manage to 
undeploy a jar file.

The problem is that in the jar file a class uses javax.crypto.Cipher.

The problem is cause by the line ecipher.init(..) in the following code:


KeySpec keySpec = new DESedeKeySpec(newKey.getBytes("UTF8"));
SecretKey key = SecretKeyFactory.getInstance("DESede").generateSecret(keySpec);
                
Cipher ecipher = Cipher.getInstance("DESede");
ecipher.init(Cipher.ENCRYPT_MODE, key);


I tried adding the following code to force the garbage collector to remove the 
instance of the Cipher with no luck:


KeySpec keySpec = new DESedeKeySpec(newKey.getBytes("UTF8"));
SecretKey key = SecretKeyFactory.getInstance("DESede").generateSecret(keySpec);
                
Cipher ecipher = Cipher.getInstance("DESede");
ecipher.init(Cipher.ENCRYPT_MODE, key);

ecipher=null;
System.gc();

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to