system
July 9, 2015, 6:14pm
#1
When we try to run a job in our PRE PROD which consumes a webservice it is throwing below error.
Unable to create WS-security policy. Ensure that the policy file {1} exists and is valid.
When we are running the same job from our DEV environment the job is working.Our DEV environement is not behind a proxy where as the PRE PROD is.We are using Policy file posted in this forum which worked well in DEV env.When we try to log in axis2_log using -D -np we dont see anything logged.Not even in error log file.The webserivce url is a HTTPS url.Any help on this issue is appreciated
mvkreddy15 (BOB member since 2015-05-13)
system
July 9, 2015, 11:11pm
#2
Hi,
Did you uncomment and fill in this tag-
The most likely reason you have no axis2 log file is because the job is failing before connecting to the WS
sominya_bajpai (BOB member since 2008-01-24)
system
July 14, 2015, 11:24am
#3
Nope…the proxy is under HTTP un axis2.xml…so will this work for an HTTPS url too?
mvkreddy15 (BOB member since 2015-05-13)
system
July 15, 2015, 12:36am
#4
Yes it is strange, But it works for HTTPS URL as well.
I have done a similar configuration 4 weeks back.
Basically for HTTPS you need to put the certificate info in the tag -
C:\Folder\cert.crt
and uncomment and put entries in Proxy tag.
When you download the certificate you must download it with chain.
Mozilla Firefox provides the easiest way to download certificates.
sominya_bajpai (BOB member since 2008-01-24)
system
July 15, 2015, 11:07am
#5
Thanks Bajpai.Now am receiving the below error in axis2_log
Wed Jul 15 13:54:04 2015] [debug] …\src\omxmlsec\axiom.c(129) [rampart]Checking node Password for EncryptedKey
[Wed Jul 15 13:54:04 2015] [debug] …\src\core\transport\http\sender\http_transport_sender.c(246) ctx_epr:https://pr4-18-02.myloadspring.com:443/p6ws/p6ws/services/ProjectCodeAssignmentService
[Wed Jul 15 13:54:04 2015] [debug] …\src\core\transport\http\sender\http_transport_sender.c(805) using axis2 native http sender.
[Wed Jul 15 13:54:04 2015] [debug] …\src\core\transport\http\sender\http_sender.c(416) msg_ctx_id:urn:uuid:1afad130-bba0-4b10-8be3-83bad1cab6e7
[Wed Jul 15 13:54:17 2015] [error] …\src\core\transport\http\sender\http_client.c(238) Error creating a socket. Most probably error returned by OS
[Wed Jul 15 13:54:17 2015] [error] …\src\core\transport\http\sender\http_client.c(239) Socket Creation failed.
[Wed Jul 15 13:54:17 2015] [error] …\src\core\transport\http\sender\http_client.c(544) client data stream null or socket error for host pr4-18-02.myloadspring.com and 443 port
[Wed Jul 15 13:54:17 2015] [error] …\src\core\transport\http\sender\http_client.c(548) A read attempt(HTTP) for the reply without sending the request
[Wed Jul 15 13:54:17 2015] [error] …\src\core\transport\http\sender\http_sender.c(1381) status_code < 0
[Wed Jul 15 13:54:17 2015] [error] …\src\core\engine\engine.c(179) Transport sender invoke failed
[Wed Jul 15 13:54:17 2015] [info] [rampart][rampart_mod] rampart_mod shutdown
mvkreddy15 (BOB member since 2015-05-13)