hi all,
I have a web application which allow user to deal with JAVA Keystore. I'm using 
BouncyCastle library to deal with PKCS#12 keystore. In order for my application 
to use BC provider, i need to instantiate the provider and add it into my 
Security Provider as followed :

// Instantiate the BouncyCastle provider
Class bcProvClass = 
Class.forName("org.bouncycastle.jce.provider.BouncyCastleProvider");
Provider bcProv = (Provider)bcProvClass.newInstance();

// Add BC as a security provider
Security.addProvider(bcProv);

The application works fine when the first time i run it. The problem arises 
after I redeploy my application (without restart JBoss) and my application 
trying to get the Keystore instance.
Code to get Keystore instance :
keyStore = KeyStore.getInstance(keyStoreType.toString(), "BC");

The error returned to me is :

01:17:50,064 INFO  [WebappClassLoader] Illegal access: this web application 
instance has been stopped already (the eventual following stack trace is caused 
by an error thrown for debugging purposes as well as to attempt to terminate 
the thread which caused the illegal access, and has no functional impact)
01:17:50,134 ERROR [Engine] StandardWrapperValve[action]: Servlet.service() for 
servlet action threw exception
java.lang.ThreadDeath
        at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1229)
        at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
        at java.security.Security.doGetImpl(Security.java:1123)
        at java.security.Security.doGetImpl(Security.java:1084)
        at java.security.Security.getImpl(Security.java:1068)
        at java.security.KeyStore.getInstance(KeyStore.java:238)


any ideas how to overcome this?

thanks..

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870054#3870054

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3870054


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to