You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by Daniela CLARO <da...@eseo.fr> on 2005/03/01 14:33:46 UTC

Newbie question about ws-security

Hi, 
 I want to know if I can download any package of wss4J that I can create a
simple example. I am trying to find some package, some *.jar to download and
try some implementation. Simple one, only to know how it works, or not. 

But I saw that it is under development, so i want to know if it is possible
or not to download a package like that? 

Thank you
Daniela

Verify Signature without using Crypto

Posted by Sathish Kumar <Sa...@infravio.com>.
Hi All,

Iam using the method processSecurityHeader( ) from WSSecurityEngine class to 
verify a Signature.
When i sign a soap request, i use a Private key to sign it. (Using a PFX 
file and pass a crytpo).
I pass the public certificate in the wire. When i try to verify it from the 
server side, should i definitely need a crypto file and is it
not possible to use only the public certificate passed on the wire to verify 
the signature ?

Thanks,
Sathish Kumar T.K.


RE: Problems on deploying with wss4j

Posted by Daniela CLARO <da...@eseo.fr>.
Hi again, 

 I think I am having the same problem or nearly the same problem as I saw
at:
http://nagoya.apache.org/eyebrowse/ReadMsg?listName=fx-dev@ws.apache.org&msg
No=2497
 
It is only to be more clear...
Thank you very much
Daniela


RE: Problems on deploying with wss4j

Posted by Daniela CLARO <da...@eseo.fr>.
Thank you Ashok, 

Yes, I put wss4j.jar in axis. I put in Tomcat, but I've already tested that
if I delete them, thus actually anything works anymore. I put in Common/lib
inside Tomcat, I think it is ok...

TIA,
Daniela

-----Message d'origine-----
De : Ashok Shah [mailto:ashoks@sfu.ca] 
Envoyé : vendredi 4 mars 2005 18:46
À : Ashok Shah; daniela.claro@eseo.fr; fx-dev@ws.apache.org
Objet : Re: Problems on deploying with wss4j

My bad, I didnt scroll down to the end. :P

It looks like you dont have the WSS4J class files in the Axis.


On Fri, 04 Mar 2005 09:27:13 -0800, Ashok Shah <as...@sfu.ca> wrote:

> Daniela:
>
> Can you be more specific? Which class is not found? Make sure that 
> your code AND WSS4J code in axis.
>
> --as
>
> On Fri, 4 Mar 2005 17:39:17 +0100, Daniela CLARO 
> <da...@eseo.fr>
> wrote:
>
>> Hi all,
>>  I am having some problems when I deploy my service. The first thing 
>> that I do is to deploy normally, as explained at 
>> http://weblogs.asp.net/jdanforth/archive/2005/01/16/354060.aspx
>>
>> When I click at View, I can view all my services with its wsdl, 
>> everything works fine. But when I put the wss4j code, as <deployment 
>> xmlns="http://xml.apache.org/axis/wsdd/"
>> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>>  <service name="Addition">
>>  <requestFlow>
>>    <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
>>     <parameter name="passwordCallbackClass" value="PWCallback"/>
>>     <parameter name="action" value="UsernameToken"/>
>>    </handler>
>>   </requestFlow>
>>
>>   <parameter name="className" value="Addition"/>
>>   <parameter name="allowedMethods" value="add"/>
>>   <parameter name="scope" value="application"/>  </service> 
>> </deployment>
>>
>> After deploying that, when I click at view, I can not see anymore my 
>> published services. And if I try to executes my application that add 
>> 2 3, I receive an error like NoClassDefinition, as seen above.
>>
>> I am only trying to receive an error like that, because I did not 
>> change my client yet to send the username and password.
>> Exception in thread "main" AxisFault
>>  faultCode:
>> {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
>>  faultSubcode:
>>  faultString: WSDoAllReceiver: Request does not contain required 
>> Security header
>>
>> Thus, what am I missing?
>> Thanks in advance,
>> Daniela
>>
>>
>>
>> Here error that I receive...
>> ------------------
>>
>> HTTP/1.1 500 Erreur Interne de Servlet Content-Type:
>> text/html;charset=ISO-8859-1 Content-Language: fr-FR Content-Length:  
>> 3485
>> Date: Fri, 04 Mar 2005 15:58:08 GMT Server: Apache-Coyote/1.1
>> Connection:
>> close  <html><head><title>Apache Tomcat/5.0.25 - Rapport
>> d'erreur</title><style><!--H1
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#52
>> 5D76;fo
>> nt-size:22px;} H2
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#52
>> 5D76;fo
>> nt-size:16px;} H3
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#52
>> 5D76;fo
>> nt-size:14px;} BODY
>> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:whi
>> te;}
>> B
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#52
>> 5D76;}
>> P
>>
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:
>> 12px;}A {color : black;}A.name {color : black;}HR {color :
>> #525D76;}--></style> </head><body><h1>Etat HTTP 500 - </h1><HR size="1"
>> noshade="noshade"><p><b>type</b> Rapport 
>> d'exception</p><p><b>message</b> <u></u></p><p><b>description</b> 
>> <u>Le serveur a rencontré une erreur interne () qui l'a empêché de 
>> satisfaire la requête.</u></p><p><b>exception</b> 
>> <pre>javax.servlet.ServletException:
>> L'exécution de la servlet a lancé une exception </pre></p><p><b>cause 
>> mère</b> <pre>java.lang.NoClassDefFoundError
>> 	java.lang.Class.forName0(Native Method)
>> 	java.lang.Class.forName(Class.java:219)
>> 	org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:215)
>> 	java.security.AccessController.doPrivileged(Native Method)
>> 	org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:199)
>> 	org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:139)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getJavaClass(WSDDD
>> eployab
>> leItem.java:388)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WS
>> DDDeplo
>> yableItem.java:330)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSD
>> DDeploy
>> ableItem.java:309)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDe
>> ployabl
>> eItem.java:295)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDChain.makeNewInstance(WSDDChain.j
>> ava:164
>> )
>> 	
>> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSD
>> DDeploy
>> ableItem.java:309)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDe
>> ployabl
>> eItem.java:295)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDServi
>> ce.java
>> :446)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSD
>> DDeploy
>> ableItem.java:309)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDe
>> ployabl
>> eItem.java:295)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeploym
>> ent.jav
>> a:485)
>> 	
>>
org.apache.axis.configuration.FileProvider.getService(FileProvider.java:261)
>> 	org.apache.axis.AxisEngine.getService(AxisEngine.java:322)
>> 	
>> org.apache.axis.MessageContext.setTargetService(MessageContext.java:794)
>> 	org.apache.axis.handlers.http.URLMapper.invoke(URLMapper.java:87)
>> 	
>>
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
>> 71)
>> 	org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)
>> 	org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)
>> 	org.apache.axis.server.AxisServer.invoke(AxisServer.java:277)
>> 	
>> org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:639)
>> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>> 	
>>
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:
>> 339)
>> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>> </pre></p><p><b>note</b> <u>La trace complète de la cause mère de 
>> cette erreur est disponible dans les fichiers journaux de Apache 
>> Tomcat/5.0.25.</u></p><HR size="1" noshade="noshade"><h3>Apache 
>> Tomcat/5.0.25</h3></body></html>
>>
>>
>
>
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/


Re: Problems on deploying with wss4j

Posted by Ashok Shah <as...@sfu.ca>.
My bad, I didnt scroll down to the end. :P

It looks like you dont have the WSS4J class files in the Axis.


On Fri, 04 Mar 2005 09:27:13 -0800, Ashok Shah <as...@sfu.ca> wrote:

> Daniela:
>
> Can you be more specific? Which class is not found? Make sure that your  
> code AND WSS4J code in axis.
>
> --as
>
> On Fri, 4 Mar 2005 17:39:17 +0100, Daniela CLARO <da...@eseo.fr>  
> wrote:
>
>> Hi all,
>>  I am having some problems when I deploy my service. The first thing  
>> that I
>> do is to deploy normally, as explained at
>> http://weblogs.asp.net/jdanforth/archive/2005/01/16/354060.aspx
>>
>> When I click at View, I can view all my services with its wsdl,  
>> everything
>> works fine. But when I put the wss4j code, as
>> <deployment xmlns="http://xml.apache.org/axis/wsdd/"
>> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>>  <service name="Addition">
>>  <requestFlow>
>>    <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
>>     <parameter name="passwordCallbackClass" value="PWCallback"/>
>>     <parameter name="action" value="UsernameToken"/>
>>    </handler>
>>   </requestFlow>
>>
>>   <parameter name="className" value="Addition"/>
>>   <parameter name="allowedMethods" value="add"/>
>>   <parameter name="scope" value="application"/>
>>  </service>
>> </deployment>
>>
>> After deploying that, when I click at view, I can not see anymore my
>> published services. And if I try to executes my application that add 2  
>> 3, I
>> receive an error like NoClassDefinition, as seen above.
>>
>> I am only trying to receive an error like that, because I did not  
>> change my
>> client yet to send the username and password.
>> Exception in thread "main" AxisFault
>>  faultCode:
>> {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
>>  faultSubcode:
>>  faultString: WSDoAllReceiver: Request does not contain required  
>> Security
>> header
>>
>> Thus, what am I missing?
>> Thanks in advance,
>> Daniela
>>
>>
>>
>> Here error that I receive...
>> ------------------
>>
>> HTTP/1.1 500 Erreur Interne de Servlet Content-Type:
>> text/html;charset=ISO-8859-1 Content-Language: fr-FR Content-Length:  
>> 3485
>> Date: Fri, 04 Mar 2005 15:58:08 GMT Server: Apache-Coyote/1.1  
>> Connection:
>> close  <html><head><title>Apache Tomcat/5.0.25 - Rapport
>> d'erreur</title><style><!--H1
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
>> nt-size:22px;} H2
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
>> nt-size:16px;} H3
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
>> nt-size:14px;} BODY
>> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}  
>> B
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
>> P
>> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:
>> 12px;}A {color : black;}A.name {color : black;}HR {color :
>> #525D76;}--></style> </head><body><h1>Etat HTTP 500 - </h1><HR size="1"
>> noshade="noshade"><p><b>type</b> Rapport  
>> d'exception</p><p><b>message</b>
>> <u></u></p><p><b>description</b> <u>Le serveur a rencontré une erreur
>> interne () qui l'a empêché de satisfaire la
>> requête.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException:
>> L'exécution de la servlet a lancé une exception
>> </pre></p><p><b>cause mère</b> <pre>java.lang.NoClassDefFoundError
>> 	java.lang.Class.forName0(Native Method)
>> 	java.lang.Class.forName(Class.java:219)
>> 	org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:215)
>> 	java.security.AccessController.doPrivileged(Native Method)
>> 	org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:199)
>> 	org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:139)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getJavaClass(WSDDDeployab
>> leItem.java:388)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDDeplo
>> yableItem.java:330)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeploy
>> ableItem.java:309)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployabl
>> eItem.java:295)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDChain.makeNewInstance(WSDDChain.java:164
>> )
>> 	
>> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeploy
>> ableItem.java:309)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployabl
>> eItem.java:295)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java
>> :446)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeploy
>> ableItem.java:309)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployabl
>> eItem.java:295)
>> 	
>> org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.jav
>> a:485)
>> 	
>> org.apache.axis.configuration.FileProvider.getService(FileProvider.java:261)
>> 	org.apache.axis.AxisEngine.getService(AxisEngine.java:322)
>> 	
>> org.apache.axis.MessageContext.setTargetService(MessageContext.java:794)
>> 	org.apache.axis.handlers.http.URLMapper.invoke(URLMapper.java:87)
>> 	
>> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
>> 71)
>> 	org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)
>> 	org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)
>> 	org.apache.axis.server.AxisServer.invoke(AxisServer.java:277)
>> 	
>> org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:639)
>> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>> 	
>> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:
>> 339)
>> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>> </pre></p><p><b>note</b> <u>La trace complète de la cause mère de cette
>> erreur est disponible dans les fichiers journaux de Apache
>> Tomcat/5.0.25.</u></p><HR size="1" noshade="noshade"><h3>Apache
>> Tomcat/5.0.25</h3></body></html>
>>
>>
>
>
>



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/

RE: Problems on deploying with wss4j

Posted by Daniela CLARO <da...@eseo.fr>.
 I do not know the class that is missing because the only message that I
receive is that one, shown below. 

Just right now, I did not change any code, that is, all thing that I
developed for axis, my simple addition web service, works fine if I did not
put this part in the deploy:
<requestFlow>
>    <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
>     <parameter name="passwordCallbackClass" value="PWCallback"/>
>     <parameter name="action" value="UsernameToken"/>
>    </handler>
>   </requestFlow>

Before putting this code, everything works fine. The only thing until now
that I changed is that I create the PWCallback, as I copied from the link
below
import java.io.IOException;
import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.callback.UnsupportedCallbackException;
import org.apache.ws.security.WSPasswordCallback;

public class PWCallback implements CallbackHandler {
	
    public void handle(Callback[] callbacks) throws IOException,
UnsupportedCallbackException {
    	System.out.println("Dentro do PWCallback");
        for (int i = 0; i < callbacks.length; i++) {
            if (callbacks[i] instanceof WSPasswordCallback) {
                WSPasswordCallback pc = (WSPasswordCallback)callbacks[i];
                // set the password given a username
                if ("wss4j".equals(pc.getIdentifer())) {
                    pc.setPassword("security");
                }
            } else {
                throw new UnsupportedCallbackException(callbacks[i],
"Unrecognized Callback");
            }
        }
    }
}
I put also the wss4j.jar that I copied either from the site, and also the
xmlsec-1.2.1.jar. It can be my wss4j.jar that has some problems, can't it?

Thank you,
Daniela



-----Message d'origine-----
De : Ashok Shah [mailto:ashoks@sfu.ca] 
Envoyé : vendredi 4 mars 2005 18:27
À : daniela.claro@eseo.fr; fx-dev@ws.apache.org
Objet : Re: Problems on deploying with wss4j

Daniela:

Can you be more specific? Which class is not found? Make sure that your code
AND WSS4J code in axis.

--as

On Fri, 4 Mar 2005 17:39:17 +0100, Daniela CLARO <da...@eseo.fr>
wrote:

> Hi all,
>  I am having some problems when I deploy my service. The first thing 
> that I do is to deploy normally, as explained at 
> http://weblogs.asp.net/jdanforth/archive/2005/01/16/354060.aspx
>
> When I click at View, I can view all my services with its wsdl, 
> everything works fine. But when I put the wss4j code, as <deployment 
> xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>  <service name="Addition">
>  <requestFlow>
>    <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
>     <parameter name="passwordCallbackClass" value="PWCallback"/>
>     <parameter name="action" value="UsernameToken"/>
>    </handler>
>   </requestFlow>
>
>   <parameter name="className" value="Addition"/>
>   <parameter name="allowedMethods" value="add"/>
>   <parameter name="scope" value="application"/>  </service> 
> </deployment>
>
> After deploying that, when I click at view, I can not see anymore my 
> published services. And if I try to executes my application that add 2 
> 3, I receive an error like NoClassDefinition, as seen above.
>
> I am only trying to receive an error like that, because I did not 
> change my client yet to send the username and password.
> Exception in thread "main" AxisFault
>  faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
>  faultSubcode:
>  faultString: WSDoAllReceiver: Request does not contain required 
> Security header
>
> Thus, what am I missing?
> Thanks in advance,
> Daniela
>
>
>
> Here error that I receive...
> ------------------
>
> HTTP/1.1 500 Erreur Interne de Servlet Content-Type:
> text/html;charset=ISO-8859-1 Content-Language: fr-FR Content-Length: 
> 3485
> Date: Fri, 04 Mar 2005 15:58:08 GMT Server: Apache-Coyote/1.1 Connection:
> close  <html><head><title>Apache Tomcat/5.0.25 - Rapport
> d'erreur</title><style><!--H1
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525
> D76;fo
> nt-size:22px;} H2
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525
> D76;fo
> nt-size:16px;} H3
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525
> D76;fo
> nt-size:14px;} BODY
> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:whit
> e;}
> B
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525
> D76;}
> P
>
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:
> 12px;}A {color : black;}A.name {color : black;}HR {color :
> #525D76;}--></style> </head><body><h1>Etat HTTP 500 - </h1><HR size="1"
> noshade="noshade"><p><b>type</b> Rapport 
> d'exception</p><p><b>message</b> <u></u></p><p><b>description</b> 
> <u>Le serveur a rencontré une erreur interne () qui l'a empêché de 
> satisfaire la requête.</u></p><p><b>exception</b>
<pre>javax.servlet.ServletException:
> L'exécution de la servlet a lancé une exception </pre></p><p><b>cause 
> mère</b> <pre>java.lang.NoClassDefFoundError
> 	java.lang.Class.forName0(Native Method)
> 	java.lang.Class.forName(Class.java:219)
> 	org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:215)
> 	java.security.AccessController.doPrivileged(Native Method)
> 	org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:199)
> 	org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:139)
> 	
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getJavaClass(WSDDDe
> ployab
> leItem.java:388)
> 	
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSD
> DDeplo
> yableItem.java:330)
> 	
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDD
> Deploy
> ableItem.java:309)
> 	
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDep
> loyabl
> eItem.java:295)
> 	
> org.apache.axis.deployment.wsdd.WSDDChain.makeNewInstance(WSDDChain.ja
> va:164
> )
> 	
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDD
> Deploy
> ableItem.java:309)
> 	
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDep
> loyabl
> eItem.java:295)
> 	
> org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDServic
> e.java
> :446)
> 	
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDD
> Deploy
> ableItem.java:309)
> 	
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDep
> loyabl
> eItem.java:295)
> 	
> org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployme
> nt.jav
> a:485)
> 	
>
org.apache.axis.configuration.FileProvider.getService(FileProvider.java:261)
> 	org.apache.axis.AxisEngine.getService(AxisEngine.java:322)
> 	
> org.apache.axis.MessageContext.setTargetService(MessageContext.java:794)
> 	org.apache.axis.handlers.http.URLMapper.invoke(URLMapper.java:87)
> 	
>
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
> 71)
> 	org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)
> 	org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)
> 	org.apache.axis.server.AxisServer.invoke(AxisServer.java:277)
> 	
> org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:639)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> 	
>
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:
> 339)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> </pre></p><p><b>note</b> <u>La trace complète de la cause mère de 
> cette erreur est disponible dans les fichiers journaux de Apache 
> Tomcat/5.0.25.</u></p><HR size="1" noshade="noshade"><h3>Apache 
> Tomcat/5.0.25</h3></body></html>
>
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/


Re: Problems on deploying with wss4j

Posted by Ashok Shah <as...@sfu.ca>.
Daniela:

Can you be more specific? Which class is not found? Make sure that your  
code AND WSS4J code in axis.

--as

On Fri, 4 Mar 2005 17:39:17 +0100, Daniela CLARO <da...@eseo.fr>  
wrote:

> Hi all,
>  I am having some problems when I deploy my service. The first thing  
> that I
> do is to deploy normally, as explained at
> http://weblogs.asp.net/jdanforth/archive/2005/01/16/354060.aspx
>
> When I click at View, I can view all my services with its wsdl,  
> everything
> works fine. But when I put the wss4j code, as
> <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>  <service name="Addition">
>  <requestFlow>
>    <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
>     <parameter name="passwordCallbackClass" value="PWCallback"/>
>     <parameter name="action" value="UsernameToken"/>
>    </handler>
>   </requestFlow>
>
>   <parameter name="className" value="Addition"/>
>   <parameter name="allowedMethods" value="add"/>
>   <parameter name="scope" value="application"/>
>  </service>
> </deployment>
>
> After deploying that, when I click at view, I can not see anymore my
> published services. And if I try to executes my application that add 2  
> 3, I
> receive an error like NoClassDefinition, as seen above.
>
> I am only trying to receive an error like that, because I did not change  
> my
> client yet to send the username and password.
> Exception in thread "main" AxisFault
>  faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
>  faultSubcode:
>  faultString: WSDoAllReceiver: Request does not contain required Security
> header
>
> Thus, what am I missing?
> Thanks in advance,
> Daniela
>
>
>
> Here error that I receive...
> ------------------
>
> HTTP/1.1 500 Erreur Interne de Servlet Content-Type:
> text/html;charset=ISO-8859-1 Content-Language: fr-FR Content-Length: 3485
> Date: Fri, 04 Mar 2005 15:58:08 GMT Server: Apache-Coyote/1.1 Connection:
> close  <html><head><title>Apache Tomcat/5.0.25 - Rapport
> d'erreur</title><style><!--H1
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
> nt-size:22px;} H2
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
> nt-size:16px;} H3
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
> nt-size:14px;} BODY
> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}  
> B
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
> P
> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:
> 12px;}A {color : black;}A.name {color : black;}HR {color :
> #525D76;}--></style> </head><body><h1>Etat HTTP 500 - </h1><HR size="1"
> noshade="noshade"><p><b>type</b> Rapport d'exception</p><p><b>message</b>
> <u></u></p><p><b>description</b> <u>Le serveur a rencontré une erreur
> interne () qui l'a empêché de satisfaire la
> requête.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException:
> L'exécution de la servlet a lancé une exception
> </pre></p><p><b>cause mère</b> <pre>java.lang.NoClassDefFoundError
> 	java.lang.Class.forName0(Native Method)
> 	java.lang.Class.forName(Class.java:219)
> 	org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:215)
> 	java.security.AccessController.doPrivileged(Native Method)
> 	org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:199)
> 	org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:139)
> 	
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getJavaClass(WSDDDeployab
> leItem.java:388)
> 	
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDDeplo
> yableItem.java:330)
> 	
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeploy
> ableItem.java:309)
> 	
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployabl
> eItem.java:295)
> 	
> org.apache.axis.deployment.wsdd.WSDDChain.makeNewInstance(WSDDChain.java:164
> )
> 	
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeploy
> ableItem.java:309)
> 	
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployabl
> eItem.java:295)
> 	
> org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java
> :446)
> 	
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeploy
> ableItem.java:309)
> 	
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployabl
> eItem.java:295)
> 	
> org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.jav
> a:485)
> 	
> org.apache.axis.configuration.FileProvider.getService(FileProvider.java:261)
> 	org.apache.axis.AxisEngine.getService(AxisEngine.java:322)
> 	
> org.apache.axis.MessageContext.setTargetService(MessageContext.java:794)
> 	org.apache.axis.handlers.http.URLMapper.invoke(URLMapper.java:87)
> 	
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
> 71)
> 	org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)
> 	org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)
> 	org.apache.axis.server.AxisServer.invoke(AxisServer.java:277)
> 	
> org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:639)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> 	
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:
> 339)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> </pre></p><p><b>note</b> <u>La trace complète de la cause mère de cette
> erreur est disponible dans les fichiers journaux de Apache
> Tomcat/5.0.25.</u></p><HR size="1" noshade="noshade"><h3>Apache
> Tomcat/5.0.25</h3></body></html>
>
>



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/

Problems on deploying with wss4j

Posted by Daniela CLARO <da...@eseo.fr>.
Hi all, 
 I am having some problems when I deploy my service. The first thing that I
do is to deploy normally, as explained at
http://weblogs.asp.net/jdanforth/archive/2005/01/16/354060.aspx

When I click at View, I can view all my services with its wsdl, everything
works fine. But when I put the wss4j code, as
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
 <service name="Addition">
 <requestFlow>
   <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
    <parameter name="passwordCallbackClass" value="PWCallback"/>
    <parameter name="action" value="UsernameToken"/>
   </handler>
  </requestFlow>

  <parameter name="className" value="Addition"/>
  <parameter name="allowedMethods" value="add"/>
  <parameter name="scope" value="application"/>
 </service>
</deployment>

After deploying that, when I click at view, I can not see anymore my
published services. And if I try to executes my application that add 2 3, I
receive an error like NoClassDefinition, as seen above.

I am only trying to receive an error like that, because I did not change my
client yet to send the username and password.
Exception in thread "main" AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode:
 faultString: WSDoAllReceiver: Request does not contain required Security
header

Thus, what am I missing? 
Thanks in advance, 
Daniela



Here error that I receive...
------------------

HTTP/1.1 500 Erreur Interne de Servlet Content-Type:
text/html;charset=ISO-8859-1 Content-Language: fr-FR Content-Length: 3485
Date: Fri, 04 Mar 2005 15:58:08 GMT Server: Apache-Coyote/1.1 Connection:
close  <html><head><title>Apache Tomcat/5.0.25 - Rapport
d'erreur</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:22px;} H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:16px;} H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:14px;} BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:
12px;}A {color : black;}A.name {color : black;}HR {color :
#525D76;}--></style> </head><body><h1>Etat HTTP 500 - </h1><HR size="1"
noshade="noshade"><p><b>type</b> Rapport d'exception</p><p><b>message</b>
<u></u></p><p><b>description</b> <u>Le serveur a rencontré une erreur
interne () qui l'a empêché de satisfaire la
requête.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException:
L'exécution de la servlet a lancé une exception
</pre></p><p><b>cause mère</b> <pre>java.lang.NoClassDefFoundError
	java.lang.Class.forName0(Native Method)
	java.lang.Class.forName(Class.java:219)
	org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:215)
	java.security.AccessController.doPrivileged(Native Method)
	org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:199)
	org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:139)
	
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getJavaClass(WSDDDeployab
leItem.java:388)
	
org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDDeplo
yableItem.java:330)
	
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeploy
ableItem.java:309)
	
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployabl
eItem.java:295)
	
org.apache.axis.deployment.wsdd.WSDDChain.makeNewInstance(WSDDChain.java:164
)
	
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeploy
ableItem.java:309)
	
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployabl
eItem.java:295)
	
org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java
:446)
	
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeploy
ableItem.java:309)
	
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployabl
eItem.java:295)
	
org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.jav
a:485)
	
org.apache.axis.configuration.FileProvider.getService(FileProvider.java:261)
	org.apache.axis.AxisEngine.getService(AxisEngine.java:322)
	
org.apache.axis.MessageContext.setTargetService(MessageContext.java:794)
	org.apache.axis.handlers.http.URLMapper.invoke(URLMapper.java:87)
	
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
71)
	org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)
	org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)
	org.apache.axis.server.AxisServer.invoke(AxisServer.java:277)
	
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:639)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:
339)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
</pre></p><p><b>note</b> <u>La trace complète de la cause mère de cette
erreur est disponible dans les fichiers journaux de Apache
Tomcat/5.0.25.</u></p><HR size="1" noshade="noshade"><h3>Apache
Tomcat/5.0.25</h3></body></html>

Re: Newbie question about ws-security

Posted by Martin Stemplinger <ms...@gmx.de>.
Rajiv Kanaujia schrieb am 03/08/2005 03:15 PM:
> Hi Daniela,
> I did get similar errors. 
> Here is what I use: go to http://cvs.apache.org/snapshots/ws-fx/ and get a
> snapshot. I use Eclipse to build, run and debug Tomcat/Axis/WSS4J. For
> building WSS4J, the classes I use are:
> axis-1_2RC2/webapps/axis/WEB-INF/lib/axis.jar
> ws-fx/wss4j/lib/jaxrpc.jar
> ws-fx/wss4j/lib/commons-logging.jar
> ws-fx/wss4j/lib/saaj.jar
> ws-fx/wss4j/lib/xmlsec.jar
> ws-fx/wss4j/lib/opensaml.jar
> ws-fx/wss4j/lib/addressing-1.0.jar
> ws-fx/wss4j/lib/commons-discovery.jar
> ws-fx/wss4j/lib/jce-jdk13-125.jar
> 
> Rajiv
> 
> 
> -----Original Message-----
> From: Daniela CLARO [mailto:daniela.claro@eseo.fr] 
> Sent: Friday, March 04, 2005 3:00 PM
> To: fx-dev@ws.apache.org
> Subject: RE: Newbie question about ws-security
> 
> Hi, 
>  I executed the maven dist, and I got this error
> BUILD FAILED
> File...... C:\Documents and
> Settings\dclaro\.maven\cache\maven-jar-plugin-1.6.1\
> plugin.jelly
> Element... ant:fail
> Line...... 53
> Column.... 19
> You must define currentVersion in your POM.
> Total time: 55 seconds
> Finished at: Fri Mar 04 20:57:30 CET 2005
> 
> What can I do? 
> Thank you
> Daniela 
> 
> -----Message d'origine-----
> De : Jose M. Selman [mailto:jselman@bee.cl] 
> Envoyé : mardi 1 mars 2005 16:08
> À : fx-dev@ws.apache.org
> Cc : daniela.claro@eseo.fr
> Objet : RE: Newbie question about ws-security
> 
> Daniela:
> 	You can check out the source code from the cvs repository and create
> a a distribution. If you have maven installed it should be as easy as
> executing the to following commands:
> 
> % maven scm:checkout-project -Dmaven.scm.method=cvs
> -Dmaven.scm.cvs.module=ws-fx/wss4j/
> -Dmaven.scm.cvs.root=:pserver:anoncvs@cvs.apache.org:/home/cvspublic
> -Dmaven.scm.checkout.dir=.
> 
> % maven dist
> 
> The first command will download the source code from the CVS repository. The
> second command (goal) will compile and build the distribution jar file you
> are looking for.
> 
> If you dont have maven installed go to http://maven.apache.org for
> downloading and installation instructions.
> 
> Cheers, 
> 
> José M. Selman
> -----Mensaje original-----
> De: Daniela CLARO [mailto:daniela.claro@eseo.fr] Enviado el: Martes, 01 de
> Marzo de 2005 09:34 a.m.
> Para: fx-dev@ws.apache.org
> Asunto: Newbie question about ws-security
> 
> Hi,
>  I want to know if I can download any package of wss4J that I can create a
> simple example. I am trying to find some package, some *.jar to download and
> try some implementation. Simple one, only to know how it works, or not. 
> But I saw that it is under development, so i want to know if it is possible
> or not to download a package like that? 
> Thank you
> Daniela 
> 
> 
> 
I don't know anything about maven but this what I do:
1) Download the src from CVS using any cvs client you like
2) Download ant from apache
2) run ant jar or ant dist (I usually remove test from the compile target)

HTH
Martin

RE: Newbie question about ws-security

Posted by Rajiv Kanaujia <ra...@hotmail.com>.
Hi Daniela,
I did get similar errors. 
Here is what I use: go to http://cvs.apache.org/snapshots/ws-fx/ and get a
snapshot. I use Eclipse to build, run and debug Tomcat/Axis/WSS4J. For
building WSS4J, the classes I use are:
axis-1_2RC2/webapps/axis/WEB-INF/lib/axis.jar
ws-fx/wss4j/lib/jaxrpc.jar
ws-fx/wss4j/lib/commons-logging.jar
ws-fx/wss4j/lib/saaj.jar
ws-fx/wss4j/lib/xmlsec.jar
ws-fx/wss4j/lib/opensaml.jar
ws-fx/wss4j/lib/addressing-1.0.jar
ws-fx/wss4j/lib/commons-discovery.jar
ws-fx/wss4j/lib/jce-jdk13-125.jar

Rajiv


-----Original Message-----
From: Daniela CLARO [mailto:daniela.claro@eseo.fr] 
Sent: Friday, March 04, 2005 3:00 PM
To: fx-dev@ws.apache.org
Subject: RE: Newbie question about ws-security

Hi, 
 I executed the maven dist, and I got this error
BUILD FAILED
File...... C:\Documents and
Settings\dclaro\.maven\cache\maven-jar-plugin-1.6.1\
plugin.jelly
Element... ant:fail
Line...... 53
Column.... 19
You must define currentVersion in your POM.
Total time: 55 seconds
Finished at: Fri Mar 04 20:57:30 CET 2005

What can I do? 
Thank you
Daniela 

-----Message d'origine-----
De : Jose M. Selman [mailto:jselman@bee.cl] 
Envoyé : mardi 1 mars 2005 16:08
À : fx-dev@ws.apache.org
Cc : daniela.claro@eseo.fr
Objet : RE: Newbie question about ws-security

Daniela:
	You can check out the source code from the cvs repository and create
a a distribution. If you have maven installed it should be as easy as
executing the to following commands:

% maven scm:checkout-project -Dmaven.scm.method=cvs
-Dmaven.scm.cvs.module=ws-fx/wss4j/
-Dmaven.scm.cvs.root=:pserver:anoncvs@cvs.apache.org:/home/cvspublic
-Dmaven.scm.checkout.dir=.

% maven dist

The first command will download the source code from the CVS repository. The
second command (goal) will compile and build the distribution jar file you
are looking for.

If you dont have maven installed go to http://maven.apache.org for
downloading and installation instructions.

Cheers, 

José M. Selman
-----Mensaje original-----
De: Daniela CLARO [mailto:daniela.claro@eseo.fr] Enviado el: Martes, 01 de
Marzo de 2005 09:34 a.m.
Para: fx-dev@ws.apache.org
Asunto: Newbie question about ws-security

Hi,
 I want to know if I can download any package of wss4J that I can create a
simple example. I am trying to find some package, some *.jar to download and
try some implementation. Simple one, only to know how it works, or not. 
But I saw that it is under development, so i want to know if it is possible
or not to download a package like that? 
Thank you
Daniela 



RE: Newbie question about ws-security

Posted by Daniela CLARO <da...@eseo.fr>.
Hi, 
 I executed the maven dist, and I got this error
BUILD FAILED
File...... C:\Documents and
Settings\dclaro\.maven\cache\maven-jar-plugin-1.6.1\
plugin.jelly
Element... ant:fail
Line...... 53
Column.... 19
You must define currentVersion in your POM.
Total time: 55 seconds
Finished at: Fri Mar 04 20:57:30 CET 2005

What can I do? 
Thank you
Daniela 

-----Message d'origine-----
De : Jose M. Selman [mailto:jselman@bee.cl] 
Envoyé : mardi 1 mars 2005 16:08
À : fx-dev@ws.apache.org
Cc : daniela.claro@eseo.fr
Objet : RE: Newbie question about ws-security

Daniela:
	You can check out the source code from the cvs repository and create
a a distribution. If you have maven installed it should be as easy as
executing the to following commands:

% maven scm:checkout-project -Dmaven.scm.method=cvs
-Dmaven.scm.cvs.module=ws-fx/wss4j/
-Dmaven.scm.cvs.root=:pserver:anoncvs@cvs.apache.org:/home/cvspublic
-Dmaven.scm.checkout.dir=.

% maven dist

The first command will download the source code from the CVS repository. The
second command (goal) will compile and build the distribution jar file you
are looking for.

If you dont have maven installed go to http://maven.apache.org for
downloading and installation instructions.

Cheers, 

José M. Selman
-----Mensaje original-----
De: Daniela CLARO [mailto:daniela.claro@eseo.fr] Enviado el: Martes, 01 de
Marzo de 2005 09:34 a.m.
Para: fx-dev@ws.apache.org
Asunto: Newbie question about ws-security

Hi,
 I want to know if I can download any package of wss4J that I can create a
simple example. I am trying to find some package, some *.jar to download and
try some implementation. Simple one, only to know how it works, or not. 
But I saw that it is under development, so i want to know if it is possible
or not to download a package like that? 
Thank you
Daniela 


RE: Newbie question about ws-security

Posted by "Jose M. Selman" <js...@bee.cl>.
Daniela:
	You can check out the source code from the cvs repository and create
a a distribution. If you have maven installed it should be as easy as
executing the to following commands:

% maven scm:checkout-project -Dmaven.scm.method=cvs
-Dmaven.scm.cvs.module=ws-fx/wss4j/
-Dmaven.scm.cvs.root=:pserver:anoncvs@cvs.apache.org:/home/cvspublic
-Dmaven.scm.checkout.dir=.

% maven dist

The first command will download the source code from the CVS repository. The
second command (goal) will compile and build the distribution jar file you
are looking for.

If you dont have maven installed go to http://maven.apache.org for
downloading and installation instructions.

Cheers, 

José M. Selman
-----Mensaje original-----
De: Daniela CLARO [mailto:daniela.claro@eseo.fr] 
Enviado el: Martes, 01 de Marzo de 2005 09:34 a.m.
Para: fx-dev@ws.apache.org
Asunto: Newbie question about ws-security

Hi, 
 I want to know if I can download any package of wss4J that I can create a
simple example. I am trying to find some package, some *.jar to download and
try some implementation. Simple one, only to know how it works, or not. 
But I saw that it is under development, so i want to know if it is possible
or not to download a package like that? 
Thank you 
Daniela