• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

webservice:problem in security during implementation of client program for wsag4j server

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to create a service level agreement based grid scheduling. For that I am using wsag4j application server.
I am using tomcat 5.3.35 as my container and Eclipse SDK 3.5.2 as client API. My deployed web services is running perfactly. But when I am trying to run a client program.
I got following problem

2012-04-08 16:11:58,715 INFO - Deploying module: addressing-1.5.4 - file:/home/guser01/project/SLA_scheduling_program/resources/axis2-client/modules/addressing-1.5.4.mar
2012-04-08 16:11:58,744 INFO - Deploying module: rampart-1.5.1 - file:/home/guser01/project/SLA_scheduling_program/resources/axis2-client/modules/rampart-1.5.1.mar
2012-04-08 16:11:58,766 INFO - Deploying module: rahas-1.5.1 - file:/home/guser01/project/SLA_scheduling_program/resources/axis2-client/modules/rahas-1.5.1.mar
2012-04-08 16:11:59,752 ERROR - WSDoAllReceiver: security processing failed
Exception in thread "main" org.ogf.graap.wsag.api.exceptions.ResourceUnavailableException: org.apache.muse.ws.addressing.soap.SoapFault: WSDoAllReceiver: security processing failed
at org.ogf.graap.wsag.client.remote.RemoteAgreementFactoryRegistryServiceImpl.listAgreementFactories(RemoteAgreementFactoryRegistryServiceImpl.java:129)
at sla_scheduling_application.client.main(client.java:74)
Caused by: org.apache.muse.ws.addressing.soap.SoapFault: WSDoAllReceiver: security processing failed
at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:298)
at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
at org.apache.muse.ws.resource.remote.WsResourceClient.getResourceProperty(WsResourceClient.java:138)
at org.ogf.graap.wsag.client.remote.WsrfResourceClient.getResourceProperty(WsrfResourceClient.java:318)
at org.ogf.graap.wsag.client.remote.RemoteAgreementFactoryRegistryServiceImpl.listAgreementFactories(RemoteAgreementFactoryRegistryServiceImpl.java:103)
... 1 more

catalina.out shows the following...

..................
..................
2012-04-08 16:21:56,685 ERROR - WSDoAllReceiver: security processing failed
org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed
at org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllReceiver.java:214)
..........................................................
.........................................................
Caused by: org.apache.ws.security.WSSecurityException: The signature or decryption was invalid (The provided certificate is invalid); nested exception is:
java.security.cert.CertificateExpiredException: NotAfter: Fri Apr 06 17:10:27 IST 2012
at org.apache.ws.security.processor.SignatureProcessor.verifyXMLSignature(SignatureProcessor.java:438)
...............................................
................................................
Caused by: java.security.cert.CertificateExpiredException: NotAfter: Fri Apr 06 17:10:27 IST 2012
at sun.security.x509.CertificateValidity.valid(CertificateValidity.java:256)
at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:570)
.........................................................
.........................................................

I can't understand any thing. Can anyone help me please?.
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It appears like the expiration date of the security certificate has passed without it being renewed. Certificates are only valid for a certain time, and you must renew them near the end of that time.
 
Animesh Kuity
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply......Rob

How will I renew certificate?

I got a related post from http://packcs-e0.scai.fraunhofer.de/wsag4j/faq.html#security_header (because I am following guide http://packcs-e0.scai.fraunhofer.de/wsag4j/client/client-setup.html to set my client )

It says like that

Why do I get the error "security processing failed"?

WSAG4J uses WS-Security time stamps to ensure a message must be delivered within a certain time frame. If the clocks of a client system and a server system are not synchronous (e.g. the time differs more than 5 minutes) the security processing will fail.

But I can't understand how to synchronize client and server system.

my catalina.out shows the following......
....................
......................
2012-04-08 17:47:36,958 INFO - Deploying module: soapmonitor-1.5.4 - file:/usr/local/tomcat/webapps/wsag4j-agreement-factory-1.0.1/WEB-INF/modules/soapmonitor-1.5.4.mar
2012-04-08 17:47:37,201 INFO - Deploying Web service: wsag4j - file:/usr/local/tomcat/webapps/wsag4j-agreement-factory-1.0.1/WEB-INF/services/wsag4j/
2012-04-08 17:47:37,216 INFO - Deploying Web service: version-1.5.4.aar - file:/usr/local/tomcat/webapps/wsag4j-agreement-factory-1.0.1/WEB-INF/services/version-1.5.4.aar
Apr 8, 2012 5:47:37 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Apr 8, 2012 5:47:38 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Apr 8, 2012 5:47:38 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/40 config=null
Apr 8, 2012 5:47:38 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Apr 8, 2012 5:47:38 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10902 ms
2012-04-08 17:52:53,985 ERROR - WSDoAllReceiver: security processing failed
org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed
at org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllReceiver.java:214)
at org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:86)
at org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:72)
at org.apache.axis2.engine.Phase.invoke(Phase.java:318)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254)

..........................
...................................

is it actually synchronization problem as told..

please help me...........
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I've had the same problem as you, it was due to Certificate being expired on their framework. WSAG4J have now released a new version 1.0.2 so you should update yours and that will solve it.
Hopefully, you've already solved it by now.
Regards,
Dmitrijs.
 
Animesh Kuity
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your reply............

I did that already...........
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

from: http://packcs-e0.scai.fraunhofer.de/wsag4j/client/client-setup.html

Add the WSAG4J configuration files. Create a new folder resources in your Java project. Copy all files from the classes folder of the WSAG4J client distribution to the resources folder. Right click the Java project and select Properties. Select Java Build Path->Libraries. Click Add Class Folder..., then select the resources folder and click OK.

You have to re-add these files (from the mentioned version 1.0.2) to update your wsag4j-client-keystore.jks file in your implementation.
 
Animesh Kuity
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your reply............
I did that long days back....
It works perfectly fine now......

 
reply
    Bookmark Topic Watch Topic
  • New Topic