You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Maxime Colas des Francs <ma...@sts.ca> on 2003/08/07 19:46:10 UTC
tomcat and external provider
Hi
I detect a stange comportement of my tomcat when using an external security
provider
I want to use openpgp in my web application with cryptix provider
In a 'load-on-startup' servlet i add security provider like this :
java.security.Security.addProvider(new cryptix.jce.provider.CryptixCrypto());
java.security.Security.addProvider(new
cryptix.openpgp.provider.CryptixOpenPGP());
and i read a public key for future pgp encryption ...
when i start or restart manually tomcat, it works fine .
But when tomcat use its "Servlet Auto Reloader" when i change some code,
it reload my 'load-on-startup' servlet automaticly, add my two provider
like before
and ... crash during public key interpretation and write this in my
catalina.out :
WebappClassLoader: Resource '/WEB-INF/lib/mylib.jar' was modified; Date
is now: Thu Aug 07 13:41:15 EDT 2003 Was: Thu Aug 07 13:39:04 EDT 2003
WebappClassLoader: Lifecycle error : CL stopped
java.security.NoSuchAlgorithmException: Cannot find any provider supporting
ElGamal/ECB/PKCS#1
+ stack
so if i restart manually tomcat it works again ...
Smby can help me to fix this auto reload ?
thks by advance
Re: tomcat and external provider
Posted by Maxime Colas des Francs <ma...@sts.ca>.
I resolve that with copying criptyx jar in $CATALINA_HOME/shared/lib
Smbdy can explain this ?
At 13:46 2003-08-07 -0400, you wrote:
>Hi
>
>I detect a stange comportement of my tomcat when using an external
>security provider
>
>I want to use openpgp in my web application with cryptix provider
>
>In a 'load-on-startup' servlet i add security provider like this :
>
>java.security.Security.addProvider(new cryptix.jce.provider.CryptixCrypto());
>java.security.Security.addProvider(new
>cryptix.openpgp.provider.CryptixOpenPGP());
>and i read a public key for future pgp encryption ...
>
>when i start or restart manually tomcat, it works fine .
>
>But when tomcat use its "Servlet Auto Reloader" when i change some code,
>it reload my 'load-on-startup' servlet automaticly, add my two provider
>like before
>and ... crash during public key interpretation and write this in my
>catalina.out :
>
>WebappClassLoader: Resource '/WEB-INF/lib/mylib.jar' was modified; Date
>is now: Thu Aug 07 13:41:15 EDT 2003 Was: Thu Aug 07 13:39:04 EDT 2003
>WebappClassLoader: Lifecycle error : CL stopped
>java.security.NoSuchAlgorithmException: Cannot find any provider
>supporting ElGamal/ECB/PKCS#1
> + stack
>
>so if i restart manually tomcat it works again ...
>
>Smby can help me to fix this auto reload ?
>
>thks by advance
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: tomcat and external provider
Posted by Maxime Colas des Francs <ma...@sts.ca>.
I resolve that with copying criptyx jar in $CATALINA_HOME/shared/lib
Smbdy can explain this ?
At 13:46 2003-08-07 -0400, you wrote:
>Hi
>
>I detect a stange comportement of my tomcat when using an external
>security provider
>
>I want to use openpgp in my web application with cryptix provider
>
>In a 'load-on-startup' servlet i add security provider like this :
>
>java.security.Security.addProvider(new cryptix.jce.provider.CryptixCrypto());
>java.security.Security.addProvider(new
>cryptix.openpgp.provider.CryptixOpenPGP());
>and i read a public key for future pgp encryption ...
>
>when i start or restart manually tomcat, it works fine .
>
>But when tomcat use its "Servlet Auto Reloader" when i change some code,
>it reload my 'load-on-startup' servlet automaticly, add my two provider
>like before
>and ... crash during public key interpretation and write this in my
>catalina.out :
>
>WebappClassLoader: Resource '/WEB-INF/lib/mylib.jar' was modified; Date
>is now: Thu Aug 07 13:41:15 EDT 2003 Was: Thu Aug 07 13:39:04 EDT 2003
>WebappClassLoader: Lifecycle error : CL stopped
>java.security.NoSuchAlgorithmException: Cannot find any provider
>supporting ElGamal/ECB/PKCS#1
> + stack
>
>so if i restart manually tomcat it works again ...
>
>Smby can help me to fix this auto reload ?
>
>thks by advance
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org