| From | Sent On | Attachments |
|---|---|---|
| Kashif Saleem | Jul 31, 2006 3:27 am | |
| M.Shyam Sundar Rao | Jul 31, 2006 3:40 am | |
| Shaveta Bansal | Jul 31, 2006 4:54 am | |
| M.Shyam Sundar Rao | Jul 31, 2006 10:41 am | .xml, .xml |
| Shaveta Bansal | Jul 31, 2006 9:23 pm |
| Subject: | Problem in running simple security example | |
|---|---|---|
| From: | Kashif Saleem (kash...@googlemail.com) | |
| Date: | Jul 31, 2006 3:27:03 am | |
| List: | net.java.dev.jwsdp.users | |
Hi All,
I just run the simple sample example that is given in $JWSDP_HOME/xws-security/samples/simple.It works fine,but when I changed it to run using the mycertificates.It has given me the following errors:
bash-2.05b$ ant run-sample Buildfile: build.xml
clean: [delete] Deleting directory /a/green/cs/research/medic/home0/paramedic/ucackxs/jwsdp-2.0 /xws-security/samples /simple/build [delete] Deleting directory /a/green/cs/research/medic/home0/paramedic/ucackxs/jwsdp-2.0 /xws-security/samples /simple/dist
as8-check:
ws-check:
tc-check: [mkdir] Created dir: /a/green/cs/research/medic/home0/paramedic/ucackxs/jwsdp-2.0 /xws-security/samples/simpl e/build/client/classes [mkdir] Created dir: /a/green/cs/research/medic/home0/paramedic/ucackxs/jwsdp-2.0 /xws-security/samples/simpl e/build/server/WEB-INF/classes [mkdir] Created dir: /a/green/cs/research/medic/home0/paramedic/ucackxs/jwsdp-2.0 /xws-security/samples/simpl e/dist
compile-handler-code: [echo] Compiling the handler source code [javac] Compiling 1 source file to /a/green/cs/research/medic/home0/paramedic/ucackxs/jwsdp-2.0/xws-security /samples/simple/build/server/WEB-INF/classes [javac] Compiling 1 source file to /a/green/cs/research/medic/home0/paramedic/ucackxs/jwsdp-2.0/xws-security /samples/simple/build/client/classes
create-handler-jar: [jar] Building jar: /a/green/cs/research/medic/home0/paramedic/ucackxs/jwsdp-2.0 /xws-security/samples/simp le/build/client/secenv-handler.jar
prepare:
gen-server: [echo] Running wscompile....
compile-server: [echo] Compiling the server-side source code.... [javac] Compiling 2 source files to /a/green/cs/research/medic/home0/paramedic/ucackxs/jwsdp-2.0/xws-securit y/samples/simple/build/server/WEB-INF/classes
setup-web-inf: [echo] Setting up build/server/WEB-INF... [copy] Copying 1 file to /a/green/cs/research/medic/home0/paramedic/ucackxs/jwsdp-2.0 /xws-security/samples/ simple/build/server/WEB-INF [copy] Copying 1 file to /a/green/cs/research/medic/home0/paramedic/ucackxs/jwsdp-2.0 /xws-security/samples/ simple/build/server/WEB-INF [copy] Copying 1 file to /a/green/cs/research/medic/home0/paramedic/ucackxs/jwsdp-2.0 /xws-security/samples/ simple/build/server/WEB-INF
raw-war: [echo] Packaging to dist/simple-portable.war.... [jar] Building jar: /a/green/cs/research/medic/home0/paramedic/ucackxs/jwsdp-2.0 /xws-security/samples/simp le/dist/simple-portable.war
process-war: [echo] Running wsdeploy...
build-server:
check-if-deployed-as:
undeploy-sjsas:
deploy-sjsas:
check-if-deployed-ws:
undeploy-sjsws:
deploy-sjsws:
check-if-deployed-tom: [echo] Checking for deployed webapp at context path /securesimple
undeploy-tomcat: [echo] Undeploying existing webapp at securesimple
undeploy-tomcat-war-present: [echo] Undeploying existing webapp at securesimple [undeploy-catalina] OK - Undeployed application at context path /securesimple
undeploy-tomcat-proper:
deploy-tomcat: [echo] Deploying war for simple to tomcat [deploy-catalina] OK - Deployed application at context path /securesimple
deploy-forced:
gen-client: [echo] Running wscompile....
compile-client: [echo] Compiling the client source code.... [javac] Compiling 1 source file to /a/green/cs/research/medic/home0/paramedic/ucackxs/jwsdp-2.0/xws-security /samples/simple/build/client
build-client:
run-sample: [echo] Running the simple.TestClient program.... [java] Service URL=http://localhost:8080/securesimple/Ping [java] 31-Jul-2006 11:03:26 com.sun.xml.wss.impl.filter.SignatureFilterprocess [java] SEVERE: WSS1417: Error while processing signature No default X509Certificate was provided [java] Exception in thread "main" java.rmi.RemoteException: com.sun.xml.wss.XWSSecurityException: com.sun.x ml.wss.XWSSecurityException: No default X509Certificate was provided; nested exception is: [java] javax.xml.rpc.JAXRPCException: com.sun.xml.wss.XWSSecurityException: com.sun.xml.wss.XWSSecurity Exception: No default X509Certificate was provided [java] at simple.PingPort_Ping_Stub.ping (PingPort_Ping_Stub.java:146) [java] at simple.TestClient.main(TestClient.java:34) [java] Caused by: javax.xml.rpc.JAXRPCException: com.sun.xml.wss.XWSSecurityException: com.sun.xml.wss.XWSS ecurityException: No default X509Certificate was provided [java] at com.sun.xml.rpc.security.SecurityPluginUtil._preRequestSendingHook( SecurityPluginUtil.java:22 2) [java] at simple.PingPort_Ping_Stub._preRequestSendingHook (PingPort_Ping_Stub.java:263) [java] at com.sun.xml.rpc.client.StreamingSender._send( StreamingSender.java:91) [java] at simple.PingPort_Ping_Stub.ping (PingPort_Ping_Stub.java:130) [java] ... 1 more [java] Java Result: 1
BUILD SUCCESSFUL Total time: 1 minute 1 second bash-2.05b$
The only thing that I changed in the sample example is to use my certificates.I checked my client-keystore and server-truststore, client-certificate is there.Also server-certificate is present there in client-truststore and server-keystore.So I dont know the real cause of this error.Any help would highly be appreciated in this regard.Thanks.
Kash






.xml, .xml