You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by Emanuel Haisiuc <em...@gmail.com> on 2006/02/08 15:33:05 UTC
Newbie question
I'm sorry for the stupidity of the question, but I'm in deep problem,
so here is the question:
I'm trying to create a web service which has to verify the signed soap
messages received.
The deplyment file that I've made is:
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="WSX509Signing" provider="java:RPC">
<requestFlow>
<handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
<parameter name="passwordCallbackClass" value="wsx509signing.PWCallback" />
<parameter name="action" value="Signature" />
<parameter namr="signaturePropFile" value="x509sign.props" />
</handler>
</requestFlow>
<parameter name="className" value="wsx509signing.WSX509Signing"/>
<parameter name="allowedMethods" value="*"/>
</service>
</deployment>
and x509sign.props is:
org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
org.apache.ws.security.crypto.merlin.keystore.type=jks
org.apache.ws.security.crypto.merlin.keystore.password=foobar
org.apache.ws.security.crypto.merlin.file=c:/privateks/privkeystore
I've placed this file along with the web services classes in
tomcat/webapps/axis/WEB-INF/classes but when I try to consume the web
service, it throws a Fault: WSHandler: Signature: no crypto property
file; nested exception is:
org.apache.ws.security.WSSecurityException: WSHandler: Signature: no
crypto property file.
Can you please tell me where to place the crypto property file?
Thank you!
Best regards,
Emanuel Haisiuc
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org
Re: Newbie question
Posted by Emanuel Haisiuc <em...@gmail.com>.
Yes, that solved the problem. Thank you very much!
Emanuel
On 2/8/06, Anne Thomas Manes <at...@gmail.com> wrote:
> Is it perhaps a simple typo?
>
> This line:
> <parameter namr="signaturePropFile" value="x509sign.props" />
> should be:
> <parameter name="signaturePropFile" value="x509sign.props" />
>
> Anne
>
>
> On 2/8/06, Emanuel Haisiuc <em...@gmail.com> wrote:
> >
> > I'm sorry for the stupidity of the question, but I'm in deep problem,
> > so here is the question:
> >
> > I'm trying to create a web service which has to verify the signed soap
> > messages received.
> >
> > The deplyment file that I've made is:
> >
> > <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> >
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java
> ">
> > <service name="WSX509Signing" provider="java:RPC">
> > <requestFlow>
> > <handler
> type="java:org.apache.ws.axis.security.WSDoAllReceiver ">
> > <parameter
> name="passwordCallbackClass" value="wsx509signing.PWCallback" />
> > <parameter name="action"
> value="Signature" />
> > <parameter
> namr="signaturePropFile" value="x509sign.props" />
> > </handler>
> > </requestFlow>
> > <parameter name="className" value="
> wsx509signing.WSX509Signing"/>
> > <parameter name="allowedMethods" value="*"/>
> > </service>
> > </deployment>
> >
> > and x509sign.props is:
> >
> >
> org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
> > org.apache.ws.security.crypto.merlin.keystore.type=jks
> >
> org.apache.ws.security.crypto.merlin.keystore.password=foobar
> >
> org.apache.ws.security.crypto.merlin.file=c:/privateks/privkeystore
> >
> > I've placed this file along with the web services classes in
> > tomcat/webapps/axis/WEB-INF/classes but when I try to
> consume the web
> > service, it throws a Fault: WSHandler: Signature: no crypto property
> > file; nested exception is:
> > org.apache.ws.security.WSSecurityException :
> WSHandler: Signature: no
> > crypto property file.
> >
> > Can you please tell me where to place the crypto property file?
> >
> > Thank you!
> >
> > Best regards,
> > Emanuel Haisiuc
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> wss4j-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: wss4j-dev-help@ws.apache.org
> >
> >
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org
Re: Newbie question
Posted by Emanuel Haisiuc <em...@gmail.com>.
Yes, that solved the problem. Thank you very much!
Emanuel
On 2/8/06, Anne Thomas Manes <at...@gmail.com> wrote:
> Is it perhaps a simple typo?
>
> This line:
> <parameter namr="signaturePropFile" value="x509sign.props" />
> should be:
> <parameter name="signaturePropFile" value="x509sign.props" />
>
> Anne
>
>
> On 2/8/06, Emanuel Haisiuc <em...@gmail.com> wrote:
> >
> > I'm sorry for the stupidity of the question, but I'm in deep problem,
> > so here is the question:
> >
> > I'm trying to create a web service which has to verify the signed soap
> > messages received.
> >
> > The deplyment file that I've made is:
> >
> > <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> >
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java
> ">
> > <service name="WSX509Signing" provider="java:RPC">
> > <requestFlow>
> > <handler
> type="java:org.apache.ws.axis.security.WSDoAllReceiver ">
> > <parameter
> name="passwordCallbackClass" value="wsx509signing.PWCallback" />
> > <parameter name="action"
> value="Signature" />
> > <parameter
> namr="signaturePropFile" value="x509sign.props" />
> > </handler>
> > </requestFlow>
> > <parameter name="className" value="
> wsx509signing.WSX509Signing"/>
> > <parameter name="allowedMethods" value="*"/>
> > </service>
> > </deployment>
> >
> > and x509sign.props is:
> >
> >
> org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
> > org.apache.ws.security.crypto.merlin.keystore.type=jks
> >
> org.apache.ws.security.crypto.merlin.keystore.password=foobar
> >
> org.apache.ws.security.crypto.merlin.file=c:/privateks/privkeystore
> >
> > I've placed this file along with the web services classes in
> > tomcat/webapps/axis/WEB-INF/classes but when I try to
> consume the web
> > service, it throws a Fault: WSHandler: Signature: no crypto property
> > file; nested exception is:
> > org.apache.ws.security.WSSecurityException :
> WSHandler: Signature: no
> > crypto property file.
> >
> > Can you please tell me where to place the crypto property file?
> >
> > Thank you!
> >
> > Best regards,
> > Emanuel Haisiuc
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> wss4j-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: wss4j-dev-help@ws.apache.org
> >
> >
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org
Re: Newbie question
Posted by Emanuel Haisiuc <em...@gmail.com>.
Tried this, but it does not work. Maybe I'm setting wrong the classpath. On
my Windows XP it only contains the current directory (.), but I'm thinking
that the axis application should include WEB-INF/classes in it's classpath.
I'm getting the same fault. Maybe you can help me with an example.
Emanuel
On 2/8/06, DFrahm@teamhuber.com <DF...@teamhuber.com> wrote:
>
>
> In the WSS4J project, the crypto.properties files are in the "src" folder.
> I think that's the first place the code looks, but I'm surprised its not
> looking in the classpath as well.
>
> I'm very new to WSS4J, but that has worked for me.
>
> - David
>
>
>
>
> *Emanuel Haisiuc <em...@gmail.com>*
>
> 02/08/2006 08:33 AM
> To
> wss4j-dev@ws.apache.org cc
> Subject
> Newbie question
>
>
>
>
> I'm sorry for the stupidity of the question, but I'm in deep problem,
> so here is the question:
>
> I'm trying to create a web service which has to verify the signed soap
> messages received.
>
> The deplyment file that I've made is:
>
> <deployment xmlns="http://xml.apache.org/axis/wsdd/ "
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> <service name="WSX509Signing" provider="java:RPC">
> <requestFlow>
> <handler type="java:
> org.apache.ws.axis.security.WSDoAllReceiver">
>
> <parameter name="passwordCallbackClass" value="wsx509signing.PWCallback"
> />
>
> <parameter name="action" value="Signature" />
>
> <parameter namr="signaturePropFile" value=" x509sign.props" />
> </handler>
> </requestFlow>
> <parameter name="className" value="
> wsx509signing.WSX509Signing"/>
> <parameter name="allowedMethods"
> value="*"/>
> </service>
> </deployment>
>
> and x509sign.props is:
>
>
> org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
> org.apache.ws.security.crypto.merlin.keystore.type=jks
> org.apache.ws.security.crypto.merlin.keystore.password=foobar
> org.apache.ws.security.crypto.merlin.file=c:/privateks/privkeystore
>
> I've placed this file along with the web services classes in
> tomcat/webapps/axis/WEB-INF/classes but when I try to consume the web
> service, it throws a Fault: WSHandler: Signature: no crypto property
> file; nested exception is:
> org.apache.ws.security.WSSecurityException: WSHandler:
> Signature: no
> crypto property file.
>
> Can you please tell me where to place the crypto property file?
>
> Thank you!
>
> Best regards,
> Emanuel Haisiuc
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: wss4j-dev-help@ws.apache.org
>
>
>
Re: Newbie question
Posted by Emanuel Haisiuc <em...@gmail.com>.
Tried this, but it does not work. Maybe I'm setting wrong the classpath. On
my Windows XP it only contains the current directory (.), but I'm thinking
that the axis application should include WEB-INF/classes in it's classpath.
I'm getting the same fault. Maybe you can help me with an example.
Emanuel
On 2/8/06, DFrahm@teamhuber.com <DF...@teamhuber.com> wrote:
>
>
> In the WSS4J project, the crypto.properties files are in the "src" folder.
> I think that's the first place the code looks, but I'm surprised its not
> looking in the classpath as well.
>
> I'm very new to WSS4J, but that has worked for me.
>
> - David
>
>
>
>
> *Emanuel Haisiuc <em...@gmail.com>*
>
> 02/08/2006 08:33 AM
> To
> wss4j-dev@ws.apache.org cc
> Subject
> Newbie question
>
>
>
>
> I'm sorry for the stupidity of the question, but I'm in deep problem,
> so here is the question:
>
> I'm trying to create a web service which has to verify the signed soap
> messages received.
>
> The deplyment file that I've made is:
>
> <deployment xmlns="http://xml.apache.org/axis/wsdd/ "
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> <service name="WSX509Signing" provider="java:RPC">
> <requestFlow>
> <handler type="java:
> org.apache.ws.axis.security.WSDoAllReceiver">
>
> <parameter name="passwordCallbackClass" value="wsx509signing.PWCallback"
> />
>
> <parameter name="action" value="Signature" />
>
> <parameter namr="signaturePropFile" value=" x509sign.props" />
> </handler>
> </requestFlow>
> <parameter name="className" value="
> wsx509signing.WSX509Signing"/>
> <parameter name="allowedMethods"
> value="*"/>
> </service>
> </deployment>
>
> and x509sign.props is:
>
>
> org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
> org.apache.ws.security.crypto.merlin.keystore.type=jks
> org.apache.ws.security.crypto.merlin.keystore.password=foobar
> org.apache.ws.security.crypto.merlin.file=c:/privateks/privkeystore
>
> I've placed this file along with the web services classes in
> tomcat/webapps/axis/WEB-INF/classes but when I try to consume the web
> service, it throws a Fault: WSHandler: Signature: no crypto property
> file; nested exception is:
> org.apache.ws.security.WSSecurityException: WSHandler:
> Signature: no
> crypto property file.
>
> Can you please tell me where to place the crypto property file?
>
> Thank you!
>
> Best regards,
> Emanuel Haisiuc
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: wss4j-dev-help@ws.apache.org
>
>
>