You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Alberto Muñoz Gallego <al...@tid.es> on 2003/11/17 12:52:59 UTC

Problems with ENCRYPTION and SIGNING

Dear colleagues,

I'd like to introduce myself. I'm Alberto from Spain. I'm testing the new wss4j project under Tomcat, but I get to the same error as Kazuo Miyamoto (althought he was working with a web services provider) at one particular point.

When I execute the signing and encrypting functions (for SOAP messages) outside tomcat and axis, there's no problem, I can add signature and encryption to them. The problem comes when I have to make the same steps as an axis handler (it's already implemented, so someone must have made it work :) ).

The "java.lang.reflect.InvocationTargetException" exception happens exactly here:
"crypto = (Crypto) c.newInstance(new Object[]{properties});"
inside CryptoFactory.java

As I've said, If I follow the same stepts outside tomcat I get no exception.
Could anyone help with this?

Sorry for my poor English and thank you very much.

Un saludo,
Alberto.


--------------------------------------------------------------
Alberto Muñoz Gallego
albmg@tid.es
Tfno.: (9833) 67826
Telefónica I+D Boecillo (Valladolid)
--------------------------------------------------------------

[WSS4J] (Re: Problems with ENCRYPTION and SIGNING)

Posted by Davanum Srinivas <di...@yahoo.com>.
Please ask on the wss4j-devel mailing list (TILL the project moves to Apache).
http://sourceforge.net/mail/?group_id=81168

Thanks,
dims

--- Alberto_Mu�oz_Gallego <al...@tid.es> wrote:
> 
> Dear colleagues,
> 
> I'd like to introduce myself. I'm Alberto from Spain. I'm testing the new wss4j project under
> Tomcat, but I get to the same error as Kazuo Miyamoto (althought he was working with a web
> services provider) at one particular point.
> 
> When I execute the signing and encrypting functions (for SOAP messages) outside tomcat and axis,
> there's no problem, I can add signature and encryption to them. The problem comes when I have to
> make the same steps as an axis handler (it's already implemented, so someone must have made it
> work :) ).
> 
> The "java.lang.reflect.InvocationTargetException" exception happens exactly here:
> "crypto = (Crypto) c.newInstance(new Object[]{properties});"
> inside CryptoFactory.java
> 
> As I've said, If I follow the same stepts outside tomcat I get no exception.
> Could anyone help with this?
> 
> Sorry for my poor English and thank you very much.
> 
> Un saludo,
> Alberto.
> 
> 
> --------------------------------------------------------------
> Alberto Mu�oz Gallego
> albmg@tid.es
> Tfno.: (9833) 67826
> Telef�nica I+D Boecillo (Valladolid)
> --------------------------------------------------------------
> 


=====
Davanum Srinivas - http://webservices.apache.org/~dims/

Re: Problems with ENCRYPTION and SIGNING

Posted by Davanum Srinivas <di...@yahoo.com>.
Alberto, Sanjesh,

You comments on WSS4J are most welcome on the wss4j-devel mailing lists
(http://sourceforge.net/mail/?group_id=81168)

Thanks,
dims

--- Alberto_Mu�oz_Gallego <al...@tid.es> wrote:
> Thanks, that was the problem.
>   ----- Original Message ----- 
>   From: Sanjesh Pathak 
>   To: axis-user@ws.apache.org 
>   Sent: Tuesday, November 18, 2003 10:10 AM
>   Subject: RE: Problems with ENCRYPTION and SIGNING
> 
> 
>   Alberto,
> 
>    
> 
>   I was getting similar message when I first used it. Most probably you are getting this because
> it is not finding your keystore. Look into crypto.properties file and the property:
> 
>    
> 
>   org.apache.ws.security.crypto.merlin.file=server.keystore
> 
>    
> 
>   You should change the value to the proper directory so that it can be picked from inside the
> Tomact. What directory under Tomcat do you have the keystore? May be that will help me find
> solution to your problem.
> 
>    
> 
>   Sanjesh
> 
>    
> 
>    
> 
>   -----Original Message-----
>   From: Alberto Mu�oz Gallego [mailto:albmg@tid.es] 
>   Sent: Monday, November 17, 2003 5:53 AM
>   To: axis-user@ws.apache.org
>   Subject: Problems with ENCRYPTION and SIGNING
> 
>    
> 
>    
> 
>   Dear colleagues,
> 
>    
> 
>   I'd like to introduce myself. I'm Alberto from Spain. I'm testing the new wss4j project under
> Tomcat, but I get to the same error as Kazuo Miyamoto (althought he was working with a web
> services provider) at one particular point.
> 
>    
> 
>   When I execute the signing and encrypting functions (for SOAP messages) outside tomcat and
> axis, there's no problem, I can add signature and encryption to them. The problem comes when I
> have to make the same steps as an axis handler (it's already implemented, so someone must have
> made it work :) ).
> 
>    
> 
>   The "java.lang.reflect.InvocationTargetException" exception happens exactly here:
> 
>   "crypto = (Crypto) c.newInstance(new Object[]{properties});"
> 
>   inside CryptoFactory.java
> 
>    
> 
>   As I've said, If I follow the same stepts outside tomcat I get no exception.
> 
>   Could anyone help with this?
> 
>    
> 
>   Sorry for my poor English and thank you very much.
> 
>    
> 
>   Un saludo,
>   Alberto.
> 
>    
> 
> 
>   --------------------------------------------------------------
>   Alberto Mu�oz Gallego
>   albmg@tid.es
>   Tfno.: (9833) 67826
>   Telef�nica I+D Boecillo (Valladolid)
>   --------------------------------------------------------------
> 
> 


=====
Davanum Srinivas - http://webservices.apache.org/~dims/

Re: Problems with ENCRYPTION and SIGNING

Posted by Alberto Muñoz Gallego <al...@tid.es>.
Thanks, that was the problem.
  ----- Original Message ----- 
  From: Sanjesh Pathak 
  To: axis-user@ws.apache.org 
  Sent: Tuesday, November 18, 2003 10:10 AM
  Subject: RE: Problems with ENCRYPTION and SIGNING


  Alberto,

   

  I was getting similar message when I first used it. Most probably you are getting this because it is not finding your keystore. Look into crypto.properties file and the property:

   

  org.apache.ws.security.crypto.merlin.file=server.keystore

   

  You should change the value to the proper directory so that it can be picked from inside the Tomact. What directory under Tomcat do you have the keystore? May be that will help me find solution to your problem.

   

  Sanjesh

   

   

  -----Original Message-----
  From: Alberto Muñoz Gallego [mailto:albmg@tid.es] 
  Sent: Monday, November 17, 2003 5:53 AM
  To: axis-user@ws.apache.org
  Subject: Problems with ENCRYPTION and SIGNING

   

   

  Dear colleagues,

   

  I'd like to introduce myself. I'm Alberto from Spain. I'm testing the new wss4j project under Tomcat, but I get to the same error as Kazuo Miyamoto (althought he was working with a web services provider) at one particular point.

   

  When I execute the signing and encrypting functions (for SOAP messages) outside tomcat and axis, there's no problem, I can add signature and encryption to them. The problem comes when I have to make the same steps as an axis handler (it's already implemented, so someone must have made it work :) ).

   

  The "java.lang.reflect.InvocationTargetException" exception happens exactly here:

  "crypto = (Crypto) c.newInstance(new Object[]{properties});"

  inside CryptoFactory.java

   

  As I've said, If I follow the same stepts outside tomcat I get no exception.

  Could anyone help with this?

   

  Sorry for my poor English and thank you very much.

   

  Un saludo,
  Alberto.

   


  --------------------------------------------------------------
  Alberto Muñoz Gallego
  albmg@tid.es
  Tfno.: (9833) 67826
  Telefónica I+D Boecillo (Valladolid)
  --------------------------------------------------------------


RE: Problems with ENCRYPTION and SIGNING

Posted by Sanjesh Pathak <sa...@soapknox.com>.
Alberto,
 
I was getting similar message when I first used it. Most probably you
are getting this because it is not finding your keystore. Look into
crypto.properties file and the property:
 
org.apache.ws.security.crypto.merlin.file=server.keystore
 
You should change the value to the proper directory so that it can be
picked from inside the Tomact. What directory under Tomcat do you have
the keystore? May be that will help me find solution to your problem.
 
Sanjesh
 
 
-----Original Message-----
From: Alberto Muñoz Gallego [mailto:albmg@tid.es] 
Sent: Monday, November 17, 2003 5:53 AM
To: axis-user@ws.apache.org
Subject: Problems with ENCRYPTION and SIGNING
 
 
Dear colleagues,
 
I'd like to introduce myself. I'm Alberto from Spain. I'm testing the
new wss4j project under Tomcat, but I get to the same error as Kazuo
Miyamoto (althought he was working with a web services provider) at one
particular point.
 
When I execute the signing and encrypting functions (for SOAP messages)
outside tomcat and axis, there's no problem, I can add signature and
encryption to them. The problem comes when I have to make the same steps
as an axis handler (it's already implemented, so someone must have made
it work :) ).
 
The "java.lang.reflect.InvocationTargetException" exception happens
exactly here:
"crypto = (Crypto) c.newInstance(new Object[]{properties});"
inside CryptoFactory.java
 
As I've said, If I follow the same stepts outside tomcat I get no
exception.
Could anyone help with this?
 
Sorry for my poor English and thank you very much.
 
Un saludo,
Alberto.
 

--------------------------------------------------------------
Alberto Muñoz Gallego
albmg@tid.es
Tfno.: (9833) 67826
Telefónica I+D Boecillo (Valladolid)
--------------------------------------------------------------