Thanks Ruchit for your Help,
Is there any way that we can configure the client and service policy without
coding the PWCBHandler so that I can keep all the security information in
the policy.

<ramp:passwordCallbackClass>
org.apache.rampart.samples.policy.sample02.PWCBHandler
</ramp:passwordCallbackClass>

Thanks
Pavan
On 8/9/07, Ruchith Fernando <[EMAIL PROTECTED]> wrote:
>
> Argh ... seems like the certs expired on July 21st :(
>
> Please create the client and service keystores as described here :
> http://wso2.org/library/174
>
> Thanks,
> Ruchith
>
> On 8/10/07, Pavan Madiraju <[EMAIL PROTECTED]> wrote:
> > I am trying to get samples\policy\sample2 working but getting the
> following
> > error. Is anyone able to get the sample2 working ?
> >
> > Error:
> >
> >   [java] org.apache.ws.security.WSSecur ityException: The signature
> > verification failed (The provided certificate is invalid).
> >
> > I am using the service.jks and client.jks that is shipped with the
> samples.
> >
> > Here is the whole error log
> >
> > Service log
> >
> > C:\Development\axis\rampart-1.2\samples\policy>ant service.02
> > Buildfile: build.xml
> >
> > check.dependency:
> >
> > service.02:
> >      [copy] Copying 1 file to C:\Development\axis\rampart-
> > 1.2\samples\policy\bui
> > ld\service_repositories\sample02\modules
> >      [copy] Copying 1 file to
> > C:\Development\axis\rampart-1.2\samples\policy\bui
> > ld\service_repositories\sample02\modules
> >      [copy] Copying 1 file to C:\Development\axis\rampart-
> > 1.2\samples\policy\bui
> > ld\service_repositories\sample02\modules
> >     [mkdir] Created dir:
> > C:\Development\axis\rampart-1.2\samples\policy\build\te
> > mp
> >     [mkdir] Created dir:
> > C:\Development\axis\rampart-1.2\samples\policy\build\te
> > mp\META-INF
> >     [javac] Compiling 2 source files to
> > C:\Development\axis\rampart-1.2\samples\
> > policy\build\temp
> >      [copy] Copying 1 file to
> > C:\Development\axis\rampart-1.2\samples\policy\bui
> > ld\temp\META-INF
> >      [copy] Copying 1 file to
> > C:\Development\axis\rampart-1.2\samples\policy\bui
> > ld\temp
> >      [copy] Copying 1 file to
> > C:\Development\axis\rampart-1.2\samples\policy\bui
> > ld\temp
> >       [jar] Building jar: C:\Development\axis\rampart-
> > 1.2\samples\policy\build\s
> > ervice_repositories\sample02\services\sample02.aar
> >    [delete] Deleting directory
> > C:\Development\axis\rampart-1.2\samples\policy\bu
> > ild\temp
> >      [java] [SimpleHTTPServer] Starting
> >       [java] [SimpleHTTPServer] Using the Axis2 Repository
> > C:\Development\axis\ra
> > mpart-1.2\samples\policy\build\service_repositories\sample02
> >      [java] [SimpleHTTPServer] Listening on port 8080
> >      [java] Aug 9, 2007 2:17:27 PM
> > org.apache.axis2.deployment.ModuleDeployer de
> > ploy
> >      [java] INFO: Deploying module: addressing-1.2
> >      [java] Aug 9, 2007 2:17:28 PM
> > org.apache.axis2.deployment.ModuleDeployer de
> > ploy
> >      [java] INFO: Deploying module: rahas-1.2
> >      [java] Aug 9, 2007 2:17:29 PM
> > org.apache.axis2.deployment.ModuleDeployer de
> > ploy
> >      [java] INFO: Deploying module: rampart-1.2
> >      [java] Aug 9, 2007 2:17:29 PM
> > org.apache.axis2.deployment.ServiceDeployer d
> > eploy
> >      [java] INFO: Deploying Web service: sample02.aar
> >      [java] [SimpleHTTPServer] Started
> >      [java] Aug 9, 2007 2:17:29 PM
> > org.apache.axis2.transport.http.server.Defaul
> > tConnectionListener run
> >      [java] INFO: Listening on port 8080
> >      [java] org.apache.ws.security.WSSecurityException: The
> > signature verificati
> > on failed (The provided certificate is invalid)
> >      [java]     at
> > org.apache.ws.security.processor.SignatureProcessor.verifyXML
> > Signature(SignatureProcessor.java:259)
> >      [java]     at
> > org.apache.ws.security.processor.SignatureProcessor.handleTok
> > en(SignatureProcessor.java:80)
> >      [java]     at
> > org.apache.ws.security.WSSecurityEngine.processSecurityHeader
> > (WSSecurityEngine.java:279)
> >      [java]     at
> > org.apache.ws.security.WSSecurityEngine.processSecurityHeader
> > (WSSecurityEngine.java:201)
> >      [java]     at
> > org.apache.rampart.RampartEngine.process(RampartEngine.java
> > :7
> > 1)
> >      [java]     at
> > org.apache.rampart.handler.RampartReceiver.invoke(RampartRece
> > iver.java:71)
> >      [java]     at
> > org.apache.axis2.engine.Phase.invoke(Phase.java:383)
> >      [java]     at
> > org.apache.axis2.engine.AxisEngine.invoke
> > (AxisEngine.java:203
> > )
> >      [java]     at
> > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:13
> > 1)
> >      [java]     at
> > org.apache.axis2.transport.http.HTTPTransportUtils.processHTT
> > PPostRequest(HTTPTransportUtils.java :279)
> >      [java]     at
> > org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker
> > .java:216)
> >      [java]     at
> > org.apache.axis2.transport.http.server.AxisHttpService.doServ
> > ice(AxisHttpService.java:275)
> >       [java]     at
> > org.apache.axis2.transport.http.server.AxisHttpService.handle
> > Request(AxisHttpService.java:184)
> >      [java]     at
> > org.apache.axis2.transport.http.server.HttpServiceProcessor.r
> > un(HttpServiceProcessor.java :74)
> >      [java]     at
> > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExec
> > utor$Worker.runTask(ThreadPoolExecutor.java:665)
> >      [java]     at
> > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExec
> > utor$Worker.run(ThreadPoolExecutor.java:690)
> >      [java]     at java.lang.Thread.run(Thread.java:797)
> >
> >
> > client log
> >
> >
> > C:\Development\axis\rampart-1.2\samples\policy>ant client.02
> > Buildfile: build.xml
> >
> > check.dependency:
> >
> > client.02:
> >      [copy] Copying 1 file to
> > C:\Development\axis\rampart-1.2\samples\policy\bui
> > ld\client_repositories\sample02\modules
> >      [copy] Copying 1 file to C:\Development\axis\rampart-
> > 1.2\samples\policy\bui
> > ld\client_repositories\sample02\modules
> >      [copy] Copying 1 file to
> > C:\Development\axis\rampart-1.2\samples\policy\bui
> > ld\temp_client
> >      [copy] Copying 1 file to C:\Development\axis\rampart-
> > 1.2\samples\policy\bui
> > ld\temp_client
> >      [java] Aug 9, 2007 2:17:37 PM
> > org.apache.axis2.deployment.DeploymentEngine
> > prepareRepository
> >      [java] INFO: No services directory was found under
> > C:\Development\axis\ramp
> > art-1.2\samples\policy\build\client_repositories\sample02.
> >      [java] Aug 9, 2007 2:17:37 PM
> > org.apache.axis2.deployment.ModuleDeployer de
> > ploy
> >      [java] INFO: Deploying module: addressing-1.2
> >      [java] Aug 9, 2007 2:17:39 PM
> > org.apache.axis2.deployment.ModuleDeployer de
> > ploy
> >      [java] INFO: Deploying module: rampart-1.2
> >      [java] Exception in thread "main" org.apache.axis2.AxisFault: The
> > signature
> >  verification failed (The provided certificate is invalid)
> >      [java]     at
> > org.apache.axis2.util.Utils.getInboundFaultFromMessageContext
> > (Utils.java:434)
> >      [java]     at
> > org.apache.axis2.description.OutInAxisOperationClient.send(Ou
> > tInAxisOperation.java:373)
> >       [java]     at
> > org.apache.axis2.description.OutInAxisOperationClient.execute
> > (OutInAxisOperation.java:294)
> >      [java]     at
> > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClie
> > nt.java:520)
> >      [java]     at
> > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClie
> > nt.java:500)
> >      [java]     at
> > org.apache.rampart.samples.policy.sample02.Client.main(Unknow
> > n Source)
> >      [java] Java Result: 1
> >
> > BUILD SUCCESSFUL
> > Total time: 8 seconds
> > C:\Development\axis\rampart-1.2\samples\policy>
> >
> > Thanks,
> > Pavan
> >
> >
> > On 8/7/07, Ford, Jennifer M. <[EMAIL PROTECTED]> wrote:
> > > I have spent the last couple days trying to add Rampart to an existing
> > > web service with Policy/Sample02 as a model.  I feel like I'm close,
> but
> > > I can't seem to get past the most recent error:
> > >
> > > 2007-08-07 16:43:12,066 DEBUG
> > > org.apache.axis2.transport.http.AxisServlet -
> > > org.apache.axis2.AxisFault: Must Understand check failed for header
> > >
> > http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secex
> > > t-1.0.xsd : Security
> > >
> > > Perhaps a stupid question, but what does the Must Understand check do
> > > exactly?  And, more importantly, what might cause this problem?
> > >
> > > Thanks,
> > > Jennifer
> > >
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>
>
> --
> www.ruchith.org
> www.wso2.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to